/* ==========================================================================
   TND ASSURANCE — hệ thống giao diện và thành phần
   Kế hoạch: docs/KE-HOACH-THIET-KE-LAI-GIAO-DIEN.md (mục 6, 8)

   Giai đoạn chuyển tiếp: mọi class mang tiền tố `tnd2-`, quy tắc nền chỉ áp
   trong `.tnd2` để không va với site.css cũ. Khi 28 trang đã chuyển xong:
   xoá site.css, bỏ phạm vi `.tnd2`, đổi `tnd2-` → `tnd-`.
   Thứ tự: fonts → tokens → base → layout → components → utilities → print
   ========================================================================== */

/* ---------- Fonts (self-host, subset latin + vietnamese, variable) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/jakarta-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (Tech-Finance Sáng Sạch & Tin Cậy) ---------- */
:root {
  /* Tím mực và lavender */
  --tnd-teal-950: #26213e;
  --tnd-teal-800: #332c59;
  --tnd-teal-700: #4c3c85;
  --tnd-teal-500: #5b469f;
  --tnd-teal-200: #d9cff1;
  --tnd-teal-50:  #efecf8;

  /* Cam đào */
  --tnd-coral-500: #f5b995;
  --tnd-coral-600: #ffcca9;
  --tnd-coral-700: #915032;
  --tnd-coral-50:  #fff1e7;

  /* Nền nhấn */
  --tnd-mint-300: #efc2a9;
  --tnd-mint-100: #eee6fa;

  /* Trung tính */
  --tnd-ink-900: #26213e;
  --tnd-ink-700: #484157;
  --tnd-ink-500: #5e566e;
  --tnd-line:    #ded8e8;
  --tnd-line-strong: #bfb5cf;
  --tnd-cream:   #fbfafc;
  --tnd-sand:    #f2eef7;
  --tnd-white:   #FFFFFF;

  /* Ngữ nghĩa */
  --tnd-success: #059669;
  --tnd-success-bg: #ECFDF5;
  --tnd-warning: #B45309;
  --tnd-warning-bg: #FFFBEB;
  --tnd-danger:  #DC2626;
  --tnd-danger-bg: #FEF2F2;
  --tnd-info:    #4c3c85;
  --tnd-info-bg: #efecf8;

  /* 4 lớp bảo vệ */
  --tnd-layer-protect: #4c3c85;
  --tnd-layer-health:  #26655f;
  --tnd-layer-saving:  #915032;
  --tnd-layer-general: #505c89;

  /* Chữ */
  --tnd-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tnd-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tnd-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --tnd-fs-hero: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);
  --tnd-fs-h1:   clamp(2.2rem, 1.55rem + 3vw, 4.5rem);
  --tnd-fs-h2:   clamp(1.65rem, 1.23rem + 1.9vw, 3.05rem);
  --tnd-fs-h3:   clamp(1.1875rem, 1.13rem + 0.25vw, 1.375rem);
  --tnd-fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --tnd-fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --tnd-fs-sm:   0.875rem;
  --tnd-fs-xs:   0.78125rem;

  /* Khoảng cách (4pt) */
  --tnd-s-1: 4px;  --tnd-s-2: 8px;   --tnd-s-3: 12px;  --tnd-s-4: 16px;
  --tnd-s-5: 20px; --tnd-s-6: 24px;  --tnd-s-8: 32px;  --tnd-s-10: 40px;
  --tnd-s-14: 56px; --tnd-s-18: 72px; --tnd-s-24: 96px; --tnd-s-30: 120px;
  --tnd-section-y: clamp(56px, 7vw, 108px);
  --tnd-gutter: clamp(16px, 3vw, 40px);

  /* Bo góc */
  --tnd-r-xs: 8px;
  --tnd-r-sm: 14px;
  --tnd-r-md: 20px;
  --tnd-r-lg: 28px;
  --tnd-r-xl: 40px;
  --tnd-r-full: 999px;

  /* Đường viền và bóng */
  --tnd-sh-1: 0 0 0 1px var(--tnd-line);
  --tnd-sh-2: 0 12px 24px rgba(38, 33, 62, .09);
  --tnd-sh-3: 0 24px 60px rgba(38, 33, 62, .13);

  /* Chuyển động */
  --tnd-ease: cubic-bezier(.22, .8, .3, 1);
  --tnd-dur: 360ms;
}

/* ---------- Base (chỉ trong .tnd2 khi còn chuyển tiếp) ----------
   Quy tắc theo thẻ bỏ qua mọi thứ nằm trong phần tử có class `tnd-*` cũ,
   để trang chưa chuyển vẫn giữ kiểu của site.css. */
.tnd2 {
  font-family: var(--tnd-font-body);
  font-size: var(--tnd-fs-body);
  line-height: 1.7;
  color: var(--tnd-ink-700);
  background: var(--tnd-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tnd2 *, .tnd2 *::before, .tnd2 *::after { box-sizing: border-box; }
.tnd2 :where(h1, h2, h3, h4):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) {
  font-family: var(--tnd-font-display);
  color: var(--tnd-ink-900);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.tnd2 :where(h1):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { font-size: var(--tnd-fs-h1); line-height: 1.12; letter-spacing: -0.02em; }
.tnd2 :where(h2):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { font-size: var(--tnd-fs-h2); line-height: 1.18; letter-spacing: -0.015em; }
.tnd2 :where(h3):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { font-size: var(--tnd-fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
.tnd2 :where(p):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { margin: 0; text-wrap: pretty; }
.tnd2 :where(a):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { color: var(--tnd-teal-700); text-decoration: none; }
.tnd2 :where(ul, ol):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { margin: 0; padding: 0; list-style: none; }
.tnd2 :where(img, svg):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { display: block; max-width: 100%; height: auto; }
.tnd2 :where(button, input, select, textarea):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { font: inherit; color: inherit; }
.tnd2 :where(strong, b):not(:where([class^="tnd-"] *, [class*=" tnd-"] *)) { color: var(--tnd-ink-900); font-weight: 600; }
.tnd2 :focus-visible {
  outline: 2px solid var(--tnd-teal-700);
  outline-offset: 3px;
  border-radius: 6px;
}
.tnd2 ::selection { background: var(--tnd-teal-200); color: var(--tnd-ink-900); }

/* ---------- Layout ---------- */
.tnd2-container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--tnd-gutter));
  margin-inline: auto;
  padding-inline: var(--tnd-gutter);
}
.tnd2-container--read { max-width: calc(720px + 2 * var(--tnd-gutter)); }

.tnd2-section { padding-block: var(--tnd-section-y); }
.tnd2-section--sand { background: var(--tnd-sand); }
.tnd2-section--tight { padding-block: clamp(40px, 4vw + 24px, 72px); }

.tnd2-stack { display: flex; flex-direction: column; gap: var(--gap, var(--tnd-s-4)); }
.tnd2-stack > :is(.tnd2-chip, .tnd2-badge) { align-self: flex-start; }
.tnd2-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--tnd-s-3)); }

.tnd2-grid { display: grid; gap: var(--gap, var(--tnd-s-6)); }
.tnd2-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tnd2-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tnd2-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Bento: 6 cột, ô mặc định 2 cột; --w / --h để giãn */
.tnd2-bento {
  display: grid;
  gap: var(--tnd-s-5);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
}
.tnd2-bento > * { grid-column: span var(--w, 2); grid-row: span var(--h, 1); }
@media (max-width: 1023px) {
  .tnd2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tnd2-bento > * { grid-column: span min(var(--w, 2), 2); grid-row: span 1; }
}
@media (max-width: 599px) {
  .tnd2-bento { grid-template-columns: minmax(0, 1fr); }
  .tnd2-bento > * { grid-column: auto; }
}

/* ---------- B01 Button ---------- */
.tnd2-btn {
  --btn-bg: var(--tnd-teal-700);
  --btn-fg: var(--tnd-white);
  --btn-bd: transparent;
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--tnd-r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--tnd-font-display);
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--tnd-ease), border-color 150ms var(--tnd-ease), color 150ms var(--tnd-ease), box-shadow 150ms var(--tnd-ease);
}
.tnd2-btn:hover { --btn-bg: var(--tnd-teal-800); }
.tnd2-btn:active { transform: translateY(1px); }
.tnd2-btn__arrow { transition: transform 200ms var(--tnd-ease); }
.tnd2-btn:hover .tnd2-btn__arrow { transform: translateX(3px); }
.tnd2-btn--warm {
  --btn-bg: var(--tnd-coral-500);
  --btn-fg: var(--tnd-white);
  background: linear-gradient(135deg, var(--tnd-teal-500) 0%, var(--tnd-teal-700) 100%);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .42);
}
.tnd2-btn--warm:hover {
  --btn-bg: var(--tnd-coral-600);
  background: linear-gradient(135deg, var(--tnd-teal-700) 0%, var(--tnd-teal-800) 100%);
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, .52);
}
.tnd2-btn--ghost { --btn-bg: transparent; --btn-fg: var(--tnd-teal-700); --btn-bd: var(--tnd-line-strong); }
.tnd2-btn--ghost:hover { --btn-bg: var(--tnd-white); --btn-bd: var(--tnd-teal-700); }
.tnd2-btn--light { --btn-bg: var(--tnd-white); --btn-fg: var(--tnd-teal-950); }
.tnd2-btn--light:hover { --btn-bg: var(--tnd-mint-100); }
.tnd2-btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 0.875rem; }
.tnd2-btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1.03125rem; }
.tnd2-btn--icon { padding: 0; width: var(--btn-h); }
.tnd2-btn--block { width: 100%; }
.tnd2-btn[disabled], .tnd2-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tnd2-btn__spark { color: var(--tnd-mint-300); }
.tnd2-btn--ghost .tnd2-btn__spark { color: var(--tnd-teal-500); }

.tnd2-link {
  color: var(--tnd-teal-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tnd-teal-200);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms;
}
.tnd2-link:hover { text-decoration-color: currentColor; }

/* ---------- B02 Chip ---------- */
.tnd2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--tnd-line);
  border-radius: var(--tnd-r-full);
  background: var(--tnd-white);
  color: var(--tnd-ink-900);
  font-size: var(--tnd-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.tnd2-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--tnd-coral-500));
  flex: none;
}
/* Nhãn section: thay eyebrow in hoa cũ */
.tnd2-chip--label { background: var(--tnd-white); border-color: transparent; box-shadow: var(--tnd-sh-1); }
/* Chip lọc / chọn được */
button.tnd2-chip { cursor: pointer; transition: border-color 150ms, background-color 150ms, color 150ms; }
button.tnd2-chip:hover { border-color: var(--tnd-teal-500); }
.tnd2-chip[aria-pressed="true"], .tnd2-chip.is-active {
  background: var(--tnd-teal-700);
  border-color: var(--tnd-teal-700);
  color: var(--tnd-white);
}
/* Chip lớp bảo vệ */
.tnd2-chip--layer { border-color: transparent; background: color-mix(in srgb, var(--layer) 14%, white); color: var(--tnd-ink-900); }
.tnd2-chip--layer .tnd2-chip__dot { background: var(--layer); }
/* Chip AI */
.tnd2-chip--ai { background: var(--tnd-mint-100); border-color: transparent; color: var(--tnd-teal-950); }
.tnd2-chip--ai::before { content: '✦'; color: var(--tnd-teal-500); }

/* ---------- B03 Badge ---------- */
.tnd2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--tnd-r-xs);
  background: var(--tnd-teal-50);
  color: var(--tnd-teal-800);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tnd2-badge--partner { background: var(--tnd-white); color: var(--tnd-ink-900); box-shadow: inset 0 0 0 1px var(--tnd-line); }
.tnd2-badge--soon { background: var(--tnd-coral-50); color: var(--tnd-coral-700); }
.tnd2-badge--muted { background: var(--tnd-sand); color: var(--tnd-ink-700); }

/* ---------- B04 Field ---------- */
.tnd2-field { display: grid; gap: 6px; }
.tnd2-field__label { font-size: var(--tnd-fs-sm); font-weight: 600; color: var(--tnd-ink-900); }
.tnd2-field__label .is-req { color: var(--tnd-coral-700); }
.tnd2-field__hint { font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }
.tnd2-field__error { font-size: var(--tnd-fs-xs); color: var(--tnd-danger); font-weight: 500; }
.tnd2-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--tnd-line-strong);
  border-radius: var(--tnd-r-sm);
  background: var(--tnd-white);
  color: var(--tnd-ink-900);
  font-size: 1rem;
  transition: border-color 150ms, box-shadow 150ms;
}
.tnd2-input::placeholder { color: #8A9693; }
.tnd2-input:hover { border-color: var(--tnd-ink-500); }
.tnd2-input:focus { outline: none; border-color: var(--tnd-teal-700); box-shadow: 0 0 0 4px var(--tnd-teal-50); }
.tnd2-input[aria-invalid="true"] { border-color: var(--tnd-danger); box-shadow: 0 0 0 4px var(--tnd-danger-bg); }
textarea.tnd2-input { min-height: 120px; resize: vertical; }
select.tnd2-input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B5D56' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Segmented (quy mô doanh nghiệp…) */
.tnd2-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--tnd-r-full);
  background: var(--tnd-sand);
}
.tnd2-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.tnd2-segmented label {
  padding: 8px 16px;
  border-radius: var(--tnd-r-full);
  font-size: var(--tnd-fs-sm);
  font-weight: 600;
  color: var(--tnd-ink-700);
  cursor: pointer;
  transition: background-color 150ms, color 150ms, box-shadow 150ms;
}
.tnd2-segmented input:checked + label { background: var(--tnd-white); color: var(--tnd-teal-700); box-shadow: var(--tnd-sh-1); }
.tnd2-segmented input:focus-visible + label { outline: 2px solid var(--tnd-teal-700); outline-offset: 2px; }

/* Radio card */
.tnd2-choice {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 18px 16px 50px;
  border: 1.5px solid var(--tnd-line);
  border-radius: var(--tnd-r-sm);
  background: var(--tnd-white);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
.tnd2-choice input { position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; margin: 0; accent-color: var(--tnd-teal-700); }
.tnd2-choice__title { font-weight: 600; color: var(--tnd-ink-900); line-height: 1.35; }
.tnd2-choice__desc { font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); line-height: 1.5; }
.tnd2-choice:hover { border-color: var(--tnd-teal-500); }
.tnd2-choice:has(input:checked) { border-color: var(--tnd-teal-700); background: var(--tnd-teal-50); }

.tnd2-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--tnd-fs-sm); line-height: 1.55; }
.tnd2-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--tnd-teal-700); }

/* ---------- B05 Section head ---------- */
.tnd2-head { display: grid; gap: var(--tnd-s-4); max-width: 760px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.tnd2-head > .tnd2-chip, .tnd2-head > .tnd2-badge { justify-self: start; }
.tnd2-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.tnd2-head--center > .tnd2-chip { justify-self: center; }
.tnd2-head__lead { font-size: var(--tnd-fs-lead); line-height: 1.6; color: var(--tnd-ink-700); }
.tnd2-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--tnd-s-8);
}
.tnd2-head--split > :not(.tnd2-head__aside) { grid-column: 1; }
.tnd2-head__aside { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
@media (max-width: 767px) {
  .tnd2-head--split { grid-template-columns: 1fr; }
  .tnd2-head__aside { grid-column: 1; grid-row: auto; }
}

/* Từ nhấn trong tiêu đề: Gradient chữ hiện đại (bỏ nền tô sau chữ) */
.tnd2-mark {
  background: linear-gradient(135deg, var(--tnd-teal-700) 0%, var(--tnd-teal-500) 55%, #0D9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0;
  margin: 0;
}
.tnd2-mark--teal { background: none; padding: 0; color: var(--tnd-teal-700); }

/* ---------- B06 Stat ---------- */
.tnd2-stat { display: grid; gap: 6px; align-content: start; }
.tnd2-stat__value {
  font-family: var(--tnd-font-display);
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tnd-teal-700);
  font-variant-numeric: tabular-nums;
}
.tnd2-stat__value small { font-size: .45em; font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.tnd2-stat__label { font-weight: 600; color: var(--tnd-ink-900); line-height: 1.4; }
.tnd2-stat__note { font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); line-height: 1.5; }

/* ---------- B07 Note card ---------- */
.tnd2-note {
  --note-fg: var(--tnd-warning);
  --note-bg: var(--tnd-warning-bg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: var(--tnd-r-sm);
  background: var(--note-bg);
  color: var(--tnd-ink-900);
  font-size: var(--tnd-fs-sm);
  line-height: 1.6;
}
.tnd2-note__icon { grid-row: span 2; width: 22px; height: 22px; color: var(--note-fg); margin-top: 1px; }
.tnd2-note__title { font-weight: 700; color: var(--note-fg); }
.tnd2-note--info { --note-fg: var(--tnd-info); --note-bg: var(--tnd-info-bg); }
.tnd2-note--tip { --note-fg: var(--tnd-success); --note-bg: var(--tnd-success-bg); }
.tnd2-note--source { --note-fg: var(--tnd-teal-700); --note-bg: var(--tnd-teal-50); }

/* ---------- Card ---------- */
.tnd2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--tnd-s-3);
  padding: clamp(20px, 2vw + 8px, 28px);
  border: 1px solid var(--tnd-line);
  border-radius: var(--tnd-r-md);
  background: var(--tnd-white);
  transition: box-shadow var(--tnd-dur) var(--tnd-ease), transform var(--tnd-dur) var(--tnd-ease), border-color var(--tnd-dur);
}
.tnd2-card--link:hover { box-shadow: var(--tnd-sh-2); transform: translateY(-3px); border-color: var(--tnd-line-strong); }
.tnd2-card--sand { background: var(--tnd-sand); border-color: transparent; }
.tnd2-card--coral { background: var(--tnd-coral-50); border-color: transparent; }
.tnd2-card--teal { background: var(--tnd-teal-50); border-color: transparent; }
.tnd2-card--dark { background: var(--tnd-teal-950); border-color: transparent; color: #CFE3DE; }
.tnd2-card--dark :where(h2, h3, strong) { color: var(--tnd-white); }
.tnd2-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--tnd-r-sm);
  background: var(--tnd-teal-50);
  color: var(--tnd-teal-700);
}
.tnd2-card__icon svg { width: 26px; height: 26px; }
.tnd2-card__foot { margin-top: auto; padding-top: var(--tnd-s-2); }

/* Icon (Phosphor duotone, vẽ bằng currentColor + lớp nhạt opacity .2) */
.tnd2-icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.tnd2-icon--sm { width: 18px; height: 18px; }
.tnd2-icon--lg { width: 32px; height: 32px; }

/* ---------- S01 Layer stack (hình tượng "các lớp bảo vệ") ---------- */
.tnd2-layers {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  isolation: isolate;
}
/* Luồng tự nhiên + chồng mép 8px: thẻ cao lên khi chữ xuống dòng vẫn không đè nhau */
.tnd2-layer {
  --layer: var(--tnd-layer-protect);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  margin-left: calc(var(--i, 0) * 14px);
  padding: 14px 20px;
  border-radius: var(--tnd-r-md);
  background: var(--tnd-white);
  box-shadow: var(--tnd-sh-2), inset 0 0 0 1px var(--tnd-line);
  transform: rotate(calc(var(--i, 0) * -0.5deg));
  z-index: calc(10 - var(--i, 0));
  transition: transform 500ms var(--tnd-ease), opacity 300ms var(--tnd-ease);
}
.tnd2-layer + .tnd2-layer { margin-top: -8px; }
.tnd2-layer::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: var(--tnd-r-md) 0 0 var(--tnd-r-md);
  background: var(--layer);
}
.tnd2-layer__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--layer) 16%, white);
  color: color-mix(in srgb, var(--layer) 70%, var(--tnd-ink-900));
}
.tnd2-layer__icon svg { width: 24px; height: 24px; }
.tnd2-layer__text { display: grid; gap: 2px; min-width: 0; }
.tnd2-layer__name { font-family: var(--tnd-font-display); font-weight: 700; color: var(--tnd-ink-900); line-height: 1.3; }
.tnd2-layer__product { font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); line-height: 1.4; }
.tnd2-layer__tag { font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-layer--protect { --layer: var(--tnd-layer-protect); }
.tnd2-layer--health  { --layer: var(--tnd-layer-health); }
.tnd2-layer--saving  { --layer: var(--tnd-layer-saving); }
.tnd2-layer--general { --layer: var(--tnd-layer-general); }
.tnd2-layer[hidden] { display: none; }
@media (max-width: 479px) {
  .tnd2-layer { min-height: 68px; margin-left: calc(var(--i, 0) * 8px); padding: 12px 14px; gap: 12px; }
  .tnd2-layer__tag { display: none; }
}

/* ---------- Swatch (dùng trong styleguide) ---------- */
.tnd2-swatch { display: grid; gap: 8px; }
.tnd2-swatch__chip { height: 72px; border-radius: var(--tnd-r-sm); box-shadow: inset 0 0 0 1px rgba(20, 33, 31, .08); }
.tnd2-swatch__name { font-weight: 600; color: var(--tnd-ink-900); font-size: var(--tnd-fs-sm); line-height: 1.3; }
.tnd2-swatch__hex { font-family: var(--tnd-font-mono); font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }

/* ==========================================================================
   N2 — Khung trang (header, mega menu, menu di động, footer, dock, AI, cookie)
   ========================================================================== */

/* Trang dùng khung mới: bỏ margin mặc định của trình duyệt, chừa chỗ cho dock trên di động */
html, body { margin: 0; padding: 0; }
body:has(> #app-root .tnd2-site) { background: var(--tnd-cream); }
.tnd2-site { min-height: 100vh; }
@media (max-width: 767px) { .tnd2-site { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }

/* ---------- Brand ---------- */
.tnd2-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tnd-ink-900); text-decoration: none; flex: none; }
.tnd2-brand img { width: 38px; height: 38px; }
.tnd2-brand__text { display: grid; line-height: 1.1; }
.tnd2-brand__name { font-family: var(--tnd-font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.tnd2-brand__sub { font-size: 0.6875rem; font-weight: 500; color: var(--tnd-ink-500); margin-top: 3px; }

/* ---------- Header (Apple Liquid Glass) ---------- */
.tnd2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.8) blur(24px);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background-color 200ms, border-color 200ms, box-shadow 200ms;
}
.tnd2-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.tnd2-header__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.tnd2-header.is-scrolled .tnd2-header__bar { height: 64px; }
.tnd2-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tnd2-header__mobile { display: none; align-items: center; gap: 6px; margin-left: auto; }

.tnd2-nav { margin-left: 12px; }
.tnd2-nav__list { display: flex; align-items: center; gap: 2px; }
.tnd2-nav__item { position: static; }
.tnd2-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: var(--tnd-r-xs);
  color: var(--tnd-ink-900);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms, color 150ms;
}
.tnd2-nav__link:hover, .tnd2-nav__item:focus-within > .tnd2-nav__link, .tnd2-nav__link[aria-current="page"] { background: var(--tnd-sand); }
.tnd2-nav__caret { width: 14px; height: 14px; opacity: .6; transition: transform 200ms; }
.tnd2-nav__item:hover .tnd2-nav__caret, .tnd2-nav__item:focus-within .tnd2-nav__caret { transform: rotate(180deg); }

/* Mega menu: mở bằng hover hoặc focus bàn phím, bám ngay dưới header */
.tnd2-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--tnd-ease), transform 180ms var(--tnd-ease), visibility 0s linear 180ms;
}
.tnd2-nav__item:hover > .tnd2-mega,
.tnd2-nav__item:focus-within > .tnd2-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tnd2-mega__panel {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)) minmax(0, 300px);
  gap: 28px;
  padding: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.8) blur(28px);
  -webkit-backdrop-filter: saturate(1.8) blur(28px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 24px 60px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.85);
}
.tnd2-mega__title { margin-bottom: 10px; font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-mega__links { display: grid; gap: 2px; }
.tnd2-mega__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--tnd-r-xs);
  color: var(--tnd-ink-900);
  text-decoration: none;
  transition: background-color 150ms;
}
.tnd2-mega__link:hover { background: var(--tnd-cream); }
.tnd2-mega__link .tnd2-icon { grid-row: span 2; color: var(--tnd-teal-700); }
.tnd2-mega__link strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.tnd2-mega__link small { font-size: 0.8125rem; color: var(--tnd-ink-500); line-height: 1.4; }
.tnd2-mega__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 10px;
  background: var(--tnd-sand);
}
.tnd2-mega__aside p { font-size: var(--tnd-fs-sm); line-height: 1.55; }
.tnd2-mega__aside .tnd2-btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 960px) {
  .tnd2-nav, .tnd2-header__actions { display: none; }
  .tnd2-header__mobile { display: flex; }
  .tnd2-header__bar { height: 64px; }
}

/* ---------- Menu di động (dialog) ---------- */
.tnd2-drawer {
  width: min(420px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--tnd-cream);
  color: var(--tnd-ink-900);
  font-family: var(--tnd-font-body);
}
.tnd2-drawer::backdrop { background: rgba(10, 46, 43, .45); backdrop-filter: blur(2px); }
.tnd2-drawer[open] { display: flex; flex-direction: column; animation: tnd2-slide-in 260ms var(--tnd-ease); }
@keyframes tnd2-slide-in { from { transform: translateX(24px); opacity: 0; } }
.tnd2-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--tnd-line); }
.tnd2-drawer__body { flex: 1; overflow-y: auto; padding: 8px 12px 24px; }
.tnd2-drawer__group { border-bottom: 1px solid var(--tnd-line); }
.tnd2-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  font-family: var(--tnd-font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.tnd2-drawer__group > summary::-webkit-details-marker { display: none; }
.tnd2-drawer__group > summary .tnd2-icon { transition: transform 200ms; }
.tnd2-drawer__group[open] > summary .tnd2-icon { transform: rotate(180deg); }
.tnd2-drawer__links { display: grid; gap: 2px; padding: 0 0 12px; }
.tnd2-drawer__links a { display: block; padding: 11px 12px; border-radius: var(--tnd-r-sm); color: var(--tnd-ink-900); text-decoration: none; font-weight: 500; }
.tnd2-drawer__links a:hover { background: var(--tnd-sand); }
.tnd2-drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; border-top: 1px solid var(--tnd-line); background: var(--tnd-white); }
.tnd2-drawer__foot .tnd2-btn:last-child { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.tnd2-footer-cta { position: relative; z-index: 1; margin-bottom: -72px; }
.tnd2-footer-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--tnd-r-xl);
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
  border: 1px solid var(--tnd-teal-200);
  box-shadow: var(--tnd-sh-2);
}
.tnd2-footer-cta__form { display: flex; flex-wrap: wrap; gap: 10px; }
.tnd2-footer-cta__form select { flex: 1 1 200px; }
.tnd2-footer {
  padding: calc(72px + clamp(48px, 5vw, 80px)) 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--tnd-teal-950) 0%, #071528 100%);
  color: #CBD5E1;
  font-size: var(--tnd-fs-sm);
}
.tnd2-footer a { color: #E2E8F0; text-decoration: none; }
.tnd2-footer a:hover { color: var(--tnd-mint-300); }
.tnd2-footer :focus-visible { outline-color: var(--tnd-mint-300); }
.tnd2-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.tnd2-footer .tnd2-brand { color: var(--tnd-white); }
.tnd2-footer .tnd2-brand__sub { color: #94A3B8; }
.tnd2-footer__title { margin-bottom: 14px; font-family: var(--tnd-font-display); font-size: 0.9375rem; font-weight: 700; color: var(--tnd-white); }
.tnd2-footer__list { display: grid; gap: 10px; }
.tnd2-footer__contact { display: grid; gap: 8px; margin-top: 18px; }
.tnd2-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.tnd2-footer__contact .tnd2-icon { color: var(--tnd-mint-300); margin-top: 2px; }
.tnd2-footer__partners { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.tnd2-footer__legal { margin-top: 24px; font-size: var(--tnd-fs-xs); line-height: 1.65; color: #9DBDB6; }
.tnd2-footer__legal strong { color: #E4F1EE; }
.tnd2-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--tnd-fs-xs); color: #9DBDB6; }
.tnd2-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 1023px) { .tnd2-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tnd2-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .tnd2-footer-cta__box { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .tnd2-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Dock hành động (di động) ---------- */
.tnd2-dock { display: none; }
@media (max-width: 767px) {
  .tnd2-dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.7fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--tnd-white) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--tnd-line);
  }
  .tnd2-dock__item {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 2px;
    border: 0;
    border-radius: var(--tnd-r-sm);
    background: none;
    color: var(--tnd-ink-900);
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  .tnd2-dock__item .tnd2-icon { color: var(--tnd-teal-700); }
  .tnd2-dock__item--ai .tnd2-icon { color: var(--tnd-teal-500); }
  .tnd2-dock__cta { align-self: center; min-height: 46px; font-size: 0.875rem; padding: 0 12px; }
  .tnd2-site:has(.tnd2-ai--dock:not([hidden])) .tnd2-dock { display: none; }
}

/* ---------- Trợ lý AI (dock nổi / sheet / nhúng) ---------- */
.tnd2-ai-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--tnd-r-full);
  background: rgba(11, 31, 58, 0.78);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  color: var(--tnd-white);
  font-family: var(--tnd-font-display);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 44px -10px rgba(11, 31, 58, 0.45);
  cursor: pointer;
  transition: transform 200ms var(--tnd-ease), background-color 150ms;
}
.tnd2-ai-launcher:hover { background: var(--tnd-teal-800); transform: translateY(-2px); }
.tnd2-ai-launcher[aria-expanded="true"] { display: none; }
@media (max-width: 767px) { .tnd2-ai-launcher { display: none; } }

.tnd2-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--tnd-mint-300); flex: none; }
.tnd2-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tnd-mint-300); opacity: 0; animation: tnd2-pulse 2s ease-out infinite; }
@keyframes tnd2-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.tnd2-ai {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--tnd-r-lg);
  background: var(--tnd-white);
  box-shadow: var(--tnd-sh-3), 0 0 0 1px var(--tnd-mint-300);
  color: var(--tnd-ink-900);
}
.tnd2-ai--dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 48px));
}
.tnd2-ai--dock[hidden] { display: none; }
@media (max-width: 767px) {
  .tnd2-ai--dock { inset: auto 0 0 0; width: 100%; height: 92dvh; border-radius: var(--tnd-r-lg) var(--tnd-r-lg) 0 0; }
}
.tnd2-ai--embed { height: 560px; box-shadow: var(--tnd-sh-3); }
.tnd2-ai__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--tnd-teal-950); color: var(--tnd-white); }
.tnd2-ai__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(127, 224, 200, .16); color: var(--tnd-mint-300); flex: none; }
.tnd2-ai__title { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.tnd2-ai__title strong { color: var(--tnd-white); font-family: var(--tnd-font-display); font-size: 0.9375rem; }
.tnd2-ai__title span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #A9CCC4; }
.tnd2-ai__title .tnd2-pulse { width: 7px; height: 7px; }
.tnd2-ai__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--tnd-white); cursor: pointer; }
.tnd2-ai__close:hover { background: rgba(255, 255, 255, .08); }
.tnd2-ai__close:focus-visible { outline-color: var(--tnd-mint-300); }
.tnd2-ai__messages { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding: 18px; background: var(--tnd-cream); }
.tnd2-ai__msg { max-width: 92%; padding: 12px 14px; border-radius: 18px; font-size: 0.90625rem; line-height: 1.6; }
.tnd2-ai__msg--ai { align-self: flex-start; background: var(--tnd-white); border-bottom-left-radius: 6px; box-shadow: var(--tnd-sh-1); }
.tnd2-ai__msg--user { align-self: flex-end; background: var(--tnd-teal-700); color: var(--tnd-white); border-bottom-right-radius: 6px; }
.tnd2-ai__msg p { margin: 0; }
.tnd2-ai__source {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tnd-teal-50);
  color: var(--tnd-teal-800);
  font-size: 0.78125rem;
  line-height: 1.45;
}
.tnd2-ai__warn {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tnd-warning-bg);
  color: #6F4205;
  font-size: 0.78125rem;
  line-height: 1.45;
}
.tnd2-ai__source .tnd2-icon, .tnd2-ai__warn .tnd2-icon { width: 16px; height: 16px; margin-top: 1px; }
.tnd2-ai__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tnd2-ai__actions .tnd2-chip { min-height: 32px; font-size: 0.8125rem; }
.tnd2-ai__suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.tnd2-ai__suggest .tnd2-chip { min-height: 32px; font-size: 0.8125rem; white-space: normal; text-align: left; }
.tnd2-ai__typing { display: inline-flex; gap: 4px; }
.tnd2-ai__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tnd-teal-500); animation: tnd2-blink 1.2s infinite; }
.tnd2-ai__typing i:nth-child(2) { animation-delay: .2s; }
.tnd2-ai__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tnd2-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.tnd2-ai__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--tnd-line); background: var(--tnd-white); }
.tnd2-ai__form input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--tnd-line-strong);
  border-radius: var(--tnd-r-full);
  background: var(--tnd-white);
  font-size: 0.9375rem;
}
.tnd2-ai__form input:focus { outline: none; border-color: var(--tnd-teal-700); box-shadow: 0 0 0 4px var(--tnd-teal-50); }
.tnd2-ai__foot { padding: 0 12px 10px; background: var(--tnd-white); font-size: 0.6875rem; color: var(--tnd-ink-500); text-align: center; }

/* ---------- Cookie ---------- */
.tnd2-cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 75;
  display: grid;
  gap: 12px;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: var(--tnd-r-md);
  background: var(--tnd-white);
  box-shadow: var(--tnd-sh-3), 0 0 0 1px var(--tnd-line);
  font-size: var(--tnd-fs-sm);
  line-height: 1.55;
}
.tnd2-cookie[hidden] { display: none; }
@media (max-width: 767px) { .tnd2-cookie { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; } }

/* ==========================================================================
   N2 — Trang chủ (T01)
   ========================================================================== */

/* Hero (Full-bleed Editorial Photography + Glass Highlights) */
.tnd2-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 74vh, 720px);
  padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 84px);
  background:
    linear-gradient(95deg, rgba(7, 21, 40, 0.88) 0%, rgba(11, 31, 58, 0.64) 44%, rgba(11, 31, 58, 0.14) 100%),
    url('../img/hero-editorial.jpg') center right/cover no-repeat;
  color: #E2E8F0;
}
@media (max-width: 959px) {
  .tnd2-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(7, 21, 40, 0.84) 0%, rgba(11, 31, 58, 0.72) 55%, rgba(7, 21, 40, 0.88) 100%),
      url('../img/hero-editorial.jpg') center/cover no-repeat;
  }
}
.tnd2-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 4vw, 48px); width: 100%; }
.tnd2-hero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 650px; }
.tnd2-hero__copy h1,
.tnd2-hero__copy .tnd2-display { color: var(--tnd-white); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.tnd2-hero__copy .tnd2-mark {
  background: linear-gradient(135deg, #60A5FA 0%, #2DD4BF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tnd2-hero__copy .tnd2-lead { color: rgba(241, 245, 249, 0.92); max-width: 54ch; }
.tnd2-hero__copy > .tnd2-chip {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--tnd-white);
}
.tnd2-hero__copy > .tnd2-chip .tnd2-chip__dot { background: #2DD4BF; }
.tnd2-hero__copy .tnd2-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--tnd-white);
}
.tnd2-hero__copy .tnd2-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.55); }
.tnd2-hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--tnd-fs-sm); color: #CBD5E1; }
.tnd2-hero__trust .tnd2-badge--partner {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--tnd-white);
}
.tnd2-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
}
.tnd2-hero__stat {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(7, 21, 40, 0.52);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tnd2-hero__stat strong { display: block; font-family: var(--tnd-font-display); font-size: 1.25rem; font-weight: 800; color: var(--tnd-white); }
.tnd2-hero__stat span { display: block; margin-top: 2px; font-size: var(--tnd-fs-xs); color: #CBD5E1; line-height: 1.45; }
@media (max-width: 767px) { .tnd2-hero__stats { grid-template-columns: minmax(0, 1fr); } }

/* Mục Bàn thiết kế phúc lợi riêng biệt */
.tnd2-builder-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.tnd2-builder-band__photo {
  overflow: hidden;
  border-radius: var(--tnd-r-lg);
  aspect-ratio: 16 / 10;
  box-shadow: var(--tnd-sh-3);
}
.tnd2-builder-band__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .tnd2-builder-band__grid { grid-template-columns: minmax(0, 1fr); } }

/* Bàn thiết kế phúc lợi */
.tnd2-builder {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--tnd-r-lg);
  background: var(--tnd-white);
  border: 1px solid var(--tnd-line);
  box-shadow: var(--tnd-sh-3);
}
.tnd2-builder__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--tnd-line);
  font-size: var(--tnd-fs-xs);
  font-weight: 600;
  color: var(--tnd-ink-500);
}
.tnd2-builder__dots { display: inline-flex; gap: 6px; align-items: center; }
.tnd2-builder__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--tnd-line-strong); display: block; }
.tnd2-builder__dots i:first-child { background: var(--tnd-teal-500); }
.tnd2-builder__dots i:nth-child(2) { background: #0D9488; }
.tnd2-builder__q { font-family: var(--tnd-font-display); font-weight: 700; color: var(--tnd-ink-900); line-height: 1.35; }
.tnd2-builder__tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.tnd2-builder__stage {
  padding: 20px;
  border-radius: var(--tnd-r-md);
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
}
.tnd2-builder__panel[hidden] { display: none; }
/* Chỉ chạy hiệu ứng khi người dùng đổi cấp bậc, không chạy lúc tải trang */
.tnd2-builder.is-touched .tnd2-builder__panel { animation: tnd2-fade-up 360ms var(--tnd-ease); }
@keyframes tnd2-fade-up { from { opacity: 0; transform: translateY(8px); } }
.tnd2-builder__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 18px; }
.tnd2-builder__note { margin-top: 14px; font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }
.tnd2-builder__ask {
  display: grid;
  margin: 16px auto 0 0;
  gap: 6px;
  max-width: 300px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--tnd-r-md) var(--tnd-r-md) 6px var(--tnd-r-md);
  background: var(--tnd-white);
  box-shadow: var(--tnd-sh-3);
  color: var(--tnd-ink-900);
  font-size: 0.84375rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms var(--tnd-ease);
}
.tnd2-builder__ask:hover { transform: translateY(-2px); }
.tnd2-builder__ask .tnd2-chip { justify-self: start; min-height: 24px; padding: 0 9px; font-size: 0.71875rem; }
@media (max-width: 599px) { .tnd2-builder__ask { max-width: none; } }

/* Dải cam kết */
.tnd2-trust { border-block: 1px solid var(--tnd-line); background: var(--tnd-white); }
.tnd2-trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tnd2-trust__item { display: flex; gap: 12px; align-items: center; padding: 22px 20px; font-size: var(--tnd-fs-sm); line-height: 1.45; color: var(--tnd-ink-900); font-weight: 500; }
.tnd2-trust__item + .tnd2-trust__item { border-left: 1px solid var(--tnd-line); }
.tnd2-trust__item .tnd2-icon { color: var(--tnd-teal-700); width: 28px; height: 28px; }
@media (max-width: 959px) {
  .tnd2-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tnd2-trust__item:nth-child(3) { border-left: 0; }
  .tnd2-trust__item:nth-child(n+3) { border-top: 1px solid var(--tnd-line); }
}
@media (max-width: 479px) { .tnd2-trust__item { padding: 16px 12px; gap: 10px; font-size: 0.8125rem; } }

/* Theo vai trò */
.tnd2-roles__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 24px; border-radius: var(--tnd-r-full); background: var(--tnd-sand); scrollbar-width: none; width: fit-content; max-width: 100%; }
.tnd2-roles__tabs::-webkit-scrollbar { display: none; }
.tnd2-roles__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--tnd-r-full);
  background: transparent;
  color: var(--tnd-ink-700);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, box-shadow 150ms;
}
.tnd2-roles__tab[aria-selected="true"] { background: var(--tnd-white); color: var(--tnd-teal-700); box-shadow: var(--tnd-sh-1); }
.tnd2-roles__panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.tnd2-roles__panel[hidden] { display: none; }
.tnd2-roles__main { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--tnd-r-lg); background: var(--tnd-white); border: 1px solid var(--tnd-line); }
.tnd2-roles__main h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.25; }
.tnd2-checks { display: grid; gap: 12px; }
.tnd2-checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.tnd2-checks .tnd2-icon { color: var(--tnd-teal-500); margin-top: 1px; }
.tnd2-roles__ask { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--tnd-r-lg); background: var(--tnd-teal-50); }
.tnd2-roles__ask p { font-weight: 600; color: var(--tnd-ink-900); }
.tnd2-roles__ask .tnd2-chip { white-space: normal; text-align: left; min-height: 40px; padding: 8px 14px; line-height: 1.4; justify-content: flex-start; }
@media (max-width: 899px) { .tnd2-roles__panel { grid-template-columns: minmax(0, 1fr); } }

/* Thẻ gói có ảnh thật */
.tnd2-packages { padding: clamp(28px, 4vw, 56px); border-radius: var(--tnd-r-xl); background: var(--tnd-sand); }
.tnd2-packages__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tnd2-pkg { padding: 0; overflow: hidden; gap: 0; }
.tnd2-pkg__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tnd-teal-950); }
.tnd2-pkg__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--tnd-ease); }
.tnd2-pkg:hover .tnd2-pkg__media img { transform: scale(1.05); }
.tnd2-pkg__tier-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--tnd-r-full);
  background: rgba(11, 31, 58, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tnd-white);
}
.tnd2-pkg__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.tnd2-pkg__tier { font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-pkg h3 { font-size: 1.1875rem; }
.tnd2-pkg__who { font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); line-height: 1.5; }
.tnd2-pkg__layers { display: flex; flex-wrap: wrap; gap: 6px; }
.tnd2-pkg__layers .tnd2-chip { min-height: 28px; padding: 0 10px; font-size: 0.75rem; }
.tnd2-pkg__tagline { font-size: var(--tnd-fs-sm); color: var(--tnd-ink-900); line-height: 1.55; }
.tnd2-packages__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); }
@media (max-width: 1099px) {
  .tnd2-packages__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * clamp(28px, 4vw, 56px)); padding-inline: clamp(28px, 4vw, 56px); scroll-padding-inline: clamp(28px, 4vw, 56px); }
  .tnd2-pkg { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; }
}

/* Dòng thời gian thưởng duy trì */
.tnd2-timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: auto; padding-top: 28px; }
.tnd2-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 35px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--tnd-teal-200), var(--tnd-layer-saving)); }
.tnd2-timeline__step { position: relative; display: grid; justify-items: start; gap: 8px; font-size: 0.8125rem; line-height: 1.35; }
.tnd2-timeline__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--tnd-white); border: 4px solid var(--tnd-teal-500); }
.tnd2-timeline__step.is-bonus .tnd2-timeline__dot { border-color: var(--tnd-layer-saving); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tnd-layer-saving) 25%, transparent); }
.tnd2-timeline__step strong { font-family: var(--tnd-font-display); font-size: 1rem; }
@media (max-width: 599px) {
  .tnd2-timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 4px 0 0 4px; }
  .tnd2-timeline::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; background: linear-gradient(180deg, var(--tnd-teal-200), var(--tnd-layer-saving)); }
  .tnd2-timeline__step { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
}

/* Dải ảnh tràn viền + Liquid Glass (Apple-style) */
.tnd2-bleed-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 108px) 0;
  background-size: cover;
  background-position: center;
  color: var(--tnd-white);
}
.tnd2-bleed-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 21, 40, 0.82) 0%, rgba(11, 31, 58, 0.52) 52%, rgba(15, 76, 129, 0.28) 100%);
}
.tnd2-bleed-band--light::before {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.56) 50%, rgba(255, 255, 255, 0.16) 100%);
}
.tnd2-bleed-band > .tnd2-container { position: relative; z-index: 1; }
.tnd2-bleed-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 899px) { .tnd2-bleed-band__grid { grid-template-columns: minmax(0, 1fr); } }

.tnd2-glass-panel {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--tnd-r-lg);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: saturate(1.8) blur(28px);
  -webkit-backdrop-filter: saturate(1.8) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 24px 64px -16px rgba(15, 23, 42, 0.24);
  color: var(--tnd-ink-700);
}
.tnd2-glass-panel--dark {
  background: rgba(11, 31, 58, 0.54);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 28px 72px -16px rgba(0, 0, 0, 0.45);
  color: #E2E8F0;
}
.tnd2-glass-panel--dark h2,
.tnd2-glass-panel--dark h3,
.tnd2-glass-panel--dark strong { color: var(--tnd-white); }

.tnd2-glass-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 599px) { .tnd2-glass-metrics { grid-template-columns: minmax(0, 1fr); } }
.tnd2-glass-metric {
  padding: 16px;
  border-radius: var(--tnd-r-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tnd2-glass-metric strong { display: block; font-family: var(--tnd-font-display); font-size: 1.5rem; font-weight: 800; color: var(--tnd-white); line-height: 1.15; }
.tnd2-glass-metric span { display: block; margin-top: 4px; font-size: var(--tnd-fs-xs); color: #CBD5E1; line-height: 1.4; }

/* Khối AI trang chủ (Tràn viền Full-Bleed Liquid Glass) */
.tnd2-section--ai-bleed {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6.5vw, 104px) 0;
  background:
    linear-gradient(120deg, rgba(5, 17, 36, 0.84) 0%, rgba(11, 31, 58, 0.66) 55%, rgba(7, 21, 40, 0.82) 100%),
    url('../img/section-ai-nebula.jpg') center/cover no-repeat;
  color: #CBD5E1;
}
.tnd2-aiblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 0; border-radius: 0; background: transparent; color: #CBD5E1; }
.tnd2-aiblock h2 { color: var(--tnd-white); }
.tnd2-aiblock .tnd2-checks .tnd2-icon { color: var(--tnd-mint-300); }
.tnd2-aiblock .tnd2-checks strong { color: var(--tnd-white); }
.tnd2-aiblock__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tnd2-aiblock__chips .tnd2-chip { background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .2); color: #F1F5F9; }
.tnd2-aiblock__chips .tnd2-chip:hover { border-color: var(--tnd-mint-300); background: rgba(45, 212, 191, .16); }
.tnd2-aiblock :focus-visible { outline-color: var(--tnd-mint-300); }
.tnd2-section--ai-bleed .tnd2-ai--embed {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(24px);
  -webkit-backdrop-filter: saturate(1.6) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
@media (max-width: 959px) { .tnd2-aiblock { grid-template-columns: minmax(0, 1fr); } }

/* Đường ray quy trình */
.tnd2-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x proximity; counter-reset: step; }
.tnd2-rail__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: var(--tnd-r-md); background: var(--tnd-white); border: 1px solid var(--tnd-line); scroll-snap-align: start; }
.tnd2-rail__num { font-family: var(--tnd-font-display); font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--tnd-teal-200); letter-spacing: -0.03em; }
.tnd2-rail__step h3 { font-size: 1.0625rem; }
.tnd2-rail__step p { font-size: var(--tnd-fs-sm); line-height: 1.55; }
.tnd2-rail__step.is-key { background: var(--tnd-teal-700); border-color: transparent; color: #D6ECE7; }
.tnd2-rail__step.is-key h3 { color: var(--tnd-white); }
.tnd2-rail__step.is-key .tnd2-rail__num { color: var(--tnd-mint-300); }

/* Kiểm tra nhanh */
.tnd2-quiz { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tnd2-quiz__list { display: grid; gap: 10px; }
.tnd2-quiz__q { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 16px 18px; border-radius: var(--tnd-r-md); background: var(--tnd-white); border: 1px solid var(--tnd-line); }
.tnd2-quiz__q > p { font-weight: 600; color: var(--tnd-ink-900); line-height: 1.45; }
@media (max-width: 599px) { .tnd2-quiz__q { grid-template-columns: minmax(0, 1fr); } .tnd2-quiz__q .tnd2-segmented { justify-self: start; } }
.tnd2-quiz__result { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: var(--tnd-r-lg); background: var(--tnd-coral-50); }
.tnd2-quiz__result h3 { font-size: 1.25rem; }
.tnd2-quiz__picks { display: grid; gap: 8px; }
.tnd2-quiz__picks a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--tnd-r-sm); background: var(--tnd-white); color: var(--tnd-ink-900); font-weight: 600; text-decoration: none; }
.tnd2-quiz__picks a:hover { box-shadow: var(--tnd-sh-2); }
.tnd2-quiz__picks a[hidden] { display: none; }
@media (max-width: 899px) { .tnd2-quiz { grid-template-columns: minmax(0, 1fr); } .tnd2-quiz__result { position: static; } }

/* Thẻ bài viết */
.tnd2-article { padding: 0; overflow: hidden; gap: 0; }
.tnd2-article__cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--cover, var(--tnd-teal-50)); color: var(--tnd-teal-700); }
.tnd2-article__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--tnd-ease); }
.tnd2-article:hover .tnd2-article__cover img { transform: scale(1.04); }
.tnd2-article__glass-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: var(--tnd-r-full);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tnd-ink-900);
}
.tnd2-article__cover .tnd2-icon { width: 56px; height: 56px; }
.tnd2-article__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.tnd2-article__body h3 { font-size: 1.125rem; line-height: 1.35; }
.tnd2-article__body h3 a { color: inherit; }
.tnd2-article__body h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tnd2-article__meta { margin-top: auto; padding-top: 6px; font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }

/* FAQ */
.tnd2-faq { display: grid; gap: 10px; }
.tnd2-faq__item { border-radius: var(--tnd-r-md); background: var(--tnd-white); border: 1px solid var(--tnd-line); transition: border-color 150ms; }
.tnd2-faq__item[open] { border-color: var(--tnd-teal-200); }
.tnd2-faq__item > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-family: var(--tnd-font-display); font-weight: 600; font-size: 1.03125rem; color: var(--tnd-ink-900); line-height: 1.4; cursor: pointer; list-style: none; }
.tnd2-faq__item > summary::-webkit-details-marker { display: none; }
.tnd2-faq__item > summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tnd-sand); color: var(--tnd-teal-700); font-size: 1.25rem; font-weight: 500; transition: transform 200ms; }
.tnd2-faq__item[open] > summary::after { transform: rotate(45deg); }
.tnd2-faq__answer { padding: 0 20px 20px; line-height: 1.7; }
.tnd2-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .tnd2-faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   N3 — Trang con: hero trang, breadcrumb, so sánh, bàn thiết kế đầy đủ,
   trang gói, trang đọc (kế toán), khối form ngắn
   ========================================================================== */

/* Breadcrumb */
.tnd2-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.8125rem; color: var(--tnd-ink-500); }
.tnd2-crumbs a { color: var(--tnd-ink-700); }
.tnd2-crumbs a:hover { color: var(--tnd-teal-700); text-decoration: underline; }
.tnd2-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.tnd2-crumbs li + li::before { content: '/'; color: var(--tnd-line-strong); }
.tnd2-crumbs [aria-current="page"] { color: var(--tnd-ink-900); font-weight: 500; }

/* Hero trang con */
.tnd2-pagehero {
  padding: clamp(24px, 3.5vw, 48px) 0 clamp(44px, 5vw, 76px);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.86) 52%, rgba(255, 255, 255, 0.48) 100%),
    url('../img/hero-liquid-glass.jpg') center/cover no-repeat;
}
.tnd2-pagehero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tnd2-pagehero__copy { display: flex; flex-direction: column; gap: 20px; }
.tnd2-pagehero__copy > .tnd2-chip { align-self: flex-start; }
.tnd2-pagehero__copy h1 { font-size: var(--tnd-fs-h1); }
.tnd2-pagehero__visual {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--tnd-r-lg);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: saturate(1.8) blur(24px);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 20px 50px -15px rgba(15, 76, 129, 0.14);
}
.tnd2-pagehero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 899px) { .tnd2-pagehero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Tóm tắt 30 giây (answer-first) */
.tnd2-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: clamp(20px, 3vw, 28px); border-radius: var(--tnd-r-lg); background: var(--tnd-teal-50); }
.tnd2-summary > .tnd2-icon { grid-row: span 2; color: var(--tnd-teal-700); width: 28px; height: 28px; }
.tnd2-summary__title { font-family: var(--tnd-font-display); font-weight: 700; color: var(--tnd-teal-800); }
.tnd2-summary p { color: var(--tnd-ink-900); line-height: 1.7; }

/* Danh sách giá trị hai cột */
.tnd2-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tnd2-values__col { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--tnd-r-lg); }
.tnd2-values__col--teal { background: var(--tnd-teal-50); }
.tnd2-values__col--coral { background: var(--tnd-coral-50); }
.tnd2-values__col h3 { font-size: 1.25rem; }
@media (max-width: 767px) { .tnd2-values { grid-template-columns: minmax(0, 1fr); } }

/* Ô 4 lớp quyền lợi */
.tnd2-layerbox { --layer: var(--tnd-layer-protect); border-top: 4px solid var(--layer); }
.tnd2-layerbox .tnd2-card__icon { background: color-mix(in srgb, var(--layer) 16%, white); color: color-mix(in srgb, var(--layer) 70%, var(--tnd-ink-900)); }
.tnd2-layerbox .tnd2-note { margin-top: auto; padding: 10px 12px; font-size: 0.8125rem; }

/* Bảng so sánh */
.tnd2-compare-wrap { overflow-x: auto; border-radius: var(--tnd-r-lg); border: 1px solid var(--tnd-line); background: var(--tnd-white); }
.tnd2-compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.90625rem; line-height: 1.5; }
.tnd2-compare th, .tnd2-compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tnd-line); }
.tnd2-compare tr:last-child > * { border-bottom: 0; }
.tnd2-compare thead th { background: var(--tnd-sand); font-family: var(--tnd-font-display); font-size: 0.9375rem; color: var(--tnd-ink-900); }
.tnd2-compare thead th a { color: inherit; }
.tnd2-compare thead th a:hover { color: var(--tnd-teal-700); }
.tnd2-compare tbody th { width: 160px; font-weight: 600; color: var(--tnd-ink-900); background: var(--tnd-cream); }
.tnd2-compare :is(thead th, tbody th):first-child { position: sticky; left: 0; z-index: 1; }
.tnd2-compare tbody td { color: var(--tnd-ink-700); }

/* Bàn thiết kế phúc lợi đầy đủ */
.tnd2-planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(20px, 4vw, 48px); border-radius: var(--tnd-r-xl); background: var(--tnd-white); box-shadow: var(--tnd-sh-1); }
.tnd2-planner__steps { display: flex; flex-direction: column; gap: 28px; }
.tnd2-planner__step { display: grid; gap: 12px; }
.tnd2-planner__label { display: flex; align-items: center; gap: 10px; font-family: var(--tnd-font-display); font-weight: 700; color: var(--tnd-ink-900); }
.tnd2-planner__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tnd-teal-700); color: var(--tnd-white); font-size: 0.8125rem; }
.tnd2-planner__result { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: var(--tnd-r-lg); background: var(--tnd-sand); }
.tnd2-planner__result h3 { font-size: 1.25rem; }
.tnd2-planner__tiers { display: grid; gap: 10px; }
.tnd2-planner__tier { display: grid; gap: 8px; padding: 16px; border-radius: var(--tnd-r-md); background: var(--tnd-white); box-shadow: var(--tnd-sh-1); }
.tnd2-planner__tier[hidden] { display: none; }
.tnd2-planner__tier header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tnd2-planner__tier strong { font-family: var(--tnd-font-display); }
.tnd2-planner__tier .tnd2-row { --gap: 6px; }
.tnd2-planner__tier .tnd2-chip { min-height: 28px; padding: 0 10px; font-size: 0.75rem; white-space: normal; }
.tnd2-planner__empty[hidden], .tnd2-planner__focus[hidden] { display: none; }
.tnd2-planner__focus { padding: 12px 14px; border-radius: var(--tnd-r-sm); background: var(--tnd-white); font-size: var(--tnd-fs-sm); line-height: 1.55; color: var(--tnd-ink-900); }
.tnd2-planner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 959px) { .tnd2-planner { grid-template-columns: minmax(0, 1fr); } .tnd2-planner__result { position: static; } }

/* Chip chọn nhiều (checkbox ẩn) */
.tnd2-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tnd2-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tnd2-pick label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--tnd-line-strong); border-radius: var(--tnd-r-full); background: var(--tnd-white); font-size: var(--tnd-fs-sm); font-weight: 500; color: var(--tnd-ink-900); cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; }
.tnd2-pick label:hover { border-color: var(--tnd-teal-500); }
.tnd2-pick input:checked + label { background: var(--tnd-teal-700); border-color: var(--tnd-teal-700); color: var(--tnd-white); }
.tnd2-pick input:focus-visible + label { outline: 2px solid var(--tnd-teal-700); outline-offset: 2px; }

/* Thẻ chân dung "Dành cho ai" */
.tnd2-persona { flex-direction: row; align-items: flex-start; gap: 14px; }
.tnd2-persona .tnd2-card__icon { flex: none; }
.tnd2-persona p { line-height: 1.55; }

/* Sơ đồ cấu trúc gói */
.tnd2-structure { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tnd2-structure__plus { display: grid; place-items: center; font-family: var(--tnd-font-display); font-size: 1.5rem; font-weight: 700; color: var(--tnd-ink-500); }
.tnd2-structure .tnd2-card { --layer: var(--tnd-layer-protect); border-top: 4px solid var(--layer); }
.tnd2-structure__kind { font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
@media (max-width: 899px) { .tnd2-structure { grid-template-columns: minmax(0, 1fr); } .tnd2-structure__plus { padding: 2px 0; } }

/* Thanh tỉ lệ quyền lợi */
.tnd2-benefit { display: grid; gap: 14px; }
.tnd2-benefit__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.tnd2-benefit__label { font-weight: 600; color: var(--tnd-ink-900); line-height: 1.35; }
.tnd2-benefit__label small { display: block; font-weight: 400; font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }
.tnd2-benefit__bar { position: relative; height: 40px; border-radius: var(--tnd-r-sm); background: var(--tnd-sand); overflow: hidden; }
.tnd2-benefit__fill { display: flex; align-items: center; height: 100%; width: var(--v); padding: 0 12px; border-radius: inherit; background: var(--bar, var(--tnd-teal-700)); color: var(--tnd-white); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 599px) { .tnd2-benefit__row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Hỏi AI ngay trong nội dung */
.tnd2-askai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--tnd-r-xl); background: var(--tnd-teal-950); color: #B9D3CD; }
.tnd2-askai h2, .tnd2-askai h3 { color: var(--tnd-white); }
.tnd2-askai__qs { display: grid; gap: 8px; }
.tnd2-askai__qs .tnd2-chip { justify-content: flex-start; min-height: 46px; padding: 10px 16px; white-space: normal; text-align: left; line-height: 1.4; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #E4F1EE; }
.tnd2-askai__qs .tnd2-chip::before { content: '✦'; color: var(--tnd-mint-300); }
.tnd2-askai__qs .tnd2-chip:hover { border-color: var(--tnd-mint-300); }
.tnd2-askai :focus-visible { outline-color: var(--tnd-mint-300); }
@media (max-width: 767px) { .tnd2-askai { grid-template-columns: minmax(0, 1fr); } }

/* Trang đọc (kế toán, bài viết): mục lục dính trái */
.tnd2-read { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; }
.tnd2-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; font-size: var(--tnd-fs-sm); }
.tnd2-toc p { margin-bottom: 8px; font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-toc a { padding: 6px 12px; border-left: 2px solid var(--tnd-line); color: var(--tnd-ink-700); line-height: 1.4; }
.tnd2-toc a:hover { border-left-color: var(--tnd-teal-700); color: var(--tnd-teal-700); }
.tnd2-prose { display: flex; flex-direction: column; gap: 18px; }
.tnd2-prose > h2 { margin-top: 28px; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); scroll-margin-top: 96px; }
.tnd2-prose > p, .tnd2-prose li { font-size: 1.0625rem; line-height: 1.75; }
.tnd2-prose .tnd2-checks { gap: 16px; }
.tnd2-prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tnd2-prose th, .tnd2-prose td { padding: 12px 14px; border-bottom: 1px solid var(--tnd-line); text-align: left; vertical-align: top; }
.tnd2-prose thead th { background: var(--tnd-sand); color: var(--tnd-ink-900); }
.tnd2-updated { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }
@media (max-width: 959px) {
  .tnd2-read { grid-template-columns: minmax(0, 1fr); }
  .tnd2-toc { position: static; padding: 16px; border-radius: var(--tnd-r-md); background: var(--tnd-sand); }
  .tnd2-toc a { border-left: 0; padding: 4px 0; }
}

/* Khối form ngắn (cta-band) */
.tnd2-leadband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.tnd2-leadform { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--tnd-r-lg); background: var(--tnd-white); box-shadow: var(--tnd-sh-2); }
.tnd2-leadform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tnd2-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 899px) { .tnd2-leadband { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .tnd2-leadform__row { grid-template-columns: minmax(0, 1fr); } }

/* Thẻ hỗ trợ cạnh nội dung (aside-cta) */
.tnd2-help { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--tnd-r-lg); background: var(--tnd-sand); }
.tnd2-help h3 { font-size: 1.125rem; }
.tnd2-help .tnd2-btn { width: 100%; }

/* ==========================================================================
   N4 — Sản phẩm, đối tác, trang Trợ lý AI
   ========================================================================== */

/* Ô số liệu chính của sản phẩm */
.tnd2-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tnd2-fact { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--tnd-r-md); background: var(--tnd-white); box-shadow: var(--tnd-sh-1); }
.tnd2-fact strong { font-family: var(--tnd-font-display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 800; line-height: 1.1; color: var(--tnd-teal-700); letter-spacing: -0.02em; }
.tnd2-fact span { font-size: 0.8125rem; color: var(--tnd-ink-500); line-height: 1.4; }
@media (max-width: 767px) { .tnd2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bố cục chi tiết sản phẩm: nội dung + cột dính */
.tnd2-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tnd2-detail__main { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); min-width: 0; }
.tnd2-detail__main > section > h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-bottom: 18px; scroll-margin-top: 96px; }
.tnd2-detail__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.tnd2-sumcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--tnd-r-lg); background: var(--tnd-white); box-shadow: var(--tnd-sh-2), 0 0 0 1px var(--tnd-line); }
.tnd2-sumcard dl { display: grid; gap: 10px; margin: 0; }
.tnd2-sumcard dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--tnd-line); font-size: var(--tnd-fs-sm); }
.tnd2-sumcard dt { color: var(--tnd-ink-500); }
.tnd2-sumcard dd { margin: 0; font-weight: 600; color: var(--tnd-ink-900); text-align: right; }
.tnd2-sumcard .tnd2-btn { width: 100%; }
@media (max-width: 1023px) {
  .tnd2-detail { grid-template-columns: minmax(0, 1fr); }
  .tnd2-detail__aside { position: static; }
}

/* Tab chung (tái dùng kiểu thanh tab vai trò) */
.tnd2-tabs__list { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 20px; border-radius: var(--tnd-r-full); background: var(--tnd-sand); scrollbar-width: none; width: fit-content; max-width: 100%; }
.tnd2-tabs__list::-webkit-scrollbar { display: none; }
.tnd2-tabs__list [role="tab"] { flex: none; padding: 10px 16px; border: 0; border-radius: var(--tnd-r-full); background: transparent; color: var(--tnd-ink-700); font-weight: 600; font-size: 0.90625rem; white-space: nowrap; cursor: pointer; }
.tnd2-tabs__list [role="tab"][aria-selected="true"] { background: var(--tnd-white); color: var(--tnd-teal-700); box-shadow: var(--tnd-sh-1); }
.tnd2-tabs__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 20px; align-items: start; }
.tnd2-tabs__panel[hidden] { display: none; }
.tnd2-tabs__panel > div { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 767px) { .tnd2-tabs__panel { grid-template-columns: minmax(0, 1fr); } }

/* Bảng số trong nội dung */
.tnd2-table-wrap { overflow-x: auto; border-radius: var(--tnd-r-md); border: 1px solid var(--tnd-line); background: var(--tnd-white); }
.tnd2-table { width: 100%; border-collapse: collapse; font-size: 0.90625rem; font-variant-numeric: tabular-nums; }
.tnd2-table th, .tnd2-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--tnd-line); }
.tnd2-table tr:last-child > * { border-bottom: 0; }
.tnd2-table thead th { background: var(--tnd-sand); color: var(--tnd-ink-900); font-weight: 600; }
.tnd2-table td:not(:first-child) { color: var(--tnd-ink-900); font-weight: 500; }

/* Danh mục: thanh lọc + thẻ sản phẩm */
.tnd2-filter { position: sticky; top: 72px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 18px; margin-bottom: 28px; border-radius: var(--tnd-r-lg); background: color-mix(in srgb, var(--tnd-white) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--tnd-sh-1); }
.tnd2-filter__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tnd2-filter__label { margin-right: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-filter .tnd2-chip { min-height: 32px; font-size: 0.8125rem; }
@media (max-width: 767px) { .tnd2-filter { position: static; } }
.tnd2-product { gap: 12px; }
.tnd2-product[hidden] { display: none; }
.tnd2-product h3 a { color: inherit; }
.tnd2-product h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tnd2-product__legal { font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }
.tnd2-product__facts { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--tnd-r-sm); background: var(--tnd-cream); font-size: 0.875rem; color: var(--tnd-ink-900); }
.tnd2-product__facts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.tnd2-product__facts .tnd2-icon { color: var(--tnd-teal-500); width: 18px; height: 18px; margin-top: 1px; }
.tnd2-product--soon { background: var(--tnd-sand); border-color: transparent; }
.tnd2-empty { padding: 32px; border-radius: var(--tnd-r-lg); background: var(--tnd-sand); text-align: center; }
.tnd2-empty[hidden] { display: none; }

/* Tra cứu bệnh */
.tnd2-search { position: relative; }
.tnd2-search .tnd2-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tnd-ink-500); pointer-events: none; }
.tnd2-search .tnd2-input { padding-left: 48px; }
.tnd2-disease { display: grid; gap: 8px; }
.tnd2-disease li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-radius: var(--tnd-r-sm); background: var(--tnd-white); border: 1px solid var(--tnd-line); }
.tnd2-disease li[hidden] { display: none; }
.tnd2-disease strong { font-weight: 600; color: var(--tnd-ink-900); line-height: 1.4; }
.tnd2-disease small { grid-column: 1 / -1; font-size: var(--tnd-fs-xs); color: var(--tnd-ink-500); }

/* Hồ sơ đối tác */
.tnd2-partner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border-radius: var(--tnd-r-xl); background: var(--tnd-white); box-shadow: var(--tnd-sh-1); }
.tnd2-partner { scroll-margin-top: 120px; align-items: start; }
.tnd2-partner__intro { border-inline-start: 2px solid var(--tnd-teal-500); padding-inline-start: 16px; }
.tnd2 .tnd2-partner__intro h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.95rem); text-wrap: initial; }
.tnd2-partner__intro .tnd2-link { width: fit-content; padding-block: 8px; }
@media (max-width: 899px) { .tnd2-partner { grid-template-columns: minmax(0, 1fr); } }

/* Trang Trợ lý AI */
.tnd2-aipage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tnd2-aipage .tnd2-ai--embed { height: min(680px, 78vh); }
.tnd2-aipage__side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 959px) { .tnd2-aipage { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   N5 — Quy trình, kiến thức, hỏi đáp, bồi thường, giới thiệu, liên hệ, pháp lý
   ========================================================================== */

/* Quy trình dọc chi tiết */
.tnd2-process { display: grid; gap: 14px; counter-reset: step; }
.tnd2-process__step { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 180px; gap: 20px; align-items: start; padding: 24px; border-radius: var(--tnd-r-lg); background: var(--tnd-white); border: 1px solid var(--tnd-line); }
.tnd2-process__num { font-family: var(--tnd-font-display); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--tnd-teal-200); letter-spacing: -0.03em; }
.tnd2-process__step h3 { margin-bottom: 6px; font-size: 1.125rem; }
.tnd2-process__col p:first-child { margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-process__time { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--tnd-ink-700); }
.tnd2-process__step.is-key { background: var(--tnd-teal-50); border-color: transparent; }
@media (max-width: 899px) { .tnd2-process__step { grid-template-columns: 56px minmax(0, 1fr); } .tnd2-process__num { font-size: 2rem; } .tnd2-process__step > :nth-child(n+3) { grid-column: 2; } }

/* Các bước bồi thường */
.tnd2-claimsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tnd2-claimstep { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: var(--tnd-r-md); background: var(--tnd-white); border: 1px solid var(--tnd-line); }
.tnd2-claimstep__badge { align-self: flex-start; padding: 4px 10px; border-radius: var(--tnd-r-full); background: var(--tnd-coral-50); color: var(--tnd-coral-700); font-size: 0.75rem; font-weight: 700; }
.tnd2-claimstep h3 { font-size: 1.0625rem; }
@media (max-width: 899px) { .tnd2-claimsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tnd2-claimsteps { grid-template-columns: minmax(0, 1fr); } }
.tnd2-checklist { display: grid; gap: 8px; }
.tnd2-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--tnd-r-sm); background: var(--tnd-white); border: 1px solid var(--tnd-line); line-height: 1.55; cursor: pointer; }
.tnd2-checklist input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tnd-teal-700); }
.tnd2-checklist label:has(input:checked) { background: var(--tnd-teal-50); border-color: var(--tnd-teal-200); }
.tnd2-checklist label:has(input:checked) span { color: var(--tnd-ink-500); text-decoration: line-through; text-decoration-color: var(--tnd-teal-500); }

/* Hỏi đáp: tìm kiếm lớn */
.tnd2-faqsearch { display: grid; gap: 14px; max-width: 720px; }
.tnd2-faqsearch .tnd2-input { min-height: 58px; font-size: 1.0625rem; border-radius: var(--tnd-r-full); }
.tnd2-faq__item[hidden] { display: none; }

/* Bài viết */
.tnd2-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); }
.tnd2-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tnd2-cover { display: grid; place-items: center; aspect-ratio: 21 / 9; border-radius: var(--tnd-r-xl); background: var(--cover, var(--tnd-teal-50)); color: var(--tnd-teal-700); }
.tnd2-cover .tnd2-icon { width: 72px; height: 72px; }
.tnd2-article[hidden] { display: none; }
.tnd2-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.tnd2-feature .tnd2-article__cover { aspect-ratio: auto; min-height: 260px; }
@media (max-width: 767px) { .tnd2-feature { grid-template-columns: minmax(0, 1fr); } }

/* Giới thiệu: thư ngỏ */
.tnd2-letter { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 56px); border-radius: var(--tnd-r-xl); background: var(--tnd-white); box-shadow: var(--tnd-sh-1); }
.tnd2-letter p { font-size: 1.0625rem; line-height: 1.8; color: var(--tnd-ink-900); }
.tnd2-letter details > summary { cursor: pointer; color: var(--tnd-teal-700); font-weight: 600; list-style: none; }
.tnd2-letter details > summary::-webkit-details-marker { display: none; }
.tnd2-letter details[open] > summary { display: none; }
.tnd2-letter details > div { display: flex; flex-direction: column; gap: 16px; }
.tnd2-letter__sign { font-family: var(--tnd-font-display); font-weight: 700; color: var(--tnd-ink-900); }
.tnd2-quote { padding: clamp(28px, 5vw, 64px); border-radius: var(--tnd-r-xl); background: var(--tnd-coral-50); text-align: center; }
.tnd2-quote p { max-width: 28ch; margin-inline: auto; font-family: var(--tnd-font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 700; line-height: 1.25; color: var(--tnd-ink-900); }
.tnd2-legal-table { width: 100%; border-collapse: collapse; }
.tnd2-legal-table th, .tnd2-legal-table td { padding: 12px 0; border-bottom: 1px solid var(--tnd-line); text-align: left; vertical-align: top; }
.tnd2-legal-table th { width: 40%; font-weight: 500; color: var(--tnd-ink-500); }
.tnd2-legal-table td { color: var(--tnd-ink-900); font-weight: 500; }

/* Hợp tác: bảng điều khiển mô phỏng */
.tnd2-hero-dark { padding: clamp(40px, 6vw, 96px) 0; background: var(--tnd-teal-950); color: #B9D3CD; }
.tnd2-hero-dark h1, .tnd2-hero-dark h2, .tnd2-hero-dark strong { color: var(--tnd-white); }
.tnd2-hero-dark .tnd2-crumbs, .tnd2-hero-dark .tnd2-crumbs a, .tnd2-hero-dark .tnd2-crumbs [aria-current="page"] { color: #B9D3CD; }
.tnd2-hero-dark :focus-visible { outline-color: var(--tnd-mint-300); }
.tnd2-mock { display: grid; gap: 12px; padding: 18px; border-radius: var(--tnd-r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.tnd2-mock__bar { display: flex; gap: 6px; }
.tnd2-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tnd2-mock__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--tnd-r-sm); background: rgba(255, 255, 255, .06); font-size: 0.8125rem; color: #DCEDE9; }
.tnd2-mock__score { padding: 2px 10px; border-radius: var(--tnd-r-full); background: rgba(127, 224, 200, .16); color: var(--tnd-mint-300); font-weight: 700; font-variant-numeric: tabular-nums; }
.tnd2-mock__ai { padding: 14px; border-radius: var(--tnd-r-sm); background: rgba(127, 224, 200, .08); border: 1px dashed rgba(127, 224, 200, .35); font-size: 0.8125rem; line-height: 1.5; color: #DCEDE9; }

/* Editorial Corporate Section Helpers */
.tnd2-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tnd-teal-700);
}
.tnd2-editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tnd2-editorial-split__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--tnd-sh-3);
}
.tnd2-editorial-split__media img { width: 100%; height: 100%; object-fit: cover; }
.tnd2-pillars { display: grid; gap: 18px; margin-top: 8px; }
.tnd2-pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--tnd-line);
}
.tnd2-pillar__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tnd-teal-50);
  color: var(--tnd-teal-700);
}
.tnd2-pillar h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.tnd2-pillar p { font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); line-height: 1.55; }
@media (max-width: 959px) { .tnd2-editorial-split { grid-template-columns: minmax(0, 1fr); } }

/* 4-step clean process grid */
.tnd2-steps4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.tnd2-step4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 12px;
  background: var(--tnd-white);
  border: 1px solid var(--tnd-line);
}
.tnd2-step4__num {
  font-family: var(--tnd-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tnd-coral-500);
  line-height: 1;
}
.tnd2-step4 h3 { font-size: 1.0625rem; }
.tnd2-step4 p { font-size: var(--tnd-fs-sm); color: var(--tnd-ink-500); line-height: 1.55; }
@media (max-width: 959px) { .tnd2-steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tnd2-steps4 { grid-template-columns: minmax(0, 1fr); } }

/* Full-bleed Edge-to-Edge Split Sections */
.tnd2-split-bleed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(500px, 52vw, 660px);
  background: var(--tnd-white);
}
.tnd2-split-bleed--sand { background: var(--tnd-sand); }
.tnd2-split-bleed__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.tnd2-split-bleed__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tnd2-split-bleed__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
  max-width: 680px;
}
@media (max-width: 959px) {
  .tnd2-split-bleed { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .tnd2-split-bleed__media { min-height: 260px; aspect-ratio: 16 / 10; }
  .tnd2-split-bleed--reverse .tnd2-split-bleed__media { order: -1; }
}

/* Full-bleed Dark Photo Showcase for 4 Packages */
.tnd2-packages-bleed {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 112px) 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 40, 0.86) 0%, rgba(11, 31, 58, 0.78) 55%, rgba(7, 21, 40, 0.9) 100%),
    url('../img/bg-skyline-night.jpg') center/cover no-repeat;
  color: #E2E8F0;
}
.tnd2-packages-bleed h2 { color: var(--tnd-white); }
.tnd2-packages-bleed .tnd2-eyebrow { color: var(--tnd-mint-300); }
.tnd2-packages-bleed .tnd2-head__lead { color: #CBD5E1; }
.tnd2-packages-bleed .tnd2-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--tnd-white);
}
.tnd2-packages-bleed .tnd2-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.tnd2-pkg-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 12px;
  overflow: hidden;
  color: var(--tnd-white);
  background: var(--tnd-teal-950);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.45);
  transition: transform 320ms var(--tnd-ease);
}
.tnd2-pkg-tile:hover { transform: translateY(-4px); }
.tnd2-pkg-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--tnd-ease);
}
.tnd2-pkg-tile:hover img { transform: scale(1.06); }
.tnd2-pkg-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 40, 0.06) 0%, rgba(7, 21, 40, 0.42) 45%, rgba(7, 21, 40, 0.94) 100%);
}
.tnd2-pkg-tile__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tnd2-pkg-tile__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--tnd-r-full);
  background: rgba(7, 21, 40, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tnd-white);
}
.tnd2-pkg-tile h3 { font-size: 1.25rem; color: var(--tnd-white); }
.tnd2-pkg-tile p { font-size: var(--tnd-fs-sm); color: #CBD5E1; line-height: 1.5; }
.tnd2-pkg-tile a { color: var(--tnd-mint-300); font-weight: 600; font-size: var(--tnd-fs-sm); }
.tnd2-pkg-tile a::after { content: ''; position: absolute; inset: 0; }
@media (max-width: 1099px) { .tnd2-pkg-tile { aspect-ratio: 4 / 4.2; } }
@media (max-width: 639px) { .tnd2-pkg-tile { aspect-ratio: 4 / 3; } }

/* Full-bleed Photo Background for Interactive Builder */
.tnd2-builder-bleed {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 112px) 0;
  background:
    linear-gradient(100deg, rgba(7, 21, 40, 0.88) 0%, rgba(11, 31, 58, 0.72) 52%, rgba(15, 76, 129, 0.58) 100%),
    url('../img/role-consultation.jpg') center/cover no-repeat;
  color: #E2E8F0;
}
.tnd2-builder-bleed h2 { color: var(--tnd-white); }
.tnd2-builder-bleed .tnd2-eyebrow { color: var(--tnd-mint-300); }
.tnd2-builder-bleed p { color: #CBD5E1; }
.tnd2-builder-bleed .tnd2-builder {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.45);
}
.tnd2-builder-bleed .tnd2-builder p { color: var(--tnd-ink-700); }
.tnd2-builder-bleed .tnd2-builder__q { color: var(--tnd-ink-900); }

/* Liên hệ: form nhiều bước */
.tnd2-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tnd2-steps-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 40px); border-radius: var(--tnd-r-xl); background: var(--tnd-white); box-shadow: var(--tnd-sh-2); }
.tnd2-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tnd2-progress span { display: grid; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--tnd-ink-500); }
.tnd2-progress span::before { content: ''; height: 6px; border-radius: 6px; background: var(--tnd-sand); }
.tnd2-progress span.is-done, .tnd2-progress span.is-current { color: var(--tnd-teal-700); }
.tnd2-progress span.is-done::before, .tnd2-progress span.is-current::before { background: var(--tnd-teal-700); }
.tnd2-formstep { display: flex; flex-direction: column; gap: 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tnd2-formstep[hidden] { display: none; }
.tnd2-formstep > legend { margin-bottom: 4px; padding: 0; font-family: var(--tnd-font-display); font-size: 1.25rem; font-weight: 700; color: var(--tnd-ink-900); }
.tnd2-formrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tnd2-formnav { display: flex; justify-content: space-between; gap: 10px; }
.tnd2-formnav .tnd2-btn:only-child { margin-left: auto; }
.tnd2-radiocards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 599px) { .tnd2-formrow, .tnd2-radiocards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 959px) { .tnd2-contact { grid-template-columns: minmax(0, 1fr); } }
.tnd2-contactlist { display: grid; gap: 14px; }
.tnd2-contactlist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.tnd2-contactlist .tnd2-icon { color: var(--tnd-teal-700); margin-top: 1px; }

/* Cảm ơn */
.tnd2-thanks { display: grid; justify-items: center; gap: 18px; max-width: 640px; margin-inline: auto; text-align: center; }
.tnd2-thanks .tnd2-layers { width: 100%; text-align: left; }

/* ---------- Utilities ---------- */
.tnd2-muted { color: var(--tnd-ink-500); }
.tnd2-small { font-size: var(--tnd-fs-sm); line-height: 1.6; }
.tnd2-xs { font-size: var(--tnd-fs-xs); line-height: 1.5; }
.tnd2-lead { font-size: var(--tnd-fs-lead); line-height: 1.6; }
.tnd2-display { font-family: var(--tnd-font-display); font-size: var(--tnd-fs-hero); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; color: var(--tnd-ink-900); }
.tnd2-num { font-variant-numeric: tabular-nums; }
.tnd2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnd2-divider { height: 1px; border: 0; background: var(--tnd-line); margin: 0; }

/* Xuất hiện khi cuộn (JS gắn .is-in) */
.tnd2-reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--tnd-dur) var(--tnd-ease), transform var(--tnd-dur) var(--tnd-ease); }
.tnd2-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tnd2 *, .tnd2 *::before, .tnd2 *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .tnd2-reveal { transform: none; }
  .tnd2-layer { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .tnd2 { background: #fff; color: #000; }
  .tnd2-btn, .tnd2-no-print, .tnd2-detail__aside, .tnd2-filter, .tnd2-toc, .tnd2-askai, .tnd2-leadband, .tnd2-header, .tnd2-dock, .tnd2-ai-launcher, .tnd2-ai--dock, .tnd2-cookie, .tnd2-footer-cta { display: none !important; }
  .tnd2-card { break-inside: avoid; box-shadow: none; }
}

/* Shared shell and interior pages */
.tnd2 .tnd2-container { max-width: 1340px; }
.tnd2 .tnd2-container--read { max-width: 900px; }
.tnd2 .tnd2-btn { border-radius: 8px; white-space: normal; text-align: center; }
.tnd2 .tnd2-btn--warm, .tnd2 .tnd2-btn--warm:hover {
  --btn-fg: var(--tnd-ink-900);
  background: var(--btn-bg);
  box-shadow: none;
}
.tnd2 .tnd2-btn--ghost { --btn-bd: var(--tnd-line-strong); }
.tnd2 .tnd2-btn--ghost:hover { --btn-bg: var(--tnd-teal-50); }
.tnd2 .tnd2-mark { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.tnd2 .tnd2-reveal { opacity: 1; transform: none; transition: none; }
.tnd2 .tnd2-header, .tnd2 .tnd2-header.is-scrolled {
  background: var(--tnd-cream);
  border-bottom: 1px solid var(--tnd-line);
  box-shadow: none;
  backdrop-filter: none;
}
.tnd2 .tnd2-header__bar, .tnd2 .tnd2-header.is-scrolled .tnd2-header__bar {
  height: 72px;
  gap: clamp(12px, 2vw, 30px);
}
.tnd2 .tnd2-nav { margin-inline: auto; }
.tnd2 .tnd2-nav__list { gap: clamp(10px, 1.9vw, 28px); }
.tnd2 .tnd2-nav__link { padding-inline: 0; }
.tnd2 .tnd2-nav__link:hover, .tnd2 .tnd2-nav__link[aria-current="page"] { background: transparent; text-decoration: underline; text-underline-offset: 6px; }
.tnd2 .tnd2-header__actions { margin-left: 0; }
.tnd4-service { background: var(--tnd-teal-950); }
.tnd4-service > div { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-height: 34px; }
.tnd2 .tnd4-service a { display: inline-flex; align-items: center; gap: 7px; color: #f1eafa; font-size: .77rem; }
.tnd2 .tnd4-service a:hover { text-decoration: underline; }
.tnd2 .tnd2-drawer, .tnd2 .tnd2-drawer__head { background: var(--tnd-cream); }
.tnd2 .tnd2-drawer__group { border-radius: 0; box-shadow: none; }

.tnd2 .tnd2-pagehero {
  background: var(--tnd-teal-950);
  color: #f0ebf9;
  padding: clamp(26px, 4.5vw, 64px) 0 clamp(36px, 6vw, 82px);
  margin-bottom: clamp(26px, 4vw, 52px);
}
.tnd2 .tnd2-pagehero :is(h1, .tnd2-lead, .tnd2-crumbs, .tnd2-crumbs a, .tnd2-crumbs [aria-current]) { color: #f9f5ff; }
.tnd2 .tnd2-pagehero h1 { font-weight: 800; letter-spacing: -.055em; }
.tnd2 .tnd2-pagehero .tnd2-lead { max-width: 66ch; }
.tnd2 .tnd2-pagehero .tnd2-btn--ghost { --btn-fg: #f9f5ff; --btn-bd: #a79bbb; }
.tnd2 .tnd2-pagehero .tnd2-btn--ghost:hover { --btn-bg: #403557; }
.tnd2 .tnd2-pagehero__visual { background: #f2edf8; border: 0; box-shadow: none; color: var(--tnd-ink-900); backdrop-filter: none; }
.tnd2 .tnd2-pagehero__visual :is(p, strong, h2, h3, .tnd2-lead) { color: var(--tnd-ink-900); }
.tnd2 .tnd2-pagehero__visual .tnd2-btn--ghost { --btn-fg: var(--tnd-teal-700); --btn-bd: var(--tnd-line-strong); }
.tnd2 .tnd2-pagehero__visual .tnd2-btn--ghost:hover { --btn-bg: var(--tnd-teal-50); }
.tnd2 .tnd2-pagehero > .tnd2-container { position: relative; }
.tnd2 .tnd2-pagehero > .tnd2-container::after {
  content: '';
  position: absolute;
  inset: auto var(--tnd-gutter) -17px auto;
  width: 64px;
  height: 4px;
  background: var(--tnd-coral-500);
}
.tnd2 .tnd2-pagehero:has(.tnd2-pagehero__visual) > .tnd2-container::after { display: none; }
.tnd2 .tnd2-head { text-align: start; }
.tnd2 .tnd2-head > .tnd2-chip--label, .tnd2 .tnd2-eyebrow { text-transform: none; letter-spacing: 0; }
.tnd2 .tnd2-card, .tnd2 .tnd2-leadform, .tnd2 .tnd2-filter {
  border: 1px solid var(--tnd-line);
  border-radius: 12px;
  box-shadow: none;
}
.tnd2 .tnd2-card--link:hover { transform: none; border-color: var(--tnd-teal-500); box-shadow: none; }
.tnd2 .tnd2-card__icon { background: var(--tnd-teal-50); }
.tnd2 .tnd2-filter { position: static; background: var(--tnd-teal-50); padding: 20px; backdrop-filter: none; }
.tnd2 .tnd2-tabs__list { border-color: var(--tnd-line); }
.tnd2 .tnd2-input { border-radius: 8px; box-shadow: none; }
.tnd2 .tnd2-note, .tnd2 .tnd2-summary { border-radius: 10px; }
.tnd2 .tnd2-page-note { padding: 14px 16px; border-inline-start: 3px solid var(--tnd-teal-500); background: var(--tnd-teal-50); }
.tnd2 .tnd2-faq__item { background: var(--tnd-white); border: 1px solid var(--tnd-line); box-shadow: none; border-radius: 9px; }
.tnd2 .tnd2-claimstep { border-radius: 0; box-shadow: none; border: 0; border-top: 3px solid var(--tnd-teal-500); background: var(--tnd-sand); }
.tnd2 .tnd4-claims-title { margin-bottom: 24px; }
.tnd4-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tnd2 .tnd4-catalog .tnd2-product { min-width: 0; padding: clamp(22px, 3vw, 36px); }
.tnd2 .tnd4-catalog .tnd2-product h3 { font-size: clamp(1.3rem, 1.05rem + .8vw, 1.9rem); }
.tnd2 .tnd2-footer-cta { margin: 0; padding: 22px 0 clamp(36px, 6vw, 72px); background: var(--tnd-cream); }
.tnd2 .tnd2-footer-cta__box {
  padding: clamp(24px, 4.5vw, 58px);
  border: 0;
  border-radius: 12px;
  background: #ded4f1;
  box-shadow: none;
}
.tnd2 .tnd2-footer-cta__box .tnd2-btn--warm { --btn-bg: var(--tnd-teal-950); --btn-fg: #fff; }
.tnd2 .tnd2-footer-cta__box .tnd2-btn--warm:hover { --btn-bg: var(--tnd-teal-700); }
.tnd2 .tnd2-footer { padding-top: clamp(40px, 6vw, 76px); color: #e7dfef; background: var(--tnd-teal-950); }
.tnd2 .tnd2-footer .tnd2-brand__sub, .tnd2 .tnd2-footer__legal, .tnd2 .tnd2-footer__bottom { color: #d7cbe5; }
.tnd2 .tnd2-footer .tnd2-footer-intro { margin-block: 16px 8px; }
@media (min-width: 768px) {
  .tnd2 .tnd2-footer { padding-bottom: max(84px, calc(28px + env(safe-area-inset-bottom))); }
}
.tnd2 .tnd2-ai__head, .tnd2 .tnd2-ai-launcher { background: var(--tnd-teal-950); }
.tnd2 .tnd2-ai-launcher { border-radius: 8px; }
.tnd2 .tnd2-ai__title span { color: #e4d6f4; }
.tnd2 .tnd2-dock { background: var(--tnd-teal-950); }
.tnd2 .tnd2-dock__item, .tnd2 .tnd2-dock__item .tnd2-icon { color: #f7eefb; }
.tnd2 :focus-visible { outline: 2px solid var(--tnd-teal-500); outline-offset: 3px; }
.tnd2 :is(.tnd4-hero, .tnd4-service, .tnd2-pagehero, .tnd2-footer, .tnd2-dock) :focus-visible { outline-color: #ffcbad; }
.tnd2 .tnd2-sr:focus-visible { position: fixed; z-index: 120; inset: 8px auto auto 8px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; overflow: visible; background: var(--tnd-white); }
#main, #giai-phap-nhan-su, #thiet-ke-phuc-loi, #thiet-ke, #docs-title { scroll-margin-top: 116px; }

/* Home */
.tnd4-hero { background: var(--tnd-teal-950); color: #f9f5ff; }
.tnd4-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: stretch;
  min-height: clamp(450px, 46vw, 600px);
  gap: clamp(20px, 2.5vw, 40px);
  padding-block: clamp(24px, 3vw, 44px);
}
.tnd4-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 21px; padding-block: 20px; }
.tnd2 .tnd4-hero__context { font-size: .8rem; font-weight: 600; color: #e0d0f4; padding-inline-start: 12px; border-inline-start: 2px solid var(--tnd-coral-500); }
.tnd2 .tnd4-hero h1 {
  color: #fff;
  font-size: clamp(3.6rem, 1.35rem + 5.15vw, 6.8rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: initial;
}
.tnd2 .tnd4-hero__copy > p:not(.tnd4-hero__context) { max-width: 39ch; color: #e4dbea; line-height: 1.58; }
.tnd4-hero__photo { position: relative; min-height: 100%; margin: 0; border-radius: 4px 66px 4px 4px; overflow: hidden; background: #413655; }
.tnd4-hero__photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 57% 47%; }
.tnd4-paths { background: #e8e1f3; }
.tnd4-paths__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tnd2 .tnd4-paths a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.2vw, 19px);
  align-items: center;
  min-height: 100px;
  padding: 14px clamp(10px, 1.5vw, 24px);
  color: var(--tnd-ink-900);
  font-family: var(--tnd-font-display);
  font-size: clamp(.9rem, 1.3vw, 1.12rem);
  font-weight: 800;
}
.tnd2 .tnd4-paths a:hover { background: #ded4f1; }
.tnd4-paths a + a { border-inline-start: 1px solid #cfc4e1; }
.tnd4-paths a > .tnd2-icon:first-child { width: 29px; height: 29px; color: var(--tnd-teal-700); }
.tnd4-paths small, .tnd4-products__list small { display: block; font-family: var(--tnd-font-body); font-size: .82rem; font-weight: 400; color: var(--tnd-ink-700); }

.tnd4-section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 16px 7%; margin-bottom: 32px; }
.tnd2 .tnd4-section-heading h2 { font-weight: 800; letter-spacing: -.05em; text-wrap: initial; }
.tnd4-section-heading p { max-width: 44ch; }
.tnd4-compare { display: grid; grid-template-columns: minmax(240px, .39fr) minmax(0, .61fr); border: 1px solid var(--tnd-line); border-radius: 14px; overflow: hidden; }
.tnd4-compare__choices { display: grid; align-content: start; background: #efecf8; }
.tnd4-compare__choices button {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 74px;
  padding: 16px clamp(12px, 3vw, 34px);
  border: 0;
  border-inline-start: 4px solid transparent;
  border-bottom: 1px solid var(--tnd-line);
  background: transparent;
  color: var(--tnd-ink-900);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.tnd4-compare__choices button strong { color: inherit; font-family: var(--tnd-font-display); font-size: 1rem; font-weight: 800; }
.tnd4-compare__choices button small { color: inherit; font-size: .83rem; }
.tnd4-compare__choices button:last-child { border-bottom: 0; }
.tnd4-compare__choices button[aria-pressed="true"] { border-inline-start-color: var(--tnd-coral-500); background: var(--tnd-teal-950); color: #fdf5ff; }
.tnd4-compare__choices button:not([aria-pressed="true"]):hover { background: #e2d9f1; }
.tnd2 .tnd4-compare__choices button:focus-visible { outline-offset: -4px; }
.tnd2 .tnd4-compare__choices button[aria-pressed="true"]:focus-visible { outline-color: var(--tnd-coral-500); }
.tnd4-compare__content { padding: clamp(20px, 4vw, 54px); background: var(--tnd-white); }
.tnd2 .tnd4-compare__content h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.05rem); font-weight: 800; }
.tnd4-compare__content dl { margin-block: 19px; }
.tnd4-compare__content dl > div { display: grid; grid-template-columns: minmax(128px, .37fr) minmax(0, .63fr); align-items: start; gap: 8px 16px; border-top: 1px solid var(--tnd-line); padding: 13px 0; }
.tnd4-compare__content dt { font-weight: 600; color: var(--tnd-ink-900); }
.tnd4-compare__content dd { margin: 0; }
.tnd4-benefits__next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: .88rem; }

.tnd4-products { background: #f2eef7; }
.tnd4-products__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(16px, 5vw, 72px); align-items: stretch; }
.tnd4-products__photo { position: relative; display: grid; place-items: end start; min-height: 370px; padding: clamp(24px, 4vw, 52px); border-radius: 44px 4px 4px; overflow: hidden; isolation: isolate; background: var(--tnd-teal-950); }
.tnd4-products__photo img, .tnd4-products__photo::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.tnd4-products__photo img { object-fit: cover; object-position: 57% 52%; z-index: -2; }
.tnd4-products__photo::after { content: ''; background: linear-gradient(0deg, rgba(38,33,62,.96), rgba(38,33,62,0) 88%); z-index: -1; }
.tnd2 .tnd4-products__photo h2 { color: #fff; max-width: 16ch; margin-bottom: 19px; font-weight: 800; text-wrap: initial; }
.tnd2 .tnd4-products__list { display: grid; align-content: center; }
.tnd4-products__list li { border-bottom: 1px solid #cfc4df; }
.tnd4-products__list li:first-child { border-top: 1px solid #cfc4df; }
.tnd2 .tnd4-products__list a { min-height: 82px; padding: 11px 6px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tnd4-products__list a:hover { background: #e9e1f2; }
.tnd4-products__list a strong { display: block; font-family: var(--tnd-font-display); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.tnd4-partners { border-bottom: 1px solid var(--tnd-line); }
.tnd4-partners > .tnd2-container { padding-block: clamp(24px, 4vw, 48px); }
.tnd4-partner-directory {
  --partner-title: var(--tnd-ink-900);
  --partner-muted: var(--tnd-ink-700);
  --partner-rule: var(--tnd-line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}
.tnd2 .tnd4-partner-directory h2 { font-size: 1.1rem; color: var(--partner-title); text-wrap: initial; }
.tnd2 .tnd4-partner-directory__intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--tnd-fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tnd4-partner-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.tnd4-partner-links li { min-width: 0; }
.tnd2 .tnd4-partner-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  padding-block: 10px;
  border-bottom: 1px solid var(--partner-rule);
  color: var(--partner-title);
}
.tnd2 .tnd4-partner-links a:hover strong, .tnd2 .tnd4-partner-links a:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.tnd2 .tnd4-partner-links strong { color: inherit; font-size: 1rem; font-weight: 700; }
.tnd4-partner-links small { display: block; color: var(--partner-muted); font-size: .82rem; }
.tnd4-partner-links .tnd2-icon { flex: none; }
.tnd2-footer .tnd4-partner-directory {
  --partner-title: var(--tnd-white);
  --partner-muted: var(--tnd-teal-200);
  --partner-rule: rgba(255, 255, 255, .28);
}
.tnd4-support__links { display: grid; gap: 8px; }
.tnd2 .tnd4-support__links a { display: inline-flex; align-items: center; width: fit-content; gap: 9px; font-weight: 600; }
.tnd4-support__links a:hover { text-decoration: underline; }

@media (max-width: 1040px) {
  .tnd2 .tnd2-nav, .tnd2 .tnd2-header__actions { display: none; }
  .tnd2 .tnd2-header__mobile { display: flex; }
}
@media (max-width: 740px) {
  .tnd4-service > div { min-height: 32px; gap: 15px; }
  .tnd2 .tnd2-header__bar, .tnd2 .tnd2-header.is-scrolled .tnd2-header__bar { height: 62px; }
  .tnd4-hero__grid, .tnd4-section-heading, .tnd4-products__grid, .tnd4-catalog { grid-template-columns: minmax(0, 1fr); }
  .tnd4-hero__grid { min-height: 0; gap: 10px; }
  .tnd4-hero__copy { padding: 6px 0 15px; gap: 15px; }
  .tnd2 .tnd4-hero h1 { font-size: clamp(2.8rem, 2.08rem + 4.5vw, 4.8rem); }
  .tnd4-hero__photo { min-height: 0; aspect-ratio: 1.62; border-top-right-radius: 42px; }
  .tnd4-paths__inner { grid-template-columns: minmax(0, 1fr); }
  .tnd2 .tnd4-paths a { min-height: 65px; padding: 10px 4px; font-size: .96rem; }
  .tnd4-paths a + a { border-inline-start: 0; border-top: 1px solid #cfc4e1; }
  .tnd4-paths a > .tnd2-icon:first-child { width: 23px; height: 23px; }
  .tnd4-compare { grid-template-columns: minmax(0, 1fr); }
  .tnd4-compare__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tnd4-compare__choices button { min-height: 64px; padding-block: 9px; border-bottom: 1px solid var(--tnd-line); }
  .tnd4-compare__choices button:nth-child(even) { border-right: 1px solid var(--tnd-line); }
  .tnd4-compare__choices button:last-child { border-bottom: 1px solid var(--tnd-line); }
  .tnd4-compare__choices button small { display: none; }
  .tnd4-compare__content dl > div { grid-template-columns: 1fr; gap: 2px; }
  .tnd4-partner-directory { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tnd4-products__photo { min-height: 300px; }
  .tnd2 .tnd2-dock { grid-template-columns: repeat(3, minmax(0,1fr)) auto; }
  .tnd2 .tnd2-dock__cta { padding-inline: 9px; font-size: .73rem; }
}
@media (max-width: 400px) {
  .tnd2 .tnd2-header__mobile > a { display: none; }
}
@media print {
  .tnd2 .tnd2-pagehero { background: #fff; color: #000; }
  .tnd2 .tnd2-pagehero :is(h1, .tnd2-lead, .tnd2-crumbs, .tnd2-crumbs a, .tnd2-crumbs [aria-current]) { color: #000; }
}
