:root{
  /* Neutrals */
  --bg: #1e4fb7;   /* brand blue */
  --bg-2: #163f99; /* darker brand blue */
  --text: #0b1220;
  --muted: #5b677a;
  --surface: #ffffff;
  --surface-2: #f2f7ff; /* brand-tinted section background */
  --border: rgba(15, 30, 55, 0.12);

  /* Brand */
  --brand-blue: #1e4fb7;
  --brand-blue-2: #4d7dff;
  --brand-red: #e31e2d;
  --brand-red-2: #ff5a67;

  /* On-dark text (header/hero/footer) */
  --onDark: #ffffff;
  --onDarkMuted: rgba(255,255,255,0.78);
  --onDarkFaint: rgba(255,255,255,0.62);

  /* Legacy tokens mapped to brand for backwards compatibility */
  --accent: var(--brand-red);
  --accent-2: var(--brand-red-2);

  --shadow: 0 10px 30px rgba(7, 27, 51, 0.12);
  --radius: 16px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
/* NOTE: Tránh đặt body height:100% vì có thể làm hỏng position:sticky khi trang dài */
html{ height: 100%; }
body{ min-height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #fff;
  background: var(--surface);
  line-height: 1.5;
}
html{ scroll-behavior: smooth; }
img{ max-width: 100%; height: auto; }
a{ color: inherit; text-underline-offset: 3px; }

/* Content links (keep header/footer untouched) */
main a:not(.btn){
  color: #ea2e3c;
}
main a:not(.btn):hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.skipLink{
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skipLink:focus{
  left: 12px;
}

/* Typography */
.h1{
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.h2{
  font-size: clamp(22px, 4.5vw, 34px);
  line-height: 1.15;
  margin: 0 0 10px;
}
.h3{
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.lead{
  font-size: 16px;
  color: var(--onDarkMuted);
  margin: 0 0 16px;
}
.lead--section{
  color: #fff;
  margin-top: 6px;
}
.muted{ color: #f1f7ff; }
.eyebrow{
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(72, 126, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 180px;
}
.brand__logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.brand__name{
  font-weight: 800;
  color: var(--onDark);
  letter-spacing: 0.2px;
}
.nav{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.nav::-webkit-scrollbar{ display: none; }
.nav__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: rgb(255, 255, 255);
}
.nav__link:hover{
  background: rgba(255,255,255,0.08);
  color: var(--onDark);
}
.nav__link:focus-visible{
  outline: 3px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}
.header__cta{ flex: 0 0 auto; }
.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Mobile nav drawer (slide-down) */
.navToggle{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: none; /* shown on mobile */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.navToggle:hover{ background: rgba(255,255,255,0.10); }
.navToggle__icon{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  position: relative;
  display: block;
}
.navToggle__icon::before,
.navToggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}
.navToggle__icon::before{ top: -6px; }
.navToggle__icon::after{ top: 6px; }

.navDrawer{
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.navDrawer__overlay{
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 51, 0.56);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .18s ease;
}
.navDrawer__panel{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: min(86vh, 720px);
  overflow: auto;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(77, 125, 255, 0.22), transparent 58%),
    radial-gradient(900px 520px at 92% 18%, rgba(227, 30, 45, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(30, 79, 183, 0.98), rgba(22, 63, 153, 0.98));
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 70px rgba(7, 27, 51, 0.35);
  border-radius: 0 0 22px 22px;
  padding: 14px 14px 16px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s cubic-bezier(.2,.8,.2,1);
  color: #fff;
}
.navDrawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.navDrawer__brand{
  font-weight: 900;
  letter-spacing: .2px;
}
.navDrawer__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.navDrawer__langs{
  display:flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  width: max-content;
  margin-bottom: 10px;
}
.navDrawer__lang{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.88);
}
.navDrawer__lang--active{
  background: linear-gradient(180deg, var(--brand-blue-2), var(--brand-blue));
  color: #fff;
}
.navDrawer__nav{
  display:grid;
  gap: 8px;
  margin: 10px 0 12px;
}
.navDrawer__nav .nav__link{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  justify-content: space-between;
}
.navDrawer__nav .nav__link:hover{
  background: rgba(255,255,255,0.10);
}
.navDrawer__cta{
  width: 100%;
}

html.menuOpen .navDrawer{
  pointer-events: auto;
  opacity: 1;
}
html.menuOpen .navDrawer__overlay{ opacity: 1; }
html.menuOpen .navDrawer__panel{
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px){
  .brand{ min-width: 0; }
  .brand__name{ font-size: 14px; }
  .nav{ display: none; }
  .langMenu{ display: none; }
  .header__cta{ display: none; } /* CTA nằm trong drawer */
  .navToggle{ display: inline-flex; }
}
.langSwitch{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}
.langSwitch__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.86);
}
.langSwitch__link:hover{
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.langSwitch__link--active{
  background: linear-gradient(180deg, var(--brand-blue-2), var(--brand-blue));
  color: #fff;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
.btn:focus-visible{
  outline: 3px solid rgba(255,255,255,0.38);
  outline-offset: 2px;
}
.btn--primary{
  background: linear-gradient(180deg, var(--brand-red-2), var(--brand-red));
  color: #fff;
  box-shadow: 0 14px 28px rgba(227, 30, 45, 0.22);
}
.btn--primary:hover{ filter: brightness(0.98); }
.btn--primary:active{ transform: translateY(1px); }
.btn--ghost{
  background: transparent;
  border-color: rgba(77, 125, 255, 0.55);
  color: rgba(255,255,255,0.92);
}
.btn--ghost:hover{ background: rgba(77, 125, 255, 0.10); }
.btn--block{ width: 100%; }

/* Hero */
.hero{
  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(77, 125, 255, 0.22), transparent 58%),
    radial-gradient(900px 520px at 92% 18%, rgba(227, 30, 45, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: #fff;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.hero__copy{ padding: 10px 0; }
.bullets{
  margin: 0 0 18px;
  padding-left: 18px;
  color: rgba(255,255,255,0.86);
}
.bullets li{ margin: 8px 0; }
.ctaRow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}
.quickContact{
  margin: 10px 0 0;
  color: var(--onDarkFaint);
}
.quickContact a{ color: rgba(255,255,255,0.92); }

.mediaBox{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  min-height: 220px;
  padding: 16px;
}
.mediaBox__title{
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}
.mediaBox__hint{ color: rgba(255,255,255,0.68); font-size: 14px; }

/* Sections */
.section{ padding: 48px 0; }
.section:nth-child(even){ background: var(--surface-2); }
.section__header{ margin-bottom: 18px; }
.section .eyebrow{ color: rgba(7, 27, 51, 0.72); }
.section .eyebrow::before{
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-red);
  margin-right: 8px;
  translate: 0 1px;
}

/* Layout helpers */
.grid{ display: grid; gap: 14px; }
.grid--2{ grid-template-columns: 1fr; }
.grid--cards{ grid-template-columns: 1fr; }

/* Cards */
.card{
  background: #1a4ebc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.card:hover{
  border-color: rgba(30, 79, 183, 0.22);
  box-shadow: 0 14px 40px rgba(7, 27, 51, 0.12);
  transform: translateY(-1px);
}
.card__k{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  margin-bottom: 8px;
}
.card__v{ font-size: 16px; font-weight: 750; }
.card--highlight{
  border-color: rgba(77, 125, 255, 0.38);
  box-shadow: 0 14px 34px rgba(77, 125, 255, 0.16);
}
.card--soft{
  background: linear-gradient(180deg, rgba(77, 125, 255, 0.10), rgba(77, 125, 255, 0.03));
  border-color: rgba(77, 125, 255, 0.22);
}

.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 8px 0; }

.mapBox{
  border-radius: var(--radius);
  border: 1px dashed rgba(7, 27, 51, 0.26);
  background: repeating-linear-gradient(
    135deg,
    rgba(7, 27, 51, 0.03),
    rgba(7, 27, 51, 0.03) 12px,
    rgba(7, 27, 51, 0.06) 12px,
    rgba(7, 27, 51, 0.06) 24px
  );
  min-height: 260px;
  padding: 16px;
}
.mapBox__title{
  font-weight: 800;
  margin-bottom: 6px;
}
.mapBox__hint{ color: var(--muted); font-size: 14px; }

.iconDot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(227, 30, 45, 0.16);
  margin-bottom: 10px;
}

/* Steps */
.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.step{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  background: #305dbd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.step__n{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgb(31, 101, 255);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
}

/* Form */
.form{
  background: #315fbf;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.field{ margin-bottom: 12px; }
.field label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(7, 27, 51, 0.18);
  background: #fff;
  font: inherit;
}
input:focus, select:focus, textarea:focus{
  outline: 3px solid rgba(77, 125, 255, 0.28);
  border-color: rgba(77, 125, 255, 0.65);
}
.form__note{ margin-top: 12px; font-size: 13px; }
.aside{ display: grid; align-content: start; }

/* Honeypot */
.hp-field{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */
.faq{
  display: grid;
  gap: 10px;
}
.faq__item{
  background: #3464cb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.faq__item > summary:focus-visible{
  outline: 3px solid rgba(77, 125, 255, 0.22);
  outline-offset: 3px;
  border-radius: 12px;
}
.faq__item > summary{
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker{ display: none; }
.faq__item > summary::after{
  content: "+";
  float: right;
  color: rgba(7, 27, 51, 0.7);
}
.faq__item[open] > summary::after{ content: "–"; }
.faq__content{ padding-top: 10px; }

/* Footer */
.footer{
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--onDarkMuted);
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner{
  display: grid;
  gap: 14px;
}
.footer__brandRow{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo{
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.footer__name{ color: #fff; letter-spacing: 0.2px; }
.footer .muted{ color: var(--onDarkFaint); }

/* Responsive */
@media (min-width: 768px){
  .container{ padding: 0 22px; }
  .hero{ padding: 56px 0 44px; }
  .hero__inner{ grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
  .grid--2{ grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid--cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section{ padding: 64px 0; }
  .footer__inner{ grid-template-columns: 1.2fr 1fr 1.4fr; }
}

@media (max-width: 420px){
  .brand{ min-width: 0; }
  .brand__name{ font-size: 14px; }
  .brand__logo{ width: 32px; height: 32px; }
}

/* Language dropdown (header) */
.langMenu{
  position: relative;
}
.langMenu__trigger{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.langMenu__trigger::-webkit-details-marker{ display: none; }
.langMenu__trigger:hover{ background: rgba(255,255,255,0.12); }
.langMenu__trigger:focus-visible{
  outline: 3px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

.langMenu__panel{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 30, 55, 0.12);
  box-shadow: 0 18px 50px rgba(7, 27, 51, 0.18);
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.langMenu[open] .langMenu__panel{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.langMenu__item{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(7, 27, 51, 0.92);
}
.langMenu__item:hover{ background: rgba(77, 125, 255, 0.12); }
.langMenu__item:focus-visible{
  outline: 3px solid rgba(77, 125, 255, 0.25);
  outline-offset: 2px;
}
.langMenu__item--active{
  background: linear-gradient(180deg, rgba(77, 125, 255, 0.22), rgba(77, 125, 255, 0.08));
  color: rgba(7, 27, 51, 0.95);
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .btn, .card, .langMenu__panel{ transition: none !important; }
}

/* Scroll reveal (fade-up) */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .42s cubic-bezier(.2,.8,.2,1), transform .42s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* CMS Image Blocks (public render) */
.cms-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(15, 30, 55, 0.12);
  box-shadow: 0 18px 50px rgba(7, 27, 51, 0.12);
  background: #fff;
}
.cms-caption{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  display: none;
}
.cms-heroMedia{ margin: 0; }
.cms-map{ margin: 0; }
.cms-gallery{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cms-gallery figure{ margin: 0; }
.cms-grid2{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cms-grid2 figure{ margin: 0; }
@media (max-width: 900px){
  .cms-gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .cms-gallery{ grid-template-columns: 1fr; }
  .cms-grid2{ grid-template-columns: 1fr; }
}

/* CMS Section Background (image + overlay) */
.cmsSection{
  position: relative;
  padding: 26px 0;
  isolation: isolate;
}
.cmsSection::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cms-bg);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.05);
  transform: scale(1.05);
  opacity: 0.55;
}
.cmsSection::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(7, 27, 51, var(--cms-ov, 0.55));
}
.cmsSection__inner{
  position: relative;
  z-index: 1;
}
.cmsCardWrap{
  background: rgb(48, 93, 189);
  border: 1px solid rgba(7, 27, 51, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(7, 27, 51, 0.12);
  backdrop-filter: blur(10px);
}
@media (max-width: 560px){
  .cmsSection{ padding: 18px 0; }
  .cmsCardWrap{ border-radius: 18px; padding: 14px; }
}

/* Support Dock (floating + mobile bar + chat modal) */
.supportFloat{
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 60;
}
.supportBtn{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(7, 27, 51, 0.18);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: rgba(7, 27, 51, 0.95);
  cursor: pointer;
}
.supportBtn svg{ width: 22px; height: 22px; }
.supportBtn:hover{ filter: brightness(0.99); }

.supportBtn[data-tooltip]{ position: relative; }
.supportBtn[data-tooltip]::after{
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  background: rgba(7, 27, 51, 0.92);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .15s ease, transform .15s ease;
}
.supportBtn[data-tooltip]:hover::after,
.supportBtn[data-tooltip]:focus-visible::after{
  opacity: 1;
  transform: translateX(0);
}

.supportBar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(7, 27, 51, 0.12);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.supportBar__item{
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 6px;
  text-decoration: none;
  color: rgba(7, 27, 51, 0.92);
  border-radius: 14px;
  cursor: pointer;
}
.supportBar__item:hover{ background: rgba(7, 27, 51, 0.06); }
.supportBar__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(7, 27, 51, 0.06);
  border: 1px solid rgba(7, 27, 51, 0.10);
}
.supportBar__icon svg{ width: 18px; height: 18px; }
.supportBar__label{ font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.supportBar__item--primary .supportBar__icon{
  background: linear-gradient(180deg, var(--brand-red-2), var(--brand-red));
  border-color: rgba(227, 30, 45, 0.55);
}

.supportChatToggle{ position:absolute; left:-9999px; }
.supportChat{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.supportChat__overlay{
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 51, 0.55);
}
.supportChat__panel{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  height: min(560px, calc(100% - 24px));
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(7, 27, 51, 0.14);
  box-shadow: 0 18px 60px rgba(7, 27, 51, 0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.supportChat__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(30, 79, 183, 0.98), rgba(22, 63, 153, 0.98));
  color: #fff;
}
.supportChat__title{ font-weight: 900; }
.supportChat__close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  user-select: none;
}
.supportChat__iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Toggle open */
#supportChatToggle:checked ~ .supportChat{
  display: block;
}

/* Mobile behavior */
@media (max-width: 767px){
  .supportFloat{ display: none; }
  .supportBar{ display: grid; }
  .supportChat__panel{
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom)); /* tránh đè lên bottom bar */
    height: min(560px, calc(100% - 100px));
  }
}

/* Lightbox */
/* Lightbox (fixed center) */
.lb{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.lb--open{ display: block; }

.lb__overlay{
  position: absolute;
  inset: 0;
  background: rgba(7,27,51,0.72);
  backdrop-filter: blur(4px);
}

.lb__panel{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;         /* luôn giữa màn hình */
  padding: 18px;
}

.lb__box{
  position: relative;          /* để nút X bám theo ảnh */
  max-width: min(1100px, 96vw);
  max-height: 86vh;
}

.lb__img{
  display: block;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 110px rgba(0,0,0,0.45);
  background: #fff;
}

.lb__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb__close:hover{ background: rgba(0,0,0,0.6); }

html.lbOpen, body.lbOpen{ overflow: hidden; }

.footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer__col{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px 14px;
}

.footer__h{
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 5px;
}

.footer__text{ font-size: 13px; line-height: 1.55; }

.footer__actions{ margin-top: 1px; display:flex; gap: 10px; flex-wrap: wrap; }

.footer__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(7,27,51,0.95);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 900;
}

.footer__link{
  display: inline-flex;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

.footer__bottom{
  padding-top: 12px;
  padding-bottom: 18px;
}

@media (max-width: 860px){
  .footer__grid{ grid-template-columns: 1fr; }
}