/* ==========================================================================
   khoi.css — Kiểu của 18 khối. Link ngay sau xuong.css:
     <link rel="stylesheet" href="../_loi/xuong.css">
     <link rel="stylesheet" href="../_loi/khoi.css">
   Quy ước trạng thái (khối tự đặt, CSS đọc):
     html.xuong-dong        : được phép chuyển động (đoạn mã đầu trang hoặc xuong.js đặt)
     [data-cap-chay="…"]    : cấp khối đang chạy thật: tinh | L1 | L2 | L3
   Bố cục "đường ray" (sân khấu dính) chỉ bật khi html.xuong-dong và khối KHÔNG ở cấp tĩnh —
   nên tắt JS / giảm chuyển động thì khối tự về bố cục tĩnh, đọc đủ nội dung.
   Các luật vị trí gói trong :where() để trạng thái JS (lớp --chay, .dang-hien) luôn thắng.
   ========================================================================== */

/* Khối nền tối: đổi màu phụ sang bản sáng (giống .xw-toi) để nhãn, chữ phụ, viền đủ tương phản */
.hero-phong, .hoa-canh, .chuoi-khung, .vat-the-3d, .gradient-tro, .video-nen, .dai-hat {
  --mau-chu-phu: var(--mau-chu-sang-phu);
  --mau-nhan-dam: var(--mau-nhan-sang);
  --mau-vien: var(--mau-vien-sang);
}

/* ================================================= 2 · hero-phong */
.hero-phong { position: relative; background: var(--mau-toi); color: var(--mau-chu-sang); }
.hero-phong__san {
  position: relative; display: grid; align-items: end; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px;
}
.hero-phong__khung { position: absolute; inset: 0; overflow: hidden; }
.hero-phong__anh { width: 100%; height: 100%; object-fit: cover; }
.hero-phong__phu { z-index: 1;   /* phủ đậm hơn lớp chung: chữ thân bài trên hero phải ≥ 4,5:1 cả khi ảnh sáng nhất */
  background: linear-gradient(to top, rgba(12, 11, 9, .9) 0%, rgba(12, 11, 9, .7) 45%, rgba(12, 11, 9, .46) 75%, rgba(12, 11, 9, .36) 100%); }
.hero-phong__chu { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: clamp(4rem, 14vh, 9rem); }
.hero-phong__chu h1 { font-size: var(--co-sieu); line-height: 1.08; max-width: 15ch; color: var(--mau-chu-sang); }
.hero-phong__mo-ta { max-width: 40ch; margin-top: var(--k-5); font-size: var(--co-lon); color: var(--mau-chu-sang); }
.hero-phong__nut { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.hero-phong__chi-tiet {
  position: absolute; z-index: 2; left: var(--le); right: var(--le); bottom: clamp(2rem, 7vh, 4rem);
  max-width: 34ch; opacity: 0; font-size: var(--co-lon); color: var(--mau-chu-sang);
}
:where(html.xuong-dong) .hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) { height: 175vh; }
:where(html.xuong-dong) .hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) .hero-phong__san { position: sticky; top: 0; }
@media (max-width: 760px) {
  :where(html.xuong-dong) .hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) { height: 150vh; }
}
:where(html.xuong-dong) .hero-phong:is([data-kieu="ken-burns"], [data-kieu="ca-hai"]):not([data-cap-chay="tinh"]) .hero-phong__khung {
  animation: xw-ken-burns 26s ease-in-out infinite alternate;
}
@keyframes xw-ken-burns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ================================================= 1 · hoa-canh */
.hoa-canh { position: relative; background: var(--mau-toi); color: var(--mau-chu-sang); }
.hoa-canh__san { position: relative; }
.hoa-canh__canh { position: relative; margin: 0; min-height: 78vh; display: grid; align-items: end; overflow: hidden; }
.hoa-canh__canh + .hoa-canh__canh { margin-top: 2px; }
.hoa-canh__canh > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hoa-canh__canh::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 11, 9, .84) 0%, rgba(12, 11, 9, .34) 50%, rgba(12, 11, 9, .38) 100%);
}
.hoa-canh__chu { position: relative; z-index: 2; width: 100%; max-width: 62rem; margin-inline: auto; padding: 0 var(--le) clamp(4.5rem, 14vh, 8.5rem); text-align: center; }
.hoa-canh__chu .xw-nhan { color: var(--mau-nhan-sang); justify-content: center; }
.hoa-canh__chu h2 { font-size: var(--co-1); max-width: 18ch; margin: var(--k-4) auto 0; color: var(--mau-chu-sang); }
.hoa-canh__chu p { max-width: 44ch; margin: var(--k-4) auto 0; color: var(--mau-chu-sang-phu); }
.hoa-canh__tien-do { display: none; }

:where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) { height: calc(var(--so-canh, 3) * 100vh); }
:where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) .hoa-canh__san { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
:where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) .hoa-canh__canh { position: absolute; inset: 0; min-height: 0; margin: 0; opacity: 0; }
:where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) .hoa-canh__canh:first-child { opacity: 1; }
:where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) .hoa-canh__tien-do {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 8px;
}
.hoa-canh__tien-do span { display: block; width: 26px; height: 2px; background: rgba(241, 236, 226, .35); transition: width .4s, background-color .4s; }
.hoa-canh__tien-do span.dang-hien { width: 42px; background: var(--mau-nhan-sang); }
/* L1: đổi cảnh theo mốc, mờ chuyển bằng CSS */
.hoa-canh--buoc .hoa-canh__canh { opacity: 0; transition: opacity .9s var(--duong-cong); }
.hoa-canh--buoc .hoa-canh__canh.dang-hien { opacity: 1; }
.hoa-canh--buoc .hoa-canh__canh > img { transform: scale(1.06); transition: transform 1.8s var(--duong-cong); }
.hoa-canh--buoc .hoa-canh__canh.dang-hien > img { transform: scale(1); }
.hoa-canh--buoc .hoa-canh__chu { transition: opacity .6s .2s, transform .6s .2s; }
.hoa-canh--buoc .hoa-canh__canh:not(.dang-hien) .hoa-canh__chu { opacity: 0; transform: translateY(16px); }
@media (max-width: 760px) {
  :where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) { height: 220vh; }
  :where(html.xuong-dong .hoa-canh:not([data-cap-chay="tinh"])) .hoa-canh__canh[data-an-tren-dt] { display: none; }
}

/* ================================================= 3 · chuoi-khung */
.chuoi-khung { position: relative; background: #0b0b0c; color: var(--mau-chu-sang); }
.chuoi-khung__san { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #0b0b0c; }
.chuoi-khung__canvas, .chuoi-khung__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chuoi-khung__poster { z-index: 0; }
.chuoi-khung__canvas { z-index: 1; }
.chuoi-khung__san::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 8, 8, .78), rgba(8, 8, 8, 0));
}
.chuoi-khung__chu { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(3rem, 15vh, 8rem); padding-inline: var(--le); text-align: center; }
.chuoi-khung__nhip { font-family: var(--font-tieu-de); font-weight: var(--dam-tieu-de); font-size: var(--co-2); line-height: 1.22; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.chuoi-khung__nhip + .chuoi-khung__nhip { margin-top: var(--k-3); }
:where(html.xuong-dong) .chuoi-khung:not([data-cap-chay="tinh"]) { height: 320vh; }
:where(html.xuong-dong) .chuoi-khung:not([data-cap-chay="tinh"]) .chuoi-khung__san { position: sticky; top: 0; }
.chuoi-khung--chay .chuoi-khung__chu { min-height: 5.5em; }
.chuoi-khung--chay .chuoi-khung__nhip {
  position: absolute; left: var(--le); right: var(--le); bottom: 0; margin: 0 auto;
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--duong-cong), transform .5s var(--duong-cong);
}
.chuoi-khung--chay .chuoi-khung__nhip.dang-hien { opacity: 1; transform: none; }
@media (max-width: 760px) { :where(html.xuong-dong) .chuoi-khung:not([data-cap-chay="tinh"]) { height: 240vh; } }

/* ================================================= 4 · vat-the-3d */
.vat-the-3d { position: relative; color: var(--mau-chu-sang);
  background: radial-gradient(120% 90% at 60% 40%, #28241f 0%, #131210 55%, #0b0b0c 100%); }
.vat-the-3d__san { position: relative; width: min(100%, 40rem); aspect-ratio: 1 / 1; margin-inline: auto; }
.vat-the-3d__du-phong { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .7s var(--duong-cong); }
.vat-the-3d__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .9s var(--duong-cong); touch-action: pan-y; cursor: grab;
}
.vat-the-3d--dang-keo .vat-the-3d__canvas { cursor: grabbing; }
.vat-the-3d--3d .vat-the-3d__canvas { opacity: 1; }
.vat-the-3d--3d .vat-the-3d__du-phong { opacity: 0; visibility: hidden; }
.vat-the-3d__xoay {
  position: absolute; right: 8px; bottom: 8px; min-height: 44px; padding: .5em 1.1em;
  border-radius: 999px; border: 1px solid var(--mau-vien-sang); background: rgba(16, 15, 13, .55);
  color: var(--mau-chu-sang); font-size: var(--co-nho); font-weight: 600;
}
.vat-the-3d__xoay[aria-pressed="true"] { background: var(--mau-chu-sang); color: var(--mau-toi); }
.vat-the-3d__goi-y {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); pointer-events: none;
  font-size: var(--co-ti); letter-spacing: .16em; text-transform: uppercase; color: var(--mau-chu-sang-phu);
}
.vat-the-3d:not(.vat-the-3d--3d) .vat-the-3d__xoay, .vat-the-3d:not(.vat-the-3d--3d) .vat-the-3d__goi-y { display: none; }
.vat-the-3d__ghi-chu { margin-top: var(--k-3); text-align: center; font-size: var(--co-nho); color: var(--mau-chu-sang-phu); }
:where(html.xuong-dong) .vat-the-3d--anh:not([data-cap-chay="tinh"]) .vat-the-3d__du-phong { animation: xw-vat-noi 7s ease-in-out infinite alternate; }
@keyframes xw-vat-noi { from { transform: translateY(-1.2%); } to { transform: translateY(1.2%); } }

/* ================================================= 5 · dai-hat */
.dai-hat { position: relative; overflow: hidden; isolation: isolate; min-height: 88vh; display: grid; place-items: center; }
.dai-hat__nen { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dai-hat__nen::before {
  content: ""; position: absolute; inset: -15%;
  background-image:
    radial-gradient(circle at 20% 30%, var(--hat-mau-2, #F1ECE2) 0 1px, transparent 1.7px),
    radial-gradient(circle at 70% 80%, var(--hat-mau, #D9A46E) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 45% 55%, rgba(241, 236, 226, .55) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 85% 15%, rgba(217, 164, 110, .6) 0 .9px, transparent 1.5px);
  background-size: 173px 151px, 241px 199px, 97px 113px, 311px 263px;
  opacity: .8;
}
.dai-hat__nen::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 55%, rgba(217, 164, 110, .13), transparent 70%);
}
:where(html.xuong-dong) .dai-hat[data-cap-chay="L1"] .dai-hat__nen::before { animation: xw-hat-troi 80s linear infinite alternate; }
@keyframes xw-hat-troi { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4%, -6%, 0); } }
.dai-hat--hat .dai-hat__nen::before { display: none; }
.dai-hat__nen canvas { position: absolute !important; inset: 0; }
.dai-hat__chu { position: relative; text-align: center; padding-block: var(--dem-muc); }
.dai-hat__chu::before {
  content: ""; position: absolute; inset: 8% -4%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 11, 12, .78), rgba(11, 11, 12, 0));
}
.dai-hat__chu h2 { font-size: var(--co-1); max-width: 16ch; margin-inline: auto; }
.dai-hat__chu p { max-width: 42ch; margin: var(--k-5) auto 0; }

/* ================================================= 6 · mat-so */
.mat-so { position: relative; }
.mat-so__san {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: var(--rong-toi-da); margin-inline: auto; padding: var(--dem-muc) var(--le);
}
.mat-so__dong-ho { position: relative; width: min(100%, 30rem); aspect-ratio: 1; margin-inline: auto; }
.mat-so__vong, .mat-so__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat-so__svg { overflow: visible; }
.mat-so__vat { position: absolute; left: 24%; top: 24%; width: 52%; height: 52%; object-fit: contain; }
.mat-so__duong { fill: none; stroke: var(--mau-vien); stroke-width: 1; }
.mat-so__vach { stroke: rgba(23, 22, 18, .26); stroke-width: 1.2; }
.mat-so__vach--dai { stroke: rgba(23, 22, 18, .6); stroke-width: 2; }
.mat-so__so { font-family: var(--font-than); font-size: 22px; font-weight: 600; fill: var(--mau-chu-phu); transform-box: fill-box; transform-origin: center; transition: fill .4s; }
.mat-so__so.dang-hien { fill: var(--mau-nhan); font-size: 27px; }
.mat-so__xoay { transform-origin: 200px 200px; }
.mat-so--buoc .mat-so__xoay, .mat-so--buoc .mat-so__so { transition: transform .8s var(--duong-cong), fill .4s; }
.mat-so__cung { fill: none; stroke: var(--mau-nhan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.mat-so__kim { fill: var(--mau-nhan); }
.mat-so__buoc { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--k-6); }
.mat-so__nhan { display: block; margin-bottom: var(--k-2); font-size: var(--co-nho); font-weight: 600; letter-spacing: .14em; color: var(--mau-nhan-dam); }
.mat-so__buoc h3 { font-size: var(--co-2); line-height: 1.2; }
.mat-so__buoc p { margin-top: var(--k-3); max-width: 36ch; color: var(--mau-chu-phu); }
:where(html.xuong-dong) .mat-so:not([data-cap-chay="tinh"]) { height: calc(var(--so-buoc, 4) * 70vh + 100vh); }
:where(html.xuong-dong) .mat-so:not([data-cap-chay="tinh"]) .mat-so__san { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: var(--k-7); }
:where(html.xuong-dong .mat-so:not([data-cap-chay="tinh"])) .mat-so__buoc { position: relative; min-height: 15rem; }
:where(html.xuong-dong .mat-so:not([data-cap-chay="tinh"])) .mat-so__buoc > li { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
:where(html.xuong-dong .mat-so:not([data-cap-chay="tinh"])) .mat-so__buoc > li:first-child { opacity: 1; }
.mat-so--chay .mat-so__buoc > li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--duong-cong), transform .5s var(--duong-cong); }
.mat-so--chay .mat-so__buoc > li.dang-hien { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .mat-so__san { grid-template-columns: 1fr; }
  :where(html.xuong-dong) .mat-so:not([data-cap-chay="tinh"]) .mat-so__san { grid-template-rows: auto auto; align-content: center; gap: var(--k-5); padding-block: 84px var(--k-6); }
  :where(html.xuong-dong) .mat-so:not([data-cap-chay="tinh"]) .mat-so__dong-ho { width: min(72vw, 40vh); }
  :where(html.xuong-dong .mat-so:not([data-cap-chay="tinh"])) .mat-so__buoc { min-height: 11rem; text-align: center; }
  :where(html.xuong-dong .mat-so:not([data-cap-chay="tinh"])) .mat-so__buoc p { margin-inline: auto; }
}

/* ================================================= 7 · luoi-troi */
.luoi-troi__luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); align-items: start; }
.luoi-troi--chay .luoi-troi__luoi { padding-block: 48px; }
.luoi-troi__the { position: relative; }
.luoi-troi__anh { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--bo-goc); background: var(--mau-nen-2); }
.luoi-troi__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--duong-cong); }
.luoi-troi__the:hover .luoi-troi__anh img { transform: scale(1.04); }
.luoi-troi__dong { display: flex; justify-content: space-between; align-items: baseline; gap: var(--k-3); margin-top: var(--k-4); }
.luoi-troi__ten { font-size: var(--co-3); line-height: 1.3; }
.luoi-troi__gia { font-variant-numeric: tabular-nums; color: var(--mau-chu-phu); white-space: nowrap; }
.luoi-troi__mo-ta { margin-top: var(--k-2); color: var(--mau-chu-phu); font-size: var(--co-nho); }
.luoi-troi__them {
  margin-top: var(--k-4); min-height: 44px; padding: .55em 1.2em; border-radius: 999px;
  border: 1px solid var(--mau-chu); background: transparent; color: var(--mau-chu); font-weight: 600; font-size: var(--co-nho);
  transition: background-color .25s, color .25s;
}
.luoi-troi__them:hover { background: var(--mau-chu); color: var(--mau-nen); }
@media (max-width: 760px) {
  .luoi-troi__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luoi-troi--chay .luoi-troi__luoi { padding-block: 0; }
  .luoi-troi__dong { flex-direction: column; gap: 2px; }
}

/* ================================================= 8 · tach-doi */
.tach-doi { position: relative; background: var(--mau-nen-2); }
.tach-doi__san {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: var(--rong-toi-da); margin-inline: auto; padding: var(--dem-muc) var(--le);
}
.tach-doi__vat { position: relative; width: min(100%, 32rem); aspect-ratio: 1; margin: 10% auto; }
.tach-doi__vat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tach-doi__trong { z-index: 0; }
.tach-doi__duoi { z-index: 1; }
.tach-doi__tren { z-index: 2; }
.tach-doi:not(.tach-doi--chay) .tach-doi__tren { transform: translateY(-24%); }
.tach-doi:not(.tach-doi--chay) .tach-doi__duoi { transform: translateY(24%); }
.tach-doi__nhip { font-family: var(--font-tieu-de); font-weight: var(--dam-tieu-de); font-size: var(--co-2); line-height: 1.22; }
.tach-doi__nhip + .tach-doi__nhip { margin-top: var(--k-5); }
.tach-doi__keo { display: none; }
@media (min-width: 761px) {
  :where(html.xuong-dong) .tach-doi:not([data-cap-chay="tinh"]) { height: 260vh; }
  :where(html.xuong-dong) .tach-doi:not([data-cap-chay="tinh"]) .tach-doi__san { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: var(--k-6); }
  :where(html.xuong-dong) .tach-doi:not([data-cap-chay="tinh"]) .tach-doi__vat { width: min(100%, 30rem, 62vh); margin-block: 0; }
}
.tach-doi--chay .tach-doi__chu { position: relative; min-height: 12rem; }
.tach-doi--chay .tach-doi__nhip {
  position: absolute; left: 0; right: 0; top: 0; margin: 0;
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--duong-cong), transform .5s var(--duong-cong);
}
.tach-doi--chay .tach-doi__nhip.dang-hien { opacity: 1; transform: none; }
.tach-doi--keo .tach-doi__keo {
  display: grid; gap: var(--k-2); justify-items: center; margin-top: var(--k-4);
  font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu);
}
.tach-doi__keo input { width: min(100%, 22rem); accent-color: var(--mau-nhan); min-height: 44px; }
@media (max-width: 760px) {
  .tach-doi__san { grid-template-columns: 1fr; }
  .tach-doi--chay .tach-doi__chu { min-height: 7.5rem; text-align: center; }
}

/* ================================================= 9 · may-chan-trang */
.may-chan-trang { position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(6rem, 13vw, 11rem) 0 clamp(9rem, 22vw, 17rem); }
.may-chan-trang__may { position: absolute; left: -12%; right: -12%; bottom: -2px; height: 60%; z-index: -1; pointer-events: none; }
.may-chan-trang__may span {
  position: absolute; bottom: -34%; width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffaf2 0%, #f4e8d6 34%, #e3cbab 66%, rgba(227, 203, 171, 0) 71%);
}
.may-chan-trang__may span:nth-child(1) { left: -2%; width: 30%; bottom: -34%; }
.may-chan-trang__may span:nth-child(2) { left: 18%; width: 38%; bottom: -44%; }
.may-chan-trang__may span:nth-child(3) { left: 41%; width: 31%; bottom: -30%; }
.may-chan-trang__may span:nth-child(4) { left: 59%; width: 41%; bottom: -46%; }
.may-chan-trang__may span:nth-child(5) { left: 81%; width: 28%; bottom: -32%; }
:where(html.xuong-dong) .may-chan-trang:not([data-cap-chay="tinh"]) .may-chan-trang__may span { animation: xw-may-troi 17s ease-in-out infinite alternate; }
.may-chan-trang__may span:nth-child(2n) { animation-duration: 21s; animation-delay: -6s; }
.may-chan-trang__may span:nth-child(3n) { animation-duration: 25s; animation-delay: -11s; }
@keyframes xw-may-troi { from { transform: translate3d(-2.5%, 3%, 0); } to { transform: translate3d(2.5%, -3%, 0); } }
.may-chan-trang__chu h2 { font-size: var(--co-1); max-width: 17ch; margin-inline: auto; }
.may-chan-trang__chu p { max-width: 40ch; margin: var(--k-5) auto 0; }
.may-chan-trang__chu .xw-nut { margin-top: var(--k-6); }

/* ================================================= 10 · the-quy-trinh */
.the-quy-trinh__ds {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: clamp(12px, 1.4vw, 18px);
}
.the-quy-trinh__the {
  position: relative; display: flex; flex-direction: column; min-height: 17rem;
  padding: clamp(1.3rem, 1.9vw, 2rem); border-radius: var(--bo-goc); background: var(--mau-nen-2);
}
.the-quy-trinh__the:nth-child(even) { background: var(--mau-toi); color: var(--mau-chu-sang); }
.the-quy-trinh__so {
  display: block; margin-bottom: clamp(1.5rem, 3vw, 3rem);   /* tiêu đề các thẻ thẳng hàng nhau */
  font-family: var(--font-tieu-de); font-size: clamp(2.6rem, 2rem + 2.2vw, 4rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--mau-nhan);
}
.the-quy-trinh__the:nth-child(even) .the-quy-trinh__so { color: var(--mau-nhan-sang); }
.the-quy-trinh__the h3 { margin-bottom: var(--k-2); }
.the-quy-trinh__the p { color: var(--mau-chu-phu); font-size: .95rem; }
.the-quy-trinh__the:nth-child(even) p { color: var(--mau-chu-sang-phu); }
.the-quy-trinh--duong .the-quy-trinh__ds { padding-top: 26px; }
.the-quy-trinh--duong .the-quy-trinh__ds::before,
.the-quy-trinh--duong .the-quy-trinh__ds::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.the-quy-trinh--duong .the-quy-trinh__ds::after { background: var(--mau-vien); }
.the-quy-trinh--duong .the-quy-trinh__ds::before { z-index: 1; background: var(--mau-nhan); transform-origin: left center; transform: scaleX(var(--tien-do, 0)); }
@media (max-width: 760px) {
  .the-quy-trinh__the { min-height: 0; }
  .the-quy-trinh__so { margin-bottom: var(--k-4); }
  .the-quy-trinh--duong .the-quy-trinh__ds { padding-top: 0; padding-left: 18px; }
  .the-quy-trinh--duong .the-quy-trinh__ds::before,
  .the-quy-trinh--duong .the-quy-trinh__ds::after { right: auto; bottom: 0; width: 2px; height: auto; }
  .the-quy-trinh--duong .the-quy-trinh__ds::before { transform-origin: center top; transform: scaleY(var(--tien-do, 0)); }
}

/* ================================================= 11 · video-nen */
.video-nen { position: relative; min-height: 86vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--mau-toi); color: var(--mau-chu-sang); }
.video-nen__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video-nen > .xw-lop-phu { z-index: -1; }
.video-nen__chu { padding-top: 6rem; padding-bottom: clamp(3rem, 10vh, 6rem); }
.video-nen__chu h2 { font-size: var(--co-1); max-width: 16ch; }
.video-nen__chu p { max-width: 40ch; margin-top: var(--k-4); }
.video-nen__nut {
  position: absolute; z-index: 2; top: var(--k-5); right: var(--le); min-height: 44px; padding: .5em 1.1em;
  border-radius: 999px; border: 1px solid var(--mau-vien-sang); background: rgba(12, 11, 9, .5); color: var(--mau-chu-sang);
  font-size: var(--co-nho); font-weight: 600;
}
.video-nen--can-bam .video-nen__nut { background: var(--mau-chu-sang); color: var(--mau-toi); }

/* ================================================= 12 · hien-dan */
:where(html.xuong-dong) [data-hien-trang] {
  transition: opacity .9s var(--duong-cong), transform .9s var(--duong-cong), filter .9s var(--duong-cong);
  transition-delay: var(--hien-tre, 0ms);
}
:where(html.xuong-dong) [data-hien-trang="cho"] { opacity: 0; transform: translate3d(0, 28px, 0); }
:where(html.xuong-dong) [data-hien-trang="cho"][data-hien="mo"] { transform: none; }
:where(html.xuong-dong) [data-hien-trang="cho"][data-hien="trai"] { transform: translate3d(-28px, 0, 0); }
:where(html.xuong-dong) [data-hien-trang="cho"][data-hien="phai"] { transform: translate3d(28px, 0, 0); }
:where(html.xuong-dong) [data-hien-trang="cho"][data-hien="phong"] { transform: scale(.96); }
:where(html.xuong-dong) [data-hien-trang="cho"][data-cap-hien="L2"] { filter: blur(6px); }
@media (max-width: 760px) {   /* điện thoại: trượt ngang dễ tràn mép màn hình → đổi thành trượt dọc */
  :where(html.xuong-dong) [data-hien-trang="cho"]:is([data-hien="trai"], [data-hien="phai"]) { transform: translate3d(0, 28px, 0); }
}
@media print { [data-hien-trang] { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* ================================================= 13 · gradient-tro */
.gradient-tro { position: relative; overflow: hidden; isolation: isolate; min-height: 82vh; display: grid; place-items: center; text-align: center;
  background: var(--mau-toi); color: var(--mau-chu-sang); }
.gradient-tro__nen { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gradient-tro__nen > span {
  position: absolute; left: calc(50% - 40vmax); top: calc(50% - 40vmax); width: 80vmax; height: 80vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--gt-1, #8a4a22), rgba(138, 74, 34, 0) 72%); opacity: .9;
  transform: translate3d(-22%, -14%, 0);
}
.gradient-tro__nen > span:nth-child(2) {
  left: calc(50% - 34vmax); top: calc(50% - 34vmax); width: 68vmax; height: 68vmax;
  background: radial-gradient(closest-side, var(--gt-2, #2f3b4b), rgba(47, 59, 75, 0) 70%);
  transform: translate3d(20%, 16%, 0);
}
:where(html.xuong-dong) .gradient-tro:not([data-cap-chay="tinh"]):not(.gradient-tro--tro) .gradient-tro__nen > span { animation: xw-gt-troi 24s ease-in-out infinite alternate; }
:where(html.xuong-dong) .gradient-tro:not([data-cap-chay="tinh"]):not(.gradient-tro--tro) .gradient-tro__nen > span:nth-child(2) { animation-name: xw-gt-troi-2; animation-duration: 29s; }
@keyframes xw-gt-troi { from { transform: translate3d(-22%, -14%, 0); } to { transform: translate3d(16%, 8%, 0); } }
@keyframes xw-gt-troi-2 { from { transform: translate3d(20%, 16%, 0); } to { transform: translate3d(-14%, -10%, 0); } }
.gradient-tro__chu { position: relative; padding-block: var(--dem-muc); }
.gradient-tro__chu::before {
  content: ""; position: absolute; inset: 10% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 15, 13, .62), rgba(16, 15, 13, 0));
}
.gradient-tro__chu h2 { font-size: var(--co-1); max-width: 17ch; margin-inline: auto; }
.gradient-tro__chu p { max-width: 42ch; margin: var(--k-5) auto 0; }
.gradient-tro__chu .xw-nut, .dai-hat__chu .xw-nut, .video-nen__chu .xw-nut, .hoa-canh__chu .xw-nut { margin-top: var(--k-6); }

/* ================================================= 14 · so-lon */
.so-lon { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--k-3); font-family: var(--font-tieu-de); }
.so-lon:not(.so-lon--chay) { font-size: clamp(3rem, 2rem + 6vw, 7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.so-lon__hang { display: inline-flex; align-items: center; gap: .07em; font-size: clamp(2.6rem, 1.6rem + 6vw, 7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.so-lon__o {
  position: relative; display: inline-block; width: .8em; height: 1.2em; border-radius: .09em;
  background: #1f1d1a; color: #f4eee4; perspective: 4em;
  box-shadow: 0 .05em .14em rgba(0, 0, 0, .35);
}
.so-lon__o::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .6); }
.so-lon__nua, .so-lon__la { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: inherit; }
.so-lon__nua--tren, .so-lon__la--tren { top: 0; border-radius: .09em .09em 0 0; }
.so-lon__nua--duoi, .so-lon__la--duoi { bottom: 0; border-radius: 0 0 .09em .09em; }
.so-lon__nua > span, .so-lon__la > span { position: absolute; left: 0; right: 0; height: 1.2em; line-height: 1.2em; text-align: center; }
.so-lon__nua--tren > span, .so-lon__la--tren > span { top: 0; }
.so-lon__nua--duoi > span, .so-lon__la--duoi > span { bottom: 0; }
.so-lon__la { z-index: 3; visibility: hidden; backface-visibility: hidden; }
.so-lon__la--tren { transform-origin: 50% 100%; }
.so-lon__la--duoi { transform-origin: 50% 0; transform: rotateX(90deg); background: #26241f; }
.so-lon__o.dang-lat .so-lon__la { visibility: visible; }
.so-lon__ngan { padding-inline: .02em; opacity: .75; }
.so-lon__nhan { font-family: var(--font-than); font-size: var(--co-nho); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mau-chu-phu); }
.xw-toi .so-lon__o { background: #2b2925; color: var(--mau-chu-sang); }
.xw-toi .so-lon__nhan { color: var(--mau-chu-sang-phu); }

/* ================================================= chức năng · nut-noi */
[data-khoi="nut-noi"] {
  position: fixed; z-index: var(--z-noi); isolation: isolate;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--xuong-day-duoi, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transition: bottom .35s var(--duong-cong);
}
[data-khoi="nut-noi"] > a {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px; min-width: 48px;
  padding: .65em 1.15em .65em .95em; border-radius: 999px; text-decoration: none;
  font-family: var(--font-than); font-weight: 600; font-size: .95rem; line-height: 1;
  background: var(--mau-chu); color: var(--mau-nen);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 242, 236, .14);
  transition: transform .25s var(--duong-cong);
}
[data-khoi="nut-noi"] > a:hover { transform: translateY(-2px); }
/* Chữ trên nút Gọi: mẫu nào dùng màu nhấn nhạt thì đặt --mau-chu-tren-nhan: #1a1a1a trong mau.css
   (chữ trắng trên nền nhạt không đạt tương phản AA — đã gặp ở mẫu D, K, F 3.74:1, G 2.80:1).
   23/9: nút tự làm đậm màu nhãn 28% nên hầu hết mẫu không phải đặt gì nữa; trình duyệt cũ không
   hiểu color-mix thì rơi về dòng background đầu, giữ nguyên như trước. Màu quá nhạt (vàng, be)
   vẫn chưa đạt thì mới cần đặt --mau-chu-tren-nhan: #1a1a1a. */
[data-khoi="nut-noi"] > a.nut-noi__nut--goi {
  background: var(--mau-nhan);
  background: color-mix(in srgb, var(--mau-nhan) 72%, #000);
  color: var(--mau-chu-tren-nhan, #fff);
}
[data-khoi="nut-noi"] svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 420px) { [data-khoi="nut-noi"] > a { padding: .6em 1em .6em .8em; font-size: .9rem; } }

/* ================================================= chức năng · form-lien-he */
[data-khoi="form-lien-he"] form { display: grid; gap: var(--k-5); max-width: 36rem; }
.form-lien-he__o { display: grid; gap: var(--k-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.form-lien-he__o > label, .form-lien-he__o > legend { padding: 0; font-weight: 600; font-size: var(--co-nho); }
.form-lien-he__o input:not([type="radio"]):not([type="checkbox"]), .form-lien-he__o textarea, .form-lien-he__o select,
.gio-vietqr__o input {
  width: 100%; min-height: 50px; padding: .75em .9em; border: 1px solid rgba(23, 22, 18, .3); border-radius: var(--bo-goc-nho);
  background: #fff; color: #171612; font-size: 1rem;   /* 16px: iPhone không tự phóng to khi gõ */
}
.form-lien-he__o textarea { min-height: 7.5rem; resize: vertical; }
.form-lien-he__o input:focus-visible, .form-lien-he__o textarea:focus-visible, .gio-vietqr__o input:focus-visible { outline-offset: 1px; }
.form-lien-he__chon { display: flex; flex-wrap: wrap; gap: var(--k-2); }
.form-lien-he__chip { position: relative; }
.form-lien-he__chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.form-lien-he__chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.05em; border-radius: 999px;
  border: 1px solid rgba(23, 22, 18, .3); background: #fff; color: #171612; font-size: var(--co-nho); font-weight: 500;
}
.form-lien-he__chip input:checked + span { background: var(--mau-chu); border-color: var(--mau-chu); color: var(--mau-nen); }
.form-lien-he__chip input:focus-visible + span { outline: 3px solid var(--mau-nhan); outline-offset: 2px; }
.form-lien-he__dong-y, .gio-vietqr__dong-y { display: flex; gap: .65em; align-items: flex-start; font-size: var(--co-nho); line-height: 1.5; }
.form-lien-he__dong-y input, .gio-vietqr__dong-y input { flex: none; width: 20px; height: 20px; margin-top: .1em; accent-color: var(--mau-nhan); }
.co-loi input:not([type="radio"]):not([type="checkbox"]), .co-loi textarea { border-color: var(--mau-loi); }
.form-lien-he__loi { display: block; color: var(--mau-loi); font-size: var(--co-nho); font-weight: 500; }
.xw-toi .form-lien-he__loi { color: #FFB4A8; }
.form-lien-he__bao { min-height: 1.5em; font-size: var(--co-nho); }
.form-lien-he__bao--loi { color: var(--mau-loi); }
.form-lien-he__bao--xong { color: var(--mau-dat); font-weight: 600; }
.xw-toi .form-lien-he__bao--loi { color: #FFB4A8; }
.xw-toi .form-lien-he__bao--xong { color: #A8E0B5; }
.form-lien-he__bao a { color: inherit; font-weight: 600; }
.form-lien-he__hang-nut { display: flex; flex-wrap: wrap; gap: var(--k-3); align-items: center; }
[data-buoc] { display: grid; gap: var(--k-5); }
[data-buoc].form-lien-he__buoc-an { display: none; }   /* chỉ JS ẩn bước; tắt JS thì mọi bước hiện đủ */
.form-lien-he__dieu-huong { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-3); }
.form-lien-he__chi-buoc { font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mau-chu-phu); }

/* ================================================= chức năng · banner-cookie */
.banner-cookie {
  position: fixed; z-index: var(--z-banner);
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 54rem; margin-inline: auto; padding: var(--k-4) var(--k-5);
  border-radius: var(--bo-goc); background: var(--mau-chu); color: var(--mau-nen);
  box-shadow: 0 20px 60px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 242, 236, .12);
}
.banner-cookie.dang-hien { animation: xw-banner-len .45s var(--duong-cong); }
@keyframes xw-banner-len { from { transform: translateY(16px); opacity: 0; } }
.banner-cookie__hop { display: grid; gap: var(--k-4); }
.banner-cookie__chu { font-size: var(--co-nho); line-height: 1.55; }
.banner-cookie__chu a { color: inherit; font-weight: 600; }
.banner-cookie__nut { display: grid; grid-template-columns: 1fr 1fr; gap: var(--k-3); }
.banner-cookie__chon {   /* hai nút GIỐNG HỆT nhau — Từ chối ngang hàng Đồng ý */
  min-height: 46px; padding: 0 1.4em; border-radius: 999px;
  border: 1px solid rgba(245, 242, 236, .6); background: transparent; color: var(--mau-nen);
  font-weight: 600; font-size: var(--co-nho);
}
.banner-cookie__chon:hover { background: rgba(245, 242, 236, .12); }
.banner-cookie :focus-visible { outline-color: var(--mau-nhan-sang); }
@media (min-width: 761px) {
  .banner-cookie__hop { grid-template-columns: 1fr auto; align-items: center; gap: var(--k-6); }
  .banner-cookie__nut { grid-template-columns: auto auto; }
}

/* ================================================= chức năng · gio-vietqr */
.gio-vietqr__nut {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .45em .6em .45em .9em;
  border-radius: 999px; border: 1px solid var(--mau-vien); background: transparent; color: inherit; font-weight: 600; font-size: var(--co-nho);
}
.gio-vietqr__nut::before {   /* biểu tượng túi hàng — vẽ bằng mask nên tự theo màu chữ */
  content: ""; flex: none; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8Z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8Z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gio-vietqr__dem {
  display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .35em; border-radius: 999px;
  background: var(--mau-chu); color: var(--mau-nen); font-size: .82em; font-variant-numeric: tabular-nums;
}
.gio-vietqr__nut.co-hang .gio-vietqr__dem { background: var(--mau-nhan); color: #fff; }
.gio-vietqr__thong-bao {
  position: fixed; z-index: var(--z-hop-thoai); top: 76px; right: var(--le); max-width: min(92vw, 24rem);
  display: flex; align-items: center; gap: var(--k-3); padding: .7em .8em .7em 1.1em; border-radius: var(--bo-goc);
  background: var(--mau-chu); color: var(--mau-nen); font-size: var(--co-nho); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--duong-cong);
}
.gio-vietqr__thong-bao.dang-hien { opacity: 1; transform: none; pointer-events: auto; }
.gio-vietqr__xem { flex: none; min-height: 36px; padding: 0 .9em; border-radius: 999px; border: 1px solid rgba(245, 242, 236, .5); background: transparent; color: inherit; font-weight: 600; }
html.gio-vietqr-mo { overflow: hidden; }
.gio-vietqr__hop {
  position: fixed; inset: 0 0 0 auto; width: min(100%, 30rem); height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--mau-nen); color: var(--mau-chu); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .45);
}
.gio-vietqr__hop::backdrop { background: rgba(12, 11, 9, .55); }
.gio-vietqr__hop[open] { animation: xw-gio-vao .35s var(--duong-cong); }
@keyframes xw-gio-vao { from { transform: translateX(28px); opacity: 0; } }
.gio-vietqr__dau {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--k-4);
  padding: var(--k-4) var(--k-5); background: var(--mau-nen); border-bottom: 1px solid var(--mau-vien);
}
.gio-vietqr__tieu-de { font-size: var(--co-3); }
.gio-vietqr__dong { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mau-vien); background: transparent; font-size: 1.5rem; line-height: 1; }
.gio-vietqr__than { padding: var(--k-5); }
.gio-vietqr__than > section { display: grid; gap: var(--k-5); }
.gio-vietqr__trong { color: var(--mau-chu-phu); }
.gio-vietqr__mon { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--k-3); align-items: center; padding-block: var(--k-3); border-bottom: 1px solid var(--mau-vien); }
.gio-vietqr__mon img, .gio-vietqr__anh-trong { width: 64px; height: 64px; object-fit: cover; border-radius: var(--bo-goc-nho); background: var(--mau-nen-2); }
.gio-vietqr__mon-ten { font-weight: 600; line-height: 1.35; }
.gio-vietqr__mon-gia { color: var(--mau-chu-phu); font-size: var(--co-nho); font-variant-numeric: tabular-nums; }
.gio-vietqr__sl { display: inline-flex; align-items: center; border: 1px solid var(--mau-vien); border-radius: 999px; }
.gio-vietqr__sl button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.1rem; border-radius: 50%; }
.gio-vietqr__sl span { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.gio-vietqr__tong { display: grid; grid-template-columns: 1fr auto; gap: .45em 0; margin: 0; }
.gio-vietqr__tong dt { padding-right: 1em; }
.gio-vietqr__tong dt { color: var(--mau-chu-phu); }
.gio-vietqr__tong dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.gio-vietqr__tong dt:last-of-type, .gio-vietqr__tong dd:last-of-type { color: var(--mau-chu); font-weight: 700; font-size: 1.1rem; padding-top: .35em; border-top: 1px solid var(--mau-vien); }
.gio-vietqr__ghi-chu { grid-column: 1 / -1; font-size: var(--co-ti); color: var(--mau-chu-phu); }
.gio-vietqr__form { display: grid; gap: var(--k-4); }
.gio-vietqr__muc { font-size: 1.1rem; }
.gio-vietqr__o { display: grid; gap: var(--k-2); }
.gio-vietqr__o label { font-weight: 600; font-size: var(--co-nho); }
.gio-vietqr__loi { min-height: 1.2em; color: var(--mau-loi); font-size: var(--co-nho); font-weight: 500; }
.gio-vietqr__dat { width: 100%; }
.gio-vietqr__demo { padding: var(--k-4); border-radius: var(--bo-goc-nho); background: #FBEBD6; border: 1px solid #DFA563; color: #4E260A; font-size: var(--co-nho); line-height: 1.5; }
.gio-vietqr__khung-qr { position: relative; width: 236px; margin-inline: auto; padding: 14px; border-radius: var(--bo-goc); background: #fff; box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .35); }
.gio-vietqr__qr, .gio-vietqr__qr-mau { display: block; width: 208px; height: 208px; image-rendering: pixelated; }
.gio-vietqr__dau-mau {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-than); font-weight: 800; font-size: 2.6rem; letter-spacing: .2em; color: rgba(161, 38, 34, .9);
  transform: rotate(-18deg); text-shadow: 0 0 10px #fff, 0 0 18px #fff;
}
.gio-vietqr__huong-dan { text-align: center; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.gio-vietqr__tt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55em 1em; margin: 0; font-size: var(--co-nho); }
.gio-vietqr__tt dt { color: var(--mau-chu-phu); }
.gio-vietqr__tt dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: .5em; font-weight: 600; overflow-wrap: anywhere; }
.gio-vietqr__chep { flex: none; min-height: 32px; padding: 0 .85em; border-radius: 999px; border: 1px solid var(--mau-vien); background: transparent; font-size: var(--co-ti); font-weight: 600; }
.gio-vietqr__cho { font-size: var(--co-nho); color: var(--mau-chu-phu); text-align: center; }

/* 2026-10: trên điện thoại nút nổi Zalo/Gọi chỉ còn biểu tượng tròn 44px — đỡ che chữ của trang.
   Chữ "Zalo"/"Gọi" vẫn nằm trong thẻ (font-size 0) nên trình đọc màn hình vẫn đọc được. */
@media (max-width: 760px) {
  [data-khoi="nut-noi"] { gap: 8px; right: max(10px, env(safe-area-inset-right)); }
  [data-khoi="nut-noi"] > a {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; gap: 0; justify-content: center; font-size: 0;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 242, 236, .16);
  }
  [data-khoi="nut-noi"] svg { width: 20px; height: 20px; }
}
