:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eaf1f8;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d6e2ee;
  --navy: #0b2545;
  --navy-deep: #06162b;
  --cyan: #0ea5e9;
  --cyan-dark: #0284c7;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(11, 37, 69, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 18px; }

.topbar {
  background: var(--navy-deep);
  color: #cbd5e1;
  font-size: 13px;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #7dd3fc; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-copy strong { display: block; font-size: 17px; letter-spacing: 0.02em; line-height: 1.1; }
.brand-copy span { font-size: 12px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 14px; }
.main-nav a { color: var(--ink); padding: 8px 4px; white-space: nowrap; }
.main-nav a:hover { color: var(--cyan-dark); }

.header-cta { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.btn, .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn { padding: 11px 20px; font-size: 15px; min-height: 44px; }
.btn-sm { padding: 8px 13px; font-size: 13px; min-height: 40px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cyan-dark); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-zalo { background: #0068ff; color: #fff; }

.hero {
  background: linear-gradient(135deg, #06162b 0%, #0b2545 55%, #0e3a66 100%);
  color: #fff;
  padding: 50px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.22; }
.hero p { color: #dbeafe; margin: 0 0 22px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
}
.hero-trust strong { display: block; font-size: 18px; color: #7dd3fc; }
.hero-trust span { font-size: 13px; color: #cbd5e1; }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section { padding: 50px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); color: var(--navy); }
.section-head span { color: var(--muted); font-size: 14px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feat-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.feat-card p { margin: 0; font-size: 14px; color: var(--muted); }

.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.06);
}
.prod-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.prod-card:hover .prod-thumb img { transform: none; }
.prod-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-title { margin: 0; font-size: 16px; }
.prod-title a { color: var(--navy); }
.spec-pills { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.spec-pills span { background: var(--surface-alt); color: var(--navy); padding: 3px 8px; border-radius: 6px; }
.spec-sub { font-size: 12px; color: var(--muted); }
.prod-price { margin-top: auto; color: var(--cyan-dark); font-weight: 700; font-size: 15px; }
.prod-actions { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 8px; }

.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.matrix-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.matrix-table th, .matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.matrix-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.matrix-table tbody tr:hover { background: var(--surface-alt); }
.table-link { font-weight: 600; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: 12px; color: var(--muted); }
.post-title { margin: 0; font-size: 16px; line-height: 1.4; }
.post-title a { color: var(--navy); }
.post-excerpt { margin: 0; font-size: 14px; color: var(--muted); }

/* Homepage article banners: one scrollable row, never an incomplete second row. */
.article-slider-actions { display: flex; align-items: center; gap: 20px; }
.article-slider-buttons { display: flex; gap: 8px; }
.article-slider-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--navy); cursor: pointer; font-size: 22px;
  display: inline-grid; place-items: center;
}
.article-slider-button:hover:not(:disabled) { background: var(--navy); color: white; }
.article-slider-button:disabled { opacity: .35; cursor: default; }
#home-article-slider {
  --slides: 3;
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--slides) - 1) * 20px) / var(--slides));
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: #a5b8ca transparent;
  padding-bottom: 12px;
}
#home-article-slider .post-card { scroll-snap-align: start; min-width: 0; }
#home-article-slider .post-excerpt {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.article-slider-status { color: var(--muted); font-size: 12px; margin: 8px 0 0; text-align: center; }
.article-slider-button:focus-visible, #home-article-slider:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (max-width: 980px) { #home-article-slider { --slides: 2; } }
@media (max-width: 640px) {
  #home-article-slider { --slides: 1; }
  .article-slider-actions { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { #home-article-slider { scroll-behavior: auto; } }

.consult-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.consult-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.consult-contacts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.consult-contacts a { color: #7dd3fc; }

.quick-quote-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-quote-form h3, .quick-quote-form h4 { margin: 0; color: var(--navy); }
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-quote-form input, .quick-quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-feedback { font-size: 14px; font-weight: 600; color: var(--cyan-dark); }

.page-wrap { padding-top: 24px; padding-bottom: 72px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.archive-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.inline-search { display: flex; gap: 8px; }
.inline-search input { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); min-width: 240px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.gallery-main { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; max-height: 440px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; padding: 2px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--cyan-dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.detail-price-box { font-size: 24px; font-weight: 800; color: var(--cyan-dark); margin: 12px 0; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.specs-box, .product-description-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.specs-table th { width: 35%; background: var(--surface-alt); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; align-items: start; }
.article-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.article-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.article-cover { margin: 0 0 20px; border-radius: 12px; overflow: hidden; }
.prose { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; font-size: 14px; }
.prose th { background: var(--surface-alt); }
.article-cta { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--surface-alt); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.sidebar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mini-prod-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mini-prod { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.mini-prod img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mini-prod strong { display: block; font-size: 13px; }
.mini-prod span { font-size: 12px; color: var(--cyan-dark); font-weight: 700; }

.section-related { margin-top: 34px; }
.empty-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.search-list { display: flex; flex-direction: column; gap: 12px; }
.search-hit { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }

.site-footer { background: var(--navy-deep); color: #cbd5e1; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #93c5fd; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.floating-dock { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.dock-zalo { background: #0068ff; }
.dock-call { background: var(--cyan-dark); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    align-items: flex-start;
  }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .product-detail-grid, .article-layout, .consult-grid { grid-template-columns: 1fr; }
  .feat-grid, .prod-grid, .post-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .hide-mobile { display: none; }
  .feat-grid, .prod-grid, .post-grid, .footer-grid, .quote-row { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .article-main, .product-detail-grid { padding: 16px; }
}

/* Bullet pagination: hide the native bar while preserving swipe and keyboard scrolling. */
#home-article-slider { scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 0; }
#home-article-slider::-webkit-scrollbar { display: none; }
.article-slider-status { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 18px; min-height: 32px; }
.article-slider-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.article-slider-dot::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 99px; background: #a6bbce; transition: width .2s, background .2s; }
.article-slider-dot[aria-current="true"]::before { width: 25px; background: var(--navy); }
.article-slider-dot:hover::before { background: var(--cyan-dark); }
.article-slider-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .article-slider-dot::before { transition: none; } }

/* === FAQs Page (Accordion) === */
.faq-page { max-width: 960px; margin: 0 auto; padding-bottom: 48px; }
.faq-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.faq-hero h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(24px, 3vw, 32px); }
.faq-hero p { margin: 0 0 16px; color: var(--muted); }
.faq-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.faq-search {
  flex: 1;
  min-width: 220px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
}
.faq-cat-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-cat-pill {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.faq-cat-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.faq-groups { display: flex; flex-direction: column; gap: 22px; }
.faq-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-group-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--cyan-dark); }
.faq-q::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq-item[open] > .faq-q::before { rotate: 0deg; }
.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-item:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-q::before { transition: rotate 0.2s ease; }
  .faq-item::details-content {
    transition: block-size 0.26s ease-in-out, content-visibility 0.26s allow-discrete;
  }
}
.faq-a { padding: 0 4px 16px 26px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-a p { margin: 0 0 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-empty-filter {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}
.faq-cta-card {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.faq-cta-card h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.faq-cta-card p { margin: 0; color: #cbd5e1; max-width: 580px; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-cta-card .btn-outline { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); color: #fff; }

/* === Floating AI Chatbot === */
.ai-chat-launcher { position: fixed; right: 16px; bottom: 118px; z-index: 82; }
.ai-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(6, 22, 43, 0.3);
}
.ai-chat-fab:hover { background: var(--navy-deep); }
.ai-chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}
.ai-chat-panel[hidden] { display: none; }
.ai-chat-panel {
  position: fixed;
  right: 16px;
  bottom: 170px;
  width: min(390px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 190px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(6, 22, 43, 0.25);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat-head {
  background: var(--navy-deep);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ai-chat-head strong { display: block; font-size: 15px; line-height: 1.2; }
.ai-chat-head span { font-size: 12px; color: #93c5fd; }
.ai-chat-head-actions { display: flex; align-items: center; gap: 6px; }
.ai-chat-faq-link {
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  padding: 4px 8px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 8px;
}
.ai-chat-head-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.ai-msg { display: flex; flex-direction: column; max-width: 88%; }
.ai-msg-user { align-self: flex-end; }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-bot .ai-msg-bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ai-msg-bot .ai-msg-bubble a { color: var(--cyan-dark); font-weight: 600; text-decoration: underline; }
.ai-chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ai-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.ai-chip:hover { border-color: var(--cyan-dark); background: var(--surface-alt); }
.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-chat-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ai-chat-form input[type="text"]#ai-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}
.ai-chat-form button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--cyan-dark);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ai-chat-form button:disabled { opacity: 0.6; cursor: wait; }

/* === Editorial Article Components (TOC, Figure, Quotation, Inline FAQs, CTA Card) === */
.toc-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.toc-title { font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.toc-box ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc-box li { margin: 4px 0; }
.toc-box li.toc-sub { margin-left: 16px; font-size: 13px; color: var(--muted); }

.prose h2, .prose h3 { color: var(--navy); margin-top: 1.4em; line-height: 1.35; }
.prose figure.article-figure {
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.07);
}
.prose figure.article-figure img { width: 100%; height: auto; margin: 0; border-radius: 0; }
.prose figure.article-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  font-style: italic;
}

.prose blockquote.editorial-quote {
  position: relative;
  margin: 24px 0;
  padding: 20px 24px 18px 28px;
  border-left: 4px solid var(--cyan-dark);
  background: linear-gradient(135deg, #f8fbff, var(--surface-alt));
  border-radius: 0 14px 14px 0;
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.06);
}
.prose blockquote.editorial-quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 42px;
  line-height: 1;
  color: var(--cyan-dark);
  opacity: 0.28;
  font-family: Georgia, serif;
}
.prose blockquote.editorial-quote p {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.68;
  color: var(--navy);
}
.prose blockquote.editorial-quote .quote-author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.prose .faq-section {
  margin: 30px 0;
  padding: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prose .faq-section h2 { margin-top: 0; margin-bottom: 14px; color: var(--navy); }
.prose .faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
}
.prose .faq-section .faq-q { padding: 14px 2px; font-size: 15.5px; }
.prose .faq-section .faq-a { padding: 0 2px 14px 24px; }

.prose .article-cta-card {
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, #123c70 100%);
  color: #fff;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 16px 36px rgba(6, 22, 43, 0.22);
}
.prose .article-cta-card .cta-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.prose .article-cta-card h2,
.prose .article-cta-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 24px);
}
.prose .article-cta-card p { margin: 0 0 16px; color: #dbeafe; max-width: 64ch; }
.prose .article-cta-card .cta-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #7dd3fc;
  font-weight: 600;
}
.prose .article-cta-card .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prose .article-cta-card .cta-btn-hotline {
  background: var(--cyan-dark);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.prose .article-cta-card .cta-btn-hotline:hover { background: var(--cyan); color: #fff; }
.prose .article-cta-card .cta-btn-zalo {
  background: #0068ff;
  border: 1px solid #0068ff;
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.prose .article-cta-card .cta-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.prose .article-cta-card .cta-btn-outline:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.prose .figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.prose .figure-pair figure.article-figure { margin: 0; display: flex; flex-direction: column; }
.prose .figure-pair figure.article-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.prose .figure-pair figure.article-figure figcaption { flex: 1; }
.prose figure.article-figure.is-portrait img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 640px) {
  .prose .figure-pair { grid-template-columns: 1fr; }
  .prose .figure-pair figure.article-figure img { height: auto; max-height: 460px; }
  .prose .article-cta-card { padding: 20px 18px; }
  .prose .article-cta-card .cta-actions a { width: 100%; text-align: center; }
}
