/* ==========================================================================
   DLVS — hệ thiết kế trang giới thiệu
   Bố cục: dải mực đậm mở/đóng trang, giữa là các dải giấy xen kẽ. Trục chính là
   LUỒNG VÉ — vé đi xuống, vé ế quay ngược, tiền đi ngược chiều vé.
   Mô-típ lấy từ chính tờ vé số: răng cưa cuống vé, số canh cột, dải kỳ xổ.
   ========================================================================== */

:root {
  /* màu */
  --ink: #0c1d2b;
  --ink-2: #14334a;
  --ink-3: #1d4763;
  --paper: #eef4f7;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --fg: #0f2230;
  --muted: #5a7183;
  --line: #d9e5ec;
  --accent: #0d8a68;        /* vé đi / tốt */
  --accent-soft: #e3f4ee;
  --amber: #b87514;         /* vé ế quay về / cần chú ý */
  --amber-soft: #fbf0dd;
  --blue: #27648f;          /* tiền */
  --blue-soft: #e4eef5;
  --red: #b5362b;           /* nợ / xấu */
  --red-soft: #fbeae8;

  /* chữ */
  --f-display: "Archivo", system-ui, -apple-system, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

  /* nhịp */
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 24px 50px -34px rgba(12, 29, 43, .55);
  --shadow-lg: 0 34px 70px -34px rgba(12, 29, 43, .6);
  --gut: clamp(16px, 4vw, 28px);
  --band: clamp(56px, 8vw, 104px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #050f17; --ink-2: #0d2231; --ink-3: #17394f;
    --paper: #08161f; --surface: #0f2531; --surface-2: #0c1e29;
    --fg: #e6eef3; --muted: #90a8b8; --line: #1b3a4d;
    --accent: #35bd97; --accent-soft: #0d2f27;
    --amber: #d59a3f; --amber-soft: #2e2416;
    --blue: #67a7d4; --blue-soft: #10283a;
    --red: #e07b6d; --red-soft: #33191a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #050f17; --ink-2: #0d2231; --ink-3: #17394f;
  --paper: #08161f; --surface: #0f2531; --surface-2: #0c1e29;
  --fg: #e6eef3; --muted: #90a8b8; --line: #1b3a4d;
  --accent: #35bd97; --accent-soft: #0d2f27;
  --amber: #d59a3f; --amber-soft: #2e2416;
  --blue: #67a7d4; --blue-soft: #10283a;
  --red: #e07b6d; --red-soft: #33191a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-weight: 700;
}
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- khung ---------- */
.band { width: 100%; }
.band--ink { background: var(--ink); color: #e8f1f6; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--surface { background: var(--surface); }
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  padding-block: var(--band);
}
.wrap--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.band--ink .eyebrow { color: #74d9b8; }
.h2 { font-size: clamp(24px, 3.4vw, 38px); }
.lede { color: var(--muted); margin-top: 14px; max-width: 62ch; font-size: clamp(15px, 1.6vw, 17.5px); }
.band--ink .lede { color: #a9c4d4; }

/* ---------- thanh điều hướng ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__in {
  max-width: 1180px; margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  padding-block: 12px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
/* Logo chính thức (vé + sao) — cùng file với portal và trang đăng nhập. */
.brand__mark { width: 30px; height: 30px; display: block; flex: none; }
.brand__name { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: #bed4e1; text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding-block: 4px; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a:focus-visible { color: #fff; border-bottom-color: var(--accent); }
.nav__cta {
  background: var(--accent); color: #04140f; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.nav__burger {
  display: none; background: none; border: 1px solid rgba(255,255,255,.22); color: #dfeaf1;
  border-radius: 9px; padding: 7px 11px; font-size: 15px; cursor: pointer;
}
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-2); padding: 10px max(var(--gut), env(safe-area-inset-left, 0px)) 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.is-open a { padding-block: 11px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__in { position: relative; }
}

/* ---------- mở đầu ---------- */
.hero { background: var(--ink); color: #e8f1f6; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 64% at 80% 10%, rgba(53,189,151,.18), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(48px, 7vw, 86px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 54px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(31px, 5.2vw, 56px); font-weight: 800; color: #fff; max-width: 16ch; }
.hero__sub { margin-top: 20px; max-width: 54ch; color: #b3cbda; font-size: clamp(15.5px, 1.8vw, 18px); font-weight: 300; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__proof {
  list-style: none; margin: 34px 0 0; padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.8px; color: #96b1c2;
}
.hero__proof li { display: flex; align-items: baseline; gap: 9px; }
.hero__proof li::before {
  content: "✓"; flex: none;
  color: var(--accent); font-weight: 700; font-size: 12.5px;
}
.btn {
  display: inline-block; text-decoration: none; font-family: var(--f-display);
  font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 999px;
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #04140f; }
.btn--ghost { border: 1px solid rgba(255,255,255,.26); color: #dceaf2; }

  margin-top: 30px; display: inline-flex; align-items: stretch; flex-wrap: wrap;
  background: #fff; color: #0f2230; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.stub__cell { padding: 14px 20px; min-width: 132px; }
.stub__cell + .stub__cell { border-left: 2px dashed #ccdae2; }
.stub__k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #76899a; font-weight: 600; }
.stub__v { font-family: var(--f-display); font-size: clamp(17px, 2.1vw, 21px); font-weight: 800; margin-top: 2px; }
.stub__h { margin-top: 5px; font-size: 11.5px; color: #7d90a0; line-height: 1.45; }

/* ---------- khung ảnh ---------- */
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.shot__bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot img { width: 100%; height: auto; }   /* KHÔNG khai aspect-ratio: ghi đè sẽ xoá tỉ lệ suy từ width/height, ảnh chưa tải là khung sập còn 0px */
.shot button, button.shot {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit;
}
button.shot { border: 1px solid var(--line); }
button.shot:hover { box-shadow: var(--shadow-lg); }
button.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cap { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- luồng vé ---------- */
.flow__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13.5px; color: #a9c4d4; }
.flow__legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow__legend i { width: 22px; height: 3px; border-radius: 2px; display: inline-block; }
.flow__svg { margin-top: 26px; width: 100%; height: auto; }
.flow__svg text { font-family: var(--f-body); }
.flowline { stroke-dasharray: 7 6; animation: march 1.5s linear infinite; }
@keyframes march { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .flowline { animation: none; } }
.flow__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 30px; }
.flow__note { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm); padding: 16px 18px; }
.flow__note b { display: block; font-family: var(--f-display); font-size: 15px; color: #fff; margin-bottom: 5px; }
.flow__note span { font-size: 14px; color: #a9c4d4; }

/* ---------- thẻ / lưới ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }
/* Lưới chứa ảnh màn hình: dưới 920px ép một cột, chứ hai cột thì ảnh bé quá không đọc nổi */
@media (max-width: 920px) { .grid--shots { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; min-width: 0;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.8px; }
.card__tag {
  display: inline-block; font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 11px;
}
.t-accent { background: var(--accent-soft); color: var(--accent); }
.t-amber  { background: var(--amber-soft);  color: var(--amber); }
.t-blue   { background: var(--blue-soft);   color: var(--blue); }
.t-red    { background: var(--red-soft);    color: var(--red); }

/* ---------- khối điểm đau ---------- */
.pp { border-top: 1px solid var(--line); }
.pp .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 48px); align-items: center; }
@media (min-width: 940px) {
  .pp .wrap { grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr); }
  .pp--flip .pp__media { order: -1; }
}
.pp__copy { min-width: 0; }
.pp__copy h2 { font-size: clamp(22px, 2.9vw, 30px); margin-bottom: 14px; }
.pp__copy p { color: var(--muted); }
.pp__copy p + p { margin-top: 12px; }
.pp__copy strong { color: var(--fg); font-weight: 600; }
.pp__media { min-width: 0; }

.ba { display: grid; gap: 10px; margin-top: 18px; }
.ba__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.6px; }
.ba__k { font-family: var(--f-display); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding-top: 4px; }
.ba__row--before .ba__k { color: var(--red); }
.ba__row--after .ba__k { color: var(--accent); }
.ba__v { color: var(--muted); }
.ba__row--after .ba__v { color: var(--fg); }

/* ---------- tab loại vé ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tab {
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { margin-top: 24px; }
.panel[hidden] { display: none !important; }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (min-width: 940px) { .panel__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); } }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; }
.chain span {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 11px; font-size: 13.2px; color: var(--fg);
}
.chain b { color: var(--muted); font-weight: 400; }

/* ---------- bảng module ---------- */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; margin-top: 28px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; min-width: 0; }
.mod h4 { font-size: 14.5px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mod h4 em { font-style: normal; font-family: var(--f-body); font-size: 12px; color: var(--muted); font-weight: 400; }
.mod ul { margin: 9px 0 0; padding-left: 17px; color: var(--muted); font-size: 13.6px; line-height: 1.75; }

/* ---------- câu hỏi ---------- */
.faq { max-width: 820px; margin-top: 26px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 44px;   /* đủ to cho ngón tay */
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 21px; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- kết ---------- */
.end { text-align: center; }
.end h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.end .lede { margin-inline: auto; }
.foot { border-top: 1px solid rgba(255,255,255,.08); }
.foot .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.4px; color: #87a3b5; }

/* ---------- phóng ảnh ---------- */
dialog {
  border: 0; padding: 0; background: transparent;
  width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh;
  display: none; place-items: center;
}
dialog[open] { display: grid; }
dialog::backdrop { background: rgba(4, 13, 19, .9); }
.dlg { position: relative; max-width: min(1280px, 94vw); }
.dlg img {
  border-radius: 10px; cursor: zoom-out;
  max-width: 100%; max-height: 82dvh; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.dlg__cap {
  margin-top: 12px; text-align: center; color: #c5d8e4;
  font-size: 14px; max-width: 70ch; margin-inline: auto;
}
.dlg__x {
  position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 19px; line-height: 1;
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
}

/* Sơ đồ luồng vé: màn hẹp thì cho vuốt ngang, không bóp chữ còn 4px */
.flow__scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.flow__hint { display: none; }
@media (max-width: 860px) {
  .flow__svg { min-width: 660px; }
  .flow__hint { display: block; }
}

/* ============================================================================
   CHUYỂN ĐỘNG
   Trang phải đọc được ngay cả khi JavaScript hỏng, nên mọi hiệu ứng "hiện dần"
   chỉ bật khi JS đã gắn class `js-motion` lên <html>. Không JS ⇒ hiện sẵn.
   ========================================================================== */

/* --- 1. Hiện dần khi cuộn tới -------------------------------------------- */
.js-motion [data-rise] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js-motion [data-rise].is-in { opacity: 1; transform: none; will-change: auto; }

/* --- 2. Thanh điều hướng -------------------------------------------------- */
.nav { transition: box-shadow .28s ease, background .28s ease; }
.nav__in { transition: padding-block .28s ease; }
.nav.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .34); background: color-mix(in srgb, var(--ink) 97%, transparent); }
.nav.is-stuck .nav__in { padding-block: 8px; }

.nav__links a { position: relative; border-bottom: 0; transition: color .22s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 42%, transparent); }
.nav__cta:active { transform: translateY(0) scale(.97); }
.nav__burger { transition: transform .2s ease, color .2s ease; }
.nav__burger:hover { color: #fff; transform: scale(1.08); }
.brand__mark { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }

@media (max-width: 920px) {
  .nav__links.is-open { animation: dropIn .24s cubic-bezier(.22,.61,.36,1) both; }
}

/* --- 3. Nút ---------------------------------------------------------------- */
.btn { transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.btn--primary:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 46%, transparent); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, .07); }
.btn:active { transform: translateY(0) scale(.98); }

/* --- 4. Thẻ và ô chức năng ------------------------------------------------- */
.card, .mod {
  transition: transform .24s cubic-bezier(.22,.61,.36,1), border-color .24s ease, box-shadow .24s ease;
}
.card:hover, .mod:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow-lg);
}
.mod h4 em { transition: color .24s ease; }
.mod:hover h4 em { color: var(--accent); }

/* --- 5. Ảnh màn hình ------------------------------------------------------- */
button.shot {
  position: relative;
  transition: transform .26s cubic-bezier(.22,.61,.36,1), box-shadow .26s ease, border-color .26s ease;
}
button.shot:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
button.shot img { transition: transform .55s cubic-bezier(.2,.7,.3,1); }
button.shot:hover img { transform: scale(1.018); }
button.shot::after {
  content: "Xem lớn"; position: absolute; right: 12px; bottom: 12px;
  background: color-mix(in srgb, var(--ink) 88%, transparent); color: #eaf5fa;
  font: 600 12px var(--f-display); letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}
button.shot:hover::after, button.shot:focus-visible::after { opacity: 1; transform: none; }
.shot__bar i { transition: background .3s ease; }
button.shot:hover .shot__bar i:nth-child(1) { background: var(--red); }
button.shot:hover .shot__bar i:nth-child(2) { background: var(--amber); }
button.shot:hover .shot__bar i:nth-child(3) { background: var(--accent); }

/* --- 6. Tab loại vé -------------------------------------------------------- */
.tab { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.tab:hover { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); }
.tab[aria-selected="true"]:hover { color: #fff; transform: translateY(-1px); }
.panel:not([hidden]) { animation: fadeUp .34s cubic-bezier(.22,.61,.36,1) both; }
.chain span { transition: border-color .2s ease, background .2s ease; }
.chain:hover span { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }

/* --- 7. Câu hỏi ------------------------------------------------------------ */
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; transition: transform .26s cubic-bezier(.34,1.56,.64,1), color .2s ease; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); color: var(--accent); }
.faq details[open] p { animation: fadeUp .3s ease both; }

/* --- 8. Phóng ảnh ---------------------------------------------------------- */
dialog[open] { animation: dlgIn .24s cubic-bezier(.22,.61,.36,1) both; }
dialog[open]::backdrop { animation: fadeIn .24s ease both; }
.dlg__x { transition: color .2s ease, transform .2s ease; }
.dlg__x:hover { color: #fff; transform: scale(1.06); }

/* --- 9. Liên kết chân trang ------------------------------------------------ */
.foot a { transition: color .2s ease; }
.foot a:hover { color: var(--accent); }

/* --- 10. Khung hình ------------------------------------------------------- */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes dropIn  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes dlgIn   { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* --- 11. Ai tắt hiệu ứng thì tắt hết -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js-motion [data-rise] { opacity: 1; transform: none; }
}

/* ============================================================================
   MÀN CẢM ỨNG
   Không có chuột thì không có hover: nhãn "Xem lớn" phải hiện sẵn, và mọi
   chỗ bấm phải đủ to cho ngón tay (tối thiểu 44px).
   ========================================================================== */
@media (hover: none) {
  button.shot::after { opacity: 1; transform: none; }
  .card:hover, .mod:hover, button.shot:hover, .btn:hover { transform: none; }
  button.shot:hover img { transform: none; }
}
@media (max-width: 920px) {
  .nav__burger { padding: 10px 13px; font-size: 17px; }
  .nav__cta { padding: 11px 18px; }
  .tab { padding: 13px 18px; }
}
@media (max-width: 560px) {
  .hero__btns { gap: 10px; }
  .hero__btns .btn { flex: 1 1 100%; text-align: center; }
  .tab { padding: 13px 18px; }
  .faq summary { padding-block: 4px; }
}
