/* =========================================================
   Huy Hoàng Software — main.css
   1 file CSS cho toàn site. Thứ tự: tokens → base → layout →
   components → pages → responsive. Không viết style inline.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0A1E3F;
  --navy-2: #1A3360;
  --blue: #1D5BFF;
  --blue-600: #1749D6;
  --blue-50: #E6EEFF;
  --blue-light: #5B8BFF;
  --gold: #F2A900;
  --gold-50: #FFF6DB;
  --ink: #1B2333;
  --slate: #4F5B70;
  --slate-2: #8C9AB5;
  --line: #E3E7EF;
  --line-2: #D5DBE6;
  --mist: #F4F6FA;
  --white: #FFFFFF;
  --on-navy: #D5DBE6;
  --on-navy-2: #B8C3D9;

  --ok: #067647;   --ok-bg: #DCFAE6;
  --warn: #8A5A00; --warn-bg: #FFF4D6;
  --err: #C01C28;  --err-bg: #FDE4E4;
  --info: #1D4ED8; --info-bg: #E6EEFF;

  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(10,30,63,.06);
  --shadow-lg: 0 20px 50px rgba(10,30,63,.10);
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--slate); }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 64px; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }
.grid--2 { --cols: 2; } .grid--3 { --cols: 3; } .grid--4 { --cols: 4; } .grid--5 { --cols: 5; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.with-sidebar--left { grid-template-columns: 260px minmax(0, 1fr); }

/* ---------- 4. Header ---------- */
.topbar { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 9px; }
.topbar b { color: var(--gold); }
.topbar a { color: var(--white); font-weight: 700; }
.topbar__short { display: none; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 44px; width: auto; max-width: min(200px, 34vw); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.nav__link { display: block; padding: 12px 11px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.nav .nav__login { display: none; }
.nav__item { position: relative; }
.nav__item--has-sub > .nav__link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  display: none; z-index: 60;
}
/* Vùng “cầu” vô hình: tránh mất hover khi rê chuột từ nút menu xuống dropdown */
.nav__sub::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: -12px; height: 12px;
}
.nav__item--has-sub:hover > .nav__link,
.nav__item--has-sub:focus-within > .nav__link { color: var(--blue); }
.nav__item--has-sub:hover > .nav__sub:not(.nav__sub--mega),
.nav__item--has-sub:focus-within > .nav__sub:not(.nav__sub--mega) { display: block; }
.nav__item--has-sub:hover > .nav__sub--mega,
.nav__item--has-sub:focus-within > .nav__sub--mega { display: grid; }
.nav__sub a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r-sm); color: var(--navy); font-weight: 600; font-size: 15px; }
.nav__sub a span { font-weight: 400; font-size: 13px; color: var(--slate); }
.nav__sub a:hover { background: var(--mist); }
.header__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; margin-left: 4px; }
.header__actions .btn--sm { white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--r-sm); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-check:checked ~ .nav-toggle .icon-open { display: none; }
.nav-check:checked ~ .nav-toggle .icon-close { display: block; }
.nav-check:focus-visible ~ .nav-toggle { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- 5. Buttons, chips, badges ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 800; }
.btn--gold:hover { background: #FFBE2E; color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn--link { min-height: 44px; padding: 10px 0; background: none; color: var(--blue); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--line); color: var(--slate); border-color: var(--line); cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip__count { font-size: 12px; opacity: .75; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; line-height: 1.4; background: var(--blue-50); color: var(--blue); }
.badge--solid { background: var(--blue); color: var(--white); }
.badge--gold { background: var(--gold-50); color: #5C4300; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--err { background: var(--err-bg); color: var(--err); }
.badge--navy { background: var(--navy); color: var(--white); }
.badge--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- 6. Headings & heroes ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.section--navy .eyebrow { color: var(--gold); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { align-items: center; }
.lead { font-size: 18px; line-height: 1.6; color: var(--slate); }
.hero .lead, .page-hero .lead { font-size: 20px; }
.section-head__aside { flex: 1 1 380px; max-width: 520px; }
.hero .btn:not(.btn--sm) { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.hero .stat__value { font-size: 30px; }
.section--navy .lead { color: var(--on-navy); }
.page-hero { background: var(--mist); padding-block: 56px 72px; }
.page-hero--navy { background: var(--navy); color: var(--on-navy); }
.page-hero--navy h1 { color: var(--white); }
.page-hero--navy .lead { color: var(--on-navy); }
.page-hero--navy .breadcrumb, .page-hero--navy .breadcrumb a { color: var(--on-navy-2); }
.page-hero--navy .stat__value { color: var(--gold); }
.page-hero--navy .stat__label { color: var(--on-navy-2); }
.stats--hero-kpi { align-items: start; gap: 20px 24px; }
.page-hero--navy .stats--hero-kpi .stat { gap: 6px; min-width: 0; }
.page-hero--navy .stats--hero-kpi .stat__value {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.page-hero--navy .stats--hero-kpi .stat__value--money {
  font-size: clamp(20px, 2.2vw, 30px);
}
.page-hero--navy .stats--hero-kpi .stat__label {
  font-size: 13px;
  line-height: 1.4;
  max-width: 11rem;
}
.page-hero__inner { display: flex; flex-direction: column; gap: 20px; max-width: 880px; }
.page-hero--center .page-hero__inner { margin-inline: auto; align-items: center; text-align: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--slate); list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); }
.hero { background: var(--mist); padding-block: 80px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
.hero__badge::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.hero h1 .accent { color: var(--blue); }

/* ---------- 7. Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--mist { background: var(--mist); border-color: transparent; }
.card--navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.card--navy h3 { color: var(--white); }
.card--accent { border: 2px solid var(--blue); background: #F7F9FF; }
.card--link { transition: border-color .15s, box-shadow .15s, transform .15s; color: inherit; }
.card--link:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); color: inherit; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue); }
.card__icon--gold { background: var(--gold-50); color: #8A5A00; }
.card--navy .card__icon { background: var(--navy-2); color: var(--gold); }
.card__text { font-size: 15px; color: var(--slate); line-height: 1.6; }
.card--navy .card__text { color: var(--on-navy-2); }
.card__more { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.feature-row h3 { font-size: 18px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat__label { font-size: 14px; color: var(--slate); }
.stat--card { background: var(--white); border-radius: 16px; padding: 22px; }
.section--navy .stat__value { color: var(--white); }
.section--navy .stat__label { color: var(--on-navy-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; font-weight: 800; letter-spacing: .06em; color: #6B7488; font-size: 18px; }
.logos__label { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--slate); }
.logos-strip { padding-block: 32px; border-bottom: 1px solid var(--line); }
.module-mini { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--navy); transition: border-color .15s, box-shadow .15s; }
.module-mini:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); color: var(--navy); }
.module-mini .card__icon { width: 44px; height: 44px; flex: 0 0 44px; }
.module-mini__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.module-mini__text b { font-size: 17px; line-height: 1.35; }
.module-mini__text span { font-size: 15px; line-height: 1.5; color: var(--slate); }
.case { background: var(--navy-2); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--on-navy); }
.case__metric { font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--gold); line-height: 1; }
.case b { color: var(--white); font-size: 21px; }
.case a { color: var(--white); font-weight: 700; margin-top: auto; }
.case .scale-label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.case .scale-label + b + span { font-size: 15px; line-height: 1.6; }
.scale-actions { margin-top: 32px; }
.section--navy .scale-link { color: var(--white); padding-inline: 8px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list--cols { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px 24px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); font-size: 15px; line-height: 1.6; }
.notice--warn { background: var(--warn-bg); color: #5C4300; }
.notice--info { background: var(--info-bg); color: #13306E; }
.notice--ok { background: var(--ok-bg); color: #054F31; }
.notice--err { background: var(--err-bg); color: #7A0F18; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; counter-increment: step; min-height: 100%; }
.steps--3 li { padding: 28px 24px; }
.steps--3 li span a { color: var(--blue); font-weight: 600; }
.steps--3 li span a:hover { text-decoration: underline; }
.section--mist .steps li { background: var(--white); }
.section:not(.section--mist) .steps li { background: var(--mist); }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps li:last-child::before { background: var(--gold); color: var(--navy); }
.steps b { font-size: 18px; color: var(--navy); }
.steps span { font-size: 15px; color: var(--slate); }

/* ---------- 8. Tabs (điều hướng giữa các trang cùng nhóm) ---------- */
.tabnav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.tabnav a, .tabnav button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 700; color: var(--navy); cursor: pointer; }
.tabnav a[aria-current="page"], .tabnav button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tabnav a, .tabnav button { transition: background .2s ease, color .2s ease; }
.tabnav a:not([aria-current="page"]):hover { background: var(--mist); color: var(--navy); }
/* Tab giữa các trang cùng nhóm: các ô bằng nhau, nằm trên tiêu đề để không nhảy khi chuyển trang */
.page-hero .tabnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: flex-start; view-transition-name: page-tabs; }
.page-hero .tabnav a { justify-content: center; padding-inline: 24px; white-space: nowrap; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.tabnav .save { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: var(--r-pill); }
.tabnav [aria-selected="true"] .save { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- 9. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(29,91,255,.14); }
.plan--dark { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.plan--dark .plan__name, .plan--dark .plan__price { color: var(--white); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan__name { font-size: 20px; font-weight: 800; color: var(--navy); }
.plan__desc { font-size: 14px; color: var(--slate); }
.plan--dark .plan__desc { color: var(--on-navy-2); }
.plan__price { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--slate); }
.plan--dark .plan__price small { color: var(--on-navy-2); }
.plan__save { font-size: 13px; font-weight: 700; color: var(--ok); min-height: 20px; }
.plan--dark .plan__save { color: #6CE9A6; }
.plan__specs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan__specs li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.plan--dark .plan__specs li { border-color: rgba(255,255,255,.12); }
.plan__specs b { color: inherit; }
.plan .btn { margin-top: auto; }
.plans__cell { display: flex; }
.plans__cell > .plan { flex: 1; }
.plan__head .badge { white-space: nowrap; flex-shrink: 0; }
.plan__name { min-width: 0; }
.plan__trial { font-size: 13px; color: var(--slate); margin-top: -8px; }
.plan--dark .plan__trial { color: var(--on-navy-2); }
.plans--5 { --cols: 5; }
/* Thẻ gói gọn: giá 1 dòng, đơn vị dòng riêng, nhãn "Phổ biến" nằm trên viền thẻ */
.plans--compact { row-gap: 24px; }
.plans--compact .plan { padding: 26px 22px 22px; gap: 14px; }
.plans--compact .plan__head { min-height: 26px; }
.plans--compact .plan__name { font-size: 18px; line-height: 1.3; }
.plans--compact .plan--featured .badge--solid { position: absolute; top: 0; left: 22px; transform: translateY(-50%); padding: 4px 12px; box-shadow: 0 4px 12px rgba(29,91,255,.28); }
.plans--compact .plan__price { font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.01em; white-space: nowrap; }
.plan__unit { margin-top: 4px; font-size: 13px; color: var(--slate); }
.plan--dark .plan__unit { color: var(--on-navy-2); }
.plans--compact .plan__specs { font-size: 14px; gap: 6px; }
.plans--compact .plan__specs li { padding-bottom: 6px; }
.plans--compact .plan__specs span { color: var(--slate); }
.plan--dark .plan__specs span { color: var(--on-navy-2); }
.plans--compact .plan__specs b { white-space: nowrap; color: var(--navy); }
.plans--compact .plan--dark .plan__specs b { color: var(--white); }
.plans--compact .plan__desc { font-size: 14px; line-height: 1.5; }
.plans--5 .plan { padding-inline: 18px; }
.infra-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.infra-band h3 { margin: 6px 0 8px; }
.infra-band__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.infra-band__stats .stat { padding: 16px; border-radius: var(--r); background: var(--blue-50); }
.infra-band__stats .stat__value { font-size: clamp(22px, 2.2vw, 28px); color: var(--blue); }
.billing { display: flex; justify-content: center; }
body:has(input[name="period"][value="yearly"]:checked) .show-monthly,
body:not(:has(input[name="period"][value="yearly"]:checked)) .show-yearly { display: none !important; }
.tabnav label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 700; color: var(--navy); cursor: pointer; }
.tabnav label:has(input:checked) { background: var(--navy); color: var(--white); }
.tabnav label:has(input:checked) .save { background: rgba(255,255,255,.15); color: #fff; }
.tabnav label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--mist); font-size: 14px; color: var(--slate); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--navy); }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--slate-2); }

/* ---------- 10. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; color: var(--navy); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--slate); }

/* ---------- 11. Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form.form--stack { grid-template-columns: minmax(0, 1fr); }
.form--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form__full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field__label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .req { color: var(--err); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C3CAD6; border-radius: var(--r-sm); background: var(--white); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,255,.18); }
.textarea { min-height: 120px; resize: vertical; }
.input-group { display: flex; align-items: stretch; border: 1px solid #C3CAD6; border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.input-group:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,255,.18); }
.input-group .input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.input-group__addon { display: flex; align-items: center; padding: 0 14px; background: var(--mist); color: var(--slate); font-size: 14px; white-space: nowrap; border-left: 1px solid var(--line); }
.input-group__btn { flex-shrink: 0; min-width: 48px; padding: 0 12px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 14px; font-weight: 600; cursor: pointer; }
.input-group__btn:hover { color: var(--navy); }
.input-group__btn--icon { width: 44px; min-width: 44px; padding: 0; color: var(--slate); }
.input-group__btn--icon:hover { color: var(--blue); background: var(--mist); }
.input-group__btn--icon .icon { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.input-group__btn--icon .icon[hidden] { display: none; }
.help { font-size: 13px; color: var(--slate); }
.field.is-invalid .input, .field.is-invalid .input-group, .field.is-invalid .select { border-color: var(--err); }
.field__error { display: none; font-size: 13px; color: var(--err); }
.field.is-invalid .field__error { display: block; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--navy); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 48px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #C3CAD6; border-radius: var(--r-pill); font-size: 15px; cursor: pointer; }
.choice-chips input { accent-color: var(--blue); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border: 2px dashed #C3CAD6; border-radius: var(--r); background: #F8F9FC; text-align: center; color: var(--slate); }
.dropzone b { color: var(--navy); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--slate); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.captcha-slot { min-height: 78px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--slate); }

/* ---------- 12. Theme store ---------- */
.filter-panel { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); padding: 8px 0; }
.filter-btn, a.filter-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; font-size: 15px; color: var(--ink); cursor: pointer; text-decoration: none; width: 100%; box-sizing: border-box; }
a.filter-btn:hover { color: var(--ink); }
.filter-btn:hover { background: var(--mist); }
.filter-btn.is-active { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.filter-btn span { font-size: 13px; color: var(--slate); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.theme-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.theme-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.theme-card__thumb { position: relative; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.theme-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme-card__thumb .badge { position: absolute; top: 12px; left: 12px; }
.theme-card__ph { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.theme-card__ph i { display: block; border-radius: 6px; background: var(--line); }
.theme-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.theme-card__meta { font-size: 13px; color: var(--slate); }
.theme-card__title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.theme-card__price { font-size: 18px; font-weight: 800; color: var(--navy); }
.theme-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.grid--themes { --min: 280px; }
.theme-card__actions .btn { flex: 1; }
.selected-theme { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.selected-theme > .stack { flex: 1 1 220px; min-width: 0; }
.selected-theme__thumb { width: 88px; height: 56px; flex: 0 0 auto; border-radius: 8px; background: var(--mist); overflow: hidden; }
.selected-theme__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 13. Signup & provisioning ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.signup__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.plan-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-pick label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan-pick input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; accent-color: var(--blue); }
.plan-pick label:has(input:checked) { border: 2px solid var(--blue); padding: 19px; background: #F7F9FF; }
.plan-pick__name { font-weight: 800; color: var(--navy); font-size: 17px; }
.plan-pick__price { font-weight: 800; color: var(--navy); font-size: 22px; }
.plan-pick__price small { font-weight: 500; font-size: 14px; color: var(--slate); }
.summary { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--mist); font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { border-top: 1px solid var(--line-2); padding-top: 10px; font-weight: 800; color: var(--navy); font-size: 17px; }
.summary__note { margin: 4px 0 0; line-height: 1.45; font-size: 14px; }
.summary--consult { text-align: left; }
.vat-fields[hidden] { display: none; }
.provision { max-width: 640px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 22px; }
.provision__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.provision__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.provision__mark .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 5px; background: var(--blue); transition: width .4s ease; }
.progress__meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--slate); }
.task-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.task-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.task-list li:last-child { border-bottom: 0; }
.task-list .dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.task-list li.is-done { color: var(--ink); }
.task-list li.is-done .dot { border-color: var(--ok); background: var(--ok); }
.task-list li.is-done .dot::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.task-list li.is-active { color: var(--blue); font-weight: 700; }
.task-list li.is-active .dot { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.task-list li.is-error { color: var(--err); font-weight: 700; }
.task-list li.is-error .dot { border-color: var(--err); background: var(--err); }
.task-list li .time { margin-left: auto; font-size: 13px; color: var(--slate-2); font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace-url { padding: 16px 18px; border-radius: var(--r); background: var(--ok-bg); display: flex; flex-direction: column; gap: 6px; }
.workspace-url code { font-family: var(--mono); font-size: 18px; color: var(--navy); word-break: break-all; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr { width: 160px; height: 160px; border-radius: 12px; background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- 14. Blog ---------- */
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); color: inherit; transition: box-shadow .15s, border-color .15s; }
.post-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); color: inherit; }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--blue-50); display: flex; align-items: flex-end; padding: 14px; position: relative; overflow: hidden; }
.post-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb .badge { position: relative; background: var(--white); }
.post-card__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(10,30,63,.8); color: #fff; display: flex; align-items: center; justify-content: center; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.post-card__excerpt { font-size: 15px; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--slate); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: var(--on-navy); }
.post-feature:hover { color: var(--on-navy); }
.post-feature__thumb { min-height: 280px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.post-feature__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.post-feature__body .post-card__title { font-size: clamp(24px, 2.6vw, 30px); color: var(--white); }
.widget { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.widget__title { font-size: 15px; font-weight: 800; color: var(--navy); }
.widget--cta { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.widget--cta .widget__title { color: var(--white); font-size: 20px; }
.cat-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.mini-post { display: flex; gap: 12px; color: inherit; }
.mini-post__thumb { width: 72px; height: 56px; flex: 0 0 auto; border-radius: 8px; background: var(--blue-50); }
.mini-post b { font-size: 14px; line-height: 1.4; color: var(--navy); }
.mini-post span { font-size: 12px; color: var(--slate); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--navy); }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.article-header { display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--blue); margin-top: 8px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); font-size: 14px; color: var(--slate); line-height: 1.45; }
.toc a.is-active, .toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.toc .toc-h3 a { padding-left: 22px; font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.share__btn:hover { border-color: var(--navy); }
.author { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--mist); }
.author__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* Nội dung bài viết (rich text từ CMS) */
.prose { font-size: 18px; line-height: 1.8; color: var(--ink); max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font-size: 20px; color: var(--navy); font-weight: 600; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--slate); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--mist); color: var(--navy); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.prose .callout { padding: 18px 20px; border-radius: var(--r); background: var(--blue-50); font-size: 16px; }

/* Video nhúng 16:9 — chỉ tải iframe khi người xem bấm */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--navy) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #fff; }
.video__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,30,63,.75)); }
.video__play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.video__play svg { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 4px; }
.video__title { position: absolute; left: 20px; right: 20px; bottom: 16px; text-align: left; font-weight: 700; font-size: 16px; }
.video__duration { position: absolute; right: 16px; top: 16px; background: rgba(0,0,0,.7); border-radius: 6px; padding: 2px 8px; font-size: 13px; }

/* ---------- 15. Courses ---------- */
.course-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lessons { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.lessons details { border-bottom: 1px solid var(--line); }
.lessons details:last-child { border-bottom: 0; }
.lessons summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; background: var(--mist); }
.lessons summary::-webkit-details-marker { display: none; }
.lessons ol { list-style: none; padding: 0; }
.lesson { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: 0; border-top: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; font-size: 15px; }
.lesson:hover { background: #F8F9FC; }
.lesson.is-active { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.lesson .time { margin-left: auto; font-size: 13px; color: var(--slate); }

/* ---------- 16. Careers ---------- */
.job { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); color: inherit; }
.job:hover { border-color: var(--blue); color: inherit; }
.job__main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.job__title { font-size: 19px; font-weight: 700; color: var(--navy); }
.job__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job__tags span { font-size: 13px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); }

/* ---------- 17. Footer & CTA band ---------- */
.partner-join {
  margin-top: 48px;
  max-width: 640px;
  margin-inline: auto;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm, 0 4px 24px rgba(15, 23, 42, .06));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.partner-join h2 { font-size: 22px; margin: 0; color: var(--navy); }
.partner-join .help { margin: 0; max-width: 420px; line-height: 1.55; }
.partner-join__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.partner-join__actions .btn { flex: 1 1 220px; max-width: 100%; justify-content: center; }
.cta-band { background: var(--navy-2); border-radius: var(--r-lg); padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band b { display: block; color: var(--white); font-size: 21px; }
.cta-band span { color: var(--on-navy-2); font-size: 15px; }
.footer { background: var(--navy); color: var(--on-navy-2); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col b { color: var(--white); margin-bottom: 4px; }
.footer a:not(.btn) { color: var(--on-navy-2); }
.footer a:not(.btn):hover { color: var(--white); }
.footer__logo img { height: 40px; width: auto; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(10,30,63,.25); }
.float-contact a.zalo { background: var(--white); color: var(--blue); font-weight: 800; font-size: 13px; border: 1px solid var(--line); }

/* ---------- 18. Hero mockup (trang chủ) ---------- */
.mock { background: var(--white); border-radius: 18px; box-shadow: 0 24px 60px rgba(10,30,63,.14); overflow: hidden; }
.mock__bar { display: flex; gap: 6px; padding: 12px 16px; background: #E9EDF4; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C3CAD6; }
.mock__body { display: flex; min-height: 360px; }
.mock__side { flex: 0 0 64px; background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0; }
.mock__side i { width: 24px; height: 24px; border-radius: 6px; background: var(--navy-2); }
.mock__side i:first-of-type { background: var(--blue); }
.mock__main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #F8F9FC; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis div { background: #fff; border-radius: 10px; padding: 12px; font-size: 12px; color: var(--slate); display: flex; flex-direction: column; gap: 8px; }
.mock__kpis i { height: 12px; border-radius: 3px; background: var(--navy); width: 70%; }
.mock__chart { flex: 1; background: #fff; border-radius: 10px; padding: 14px; display: flex; align-items: flex-end; gap: 10px; min-height: 160px; }
.mock__chart i { flex: 1; border-radius: 4px; background: #C9D7FF; }
.mock__chart i:nth-last-child(2) { background: var(--blue); }
.mock__chart i:last-child { background: var(--navy); }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1280px) {
  .nav__link { font-size: 14px; padding: 9px 8px; }
  .nav__item--has-sub > .nav__link::after { margin-left: 6px; }
  .header__logo img { height: 40px; max-width: min(168px, 40vw); }
  .header__actions .btn--sm { min-height: 40px; padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 1240px) {
  .plans--5 { --cols: 3; }
}
@media (max-width: 1100px) {
  .plans { --cols: 2; }
  .infra-band { grid-template-columns: minmax(0, 1fr); }
  .grid--4, .grid--5 { --cols: 2; }
  .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .signup { grid-template-columns: minmax(0, 1fr); }
  .signup__aside, .filter-panel, .toc { position: static; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --section-y: 72px; --header-h: 64px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header__actions { order: 2; margin-left: auto; }
  .nav .nav__login { display: flex; margin-top: 16px; min-height: 48px; }
  .nav .nav__sub--mega { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; margin: 0; }
  .nav-check:checked ~ .nav { display: flex; }
  .nav__link { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .nav__sub::before { display: none; }
  .nav__sub--mega {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: none;
    max-height: none;
  }
  .nav__sub a { padding: 10px 4px; }
  .nav__item--has-sub > .nav__link::after { display: none; }
  .header__actions .btn--secondary { display: none; }
  .split, .split--wide-left, .course-hero, .post-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid--3 { --cols: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-sidebar--left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 56px; }
  body { font-size: 15px; }
  .topbar { font-size: 13px; }
  .topbar__inner { flex-wrap: nowrap; padding-block: 8px; }
  .topbar__full { display: none; }
  .topbar__short { display: inline; }
  .header__logo img { height: 36px; }
  .logos-strip { padding-block: 28px; }
  .logos { gap: 12px 24px; font-size: 16px; justify-content: flex-start; }
  .logos__label { flex-basis: 100%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__col:first-child, .footer__col:last-child { grid-column: 1 / -1; }
  .header__actions .btn--primary { padding: 8px 14px; min-height: 40px; font-size: 14px; }
  .grid--2, .grid--3, .grid--4, .grid--5, .plans, .plan-pick, .result-grid { --cols: 1; grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form--card { padding: 22px 18px; }
  .check-list--cols { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 22px; }
  .cta-band .btn { width: 100%; }
  .hero { padding-block: 48px; }
  .page-hero { padding-block: 36px 48px; }
  .lead, .hero .lead, .page-hero .lead { font-size: 17px; }
  .hero .btn:not(.btn--sm) { min-height: 52px; padding: 14px 22px; font-size: 16px; }
  .module-mini { padding: 20px; }
  .prose { font-size: 17px; }
  .provision { padding: 28px 18px; }
  .card { padding: 22px; }
  .section-head { margin-bottom: 28px; }
  .tabnav { display: flex; width: 100%; }
  .page-hero .tabnav { display: grid; align-self: stretch; }
  .tabnav a, .tabnav button { flex: 1; justify-content: center; padding: 10px 12px; }
  .page-hero .tabnav a { padding-inline: 8px; font-size: 14px; }
  .mock__kpis { grid-template-columns: repeat(2, 1fr); }
  .mock__kpis div:last-child { display: none; }
  .float-contact { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- 11. Trang tĩnh (không JS) & trang mới — theme 2025 ---------- */
/* Lọc tĩnh: radio ẩn + :has(). Luật theo từng giá trị lọc nằm ở mục 12 (sinh khi xuất theme). */
.chip:has(+ .chip), label.chip, label.filter-btn { user-select: none; }
.filter-btn:hover { background: var(--mist); }
.vat { border-top: 1px dashed var(--line-2); padding-top: 14px; }
.vat summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); display: block; background: var(--navy); }
.video-thumb { background: linear-gradient(135deg, var(--navy), var(--navy-2)); align-items: center; justify-content: center; }
.video-thumb .video__play { width: 52px; height: 52px; }
.video-thumb .video__play svg { width: 22px; height: 22px; }
.video-thumb .video__duration, .course-card__thumb .video__duration { position: absolute; top: auto; right: 10px; bottom: 10px; color: #fff; line-height: 1.5; }
.video-thumb--sm { position: relative; width: 112px; height: 64px; }
.lesson { text-decoration: none; }
.lesson[aria-current], .lesson.is-active { background: var(--blue-50); color: var(--blue); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.toc .toc-h3 { margin-left: 12px; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.roadmap--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.roadmap__col { background: var(--mist); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }
.roadmap__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 8px; }
.roadmap__item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.roadmap__item b { color: var(--navy); }

.product-gallery { display: grid; gap: 10px; }
.product-gallery__main { aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--blue-50); overflow: hidden; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-gallery__thumbs span { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--mist); overflow: hidden; }
.product-buy { position: sticky; top: calc(var(--header-h, 72px) + 20px); gap: 14px; }
.product-buy__price { font-size: 30px; font-weight: 800; color: var(--navy); }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--slate); }
.spec-list li { display: flex; gap: 8px; align-items: center; }

.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comments--reply { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment__avatar { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.comment__avatar--staff { background: var(--navy); }
.comment__body { flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.comment__body p { margin: 4px 0 0; }
.comment__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.comment__meta b { color: var(--navy); }

.preview-page { margin: 0; background: #E9EDF4; height: 100vh; display: flex; flex-direction: column; }
.preview-bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.preview-bar__name { margin-right: auto; color: var(--navy); }
.preview-bar__devices label { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.preview-stage { flex: 1; display: flex; justify-content: center; padding: 16px; overflow: auto; }
.preview-frame { width: 100%; height: 100%; min-height: 70vh; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); transition: width .2s; }
body:has(#dv-tablet:checked) .preview-frame { width: 820px; }
body:has(#dv-mobile:checked) .preview-frame { width: 390px; }
body:has(#dv-desktop:checked) label[for="dv-desktop"], body:has(#dv-tablet:checked) label[for="dv-tablet"], body:has(#dv-mobile:checked) label[for="dv-mobile"] { background: var(--navy); color: var(--white); }

.lp-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.lp-bar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.lp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.lp-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }
.lp-foot { padding: 24px 0; text-align: center; font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); }

.course-card { gap: 10px; }
.course-card__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--mist); display: flex; align-items: center; justify-content: center; }
.course-card__thumb .card__icon { width: 64px; height: 64px; border-radius: 18px; }
.course-card__thumb .card__icon .icon { width: 30px; height: 30px; }
.course-card__price { color: var(--ok); }

.quiz__q { gap: 10px; border: 1px solid var(--line); }
.quiz__q legend { display: flex; gap: 10px; align-items: baseline; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.quiz__n { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--blue); background: var(--blue-50); padding: 2px 8px; border-radius: var(--r-pill); }
.quiz__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; clear: both; }
.quiz__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.quiz__opt input { margin-top: 3px; accent-color: var(--blue); }
.quiz__map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quiz__map a { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--navy); font-weight: 600; font-size: 14px; }
.quiz__timer { display: flex; gap: 8px; align-items: center; font-size: 26px; color: var(--err); }

.cart-item { flex-direction: row; align-items: center; gap: 14px; }
.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay-methods .check span { display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 960px) {
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .product-buy { position: static; }
  .preview-bar__devices { display: none; }
}
@media (max-width: 640px) {
  .lp-tiles { grid-template-columns: repeat(3, 1fr); padding: 14px; gap: 10px; }
  .cart-item { flex-wrap: wrap; }
}


/* ---------- 12. Lọc tĩnh (sinh tự động khi xuất theme — thêm mục lọc thì thêm 3 dòng tương ứng) ---------- */
#kho-giao-dien:has(#kho-giao-dien-b2b:checked) [data-tags]:not([data-tags~="b2b"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-ban-hang:checked) [data-tags]:not([data-tags~="ban-hang"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-da-nganh:checked) [data-tags]:not([data-tags~="da-nganh"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-dien-tu:checked) [data-tags]:not([data-tags~="dien-tu"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-doanh-nghiep:checked) [data-tags]:not([data-tags~="doanh-nghiep"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-gioi-thieu:checked) [data-tags]:not([data-tags~="gioi-thieu"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-lam-dep:checked) [data-tags]:not([data-tags~="lam-dep"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-landing:checked) [data-tags]:not([data-tags~="landing"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-me-be:checked) [data-tags]:not([data-tags~="me-be"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-mien-phi:checked) [data-tags]:not([data-tags~="mien-phi"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-moi:checked) [data-tags]:not([data-tags~="moi"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-noi-bat:checked) [data-tags]:not([data-tags~="noi-bat"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-quang-cao:checked) [data-tags]:not([data-tags~="quang-cao"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-su-kien:checked) [data-tags]:not([data-tags~="su-kien"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-tap-chi:checked) [data-tags]:not([data-tags~="tap-chi"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-thoi-trang:checked) [data-tags]:not([data-tags~="thoi-trang"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-thuc-pham:checked) [data-tags]:not([data-tags~="thuc-pham"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-tin:checked) [data-tags]:not([data-tags~="tin"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-tin-tuc:checked) [data-tags]:not([data-tags~="tin-tuc"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-tuyen-dung:checked) [data-tags]:not([data-tags~="tuyen-dung"]) { display: none; }
#kho-giao-dien:has(#kho-giao-dien-all:checked) label.chip[for="kho-giao-dien-all"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-all:checked) label.filter-btn[for="kho-giao-dien-all"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-b2b:checked) label.chip[for="kho-giao-dien-b2b"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-b2b:checked) label.filter-btn[for="kho-giao-dien-b2b"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-ban-hang:checked) label.chip[for="kho-giao-dien-ban-hang"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-ban-hang:checked) label.filter-btn[for="kho-giao-dien-ban-hang"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-da-nganh:checked) label.chip[for="kho-giao-dien-da-nganh"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-da-nganh:checked) label.filter-btn[for="kho-giao-dien-da-nganh"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-dien-tu:checked) label.chip[for="kho-giao-dien-dien-tu"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-dien-tu:checked) label.filter-btn[for="kho-giao-dien-dien-tu"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-doanh-nghiep:checked) label.chip[for="kho-giao-dien-doanh-nghiep"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-doanh-nghiep:checked) label.filter-btn[for="kho-giao-dien-doanh-nghiep"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-gioi-thieu:checked) label.chip[for="kho-giao-dien-gioi-thieu"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-gioi-thieu:checked) label.filter-btn[for="kho-giao-dien-gioi-thieu"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-lam-dep:checked) label.chip[for="kho-giao-dien-lam-dep"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-lam-dep:checked) label.filter-btn[for="kho-giao-dien-lam-dep"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-landing:checked) label.chip[for="kho-giao-dien-landing"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-landing:checked) label.filter-btn[for="kho-giao-dien-landing"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-me-be:checked) label.chip[for="kho-giao-dien-me-be"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-me-be:checked) label.filter-btn[for="kho-giao-dien-me-be"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-mien-phi:checked) label.chip[for="kho-giao-dien-mien-phi"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-mien-phi:checked) label.filter-btn[for="kho-giao-dien-mien-phi"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-moi:checked) label.chip[for="kho-giao-dien-moi"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-moi:checked) label.filter-btn[for="kho-giao-dien-moi"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-noi-bat:checked) label.chip[for="kho-giao-dien-noi-bat"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-noi-bat:checked) label.filter-btn[for="kho-giao-dien-noi-bat"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-quang-cao:checked) label.chip[for="kho-giao-dien-quang-cao"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-quang-cao:checked) label.filter-btn[for="kho-giao-dien-quang-cao"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-su-kien:checked) label.chip[for="kho-giao-dien-su-kien"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-su-kien:checked) label.filter-btn[for="kho-giao-dien-su-kien"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-tap-chi:checked) label.chip[for="kho-giao-dien-tap-chi"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-tap-chi:checked) label.filter-btn[for="kho-giao-dien-tap-chi"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-thoi-trang:checked) label.chip[for="kho-giao-dien-thoi-trang"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-thoi-trang:checked) label.filter-btn[for="kho-giao-dien-thoi-trang"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-thuc-pham:checked) label.chip[for="kho-giao-dien-thuc-pham"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-thuc-pham:checked) label.filter-btn[for="kho-giao-dien-thuc-pham"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-tin:checked) label.chip[for="kho-giao-dien-tin"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-tin:checked) label.filter-btn[for="kho-giao-dien-tin"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-tin-tuc:checked) label.chip[for="kho-giao-dien-tin-tuc"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-tin-tuc:checked) label.filter-btn[for="kho-giao-dien-tin-tuc"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#kho-giao-dien:has(#kho-giao-dien-tuyen-dung:checked) label.chip[for="kho-giao-dien-tuyen-dung"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#kho-giao-dien:has(#kho-giao-dien-tuyen-dung:checked) label.filter-btn[for="kho-giao-dien-tuyen-dung"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#viec-lam:has(#viec-lam-tech:checked) [data-tags]:not([data-tags~="tech"]) { display: none; }
#viec-lam:has(#viec-lam-sales:checked) [data-tags]:not([data-tags~="sales"]) { display: none; }
#viec-lam:has(#viec-lam-impl:checked) [data-tags]:not([data-tags~="impl"]) { display: none; }
#viec-lam:has(#viec-lam-creative:checked) [data-tags]:not([data-tags~="creative"]) { display: none; }
#viec-lam:has(#viec-lam-all:checked) label.chip[for="viec-lam-all"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#viec-lam:has(#viec-lam-all:checked) label.filter-btn[for="viec-lam-all"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#viec-lam:has(#viec-lam-tech:checked) label.chip[for="viec-lam-tech"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#viec-lam:has(#viec-lam-tech:checked) label.filter-btn[for="viec-lam-tech"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#viec-lam:has(#viec-lam-sales:checked) label.chip[for="viec-lam-sales"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#viec-lam:has(#viec-lam-sales:checked) label.filter-btn[for="viec-lam-sales"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#viec-lam:has(#viec-lam-impl:checked) label.chip[for="viec-lam-impl"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#viec-lam:has(#viec-lam-impl:checked) label.filter-btn[for="viec-lam-impl"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
#viec-lam:has(#viec-lam-creative:checked) label.chip[for="viec-lam-creative"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#viec-lam:has(#viec-lam-creative:checked) label.filter-btn[for="viec-lam-creative"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }

/* ---------- Phân hệ marketing (theme 2026) ---------- */
#phan-he-grid .section-head { margin-bottom: 48px; align-items: flex-start; }
.module-groups { display: flex; flex-direction: column; gap: 8px; }
.module-group { margin-top: 0; padding-top: 36px; border-top: 1px solid var(--line); }
.module-group:first-child { padding-top: 4px; border-top: 0; }
.module-group__title {
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 20px;
}
.module-group__grid { --gap: 24px; }
.module-card {
  gap: 0; padding: 26px 28px 24px; height: 100%;
  min-height: 220px;
}
.module-card__title { font-size: 18px; line-height: 1.35; margin: 0 0 10px; color: var(--navy); }
.module-card__desc { flex: 1; margin: 0 0 18px; font-size: 15px; line-height: 1.65; }
.module-card__tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.module-card__tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; line-height: 1.3;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: var(--blue-50); color: var(--blue-600);
  border: 1px solid rgba(29, 91, 255, .14);
  white-space: nowrap;
}
.module-card__more { margin-top: 16px; color: var(--blue); font-size: 15px; }
.module-card:hover .module-card__more { text-decoration: underline; }
@media (max-width: 960px) {
  .module-group__grid { --gap: 16px; }
  .module-card { min-height: 0; padding: 22px 20px 20px; }
}

/* Danh sách phân hệ — markup mod-group (vi/modules/index.html); chi tiết trong addon.css */
.mod-group + .mod-group {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.mod-group__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}
.mod-group__title .help { font-size: 14px; font-weight: 500; color: var(--slate); }
.mod-group .grid { --gap: 24px; }
.mod-group .card.card--link { height: 100%; }
.section:has(.mod-group) .section-head { margin-bottom: 48px; }

/* Trang chi tiết phân hệ */
.module-detail .section-head { margin-bottom: 32px; }
.module-detail .check-list--cols { --cols: 2; gap: 14px 32px; }
.module-detail .check-list li { padding-block: 4px; line-height: 1.55; }
.module-detail .check-list li::before { top: 6px; }
.module-detail .steps { gap: 20px; }
.module-detail .split { gap: 40px 56px; }
.module-detail .faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.module-detail .card--mist h3 { font-size: 17px; margin-bottom: 4px; }
.module-detail__highlights {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
  margin-top: 8px;
}
.module-detail__highlight {
  padding: 20px 22px; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--line);
}
.module-detail__highlight b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.module-detail__highlight span { font-size: 14px; color: var(--slate); line-height: 1.55; }

.flow-diagram { display: grid; gap: 14px; }
.flow-diagram__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-diagram__node { background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--navy); }
.flow-diagram__arrow { color: var(--blue); font-weight: 800; font-size: 14px; }
.nav__sub--mega {
  min-width: min(680px, 94vw);
  max-width: min(760px, 96vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 6px;
  padding: 12px 14px 10px;
  max-height: min(72vh, 480px);
  overflow-y: auto;
}
.nav__sub--mega a {
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 8px;
  font-weight: 600;
}
.nav__sub--mega a span { display: none; }
.nav__sub--mega-foot {
  grid-column: 1 / -1; margin-top: 4px; padding-top: 10px !important;
  border-top: 1px solid var(--line); color: var(--blue) !important; font-weight: 700 !important;
}

/* ---------- Signup / đặt hàng SaaS & VPS ---------- */
.signup-captcha { margin-top: 8px; padding: 0; background: var(--mist); border: 1px dashed var(--line-2); border-radius: var(--r); overflow: hidden; }
.signup-captcha__scale { width: 100%; overflow: hidden; min-height: 78px; }
.signup-captcha #signup-g-recaptcha { transform-origin: top left; width: 304px; min-height: 78px; }
.signup-captcha__error { display: none; margin: 0; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--err); text-align: center; border-top: 1px dashed var(--line-2); background: var(--white); }
.signup-captcha__error.is-visible { display: block; }
.field.is-valid .input, .field.is-valid .input-group, .field.is-valid .select { border-color: var(--ok); }
.field__hint { display: none; font-size: 13px; color: var(--err); margin-top: 4px; }
.field__hint.is-visible { display: block; }
.field__hint--ok { color: var(--ok); }
.signup-msg { font-size: 15px; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.signup-msg.is-visible { display: block; }
.signup-msg--error { background: var(--err-bg); color: var(--err); }
.btn.is-loading { opacity: .65; pointer-events: none; cursor: wait; }
.signup-layout--wide .provision { max-width: 920px; }

/* ERP app download — store links desktop; smart link on mobile UA / narrow viewport */
.erp-app-download .erp-app-smart { display: none; }
.erp-app-download .erp-app-stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.erp-app-download[data-mobile-client="1"] .erp-app-stores { display: none; }
.erp-app-download[data-mobile-client="1"] .erp-app-smart { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
@media (max-width: 768px) {
  .erp-app-download .erp-app-stores { display: none; }
  .erp-app-download .erp-app-smart { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
}

/* App store preview + QR — một khung card */
/* gap: 0 — .card mặc định gap 12px làm hở dải trắng giữa tiêu đề và cột QR */
.app-store-unified { padding: 0; overflow: hidden; gap: 0; }
.app-store-unified__eyebrow { margin: 0; padding: 14px 22px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--line); background: var(--white); }
.app-store-unified__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); align-items: stretch; flex: 1; }
.app-store-unified__main { display: flex; flex-direction: column; min-width: 0; }
.app-store-unified__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; flex: 1; }
.app-store-unified__icon { border-radius: 16px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.app-store-unified__meta { flex: 1; min-width: 200px; }
.app-store-unified__title { font-size: 18px; color: var(--navy); line-height: 1.35; }
.app-store-unified__publisher { font-size: 12px; font-weight: 700; color: var(--blue); line-height: 1.45; text-transform: uppercase; letter-spacing: .02em; }
.app-store-unified__install { flex-shrink: 0; min-width: 108px; }
.app-store-unified__dark { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 22px; background: var(--navy-2); color: var(--on-navy); font-size: 13px; margin-top: auto; }
.app-store-unified__dark-label { font-weight: 700; white-space: nowrap; }
.app-store-unified__icons { display: flex; gap: 10px; align-items: center; }
.app-store-unified__icons img { border-radius: 12px; width: 48px; height: 48px; object-fit: contain; background: var(--navy-2); }
.app-store-unified__icons img:last-child { background: var(--navy-2); padding: 6px; box-sizing: border-box; }
.app-store-unified__dark-note { flex: 1; min-width: 200px; color: var(--on-navy-2); line-height: 1.5; }
.app-store-unified__dark-note code { color: var(--gold); font-size: 12px; }
.app-store-unified__qr { display: flex; flex-direction: column; gap: 10px; align-items: stretch; justify-content: center; text-align: center; padding: 22px 20px; background: var(--mist); border-left: 1px solid var(--line); }
.app-store-unified__qr-title { font-size: 17px; color: var(--navy); margin: 0; }
.app-store-unified__qr-img-wrap { padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-inline: auto; }
.app-store-unified__qr-img { display: block; width: 176px; height: 176px; object-fit: contain; }
.app-store-unified__qr .erp-app-download { width: 100%; }
.app-store-unified__qr .erp-app-stores,
.app-store-unified__qr .erp-app-smart { flex-direction: column; width: 100%; align-items: stretch; }
.app-store-unified__qr .erp-app-stores .btn,
.app-store-unified__qr .erp-app-smart .btn { width: 100%; justify-content: center; text-align: center; }
.app-store-unified__qr .btn--ghost-light {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line-2);
  font-weight: 700;
}
.app-store-unified__qr .btn--ghost-light:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--white);
}
.app-store-unified__qr .erp-app-smart .help { color: var(--slate); }
@media (max-width: 900px) {
  .app-store-unified__body { grid-template-columns: minmax(0, 1fr); }
  .app-store-unified__qr { border-left: 0; border-top: 1px solid var(--line); }
}
.signup-layout--result .signup__aside { grid-column: 1 / -1; max-width: 720px; margin-inline: auto; width: 100%; }
.signup-layout--result .signup__main { display: none; }
#signup-result[hidden] { display: none !important; }
.pay-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--white); display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pay-box__amount { font-size: 28px; font-weight: 800; color: var(--navy); }
.pay-box__ref { font-family: var(--mono); font-size: 15px; font-weight: 700; padding: 8px 12px; background: var(--mist); border-radius: var(--r-sm); display: inline-block; }
.pay-box__qr { text-align: center; padding: 16px; background: var(--mist); border-radius: var(--r); }
.pay-box__qr img { max-width: 180px; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); }
.pay-box__bank { font-size: 14px; color: var(--slate); line-height: 1.6; margin-top: 8px; }
.pay-box__warn { padding: 12px 14px; background: var(--warn-bg); border-radius: var(--r-sm); font-size: 14px; color: #5C4300; line-height: 1.55; }
.os-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.os-pick label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.os-pick label:has(input:checked) { border: 2px solid var(--blue); background: var(--blue-50); padding: 13px; }
.os-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; background: var(--blue-50); border: 1px solid var(--blue-50); border-radius: var(--r); margin-bottom: 20px; }
.theme-pick-banner img { width: 88px; height: 58px; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--white); }
@media (max-width: 960px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
  .signup__aside { order: -1; }
}

/* ---------- Dashboard CEO · AI vận hành · App 1ERP (trang chủ & /ai.html) ---------- */
.dash { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); }
.dash__chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); }
.dash__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dash__kpi { background: var(--mist); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash__kpi span { font-size: 13px; color: var(--slate); }
.dash__kpi b { font-size: 22px; line-height: 1.15; color: var(--navy); white-space: nowrap; }
.dash__kpi em, .app-kpis em { font-style: normal; font-size: 12px; color: var(--slate); }
.dash em.up, .app-kpis em.up { color: var(--ok); }
.dash em.down, .app-kpis em.down { color: var(--err); }
.dash__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.dash__label { font-size: 13px; font-weight: 700; color: var(--slate); }
.dash__chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dash__bars, .app-chart div { flex: 1; min-height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.dash__bars i, .app-chart i { flex: 1; border-radius: 4px; background: #C9D7FF; }
.dash__bars i:nth-last-child(2), .app-chart i:nth-last-child(2) { background: var(--blue); }
.dash__bars i:last-child, .app-chart i:last-child { background: var(--navy); }
.dash__alerts { display: flex; flex-direction: column; gap: 8px; }
.dash__alert { border-radius: 10px; padding: 10px 12px; background: var(--blue-50); display: flex; flex-direction: column; gap: 2px; }
.dash__alert b { font-size: 14px; color: var(--navy); }
.dash__alert span { font-size: 12px; color: var(--slate); }
.dash__alert--warn { background: var(--warn-bg); }
.dash__alert--err { background: var(--err-bg); }
.dash figcaption { font-size: 12px; color: var(--slate-2); text-align: right; }

.ai-grid { --gap: 16px; }
.ai-card { background: var(--navy-2); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--on-navy); }
.ai-card h3 { font-size: 20px; color: var(--white); }
.ai-card p { font-size: 15px; line-height: 1.6; color: var(--on-navy-2); }
.ai-card__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(91,139,255,.18); color: #9DB8FF; display: flex; align-items: center; justify-content: center; }
.ai-card .badge { margin-top: 4px; }
.section--navy .badge--ok { background: rgba(108,233,166,.14); color: #6CE9A6; }
.section--navy .badge--gold { background: rgba(242,169,0,.16); color: var(--gold); }

.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.phone-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 18px 24px; border-radius: var(--r-lg); background: var(--mist); }
.phone-card figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.phone-card figcaption b { font-size: 17px; color: var(--navy); }
.phone-card figcaption span { font-size: 14px; color: var(--slate); line-height: 1.5; }
.phone { width: 100%; max-width: 240px; aspect-ratio: 390 / 844; border: 8px solid var(--navy); border-radius: 34px; background: var(--navy); box-shadow: 0 24px 50px rgba(10,30,63,.18); overflow: hidden; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }

/* Trang /ai.html */
.ai-chat { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.ai-chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ai-chat__head b { color: var(--navy); }
.ai-chat__head small { display: block; font-size: 12px; color: var(--ok); }
.ai-chat__avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.ai-msg--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg--bot { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
.ai-msg--bot ul { margin: 6px 0 0; padding-left: 18px; }
.ai-msg__src { display: block; margin-top: 6px; font-size: 12px; color: var(--slate); }
.ai-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.ai-flow li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ai-flow li b { color: var(--navy); font-size: 17px; }
.ai-flow li span { font-size: 15px; color: var(--slate); line-height: 1.55; }
.ai-flow li::before { counter-increment: flow; content: counter(flow); width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ai-ask { display: flex; flex-direction: column; gap: 10px; }
.ai-ask q { display: block; quotes: none; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; color: var(--navy); font-weight: 600; }
.ai-ask q::before { content: "“"; } .ai-ask q::after { content: "”"; }

@media (max-width: 1100px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; }
  .phone-card { flex: 0 0 min(280px, 74vw); scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .dash { padding: 16px; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__body { grid-template-columns: minmax(0, 1fr); }
  .dash__bars { min-height: 120px; }
  .ai-card { padding: 22px; }
  .ai-flow { grid-template-columns: minmax(0, 1fr); }
}
.app-banner { width: 100%; height: auto; margin-top: 32px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ---------- Hero trang chủ: dashboard + app + nút video ---------- */
.hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
.hero .cluster { --gap: 12px; }
.hero .cluster .btn:not(.btn--sm) { padding-inline: 24px; font-size: 16px; }
.hero-stage { position: relative; padding: 0 27% 72px 0; }
.hero-stage__screen { background: var(--white); border-radius: 18px; box-shadow: 0 30px 70px rgba(10,30,63,.16), 0 0 0 1px rgba(10,30,63,.04); overflow: hidden; }
.hs-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #E9EDF4; }
.hs-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C3CAD6; }
.hs-bar i:first-child { background: #F48A7B; } .hs-bar i:nth-child(2) { background: #F5C451; } .hs-bar i:nth-child(3) { background: #6CD68F; }
.hs-bar span { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--slate); }
.hs-body { display: flex; min-height: 340px; }
.hs-side { flex: 0 0 56px; background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.hs-side i { width: 22px; height: 22px; border-radius: 6px; background: var(--navy-2); }
.hs-side i.is-on { background: var(--blue); }
.hs-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #F8F9FC; }
.hs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-head b { color: var(--navy); font-size: 15px; }
.hs-head span { font-size: 11px; font-weight: 600; color: var(--slate); background: var(--white); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); }
.hs-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hs-kpis div { background: var(--white); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs-kpis span { font-size: 11px; color: var(--slate); }
.hs-kpis b { font-size: 19px; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.hs-kpis em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--slate); }
.hs-kpis em.up { color: var(--ok); } .hs-kpis em.down { color: var(--err); }
.hs-chart { flex: 1; background: var(--white); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hs-chart span { font-size: 11px; font-weight: 700; color: var(--slate); }
.hs-chart div { flex: 1; min-height: 120px; display: flex; align-items: flex-end; gap: 8px; }
.hs-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: #C9D7FF; }
.hs-chart i:nth-last-child(2) { background: var(--blue); } .hs-chart i:last-child { background: var(--navy); }
.hero-stage__phone { position: absolute; right: 0; top: 56px; width: 31%; max-width: 200px; border: 7px solid var(--navy); border-radius: 30px; background: var(--navy); box-shadow: 0 24px 50px rgba(10,30,63,.28); overflow: hidden; }
.hero-stage__phone img { width: 100%; height: auto; border-radius: 23px; }
.hero-stage__toast { position: absolute; left: -28px; bottom: 28px; display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 16px 36px rgba(10,30,63,.16); }
.hero-stage__toast b { display: block; font-size: 13px; color: var(--navy); }
.hero-stage__toast small { font-size: 12px; color: var(--slate); }
.hs-ok { width: 32px; height: 32px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.hs-ok .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.hero-play { position: absolute; left: 36.5%; top: calc(50% + 12px); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: var(--r-pill); background: rgba(10,30,63,.88); color: var(--white); cursor: pointer; box-shadow: 0 16px 40px rgba(10,30,63,.35); backdrop-filter: blur(6px); transition: transform .2s ease, background .2s ease; text-align: left; }
.hero-play:hover { background: var(--navy); transform: translate(-50%, -50%) scale(1.04); }
.hero-play__btn { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 52px; }
.hero-play__btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(242,169,0,.6); animation: hero-pulse 1.8s ease-out infinite; }
.hero-play__btn svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.hero-play__label { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.hero-play__label small { font-size: 12px; font-weight: 500; color: var(--on-navy-2); }
@keyframes hero-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

.video-modal { width: min(960px, 94vw); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgba(5,11,24,.78); backdrop-filter: blur(3px); }
.video-modal__box { position: relative; }
.video-modal__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-modal__frame iframe, .video-modal__frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.video-modal__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-modal__close:hover { background: rgba(255,255,255,.26); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 620px; }
}
@media (max-width: 640px) {
  .hero-stage { padding: 0 24% 56px 0; }
  .hs-body { min-height: 240px; }
  .hs-side { flex-basis: 40px; } .hs-side i { width: 16px; height: 16px; }
  .hs-main { padding: 12px; gap: 8px; }
  .hs-kpis { gap: 6px; } .hs-kpis div { padding: 8px; } .hs-kpis b { font-size: 15px; }
  .hs-chart div { min-height: 80px; gap: 5px; }
  .hero-stage__phone { width: 32%; top: 40px; border-width: 5px; border-radius: 22px; }
  .hero-stage__phone img { border-radius: 17px; }
  .hero-stage__toast { left: -6px; bottom: 12px; padding: 8px 10px 8px 8px; }
  .hero-play { left: 38%; top: calc(50% - 20px); padding: 6px; }
  .hero-play__label { display: none; }
}
@media (max-width: 1180px) {
  .hs-head span { display: none; }
  .hs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-kpis div:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .hs-head b { font-size: 13px; }
  .hs-kpis span { font-size: 10px; }
  .hero-play { top: calc(50% + 36px); }
}

/* ---------- Trang Tích hợp ---------- */
.integ-nav { --gap: 8px; margin-top: 4px; }
.integ-nav .chip { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.integ-apps { display: flex; flex-direction: column; gap: 12px; }
.integ-app { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.integ-app--featured { border: 2px solid var(--blue); background: #F7F9FF; padding: 17px 19px; }
.integ-app .card__icon { width: 44px; height: 44px; flex: 0 0 44px; }
.integ-app > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.integ-app__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.integ-app__head b { font-size: 17px; color: var(--navy); }
.integ-app p { font-size: 15px; color: var(--slate); line-height: 1.55; }
.integ-groups { display: flex; flex-direction: column; gap: 44px; }
.integ-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.integ-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 22px; margin-bottom: 16px; }
.integ-group__title span { font-size: 15px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.integ { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.integ b { font-size: 17px; color: var(--navy); }
.integ p { flex: 1; font-size: 14px; line-height: 1.55; color: var(--slate); }
.integ .badge { margin-top: 6px; }
#app-mini-app { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 640px) {
  .integ-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
  .integ-nav .chip { flex: 0 0 auto; }
  .integ-groups { gap: 36px; }
  .integ-group__title { font-size: 20px; }
}

/* ---------- Năng lực: dự án & app đang chạy ---------- */
.proj-grid { --gap: 20px; }
.proj { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.proj__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proj__domain { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--navy); background: var(--mist); padding: 4px 10px; border-radius: 8px; }
.proj__domain:hover { color: var(--blue); }
.proj__head { display: flex; flex-direction: column; gap: 4px; }
.proj__industry { font-size: 13px; font-weight: 600; color: var(--blue); }
.proj h3 { font-size: 20px; }
.proj__desc { font-size: 15px; line-height: 1.6; color: var(--slate); }
.proj__metrics { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); padding-block: 14px; }
.proj__metrics div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; text-align: center; padding-inline: 6px; }
.proj__metrics div + div { border-left: 1px solid var(--line); }
.proj__metrics dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.proj__metrics dt { font-size: 12px; color: var(--slate); }
.proj__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj__tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-600); }
.proj__sites { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.proj__sites a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.proj__sites a:hover { color: var(--blue); }
.proj__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.more-proj { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.more-proj__title { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.more-proj__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.more-proj__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.more-proj__item:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); color: var(--ink); }
.more-proj__item b { font-size: 15px; color: var(--navy); }
.more-proj__item b span { color: var(--slate-2); font-weight: 400; }
.more-proj__item > span { font-size: 13px; color: var(--slate); }
.more-proj__item em { font-style: normal; font-size: 11px; font-weight: 600; margin-top: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); }
.apps-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.app-live { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.app-live__top { display: flex; align-items: center; gap: 12px; }
.app-live__top b { display: block; font-size: 16px; color: var(--navy); }
.app-live__top small { font-size: 13px; color: var(--slate); }
.app-live__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.app-live p { flex: 1; font-size: 14px; line-height: 1.55; color: var(--slate); }
.app-live__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-live__os { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate); }
.app-live__os svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 960px) { .proj-grid { --cols: 1; } }
@media (max-width: 640px) {
  .proj { padding: 20px; }
  .proj__metrics dd { font-size: 15px; }
  .more-proj { padding: 20px 16px; }
}
@media (min-width: 1101px) { .apps-live { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 1100px) { .apps-live { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-live__bottom { flex-direction: column; align-items: stretch; gap: 10px; }
.app-live__bottom .btn { width: 100%; }

/* ---------- 13. Dropdown (thay <select>) ---------- */
.dd { position: relative; width: 100%; }
.dd__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: -1; }
.dd__btn { width: 100%; min-height: 48px; padding: 12px 44px 12px 14px; border: 1px solid #C3CAD6; border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; display: flex; align-items: center; transition: border-color .15s, box-shadow .15s; }
.dd__btn:hover { border-color: var(--slate-2); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,255,.18); }
.dd__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd--placeholder .dd__label { color: #8C9AB5; }
.dd__chev { position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); transition: transform .15s; }
.dd.is-open .dd__chev { transform: rotate(-135deg); margin-top: -3px; }
.dd__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 6px; max-height: 288px; overflow-y: auto; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 16px 40px rgba(10,30,63,.14); display: none; }
.dd--up .dd__menu { top: auto; bottom: calc(100% + 6px); }
.dd.is-open .dd__menu { display: block; animation: dd-in .12s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd__opt { padding: 11px 12px 11px 38px; border-radius: 9px; font-size: 15px; color: var(--ink); cursor: pointer; position: relative; }
.dd__opt:hover, .dd__opt.is-active { background: var(--mist); }
.dd__opt[aria-selected="true"] { color: var(--blue); font-weight: 600; }
.dd__opt[aria-selected="true"]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.dd__opt[aria-disabled="true"] { color: var(--slate-2); cursor: not-allowed; }
.field.is-invalid .dd__btn { border-color: var(--err); }
.field.is-valid .dd__btn { border-color: var(--ok); }

/* ---------- 14. Thư ngỏ hợp tác (/hop-tac.html) ---------- */
.ltr-hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, #12306B 55%, #1749D6 100%); color: var(--on-navy); padding: 72px 0 120px; overflow: hidden; }
.ltr-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 90px; background: var(--white); border-radius: 100% 100% 0 0 / 100% 100% 0 0; }
.ltr-hero__inner { position: relative; z-index: 1; max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.ltr-hero .eyebrow { color: var(--gold); }
.ltr-hero h1 { color: var(--white); font-size: clamp(36px, 5.4vw, 60px); }
.ltr-hero h1 .accent { color: var(--gold); }
.ltr-hero .lead { color: var(--on-navy); max-width: 640px; }
.ltr-hero__orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.ltr-hero__orb--1 { width: 520px; height: 520px; right: -120px; top: -180px; }
.ltr-hero__orb--2 { width: 300px; height: 300px; right: 220px; bottom: -60px; background: rgba(242,169,0,.10); }
.ltr-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--on-navy-2); }
.ltr-hero__meta b { color: var(--white); font-weight: 600; }

.ltr-letter { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.75; color: var(--ink); }
.ltr-letter p { margin: 0; }
.ltr-letter .ltr-to { font-weight: 700; color: var(--navy); font-size: 18px; }
.ltr-letter a { color: var(--blue); font-weight: 700; }
.ltr-letter .hl { color: var(--blue); font-weight: 700; }
.ltr-block { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.ltr-block h2 { font-size: clamp(26px, 3.2vw, 36px); }
.ltr-block h2 .accent { color: var(--blue); }
.ltr-block > p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0; }
.ltr-block .eyebrow { letter-spacing: .24em; }

.ltr-quote { position: relative; max-width: 820px; margin-inline: auto; padding: 28px 32px 28px 36px; border-left: 4px solid var(--blue); border-radius: 0 var(--r-lg) var(--r-lg) 0; background: linear-gradient(90deg, var(--blue-50), #F7F9FF); font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.ltr-quote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--blue); margin-bottom: 14px; font-family: Georgia, serif; }

.ltr-invest { max-width: 820px; margin-inline: auto; }
.ltr-invest .check-list li { font-size: 16px; line-height: 1.6; }
.ltr-invest .check-list li::before { background-color: var(--ok-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E"); }

.ltr-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ltr-modules .card { flex-direction: row; gap: 16px; padding: 22px; align-items: flex-start; }
.ltr-modules .card h3 { font-size: 18px; margin-bottom: 4px; }
.ltr-modules .card__icon { flex: 0 0 48px; }
.ltr-modules .card__icon--green { background: var(--ok-bg); color: var(--ok); }
.ltr-modules .card__icon--orange { background: #FFF1E6; color: #C2410C; }
.ltr-modules .card__icon--violet { background: #ECEBFF; color: #4F46E5; }

.ltr-infra { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 28px 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ltr-infra__title { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ltr-infra .stat__value { color: var(--white); font-size: clamp(28px, 3vw, 38px); }
.ltr-infra .stat:first-of-type .stat__value { color: var(--gold); }
.ltr-infra .stat__label { color: var(--on-navy-2); }
.ltr-infra::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.05); }

.ltr-fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ltr-fee { padding: 22px 24px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-lg); background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.ltr-fee--monthly { border-left-color: var(--blue); }
.ltr-fee--once { border-left-color: var(--gold); }
.ltr-fee__tag { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.ltr-fee--once .ltr-fee__tag { color: #8A5A00; }
.ltr-fee b { font-size: 18px; color: var(--navy); }
.ltr-fee span { font-size: 15px; color: var(--slate); line-height: 1.6; }

.ltr-flow { display: grid; grid-template-columns: 1fr 56px 170px 56px 1fr; grid-template-rows: auto 44px auto; align-items: center; justify-items: center; max-width: 760px; margin: 8px auto 0; }
.ltr-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ltr-node__circle { width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 15px; line-height: 1.25; padding: 10px; box-shadow: 0 10px 28px rgba(10,30,63,.14); }
.ltr-node__circle small { font-weight: 500; font-size: 12px; opacity: .85; }
.ltr-node--biz .ltr-node__circle { background: var(--blue); }
.ltr-node--impl .ltr-node__circle { background: var(--navy); }
.ltr-node--ref .ltr-node__circle { background: var(--gold); color: var(--navy); }
.ltr-node--ref .ltr-node__circle small { opacity: .8; }
.ltr-node--core .ltr-node__circle { width: 150px; height: 150px; background: linear-gradient(135deg, var(--blue), var(--navy)); font-size: 20px; outline: 10px solid var(--blue-50); }
.ltr-node--core { grid-column: 3; grid-row: 1; }
.ltr-node--biz { grid-column: 1; grid-row: 1; }
.ltr-node--impl { grid-column: 5; grid-row: 1; }
.ltr-node--ref { grid-column: 3; grid-row: 3; }
.ltr-node__note { font-size: 13px; color: var(--slate); }
.ltr-link { position: relative; display: block; width: 100%; height: 3px; background: var(--blue-light); grid-row: 1; align-self: center; margin-top: -24px; }
.ltr-link::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--blue-light); border-right: 3px solid var(--blue-light); transform: translateY(-50%) rotate(45deg); }
.ltr-link--r { grid-column: 2; } .ltr-link--r::after { right: 2px; }
.ltr-link--l { grid-column: 4; } .ltr-link--l::after { left: 2px; transform: translateY(-50%) rotate(-135deg); }
.ltr-link--up { grid-column: 3; grid-row: 2; width: 3px; height: 100%; margin: 0; background: var(--gold); }
.ltr-link--up::after { left: 50%; top: 0; border-color: var(--gold); transform: translateX(-50%) rotate(-45deg); }

.ltr-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ltr-partner { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r-lg); background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ltr-partner--impl { border-top-color: var(--navy); }
.ltr-partner--ref { border-top-color: var(--gold); }
.ltr-partner h3 { font-size: 19px; color: var(--blue); }
.ltr-partner--impl h3 { color: var(--navy); }
.ltr-partner--ref h3 { color: #8A5A00; }
.ltr-partner > p { font-size: 15px; color: var(--slate); line-height: 1.6; margin: 0; }
.ltr-partner__get { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-2); }
.ltr-partner .check-list li { font-size: 15px; }
.ltr-partner .check-list li b { color: var(--navy); }
.ltr-partners__note { font-size: 14px; color: var(--slate-2); }

.ltr-commit { list-style: none; margin: 0; padding: 8px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); counter-reset: c; }
.ltr-commit li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: c; }
.ltr-commit li:last-child { border-bottom: 0; }
.ltr-commit li::before { content: counter(c); flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ltr-commit b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 2px; }
.ltr-commit span { font-size: 15px; color: var(--slate); line-height: 1.6; }

.ltr-sign { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.ltr-sign__name { font-size: 22px; font-weight: 800; color: var(--navy); }
.ltr-sign__role { font-size: 15px; color: var(--slate); }

.ltr-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), #12306B 60%, #1749D6); color: var(--on-navy); }
.ltr-cta::before { content: ""; position: absolute; left: -10%; right: -10%; top: -2px; height: 70px; background: var(--white); border-radius: 0 0 100% 100% / 0 0 100% 100%; }
.ltr-cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 48px; }
.ltr-cta h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.ltr-cta h2 .accent { color: var(--gold); }
.ltr-cta__links { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.ltr-cta__links a { color: var(--white); }
.ltr-cta__qr { background: var(--white); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 700; }
.ltr-cta__qr img { width: 150px; height: 150px; display: block; }

@media (max-width: 960px) {
  .ltr-modules, .ltr-fees, .ltr-partners { grid-template-columns: minmax(0, 1fr); }
  .ltr-infra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ltr-flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .ltr-node--biz, .ltr-node--impl, .ltr-node--core, .ltr-node--ref { grid-column: 1; grid-row: auto; }
  .ltr-node--core { order: -1; }
  .ltr-link { display: none; }
  .ltr-cta__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ltr-hero { padding: 48px 0 96px; }
  .ltr-letter, .ltr-block > p { font-size: 16px; }
  .ltr-quote { font-size: 18px; padding: 22px 20px 22px 24px; }
  .ltr-commit { padding-inline: 18px; }
}
