/* =========================================================
   VSI Education — giao diện website · Glass UI kiểu iPhone
   Màu lấy từ logo VSI: navy #003A63, vàng cam #F4A814
   - Nền là "hình nền" sáng với các quầng màu trôi rất chậm; bề mặt là kính trong.
   - Viền kính mảnh như sợi tóc (0,5px trên màn hình nét), sáng ở góc như kính thật,
     không dùng khung trắng dày quanh ảnh.
   - Chuyển động: hiện dần khi cuộn, nhấn nảy kiểu lò xo, menu trượt, đổi trang mượt.
   - Người dùng bật "giảm chuyển động" hoặc "giảm trong suốt", hoặc trình duyệt cũ
     không có kính mờ: tắt hiệu ứng, dùng nền đặc (xem cuối file).
   ========================================================= */

/* Biến dùng cho vệt sáng theo con trỏ trên thẻ kính (main.js cập nhật) */
@property --mx { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }
@property --lo { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --navy: #003a63;
  --navy-900: #00243f;
  --navy-700: #0b4f82;
  --navy-100: #e6eef5;
  --amber: #f4a814;
  --amber-600: #d98e00;
  --amber-ink: #8a5a00;          /* chữ nhỏ tông vàng: đạt tương phản AA trên nền sáng */
  --amber-100: #fff1d1;
  --cream: #fff8ea;
  --paper: #eef3f8;               /* nền chờ ảnh tải */
  --ink: #14212d;
  --muted: #51606e;
  --line: rgba(0, 58, 99, .12);
  --line-soft: rgba(0, 58, 99, .07);
  --white: #ffffff;
  --green: #1f8a5b;
  --green-100: #e3f4ea;
  --red: #b93a26;
  --red-100: #fbe6e1;
  --sun: #ffc83d;

  /* Kính: rất trong, làm mờ mạnh, viền mảnh */
  --hair: 1px;                    /* 0,5px trên màn hình nét (xem ngay dưới) */
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .55);
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .28) 100%);
  --glass-fill-hover: linear-gradient(150deg, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .42) 100%);
  --glass-blur: blur(26px) saturate(1.8);
  --glass-blur-sm: blur(14px) saturate(1.6);
  --glass-shadow: 0 1px 1px rgba(10, 37, 64, .03), 0 12px 32px -12px rgba(10, 37, 64, .16);
  --glass-shadow-hover: 0 2px 4px rgba(10, 37, 64, .04), 0 28px 54px -18px rgba(10, 37, 64, .26);
  --glass-shadow-lg: 0 2px 6px rgba(10, 37, 64, .04), 0 36px 72px -26px rgba(10, 37, 64, .32);
  --glass-dark: rgba(8, 24, 40, .4);
  --glass-dark-border: rgba(255, 255, 255, .16);
  /* Viền sáng của kính: sáng nhất ở góc trên trái, mờ dần dọc cạnh, ánh lại ở góc dưới phải */
  --rim: linear-gradient(150deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .34) 16%, rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, .08) 62%, rgba(255, 255, 255, .3) 86%, rgba(255, 255, 255, .7) 100%);
  --rim-dark: linear-gradient(150deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .12) 20%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, .08) 80%, rgba(255, 255, 255, .28) 100%);
  --rim-photo: linear-gradient(150deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .12) 26%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .22) 100%);
  --grad-navy: linear-gradient(135deg, #0b4f82 0%, #003a63 55%, #00243f 100%);
  --grad-amber: linear-gradient(180deg, #ffc43f 0%, #f4a814 100%);

  /* Nhịp chuyển động */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.42, .64, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .05), 0 10px 24px -12px rgba(10, 37, 64, .2);
  --shadow: 0 2px 6px rgba(10, 37, 64, .05), 0 18px 40px -16px rgba(10, 37, 64, .22);
  --shadow-lg: 0 30px 70px -26px rgba(10, 37, 64, .34);

  --container: 1200px;
  --gutter: clamp(20px, 4.4vw, 40px);
  --edge: clamp(8px, 1.6vw, 20px);   /* lề của các khối nổi: header, hero, dải navy */
  --section-y: clamp(56px, 7.2vw, 104px);
  --header-h: 64px;
  --header-gap: 12px;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-resolution: 2dppx) { :root { --hair: .5px; } }
@media (max-width: 560px) { :root { --header-h: 58px; --header-gap: 8px; } }

/* ---------- Reset & nền ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 16px);
  background: #eef3f9; overflow-x: clip;
}
html:has(.anchor-nav) { scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 84px); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(244, 168, 20, .3); color: var(--navy-900); }
/* Hình nền: lớp tĩnh phía sau + lớp quầng màu trôi rất chậm (chỉ trên máy tính) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70vmax 56vmax at -6% -10%, rgba(132, 194, 255, .55), transparent 62%),
    radial-gradient(60vmax 50vmax at 106% -6%, rgba(255, 206, 122, .5), transparent 60%),
    radial-gradient(62vmax 56vmax at 106% 106%, rgba(160, 182, 255, .36), transparent 62%),
    radial-gradient(66vmax 56vmax at -6% 106%, rgba(140, 228, 206, .42), transparent 62%),
    linear-gradient(180deg, #f1f6fc 0%, #f8f5ef 100%);
}
body::after {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 26vmax at 34% 38%, rgba(255, 190, 92, .26), transparent 70%),
    radial-gradient(circle 30vmax at 68% 58%, rgba(112, 172, 255, .24), transparent 70%),
    radial-gradient(circle 22vmax at 52% 80%, rgba(186, 160, 255, .14), transparent 70%);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; color: var(--navy-900); letter-spacing: -.018em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.4vw + .6rem, 4.1rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 2.4vw + .75rem, 2.75rem); line-height: 1.12; letter-spacing: -.028em; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
blockquote, li, figcaption, dd { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; border-radius: 6px; }
.section--navy :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .card--navy :focus-visible { outline-color: var(--amber); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5.5vw, 72px); }
/* Dải nền nhẹ, mờ dần ở hai mép để không thành "hộp" */
.section--paper { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .42) 14%, rgba(255, 255, 255, .42) 86%, rgba(255, 255, 255, 0) 100%); }
.section--cream { background: linear-gradient(180deg, rgba(255, 232, 180, 0) 0%, rgba(255, 232, 180, .3) 14%, rgba(255, 236, 196, .26) 86%, rgba(255, 236, 196, 0) 100%); }
.section--navy {
  position: relative; margin-inline: var(--edge); border-radius: clamp(28px, 3.4vw, 48px); overflow: hidden;
  color: #d3e0ec;
  background:
    radial-gradient(circle 560px at 88% -4%, rgba(244, 168, 20, .26), transparent 70%),
    radial-gradient(circle 680px at -4% 104%, rgba(90, 170, 255, .26), transparent 70%),
    radial-gradient(circle 420px at 50% 120%, rgba(110, 220, 200, .12), transparent 70%),
    linear-gradient(150deg, #04416e 0%, #00284a 58%, #001b31 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 36, 63, .5);
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a:not(.btn) { color: #ffd479; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5.5vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }

/* ---------- Tiêu đề / nhãn ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 6px 14px 6px 11px; border-radius: 999px; margin-bottom: 1.1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
  color: var(--navy-700); width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, .46); border: var(--hair) solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 6px 18px -10px rgba(10, 37, 64, .2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 0 3px rgba(244, 168, 20, .2), 0 0 10px rgba(244, 168, 20, .65); }
.section--navy .eyebrow, .page-hero .eyebrow, .card--navy .eyebrow { color: #ffd479; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.section-head { max-width: 740px; margin-bottom: clamp(32px, 4.6vw, 56px); }
.section-head.center { margin-inline: auto; }
.lead { font-size: clamp(1.06rem, .55vw + .96rem, 1.22rem); line-height: 1.65; color: var(--muted); }
.section--navy .lead { color: #bccddc; }
.hl { background: linear-gradient(transparent 62%, rgba(244, 168, 20, .42) 62%); padding: 0 .08em; }

/* ---------- Nút ----------
   Nhấn: thu nhỏ nhẹ rồi nảy lại như lò xo. Nút vàng và navy có vệt sáng lướt qua khi rê chuột. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .72em 1.4em; border-radius: 999px; border: var(--hair) solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease-spring), background-color .3s ease, box-shadow .35s var(--ease-out), color .2s ease, border-color .3s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn-primary::after, .btn-navy::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .5) 46%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-130%); transition: transform .9s var(--ease-out);
}
.btn-primary { background: var(--grad-amber); color: var(--navy-900); border-color: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(150, 90, 0, .16), 0 10px 24px -10px rgba(244, 168, 20, .7); }
.btn-primary:hover { color: var(--navy-900); background: linear-gradient(180deg, #ffcb56 0%, #f7b021 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 4px rgba(150, 90, 0, .16), 0 16px 32px -12px rgba(244, 168, 20, .8); }
.btn-navy { background: var(--grad-navy); color: #fff; border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px -12px rgba(0, 36, 63, .6); }
.btn-navy:hover { color: #fff; background: linear-gradient(135deg, #1563a6 0%, #0b4f82 55%, #003a63 100%); }
.btn-outline {
  background-color: rgba(255, 255, 255, .44); color: var(--navy); border-color: rgba(0, 58, 99, .14);
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 8px 20px -12px rgba(10, 37, 64, .24);
}
.btn-outline:hover { background-color: rgba(255, 255, 255, .78); color: var(--navy-900); border-color: rgba(0, 58, 99, .24); }
.btn-light { background-color: rgba(255, 255, 255, .78); color: var(--navy-900); border-color: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 10px 22px -12px rgba(10, 37, 64, .3); }
.btn-light:hover { background-color: #fff; color: var(--navy); }
/* Nút viền và nút sáng trên nền tối: kính trong, chữ trắng */
.section--navy .btn-outline, .on-dark .btn-outline, .btn-outline.on-dark, .page-hero .btn-outline, .page-hero .btn-light, .card--navy .btn-outline {
  background-color: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px -12px rgba(0, 10, 20, .55);
}
.section--navy .btn-outline:hover, .on-dark .btn-outline:hover, .btn-outline.on-dark:hover, .page-hero .btn-outline:hover, .page-hero .btn-light:hover, .card--navy .btn-outline:hover { background-color: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: .92rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline; font-weight: 600; text-decoration: none; color: var(--navy-700); }
.link-arrow svg { display: inline-block; width: 1.1em; height: 1.1em; margin-left: .38em; vertical-align: -.2em; transition: transform .45s var(--ease-spring); }
.link-arrow:hover svg, a.card:hover .link-arrow svg { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.96); }
  .btn-primary:hover::after, .btn-navy:hover::after { transform: translateX(130%); }
}

/* ---------- Biểu tượng ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex: none;
  background: linear-gradient(140deg, rgba(255, 247, 224, .95), rgba(255, 216, 132, .88)); color: var(--navy);
  border: var(--hair) solid rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 18px -10px rgba(217, 142, 0, .55);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--navy { background: var(--grad-navy); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px -10px rgba(0, 36, 63, .6); }
.icon-badge--center { margin-inline: auto; }

/* ---------- Thanh trên cùng: chữ nhỏ trên nền trong, không phải dải tối ---------- */
.topbar { background: transparent; color: var(--muted); font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: var(--navy-700); text-decoration: none; }
.topbar a:hover { color: var(--amber-ink); }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-info span, .topbar-info a, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: var(--navy-700); }
@media (max-width: 860px) { .topbar-info .hide-sm { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* ---------- Header kính nổi ----------
   Lớp kính vẽ bằng .header-inner::before chứ không đặt trên tổ tiên của .nav:
   backdrop-filter (hoặc transform) trên tổ tiên sẽ biến menu điện thoại (position: fixed)
   thành phần tử định vị theo header và làm tràn ngang trang.
   Cuộn xuống thì header thu lên cho thoáng, cuộn lên thì hiện lại (main.js, đổi "top"). */
.site-header { position: sticky; top: 0; z-index: 100; padding: var(--header-gap) var(--edge) 0; pointer-events: none; transition: top .55s var(--ease-out); }
.site-header.is-hidden { top: calc(-1 * (var(--header-h) + var(--header-gap) + 28px)); }
.site-header > * { pointer-events: auto; }
.site-header .header-inner { max-width: 1360px; padding-inline: clamp(14px, 1.6vw, 22px) 10px; }
.header-inner { position: relative; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); border-radius: 22px; }
.header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .38));
  -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: 0 1px 1px rgba(10, 37, 64, .03), 0 12px 34px -16px rgba(10, 37, 64, .22);
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled .header-inner::before { background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .54)); box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 18px 40px -18px rgba(10, 37, 64, .3); }
.brand { display: inline-flex; align-items: center; flex: none; transition: transform .5s var(--ease-spring); }
.brand:active { transform: scale(.96); }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; position: relative; }
.nav-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 999px;
  font-weight: 500; font-size: .93rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.nav-list a:hover { background-color: rgba(255, 255, 255, .62); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--navy); background-color: rgba(255, 255, 255, .58); font-weight: 600; }
.nav-badge { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--grad-amber); color: var(--navy-900); padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px -2px rgba(244, 168, 20, .7); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: var(--hair) solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .5); box-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 6px 14px -6px rgba(10, 37, 64, .22);
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy-900);
  transition: transform .45s var(--ease-spring), background-color .2s ease;
}
.nav-toggle:active { transform: scale(.9); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-drawer-head, .nav-drawer-foot { display: none; }
.has-sub { position: relative; }
.has-sub > a .caret { width: 14px; height: 14px; transform: rotate(90deg); opacity: .55; transition: transform .45s var(--ease-spring); }
.has-sub:hover > a .caret, .has-sub:focus-within > a .caret { transform: rotate(270deg); }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub-nav {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 12px); left: -8px; min-width: 320px; z-index: 100;
  background: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .62)); border-radius: 22px;
  -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: var(--glass-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96); transform-origin: 28px 0;
  transition: opacity .22s ease, transform .45s var(--ease-spring), visibility .22s;
}
.has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-nav a { display: flex; gap: 12px; padding: 10px 12px; font-size: .93rem; border-radius: 14px; }
.nav-list .sub-nav a:hover { background-color: rgba(255, 255, 255, .72); }
.sub-nav .icon { width: 18px; height: 18px; color: var(--navy-700); flex: none; }
.sub-nav .nav-badge { display: inline-block; }
.nav-list .sub-all a { justify-content: space-between; color: var(--amber-ink); font-weight: 600; border-top: var(--hair) solid var(--line); border-radius: 0 0 14px 14px; margin-top: 4px; padding-top: 12px; }
.sub-all .icon { width: 16px; height: 16px; color: var(--amber-ink); }
/* Viên kính trượt theo mục đang rê chuột (máy tính) */
.nav-pill { display: none; }
@media (min-width: 1240px) {
  .nav.has-pill .nav-list > li > a, .nav.has-pill .nav-list > li > a:hover, .nav.has-pill .nav-list > li > a[aria-current="page"] { background-color: transparent; }
  .nav-pill {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none;
    background: rgba(255, 255, 255, .66); border: var(--hair) solid rgba(255, 255, 255, .9);
    box-shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 18px -8px rgba(10, 37, 64, .22);
    opacity: 0; transition: transform .55s var(--ease-spring), width .55s var(--ease-spring), height .55s var(--ease-spring), opacity .25s ease;
  }
  .nav-pill.is-on { opacity: 1; }
}
@media (max-width: 1439px) {
  .nav-list a { padding: 9px 8px; font-size: .88rem; }
  .nav-badge { display: none; }
}
/* Menu điện thoại: ngăn kéo kính trượt vào, các mục hiện lần lượt */
@media (max-width: 1239px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; top: var(--header-gap); right: var(--header-gap); bottom: var(--header-gap); left: auto; z-index: 120;
    width: min(380px, calc(100% - 2 * var(--header-gap))); margin: 0;
    display: flex; flex-direction: column; overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .64)); border-radius: 28px;
    -webkit-backdrop-filter: blur(32px) saturate(1.9); backdrop-filter: blur(32px) saturate(1.9);
    box-shadow: var(--glass-shadow-lg);
    transform: translateX(calc(100% + 2 * var(--header-gap) + 16px)); visibility: hidden;
    transition: transform .6s var(--ease-sheet), visibility .6s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: var(--hair) solid var(--line-soft); }
  .nav-drawer-head img { height: 36px; width: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 12px; overflow-y: auto; flex: 1; }
  .nav-list a { padding: 13px 14px; font-size: 1.05rem; border-radius: 16px; justify-content: space-between; }
  .nav-list a[aria-current="page"] { background-color: rgba(255, 255, 255, .7); }
  .nav-badge { display: inline-block; }
  .nav-drawer-foot { display: grid; gap: 10px; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); margin-top: auto; border-top: var(--hair) solid var(--line-soft); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(8, 22, 36, .22); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .has-sub::after, .has-sub > a .caret, .sub-nav::after { display: none; }
  .sub-nav {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0; margin: 0 0 8px 16px;
    background: none; border: 0; border-left: var(--hair) solid var(--line); border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-list .sub-nav a { font-size: .95rem; padding: 9px 12px; white-space: normal; justify-content: flex-start; font-weight: 500; }
  .nav-list .sub-all a { justify-content: space-between; }
  .nav.is-open .nav-list > li, .nav.is-open .nav-drawer-foot { animation: drawer-in .6s var(--ease-out) backwards; }
  .nav.is-open .nav-list > li:nth-child(1) { animation-delay: .08s; }
  .nav.is-open .nav-list > li:nth-child(2) { animation-delay: .12s; }
  .nav.is-open .nav-list > li:nth-child(3) { animation-delay: .16s; }
  .nav.is-open .nav-list > li:nth-child(4) { animation-delay: .2s; }
  .nav.is-open .nav-list > li:nth-child(5) { animation-delay: .24s; }
  .nav.is-open .nav-list > li:nth-child(6) { animation-delay: .28s; }
  .nav.is-open .nav-list > li:nth-child(7) { animation-delay: .32s; }
  .nav.is-open .nav-drawer-foot { animation-delay: .36s; }
}
@media (max-width: 560px) { .brand img { height: 34px; } }

/* ---------- Hero trang chủ ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 96px) clamp(40px, 5vw, 84px); }
.hero::before { content: ""; position: absolute; width: min(820px, 100vw); aspect-ratio: 1; right: -16%; top: -26%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 80, .38), transparent 64%); pointer-events: none; }
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-place {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; border-radius: 999px; margin-bottom: 22px;
  font-size: .9rem; font-weight: 500; color: var(--navy); text-decoration: none;
  background-color: rgba(255, 255, 255, .44); border: var(--hair) solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 8px 20px -12px rgba(10, 37, 64, .24);
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm);
  transition: background-color .3s ease, transform .5s var(--ease-spring);
}
.hero-place:hover { background-color: rgba(255, 255, 255, .74); color: var(--navy-900); transform: translateY(-1px); }
.hero-place .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-amber); display: grid; place-items: center; color: var(--navy-900); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 10px -4px rgba(244, 168, 20, .8); }
.hero-place .dot .icon { width: 15px; height: 15px; }
.hero-place { text-wrap: balance; }
@media (max-width: 420px) { .hero-place { font-size: .82rem; gap: 8px; padding: 4px 13px 4px 4px; } .hero-place .dot { width: 26px; height: 26px; } }
.hero h1 { margin-bottom: .3em; }
.hero h1 .accent { display: block; color: #9a5d00; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent { background: linear-gradient(100deg, #8a5200 0%, #b26c00 55%, #bf7a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-steps { list-style: none; margin: 22px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-steps li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 600; color: var(--navy-900);
  background: rgba(255, 255, 255, .42); border: var(--hair) solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 8px 20px -14px rgba(10, 37, 64, .26);
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm);
}
.hero-steps li .icon { width: 18px; height: 18px; color: var(--amber-600); }
.hero .lead { max-width: 540px; color: #3b4a58; }
.hero-sub-cta { margin-top: 20px; font-size: .97rem; }
.hero-collage { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.hero-collage figure {
  margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(10, 37, 64, .06), 0 32px 64px -30px rgba(10, 37, 64, .45);
}
.hero-collage img, .hero-collage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.hero-collage figure:hover img { transform: scale(1.04); }
.hero-collage .c1 { grid-row: span 2; min-height: 100%; }
.hero-collage .c2 { aspect-ratio: 4 / 3.1; }
.hero-collage .c3 { aspect-ratio: 4 / 3.1; }
.hero-collage figure::after { content: ""; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(0, 20, 36, .5)); pointer-events: none; }
@media (max-width: 560px) { .hero-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .hero-collage .c1 { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 11; min-height: 0; } }
/* Nhãn kính trên ảnh */
.photo-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; width: fit-content; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px;
  color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  background: var(--glass-dark); border: var(--hair) solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .45);
}
.photo-tag b { display: inline-block; background: var(--grad-amber); color: var(--navy-900); font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none; text-shadow: none; }
.hero-collage .c2 .photo-tag, .hero-collage .c3 .photo-tag { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
@media (max-width: 560px) { .hero-collage .c2 .photo-tag, .hero-collage .c3 .photo-tag { font-size: 0; gap: 0; padding: 5px; } .hero-collage .c2 .photo-tag b, .hero-collage .c3 .photo-tag b { font-size: .74rem; } }
/* Huy hiệu đánh giá nổi */
.hero-badge {
  position: absolute; left: -24px; top: 9%; z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 20px;
  color: var(--ink); text-decoration: none; line-height: 1.2;
  background: linear-gradient(140deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .46));
  -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
  box-shadow: var(--glass-shadow-lg);
  transition: scale .5s var(--ease-spring);
}
.hero-badge:hover { scale: 1.04; color: var(--ink); }
.hero-badge b { font-size: 1.75rem; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-badge .stars { display: flex; gap: 1px; color: var(--amber); margin-bottom: 3px; }
.hero-badge .stars .icon { width: 14px; height: 14px; }
.hero-badge small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
@media (max-width: 960px) { .hero-badge { left: 14px; top: 14px; padding: 8px 12px; } .hero-badge b { font-size: 1.4rem; } }

/* ---------- Hero trang con ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #d6e2ec;
  margin: 12px var(--edge) 0; border-radius: clamp(26px, 3.4vw, 44px);
  background: var(--navy-900); box-shadow: 0 34px 80px -36px rgba(0, 36, 63, .55);
}
.page-hero .container { position: relative; padding-block: clamp(36px, 6.5vw, 100px); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 28, 50, .74) 0%, rgba(0, 28, 50, .4) 52%, rgba(0, 28, 50, .1) 100%); }
.hero-glass {
  position: relative; max-width: 780px; padding: clamp(24px, 3.6vw, 44px); border-radius: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(140deg, rgba(4, 30, 52, .48), rgba(4, 30, 52, .22));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 30px 60px -30px rgba(0, 10, 20, .6);
  text-shadow: 0 1px 14px rgba(0, 16, 30, .3);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3vw + .7rem, 3.3rem); }
.page-hero .lead { color: #cddbe7; max-width: 680px; }
.page-hero .hero-glass > :last-child { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 26px; }
.page-hero .btn { text-shadow: none; }
.page-hero--sun { background: #2b1d00; }
.page-hero--sun .page-hero-bg::after { background: linear-gradient(100deg, rgba(58, 38, 0, .78) 0%, rgba(58, 38, 0, .44) 52%, rgba(58, 38, 0, .12) 100%); }
.page-hero--sun .hero-glass { background: linear-gradient(140deg, rgba(62, 40, 0, .5), rgba(62, 40, 0, .24)); }
.page-hero--sun .breadcrumb { background: rgba(62, 40, 0, .36); }
.breadcrumb { font-size: .86rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb a { color: var(--navy-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .7; }
.page-hero .breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; padding: 6px 15px; border-radius: 999px; color: #c9d8e6;
  background: rgba(4, 30, 52, .34); border: var(--hair) solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.page-hero .breadcrumb a { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; padding: 0; list-style: none; font-weight: 500; color: #fff; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--amber); }
@media (max-width: 560px) { .page-hero { margin-top: 8px; } .page-hero .breadcrumb { border-radius: 16px; } .hero-glass { padding: 20px 18px; } .page-hero h1 { font-size: 1.8rem; } .hero-facts { gap: 8px 16px; font-size: .95rem; } }

/* ---------- Thẻ kính ----------
   Ảnh tràn sát mép thẻ (không còn khung trắng). Viền là một sợi sáng mảnh (xem phần "Viền kính"). */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: var(--glass-fill); border: 0; border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform .6s var(--ease-spring), box-shadow .5s var(--ease-out), --mx .2s linear, --my .2s linear, --lo .5s ease;
}
a.card, .card--link { text-decoration: none; color: inherit; }
a.card:active, .card--link:active { transform: translateY(-2px) scale(.985); transition-duration: .15s; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); margin: 0; border-radius: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-ink); }
.card--flat { box-shadow: none; }
.card--pad { padding: 28px; gap: 12px; }
.card--navy {
  justify-content: center; color: #d6e2ec;
  background:
    radial-gradient(circle 280px at 100% 0%, rgba(244, 168, 20, .26), transparent 70%),
    var(--grad-navy);
  box-shadow: 0 26px 54px -26px rgba(0, 36, 63, .6);
}
.card--navy h3 { color: #fff; }
.card--navy p { color: #c7d6e3; }
.glass-panel { position: relative; background: var(--glass-fill); border-radius: var(--radius-lg); box-shadow: var(--glass-shadow-lg); padding: clamp(26px, 4vw, 52px); }
.narrow { max-width: 720px; margin-inline: auto; }
@media (hover: hover) {
  a.card:hover, .card--link:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow-hover); background: var(--glass-fill-hover); }
  a.card:active, .card--link:active { transform: translateY(-3px) scale(.985); }
  a.card:hover .card-media img { transform: scale(1.06); }
}
/* Vệt sáng đi theo con trỏ trên kính (chỉ máy có chuột) */
@media (hover: hover) and (pointer: fine) {
  .card:not(.card--navy), .fact {
    background-image: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / calc(.55 * var(--lo, 0))), rgb(255 255 255 / 0) 70%), var(--glass-fill);
  }
  a.card:hover, .card--link:hover {
    background-image: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / calc(.55 * var(--lo, 0))), rgb(255 255 255 / 0) 70%), var(--glass-fill-hover);
  }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .5); border: var(--hair) solid rgba(0, 58, 99, .09); font-size: .84rem; font-weight: 500; color: #34414d; line-height: 1.25; }
.chip .icon { width: 15px; height: 15px; color: var(--navy-700); }
.chip--amber { background: rgba(255, 228, 170, .62); border-color: rgba(217, 142, 0, .2); color: #5a3d00; }
.chip--navy { background: var(--grad-navy); border-color: transparent; color: #fff; }
.chip--navy .icon { color: #ffd479; }

.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .95rem; }
.meta-list li { display: flex; gap: 9px; align-items: flex-start; color: #34414d; }
.meta-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--navy-700); }
.meta-list b { color: var(--ink); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(217, 142, 0, .18); background: var(--amber-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--navy .check-list li::before { box-shadow: inset 0 0 0 1px rgba(244, 168, 20, .3); background-color: rgba(244, 168, 20, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd479' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Thẻ chọn theo nhu cầu (trang chủ): danh sách kiểu iOS, đường kẻ mảnh giữa các dòng ---------- */
.audience { position: relative; z-index: 3; }
.audience-card { padding: 26px 24px 18px; gap: 14px; }
.audience-card::before, .compare-card::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--amber), rgba(244, 168, 20, 0)); }
.audience-card:nth-child(2)::before, .compare-card:nth-child(3)::before { background: linear-gradient(90deg, var(--navy-700), rgba(11, 79, 130, 0)); }
.audience-card:nth-child(3)::before, .compare-card:nth-child(2)::before { background: linear-gradient(90deg, var(--green), rgba(31, 138, 91, 0)); }
.audience-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 2px; font-size: 1.22rem; }
.audience-card ul { list-style: none; padding: 0; margin: 0 -10px; display: grid; gap: 0; }
.audience-card li { position: relative; }
.audience-card li + li::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--line-soft); }
.audience-card li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; transition: background-color .25s ease, color .2s ease; }
.audience-card li a:hover { background-color: rgba(255, 255, 255, .66); color: var(--navy-900); }
.audience-card li a .icon { width: 18px; height: 18px; color: var(--navy-700); transition: transform .45s var(--ease-spring); }
.audience-card li a:hover .icon { transform: translateX(4px); }

/* ---------- Thẻ hoạt động ---------- */
.event-list { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .event-list { grid-template-columns: 1fr; } }
.event-card .card-media { aspect-ratio: 16 / 9; }
.date-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; min-width: 62px; padding: 6px 8px 7px; border-radius: 16px; text-align: center; line-height: 1.05;
  background: rgba(255, 255, 255, .7); border: var(--hair) solid rgba(255, 255, 255, .85); box-shadow: 0 8px 20px -8px rgba(0, 20, 36, .35);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
}
.date-badge .d { display: block; font-size: 1.45rem; font-weight: 700; color: var(--navy-900); }
.date-badge .m { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--amber-ink); margin-top: 2px; }
.date-badge--recurring .d { font-size: .95rem; padding-top: 3px; }
.status {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(255, 255, 255, .74); border: var(--hair) solid rgba(255, 255, 255, .85); box-shadow: 0 8px 20px -8px rgba(0, 20, 36, .35);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--green); }
.status--soon { color: var(--amber-ink); }
.status--full { color: var(--red); }
.status--past { color: #5f6b77; }
.event-card .type { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); }
.event-card .takeaway { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: 16px; background: rgba(255, 236, 194, .52); border: 0; font-size: .92rem; color: #4a3a12; }
.event-card .takeaway .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--amber-600); }
.seats { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.seats-bar { height: 6px; border-radius: 6px; background: rgba(0, 58, 99, .09); overflow: hidden; }
.seats-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-600)); border-radius: 6px; transform-origin: left; }
.price { font-weight: 700; color: var(--navy-900); font-size: 1.1rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.price--free { color: var(--green); }
.event-card.is-past { opacity: .86; }
.event-card.is-past .card-media img { filter: grayscale(.35); }

/* ---------- Bộ lọc ---------- */
.filter-bar { position: relative; display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--glass-fill); box-shadow: var(--glass-shadow); margin-bottom: 28px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group > span { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.filter-chip {
  border: var(--hair) solid rgba(0, 58, 99, .12); background-color: rgba(255, 255, 255, .5); border-radius: 999px; padding: 7px 15px;
  font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .45s var(--ease-spring);
}
.filter-chip:hover { border-color: rgba(0, 58, 99, .26); background-color: rgba(255, 255, 255, .86); }
.filter-chip:active { transform: scale(.94); }
.filter-chip[aria-pressed="true"] { background-color: var(--navy); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 58, 99, .6); animation: pop .5s var(--ease-spring); }
.result-note { font-size: .92rem; color: var(--muted); margin: -8px 0 18px; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, .36); }
@media (max-width: 640px) {
  .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-group > span { min-width: auto; flex: none; }
  .filter-chip { flex: none; }
}

/* ---------- Trụ cột hoạt động ---------- */
.pillar { display: grid; grid-template-rows: auto 1fr; }
.pillar .card-media { aspect-ratio: 4 / 3; }
.pillar .num { font-size: .8rem; font-weight: 700; color: var(--amber-ink); letter-spacing: .08em; }
.media-cap { position: relative; }
.media-cap .photo-tag { z-index: 2; }

/* ---------- Dải Himawari ---------- */
.sun-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4.4vw, 60px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4.4vw, 56px); align-items: center;
  background:
    radial-gradient(circle 420px at 100% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(120deg, rgba(255, 241, 204, .7) 0%, rgba(255, 212, 116, .52) 100%);
  box-shadow: 0 36px 72px -30px rgba(160, 110, 0, .32);
}
.sun-band::before { content: ""; position: absolute; left: -120px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 61, .4), rgba(255, 196, 61, 0) 70%); pointer-events: none; }
.sun-band > * { position: relative; }
.sun-band h2 { color: #3b2a00; }
.sun-band .eyebrow { color: #6e4c00; background: rgba(255, 255, 255, .5); }
.sun-band .eyebrow::before { background: #3b2a00; box-shadow: 0 0 0 3px rgba(59, 42, 0, .14); }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.class-list li { background: rgba(255, 255, 255, .5); border-radius: 18px; padding: 14px 16px; border: var(--hair) solid rgba(255, 255, 255, .85); box-shadow: 0 8px 18px -12px rgba(122, 85, 0, .3); }
.class-list b { display: block; color: #3b2a00; font-size: 1.05rem; font-weight: 600; }
.class-list span { font-size: .9rem; color: #5f4a1c; }
@media (max-width: 860px) { .sun-band { grid-template-columns: 1fr; } }

/* ---------- Bằng chứng ---------- */
.proof { padding: 0; overflow: hidden; }
.proof .card-media { aspect-ratio: 16 / 10; }
.proof .card-body { gap: 12px; }
.proof ul { margin: 0; }
.proof .badge-num { font-size: .76rem; font-weight: 700; color: var(--amber-ink); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Các bước ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px; background: var(--glass-fill); border-radius: var(--radius); box-shadow: var(--glass-shadow); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--navy-900);
  background: var(--grad-amber); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 16px -8px rgba(244, 168, 20, .7);
}
.steps h4 { margin: 0 0 6px; color: var(--navy-900); }
.steps p { margin: 0; font-size: .93rem; color: var(--muted); }
.section--navy .steps li { background: rgba(255, 255, 255, .06); box-shadow: none; }
.section--navy .steps h4 { color: #fff; }
.section--navy .steps p { color: #b9cad8; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Đội ngũ ---------- */
.team-card { padding: 26px; gap: 14px; }
.team-card .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: 0 0 0 var(--hair) rgba(255, 255, 255, .9), 0 12px 26px -12px rgba(0, 36, 63, .4); background: linear-gradient(135deg, #e6eef5, #fff1d1); }
.team-card .avatar--initials { display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.team-card .role { font-size: .88rem; font-weight: 600; color: var(--amber-ink); margin: -6px 0 0; }
.team-card ul { margin: 0; padding-left: 1.1em; color: #34414d; font-size: .95rem; display: grid; gap: 4px; }
.team-card .note { font-size: .8rem; color: var(--muted); border-top: var(--hair) solid var(--line); padding-top: 10px; margin-top: auto; }

/* ---------- Ảnh: thư viện, mosaic, dải không gian ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery figure, .mosaic figure, .space-strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--paper); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure img, .mosaic figure img, .space-strip figure img { transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img, .mosaic figure:hover img, .space-strip figure:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery figure::after, .mosaic figure::after, .space-strip figure::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(0, 20, 36, .44)); pointer-events: none; }
.gallery figcaption, .mosaic figcaption, .space-strip figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; width: fit-content; max-width: calc(100% - 20px);
  padding: 7px 12px; border-radius: 14px; color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  background: var(--glass-dark); border: var(--hair) solid var(--glass-dark-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* ---------- Ô chờ ảnh thật ---------- */
.ph { position: relative; display: grid; place-items: center; text-align: center; padding: 18px; min-height: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, rgba(255, 249, 236, .9) 0 14px, rgba(250, 241, 220, .9) 14px 28px); color: #6d5a2c; border: 2px dashed #e7d4a3; border-radius: inherit; }
.ph .icon { width: 30px; height: 30px; margin: 0 auto 8px; color: #b58a21; }
.ph strong { display: block; font-size: .9rem; color: #5a4512; }
.ph span { display: block; font-size: .8rem; line-height: 1.35; margin-top: 4px; }
.card-media .ph { position: absolute; inset: 0; border-radius: 0; border-width: 0 0 2px; }
/* Khi chạy thật: ô chưa có ảnh hiện minh họa thương hiệu thay cho ghi chú nội bộ */
.ph.ph--live, .gallery-cta a { border: 0; color: #fff;
  background: radial-gradient(circle at 22% 18%, rgba(255, 196, 61, .34), transparent 52%), radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 16px 16px, var(--grad-navy); }
.ph.ph--live .icon { width: 54px; height: 54px; margin: 0; color: #ffd479; }
.gallery-cta { display: none; }
.is-live .gallery-cta { display: block; position: absolute; inset: 0; }
.gallery-cta a { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 18px; text-align: center; text-decoration: none; font-weight: 600; line-height: 1.35; }
.gallery-cta .icon { width: 44px; height: 44px; color: #ffd479; transition: transform .5s var(--ease-spring); }
.gallery-cta small { font-weight: 500; color: rgba(255, 255, 255, .78); }
.gallery-cta a:hover .icon, .gallery-cta a:focus-visible .icon { transform: scale(1.12); }

/* ---------- Nhận xét ---------- */
.quote-card { padding: 28px; gap: 14px; }
.quote-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.65; color: #26323d; }
.quote-card .stars { display: flex; gap: 2px; color: var(--amber); }
.quote-card .stars .icon { width: 18px; height: 18px; }
.quote-card cite { font-style: normal; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rating-box { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-radius: var(--radius); background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.rating-box .score { font-size: 2.4rem; font-weight: 700; color: var(--navy-900); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Dải kêu gọi hành động: kính sáng có quầng màu (không thêm một khối tối nữa) ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: var(--ink);
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  background:
    radial-gradient(circle 400px at 100% 100%, rgba(255, 190, 70, .46), transparent 70%),
    radial-gradient(circle 440px at 0% 0%, rgba(120, 185, 255, .42), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .36));
  box-shadow: var(--glass-shadow-lg);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--navy-900); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band::before { content: ""; position: absolute; right: -90px; bottom: -120px; width: 340px; height: 340px; border: var(--hair) solid rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: inset 0 0 0 46px rgba(255, 255, 255, .1); pointer-events: none; }
.cta-band--stack { grid-template-columns: 1fr; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Biểu mẫu ---------- */
.form-card { position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .44)); border-radius: var(--radius-lg); box-shadow: var(--glass-shadow-lg); padding: clamp(24px, 3.6vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 1rem;
  border: var(--hair) solid rgba(0, 58, 99, .16); background-color: rgba(255, 255, 255, .62);
  transition: border-color .25s ease, box-shadow .3s ease, background-color .25s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(0, 58, 99, .3); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(11, 79, 130, .65); background-color: rgba(255, 255, 255, .94); box-shadow: 0 0 0 4px rgba(244, 168, 20, .24), 0 8px 18px -10px rgba(0, 36, 63, .25); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background-color: #fff; animation: shake .45s var(--ease-out); }
.field .error { font-size: .82rem; color: var(--red); display: none; }
.field.has-error .error { display: block; }
/* Nút chọn kiểu iOS: một viên trắng trượt giữa các lựa chọn (main.js thêm .glider) */
.seg { position: relative; display: inline-flex; padding: 4px; background: rgba(118, 128, 140, .14); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); transition: color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .4s var(--ease-spring); }
.seg button:hover { color: var(--navy-900); }
.seg button:active { transform: scale(.95); }
.seg button[aria-pressed="true"] { background-color: rgba(255, 255, 255, .96); color: var(--navy-900); box-shadow: 0 3px 8px rgba(10, 37, 64, .12), 0 1px 1px rgba(10, 37, 64, .04); }
.seg.has-glider button[aria-pressed="true"] { background-color: transparent; box-shadow: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 28px 10px; }
.form-success .icon-badge { margin: 0 auto 14px; background: var(--green-100); color: var(--green); box-shadow: none; }
form.is-sent .form-body { display: none; }
form.is-sent .form-success { display: block; animation: pop-in .7s var(--ease-spring) backwards; }
.form-status { font-size: .9rem; margin-top: 10px; color: var(--red); min-height: 1.2em; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px; border-radius: 999px; text-decoration: none; color: var(--navy-900); font-weight: 600;
  background-color: rgba(255, 255, 255, .46); border: var(--hair) solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 8px 20px -12px rgba(10, 37, 64, .26);
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm);
  transition: background-color .3s ease, transform .5s var(--ease-spring);
}
.contact-pill:hover { background-color: rgba(255, 255, 255, .82); color: var(--navy); transform: translateY(-2px); }
.contact-pill:active { transform: scale(.96); }

/* ---------- Hộp thoại ---------- */
dialog.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66)); border: var(--hair) solid rgba(255, 255, 255, .85); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(34px) saturate(1.9); backdrop-filter: blur(34px) saturate(1.9);
  box-shadow: 0 40px 90px -30px rgba(0, 20, 36, .5);
}
dialog.modal[open] { animation: modal-in .55s var(--ease-spring) backwards; }
dialog.modal::backdrop { background: rgba(8, 22, 36, .3); -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2); }
dialog.modal[open]::backdrop { animation: fade-in .35s ease backwards; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 26px 8px; }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.modal-body { padding: 8px 26px 26px; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: var(--hair) solid rgba(0, 58, 99, .12); background: rgba(255, 255, 255, .7); cursor: pointer; display: grid; place-items: center; flex: none; transition: background-color .2s ease, transform .45s var(--ease-spring); }
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close:active { transform: scale(.9); }
.modal-summary { padding: 12px 14px; border-radius: 16px; background: rgba(255, 238, 200, .62); border: 0; margin-bottom: 16px; font-size: .92rem; }
.modal-summary b { color: var(--navy-900); }

/* ---------- Hỏi đáp (main.js làm mở/đóng mượt) ---------- */
.faq { display: grid; gap: 12px; }
.faq details, details.faq { position: relative; background: var(--glass-fill); border: var(--hair) solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 2px 22px; box-shadow: var(--glass-shadow); transition: box-shadow .4s ease; }
.faq details[open], details.faq[open] { background: var(--glass-fill-hover); box-shadow: var(--glass-shadow-hover); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-size: 1.15rem; font-weight: 600; line-height: 1; color: var(--navy-900); background: var(--grad-amber); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 10px -4px rgba(244, 168, 20, .7); transition: transform .5s var(--ease-spring); }
.faq details[open] summary::after, details.faq[open] > summary::after { transform: rotate(45deg); }
.faq details.is-closing summary::after, details.faq.is-closing > summary::after { transform: none; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Bảng ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: var(--hair) solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .52); box-shadow: var(--glass-shadow); }
table.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table thead th { background: var(--grad-navy); color: #fff; font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
.table tbody tr { transition: background-color .2s ease; }
.table tbody tr:hover { background-color: rgba(255, 255, 255, .45); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { color: var(--navy-900); }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: none;
  border: var(--hair) solid rgba(0, 58, 99, .1); background-color: rgba(255, 255, 255, .46);
  box-shadow: 0 1px 2px rgba(10, 37, 64, .04);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .45s var(--ease-spring);
}
.tab:hover { background-color: rgba(255, 255, 255, .86); border-color: rgba(0, 58, 99, .2); }
.tab:active { transform: scale(.95); }
.tab[aria-selected="true"], .tab.is-active { background-color: var(--navy); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(0, 58, 99, .65); animation: pop .5s var(--ease-spring); }
.tab .icon { width: 18px; height: 18px; }

/* ---------- Dải dự án ---------- */
.case-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case-strip figure { margin: 0; }
.case-strip .img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--paper); box-shadow: var(--shadow-sm); }
.case-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.case-strip figure:hover img { transform: scale(1.05); }
.case-strip figcaption { margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.case-strip figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .case-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Hộp ghi chú, bảng thông tin, bản đồ ---------- */
.note-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(214, 230, 246, .55); border: var(--hair) solid rgba(255, 255, 255, .7); color: #23384b; font-size: .94rem; }
.note-box .icon { width: 22px; height: 22px; color: var(--navy-700); margin-top: 2px; }
.note-box--amber { background: rgba(255, 236, 194, .62); color: #4f3700; }
.note-box--amber .icon { color: var(--amber-600); }
/* Danh sách nhóm kiểu iOS: các dòng chung một khối kính, ngăn bằng đường kẻ mảnh */
.note-list { display: grid; border-radius: 20px; overflow: hidden; background: rgba(214, 230, 246, .42); box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, .75); }
.note-list .note-box { background: transparent; border: 0; border-radius: 0; padding: 14px 18px; }
.note-list .note-box + .note-box { box-shadow: inset 0 var(--hair) 0 rgba(10, 37, 64, .1); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { font-weight: 600; color: var(--navy-900); }
.kv dd { margin: 0; color: #34414d; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; border: 0; background: var(--paper); aspect-ratio: 4 / 3; box-shadow: var(--glass-shadow-lg); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Dòng thời gian ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--amber), rgba(0, 58, 99, .12)); }
.timeline li { position: relative; padding-left: 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); box-shadow: 0 0 0 5px rgba(244, 168, 20, .16); }
.timeline time { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--amber-ink); text-transform: uppercase; }
.timeline h4 { margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Sản phẩm ---------- */
.product-card .card-media { aspect-ratio: 4 / 3; }
.product-card .specs { font-size: .9rem; color: #34414d; margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--order { color: var(--amber-ink); }
.stock--project { color: var(--navy-700); }
.quote-tray {
  position: fixed; z-index: 95; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(160%); transition: transform .6s var(--ease-spring);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 20px; border-radius: 999px; color: #fff;
  background: rgba(0, 36, 63, .66);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 24px 54px -18px rgba(0, 20, 36, .55);
}
.quote-tray.is-visible { transform: translateX(-50%) translateY(0); }
.quote-tray b { color: var(--amber); }
.quote-tray .btn { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .quote-tray { left: 10px; right: 10px; width: auto; max-width: none; justify-content: space-between; padding: 8px 8px 8px 16px; border-radius: 22px; bottom: calc(94px + env(safe-area-inset-bottom)); transform: translateY(calc(100% + 130px)); }
  .quote-tray.is-visible { transform: none; }
}

/* ---------- Đánh dấu dữ liệu mẫu ---------- */
.is-draft { text-decoration: underline dotted var(--amber-600); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
.draft-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #fff3cd; color: #6e4c00; border: 1px dashed #e0b44a; }
.demo-ribbon {
  position: fixed; left: 12px; bottom: 12px; z-index: 80; max-width: 330px; padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 247, 222, .95); border: 1px dashed rgba(224, 180, 74, .75); color: #5a4000; font-size: .78rem; line-height: 1.4;
  -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm); box-shadow: 0 12px 28px -12px rgba(0, 36, 63, .3);
  animation: pop-in .6s var(--ease-spring) 1.2s backwards;
}
.demo-ribbon button { border: 0; background: transparent; font-weight: 700; color: #5a4000; cursor: pointer; padding: 0 0 0 6px; }
.demo-ribbon .rb-short { display: none; }
/* Điện thoại: thu thành một viên mảnh một dòng để không che nội dung */
@media (max-width: 760px) {
  .demo-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 10px; bottom: calc(90px + env(safe-area-inset-bottom)); left: 14px; right: 14px; max-width: none; padding: 5px 5px 5px 14px; font-size: .76rem; border-radius: 999px; }
  .demo-ribbon .rb-long { display: none; }
  .demo-ribbon .rb-short { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-ribbon button { flex: none; padding: 5px 12px; border-radius: 999px; background: rgba(224, 180, 74, .2); }
}

/* ---------- Liên hệ nhanh ---------- */
.float-contact { position: fixed; right: 18px; bottom: 22px; z-index: 85; display: grid; gap: 10px; }
.float-contact a {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  border: var(--hair) solid rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(0, 36, 63, .5);
  transition: transform .5s var(--ease-spring), box-shadow .3s ease;
  animation: fab-in .7s var(--ease-spring) backwards;
}
.float-contact a:nth-child(1) { animation-delay: .9s; }
.float-contact a:nth-child(2) { animation-delay: 1s; }
.float-contact a:nth-child(3) { animation-delay: 1.1s; }
.float-contact a:hover { transform: scale(1.08); }
.float-contact a:active { transform: scale(.92); }
.float-contact .fc-zalo { background: linear-gradient(135deg, #3a90ff, #0068ff); color: #fff; font-weight: 700; font-size: .78rem; }
.float-contact .fc-call { background: var(--grad-amber); color: var(--navy-900); }
.float-contact .fc-msg { background: rgba(255, 255, 255, .62); color: #0866ff; -webkit-backdrop-filter: var(--glass-blur-sm); backdrop-filter: var(--glass-blur-sm); }
.float-contact .icon { width: 23px; height: 23px; }
/* Vòng sáng lan nhẹ quanh nút gọi thay cho hiệu ứng rung */
.float-contact .fc-call::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(244, 168, 20, .7); pointer-events: none; animation: halo 2.8s var(--ease-out) 2s infinite; opacity: 0; }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .float-contact { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; z-index: 90;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .46));
    -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
    box-shadow: 0 16px 36px -14px rgba(0, 36, 63, .38);
    animation: bar-in .8s var(--ease-spring) .5s backwards;
  }
  .mobile-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 20px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .45s var(--ease-spring), background-color .2s ease; }
  .mobile-cta a:active { transform: scale(.94); }
  .mobile-cta .m-call { background: rgba(0, 58, 99, .07); color: var(--navy-900); }
  .mobile-cta .m-zalo { background: rgba(0, 104, 255, .1); color: #0052c9; }
  .mobile-cta .m-book { background: var(--grad-amber); color: var(--navy-900); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -8px rgba(244, 168, 20, .7); }
  .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* ---------- Chân trang ---------- */
.site-footer {
  margin-top: clamp(16px, 3vw, 40px); border-radius: clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) 0 0; overflow: hidden;
  color: #b4c6d6; font-size: .95rem;
  background:
    radial-gradient(circle 560px at 92% 0%, rgba(244, 168, 20, .16), transparent 70%),
    radial-gradient(circle 640px at 0% 100%, rgba(90, 170, 255, .16), transparent 70%),
    linear-gradient(160deg, #003a63 0%, #00243f 55%, #001a2e 100%);
}
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: clamp(48px, 6.5vw, 80px) 36px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e2ebf3; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--amber); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: var(--hair) solid rgba(255, 255, 255, .16); transition: background-color .25s ease, color .2s ease, transform .5s var(--ease-spring); }
.socials a:hover { background: var(--grad-amber); color: var(--navy-900); border-color: transparent; transform: translateY(-2px) scale(1.06); }
.socials .icon { width: 19px; height: 19px; }
.socials .s-text { font-weight: 700; font-size: .72rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #93a8bb; }
.footer-legal { font-size: .85rem; color: #93a8bb; margin-top: 12px; line-height: 1.6; }

/* ---------- Tiện ích ---------- */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.rounded { border-radius: var(--radius-lg); overflow: hidden; }
.shadow { box-shadow: var(--shadow); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-11 { aspect-ratio: 1; }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }
.divider { height: 1px; background: var(--line-soft); margin-block: 32px; }
.source { font-size: .78rem; color: var(--muted); }
.section--navy .source { color: #93a8bb; }

/* ---------- Bổ sung: video hero, số liệu có nguồn, dải không gian, điều hướng trang ---------- */
.video-toggle { position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: var(--hair) solid rgba(255, 255, 255, .3); background: rgba(0, 20, 36, .38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: .8rem; cursor: pointer; display: grid; place-items: center; transition: transform .45s var(--ease-spring); }
.video-toggle:active { transform: scale(.9); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { position: relative; padding: 20px 22px; border-radius: var(--radius); background: var(--glass-fill); box-shadow: var(--glass-shadow); transition: --mx .2s linear, --my .2s linear, --lo .5s ease; }
.fact b { display: block; font-size: 1.65rem; font-weight: 700; color: var(--navy-900); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.fact .source { margin-top: 6px; }
.section--navy .fact { background: rgba(255, 255, 255, .06); box-shadow: none; }
.section--navy .fact b { color: #fff; }
.section--navy .fact span { color: #b9cad8; }
@media (max-width: 860px) { .facts-row { grid-template-columns: 1fr 1fr; } }
.space-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(0, 58, 99, .2) transparent; }
.space-strip figure { aspect-ratio: 4 / 3; scroll-snap-align: start; }
.space-strip img { width: 100%; height: 100%; object-fit: cover; }
.space-strip figcaption b { display: block; font-size: .95rem; font-weight: 600; }
.map-wrap { position: relative; }
.map-open { position: absolute; right: 18px; bottom: 18px; z-index: 2; box-shadow: var(--shadow); }
/* Điều hướng trong trang: viên kính dính dưới header, mục đang xem có viên navy trượt theo (main.js) */
.anchor-nav {
  position: sticky; top: calc(var(--header-h) + var(--header-gap) + 10px); z-index: 40;
  width: fit-content; max-width: calc(100% - 2 * var(--edge)); margin: 16px auto 0; padding: 5px; border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: 0 1px 1px rgba(10, 37, 64, .03), 0 12px 30px -14px rgba(10, 37, 64, .26);
  transition: top .55s var(--ease-out);
}
html.hdr-hidden .anchor-nav { top: var(--header-gap); }
.anchor-nav ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { position: relative; z-index: 1; display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.anchor-nav a:hover { color: var(--navy); background-color: rgba(255, 255, 255, .72); }
.anchor-nav a[aria-current="true"] { color: #fff; background-color: var(--navy); box-shadow: 0 6px 14px -6px rgba(0, 58, 99, .6); }
.anchor-nav .has-glider a[aria-current="true"], .anchor-nav ul.has-glider a[aria-current="true"] { background-color: transparent; box-shadow: none; }
/* Viên trượt dùng chung cho .seg và .anchor-nav */
.glider { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none; opacity: 0; transition: transform .55s var(--ease-spring), width .55s var(--ease-spring), height .55s var(--ease-spring), opacity .3s ease; }
.glider.is-on { opacity: 1; }
.anchor-nav .glider { background: linear-gradient(180deg, #0f5a93, #003a63); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(0, 58, 99, .65); }
.seg .glider { background: rgba(255, 255, 255, .96); box-shadow: 0 3px 8px rgba(10, 37, 64, .12), 0 1px 1px rgba(10, 37, 64, .04); }
/* Điện thoại: hai ô chia đều một hàng, chữ dài thì xuống dòng trong ô */
@media (max-width: 560px) {
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: 16px; }
  .seg button { padding: 9px 10px; font-size: .86rem; line-height: 1.3; border-radius: 12px; text-align: center; text-wrap: balance; }
  .seg .glider { border-radius: 12px; }
}
.num-tag { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 11px; background: var(--grad-navy); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 12px -6px rgba(0, 58, 99, .6); }
.service-card .card-media { aspect-ratio: 4 / 3; }
.service-card .for { font-size: .9rem; color: var(--muted); }
.service-card .card-kicker, .card-kicker:has(> .num-tag) { display: flex; align-items: center; gap: 10px; }
.fig-cap { font-size: .86rem; color: var(--muted); margin: 10px 2px 0; line-height: 1.45; }
.fig-cap b { color: var(--navy-900); }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.mosaic figure { min-height: 160px; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.section--navy .mosaic figure { box-shadow: 0 18px 40px -18px rgba(0, 10, 20, .6); }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .mosaic figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; } .mosaic figure { aspect-ratio: 1; } }
.package-card .kv { font-size: .92rem; gap: 6px 14px; }
.package-card .kv dt { font-weight: 600; }
.value-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy-900); }
.breadcrumb:has(+ .legal-text) { max-width: 860px; margin-inline: auto; }
.legal-text { position: relative; max-width: 860px; margin-inline: auto; padding: clamp(24px, 4vw, 52px); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .48)); box-shadow: var(--glass-shadow); }
.legal-text h2 { font-size: 1.35rem; margin-top: 2rem; }
.inline-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; padding: 0; background: var(--paper); box-shadow: var(--glass-shadow-lg); }
.inline-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.4s var(--ease-out); }
.inline-photo:hover img { transform: scale(1.04); }
.quote-card .tag { font-size: .76rem; font-weight: 700; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .06em; }
.split--top { align-items: start; }
.is-live .is-draft { text-decoration: none; cursor: auto; }
.is-live [data-draft-only] { display: none !important; }
.section--navy .kv dt { color: #fff; }
.section--navy .kv dd { color: #c7d6e3; }

/* ---------- Viền kính ----------
   Một sợi sáng mảnh vẽ bằng mặt nạ: sáng ở góc trên trái, gần như trong suốt dọc cạnh. */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .card::after, .glass-panel::after, .form-card::after, .fact::after, .filter-bar::after, .rating-box::after, .legal-text::after,
  .steps li::after, .header-inner::after, .sub-nav::after, .anchor-nav::after, .mobile-cta::after, .hero-badge::after,
  .cta-band::after, .sun-band::after, .hero-glass::after, .section--navy::after, .page-hero::after, .quote-tray::after,
  .hero-collage figure::before, .gallery figure::before, .mosaic figure::before, .space-strip figure::before, .inline-photo::before, .case-strip .img::before {
    content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
    padding: var(--hair); background: var(--rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
  }
  .card--navy::after, .section--navy .steps li::after, .section--navy .fact::after, .hero-glass::after, .section--navy::after, .page-hero::after, .quote-tray::after { background: var(--rim-dark); }
  .hero-collage figure::before, .gallery figure::before, .mosaic figure::before, .space-strip figure::before, .inline-photo::before, .case-strip .img::before { background: var(--rim-photo); }
  @media (max-width: 1239px) {
    .nav::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; padding: var(--hair); background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  }
}

/* ---------- Chuyển động ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes drawer-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fab-in { from { opacity: 0; transform: translateY(18px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1.12); } to { transform: none; } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes glow-breathe { from { transform: scale(1); opacity: .85; } to { transform: translate3d(-4%, 5%, 0) scale(1.16); opacity: 1; } }
@keyframes aurora {
  0% { transform: translate3d(-3vmax, -2vmax, 0) rotate(-4deg) scale(1); }
  50% { transform: translate3d(4vmax, 2vmax, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(-1vmax, 4vmax, 0) rotate(-2deg) scale(1.03); }
}
@keyframes pop { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: none; } }
@keyframes halo { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hình nền trôi chậm: chỉ máy tính để tiết kiệm pin điện thoại */
  @media (min-width: 900px) { body::after { animation: aurora 38s ease-in-out infinite alternate; will-change: transform; } }
  .hero::before { animation: glow-breathe 14s ease-in-out infinite alternate; }
  /* Hero trang chủ hiện lần lượt khi mở trang */
  .hero-place, .hero h1, .hero-steps li, .hero .lead, .hero .btn-row, .hero-sub-cta { animation: rise 1s var(--ease-out) backwards; }
  .hero-place { animation-delay: .05s; }
  .hero h1 { animation-delay: .12s; }
  .hero-steps li:nth-child(1) { animation-delay: .26s; }
  .hero-steps li:nth-child(2) { animation-delay: .32s; }
  .hero-steps li:nth-child(3) { animation-delay: .38s; }
  .hero-steps li:nth-child(4) { animation-delay: .44s; }
  .hero .lead { animation-delay: .42s; }
  .hero .btn-row { animation-delay: .52s; }
  .hero-sub-cta { animation-delay: .6s; }
  .hero-collage figure { animation: pop-in 1.1s var(--ease-out) backwards; }
  .hero-collage .c1 { animation-delay: .16s; }
  .hero-collage .c2 { animation-delay: .3s; }
  .hero-collage .c3 { animation-delay: .44s; }
  .hero-badge { animation: pop-in .9s var(--ease-spring) .8s backwards, float-y 6s ease-in-out 1.8s infinite; }
  /* Hero trang con: ảnh nền lùi nhẹ về đúng cỡ, khung kính nổi lên */
  .page-hero-bg img { animation: kb 2.6s var(--ease-out) backwards; }
  .page-hero .breadcrumb { animation: rise-sm .8s var(--ease-out) .05s backwards; }
  .hero-glass { animation: pop-in .9s var(--ease-out) .12s backwards; }
  .hero-glass > * { animation: rise-sm .8s var(--ease-out) backwards; }
  .hero-glass > :nth-child(1) { animation-delay: .22s; }
  .hero-glass > :nth-child(2) { animation-delay: .3s; }
  .hero-glass > :nth-child(3) { animation-delay: .38s; }
  .hero-glass > :nth-child(4) { animation-delay: .46s; }
  .hero-glass > :nth-child(n+5) { animation-delay: .54s; }
  .status--open::before { animation: pulse-dot 2.2s var(--ease-out) infinite; }
  .rv-in .seats-bar span { animation: bar-grow 1.2s var(--ease-out) .3s backwards; }
}
/* Hiện dần khi cuộn tới (main.js chỉ gắn .rv cho phần đang nằm dưới màn hình, nên không bao giờ làm mất nội dung) */
.rv { opacity: 0; transform: translate3d(0, 36px, 0) scale(.985); }
.rv:not(.rv-in) { transition: none; }
.rv.rv-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) var(--rv-d, 0s), transform 1.1s var(--ease-out) var(--rv-d, 0s); }
.rv .card-media img, figure.rv > img, .inline-photo.rv img { transform: scale(1.1); }
.rv.rv-in .card-media img, figure.rv.rv-in > img, .inline-photo.rv.rv-in img { transform: none; transition: transform 1.6s var(--ease-out) var(--rv-d, 0s); }

/* Đổi trang mượt (Chrome, Edge, Safari mới; trình duyệt khác đổi trang như thường) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .26s var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: .42s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Hiệu năng trên điện thoại ----------
   Kính mờ giữ cho các lớp nổi (header, menu, thanh liên hệ, hộp thoại); nhãn nhỏ trên ảnh
   dùng nền đậm hơn thay cho làm mờ để cuộn mượt trên máy cấu hình thấp. */
@media (max-width: 899px) {
  .photo-tag, .gallery figcaption, .mosaic figcaption, .space-strip figcaption, .date-badge, .status,
  .btn-outline, .hero-steps li, .hero-place, .contact-pill, .page-hero .breadcrumb, .demo-ribbon, .float-contact .fc-msg {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .photo-tag, .gallery figcaption, .mosaic figcaption, .space-strip figcaption { background: rgba(8, 24, 40, .62); }
  .date-badge, .status { background: rgba(255, 255, 255, .9); }
  .hero-steps li, .hero-place, .contact-pill { background-color: rgba(255, 255, 255, .62); }
  .page-hero .breadcrumb { background: rgba(4, 30, 52, .55); }
  .hero-glass { background: linear-gradient(140deg, rgba(4, 30, 52, .62), rgba(4, 30, 52, .4)); }
}

/* ---------- Dự phòng: không hỗ trợ kính mờ hoặc người dùng muốn giảm trong suốt ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header-inner::before, .nav, .sub-nav, .mobile-cta, dialog.modal, .anchor-nav, .hero-badge { background: rgba(255, 255, 255, .97); }
  .tab, .btn-outline, .contact-pill, .hero-steps li, .hero-place, .eyebrow { background-color: rgba(255, 255, 255, .9); }
  .hero-glass { background: rgba(0, 30, 52, .82); }
  .page-hero--sun .hero-glass { background: rgba(62, 40, 0, .84); }
  .photo-tag, .gallery figcaption, .mosaic figcaption, .space-strip figcaption, .page-hero .breadcrumb { background: rgba(0, 30, 52, .82); }
  .date-badge, .status { background: rgba(255, 255, 255, .95); }
  .quote-tray { background: var(--navy-900); }
}
@media (prefers-reduced-transparency: reduce) {
  body::before { background: linear-gradient(180deg, #edf3fa 0%, #f4f1ea 100%); }
  body::after { display: none; }
  .header-inner::before, .nav, .sub-nav, .mobile-cta, dialog.modal, .anchor-nav, .hero-badge { background: #fff; }
  .card:not(.card--navy), .form-card, .filter-bar, .fact, .steps li, .faq details, details.faq, .legal-text, .glass-panel, .rating-box, .cta-band { background: #fff; }
  .tab, .btn-outline, .contact-pill, .hero-steps li, .hero-place, .eyebrow { background-color: #fff; }
  .section--navy .btn-outline, .on-dark .btn-outline, .btn-outline.on-dark, .page-hero .btn-outline, .page-hero .btn-light, .card--navy .btn-outline { background-color: rgba(255, 255, 255, .12); }
  .section--navy .fact, .section--navy .steps li { background: rgba(255, 255, 255, .1); }
  .hero-glass { background: rgba(0, 30, 52, .88); }
  .page-hero--sun .hero-glass { background: rgba(62, 40, 0, .9); }
  .photo-tag, .gallery figcaption, .mosaic figcaption, .space-strip figcaption, .page-hero .breadcrumb { background: rgba(0, 30, 52, .88); }
  .date-badge, .status { background: #fff; }
  .quote-tray { background: var(--navy-900); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .float-contact .fc-call::after { display: none; }
  @view-transition { navigation: none; }
}
