/* ============================================================
   KHI Wellness — BỘ NỀN + KHO THÀNH PHẦN  (bản 2, sửa 30/07)
   Hướng: wellness mềm, app-like — NHƯNG:
     · KHÔNG đổ bóng ở bất kỳ đâu (Dang chốt)  → phân tầng bằng NỀN
     · KHÔNG viền ở trạng thái tĩnh — viền CHỈ hiện khi rê chuột (Dang chốt 30/07)
       (giữ border 1px transparent để hover không làm nhảy layout)
     · Bo góc nhẹ vừa, không bo tròn kiểu viên thuốc
     · Trang phải ĐỘNG — tinh thần KHI là chuyển động
   Archetype: C Landing · desktop 1280
   ============================================================ */

/* ---------- 1. TOKEN ---------- */
:root {
  --cream:      #F6F2EA;
  --cream-2:    #EFE9DD;
  --surface:    #FFFFFF;
  --sage-wash:  #E4EBDF;
  --sage:       #7E946F;      /* nét trang trí: chấm, vạch, viền hover */
  --sage-text:  #637456;      /* CHỮ sage (eyebrow) — 4.52:1 trên nền kem */
  --sage-deep:  #3E4C38;

  --ink:        #21241D;
  --ink-soft:   #59604F;
  --ink-faint:  #6B7163;      /* 4.51:1 trên kem (cũ #8A9081 chỉ 2.94) */
  --on-dark:    #F1EFE6;

  --clay:       #AC6237;      /* nền nút — chữ trắng đạt 4.61:1 (cũ #C2703F chỉ 3.70) */
  --clay-text:  #A05C33;      /* CHỮ/liên kết cam trên nền sáng — 4.62:1 */
  --clay-press: #8F4E2A;
  --clay-wash:  #F4E3D6;

  --line:       #E0DACD;      /* viền — thay cho bóng */
  --line-2:     #C4BAA4;

  /* bo góc — nhẹ vừa */
  --r-xl: 18px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;

  --shell: 1200px;
  --gap: 24px;
  --sec: 96px;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2,.8,.2,1);
  --t: .26s var(--ease);
}

/* ---------- 2. NỀN CHUNG ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', -apple-system, system-ui, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* clip chứ KHÔNG hidden: overflow-x hidden biến body thành scroll container
     → position:sticky bên trong không bao giờ dính (bẫy CSS kinh điển, dính 01/08). */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.022em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p  { margin: 0; color: var(--ink-soft); }

.shell { width: var(--shell); max-width: calc(100% - 64px); margin-inline: auto; }
.sec   { padding-block: var(--sec); }
.sec-sm{ padding-block: 64px; }

/* ---------- 3. THÀNH PHẦN NHỎ ---------- */

/* nhãn nhỏ — có chấm nhịp đập, dấu hiệu "đang sống" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-text); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  animation: beat 2.4s var(--ease) infinite;
}
@keyframes beat { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.9); opacity: .35 } }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color var(--t);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); }
.chip.sage { background: var(--sage-wash); border-color: transparent; color: var(--sage-deep); }
.chip.clay { background: var(--clay-wash); border-color: transparent; color: var(--clay-press); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* nút — bo nhẹ, không bóng, mũi tên trượt khi rê */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--clay); color: #fff;
  font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer;
  transition: background var(--t), transform var(--t), border-color var(--t), color var(--t);
}
.btn::after {                      /* mũi tên = SVG Lucide qua mask, KHÔNG dùng ký tự */
  content: ''; display: inline-block; width: 1.05em; height: 1.05em;
  background: currentColor; transform: translateX(-4px); opacity: .8;
  -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat;
  transition: transform var(--t), opacity var(--t);
}
.btn:hover { background: var(--clay-press); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(2px); opacity: 1; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--surface); border-color: var(--sage); color: var(--sage-deep); }
.btn.dark { background: var(--sage-deep); }
.btn.dark:hover { background: #2F3B2A; }
.btn.sm { height: 44px; padding: 0 16px; font-size: .92rem; }   /* hit-area tối thiểu 44px */
.btn.plain::after { content: none; }

/* đủ bộ trạng thái (KryUI layout §8): hover · active · focus · disabled · loading · done */
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible, .lnk:focus-visible, .nav a:focus-visible, .seg button:focus-visible,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--sage-text); outline-offset: 3px;
}
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: none; }
.btn .spin {
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.btn.is-done { background: var(--sage-deep); }
.btn.is-done::after { content: none; }
.form .msg { font-size: .92rem; color: var(--sage-deep); background: var(--sage-wash); padding: 12px 16px; border-radius: var(--r-md); }

/* liên kết — gạch chân chạy từ trái */
.lnk {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink); padding-bottom: 4px;
  transition: color var(--t), gap var(--t);
}
.lnk::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); }
.lnk::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--clay-text);
  transition: width .34s var(--ease);
}
.lnk:hover { color: var(--clay-text); gap: 12px; }
.lnk:hover::after { width: 100%; }

/* thẻ — viền thay bóng */
.card {
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-lg); padding: 24px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.card:hover { border-color: var(--sage); }              /* viền chỉ xuất hiện lúc rê chuột */
.card.hover:hover { transform: translateY(-3px); }      /* thẻ bấm được thì nhấc thêm */
.card.wash { background: var(--sage-wash); border-color: transparent; }
.card.pad-lg { padding: 40px; }

/* ô trống chờ nội dung */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; min-height: 168px; padding: 24px;
  background: var(--cream-2); border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg); color: var(--ink-faint);
}
.slot b { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.slot span { font-size: .82rem; }
.slot.tall { min-height: 300px; }

/* khung ảnh */
.ph { border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph.zoom:hover img { transform: scale(1.05); }
.r-43 { aspect-ratio: 4/3; } .r-11 { aspect-ratio: 1/1; } .r-34 { aspect-ratio: 3/4; }

/* ---------- 4. ĐIỀU HƯỚNG ---------- */
.nav-wrap { position: sticky; top: 16px; z-index: 30; }   /* sticky = 30 theo thang KryUI */
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 8px 0 24px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid transparent; border-radius: var(--r-lg);
}
.nav .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav .brand img { height: 28px; width: auto; }
.nav a.item { position: relative; font-size: .95rem; color: var(--ink-soft); padding: 12px 2px; transition: color var(--t); }   /* hit-area 44px */
.nav a.item::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 10px; height: 1.5px; width: 0; background: var(--sage);
  transition: width .3s var(--ease);
}
.nav a.item:hover { color: var(--ink); }
.nav a.item:hover::after { width: 100%; }
.nav .btn { height: 44px; padding: 0 16px; font-size: .92rem; }

/* vạch tiến trình cuộn — trang "đang chạy" */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--clay); z-index: 70; }

/* ---------- 5. KHỐI LỚN ---------- */

/* hero — ảnh nhích chậm theo cuộn, panel viền không bóng */
.hero { padding-top: 26px; }
.hero-stage { position: relative; }
.hero-stage .ph { aspect-ratio: 21/9; border-radius: var(--r-xl); }
.hero-stage .ph img { will-change: transform; }
.hero-panel {
  position: relative; z-index: 2;
  width: 620px; margin: -120px 0 0 36px;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-xl); padding: 36px;
}
.hero-panel p { font-size: 1.05rem; margin-top: 16px; max-width: 46ch; }
.hero-act { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.hero-chips { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* dải chữ chạy ngang — nhịp chuyển động của trang */
.marquee { background: var(--sage-deep); color: var(--on-dark); overflow: hidden; padding: 15px 0; }
.marquee .track { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 44px; font-size: .95rem; letter-spacing: .04em; white-space: nowrap; color: #CBD3C0; }
.marquee span::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
@keyframes slide { to { transform: translateX(-50%) } }

/* dải số — số tự đếm lên */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 24px; transition: border-color var(--t); }
.stat:hover { border-color: var(--sage); }
.stat .n { font-size: 2.4rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--sage-deep); font-variant-numeric: tabular-nums; }
.stat .l { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }

.hd { max-width: 62ch; margin-bottom: 40px; }
.hd p { margin-top: 14px; font-size: 1.04rem; }
.hd-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.hd-row .hd { margin-bottom: 0; }

.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

/* thẻ hình thức tập */
.fmt {
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t), border-color var(--t);
}
.fmt:hover { transform: translateY(-3px); border-color: var(--sage); }
.fmt .ph { border-radius: 0; aspect-ratio: 4/3; }
.fmt .body { padding: 24px; }
.fmt .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fmt p { margin-top: 10px; font-size: .95rem; }
.fmt .price { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.fmt .price b { font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; }
.fmt .price span { font-size: .85rem; color: var(--ink-faint); }

/* bộ lọc */
.seg { display: inline-flex; padding: 4px; background: var(--cream-2); border: 1px solid transparent; border-radius: var(--r-md); gap: 4px; }
.seg button {
  border: 0; background: transparent; font: inherit; font-size: .94rem; font-weight: 500;
  color: var(--ink-soft); padding: 9px 20px; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--t), color var(--t);
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); }

/* hàng gói tập */
.pk-list { display: flex; flex-direction: column; gap: 10px; }
.pk {
  display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.4fr auto;
  align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-lg); padding: 20px 24px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.pk:hover { transform: translateX(4px); border-color: var(--sage); }
.pk.on { background: var(--sage-wash); }   /* nổi bật bằng nền, không viền */
.pk .name { font-weight: 500; font-size: 1.06rem; }
.pk .name small { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-faint); margin-top: 3px; }
.pk .num { font-size: 1rem; color: var(--ink-soft); }
.pk .money b { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.pk .money s { display: block; font-size: .83rem; color: var(--ink-faint); }
.pk .gift { font-size: .87rem; color: var(--ink-soft); }

/* người hướng dẫn */
.person { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; }
.person .ph { aspect-ratio: 1/1; border-radius: var(--r-md); }
.person .q { font-size: 1.1rem; color: var(--ink); line-height: 1.5; }
.person .meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.person .meta .nm { font-weight: 500; }

/* băng ảnh — tự trôi chậm, dừng khi rê chuột, vẫn kéo tay được */
.rail-wrap { position: relative; }
.rail { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 360px; }
.rail .ph { aspect-ratio: 4/3; }

/* lời khách */
.quote { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 24px; transition: transform var(--t), border-color var(--t); }
.quote:hover { transform: translateY(-3px); border-color: var(--sage); }
.quote .stars { color: var(--clay-text); letter-spacing: 2px; font-size: .95rem; }
.quote blockquote { margin: 12px 0 0; font-size: 1rem; color: var(--ink); line-height: 1.55; }
.quote .by { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.quote .av { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--sage-wash); color: var(--sage-deep); display: grid; place-items: center; font-weight: 500; font-size: .9rem; }
.quote .by small { color: var(--ink-faint); }

/* khối mời tập thử */
.offer { background: var(--sage-wash); border-radius: var(--r-xl); padding: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.offer .price { margin: 20px 0 8px; }
.offer .price b { display: block; font-size: 3.1rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--sage-deep); font-variant-numeric: tabular-nums; }
/* chỉ span CON TRỰC TIẾP mới xuống dòng — span nằm trong <b> là con số, phải giữ cỡ lớn */
.offer .price > span { display: block; margin-top: 8px; font-size: 1.01rem; color: var(--ink-soft); }
.offer .price b span { display: inline; font: inherit; color: inherit; margin: 0; }
.offer ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer li { display: flex; gap: 12px; font-size: .97rem; color: var(--ink-soft); }
.offer li::before {
  content: '✓'; flex: none; width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: var(--surface); color: var(--sage-deep); font-size: .72rem; font-weight: 600;
}

/* khối tối */
.dark-block { background: var(--sage-deep); color: var(--on-dark); border-radius: var(--r-xl); padding: 48px; }
.dark-block h2, .dark-block h3 { color: var(--on-dark); }
.dark-block p { color: #C2CAB6; }
.dark-block .chip { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: var(--on-dark); }
.dark-block .eyebrow { color: #B0B9A7; }
.dark-block .eyebrow::before { background: #B0B9A7; }

/* form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .87rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid transparent; border-radius: var(--r-md);
  transition: border-color var(--t), background var(--t);
}
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: var(--surface); border-color: var(--sage); }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { font-size: .84rem; color: var(--ink-faint); text-align: center; }

/* ---------- 6. CHÂN TRANG ---------- */
.ft { background: var(--sage-deep); color: var(--on-dark); margin-top: var(--sec); padding-top: 64px; }
.ft-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.ft h5 { margin: 0 0 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #B0B9A7; font-weight: 500; }
.ft a, .ft p { display: block; color: #C2CAB6; font-size: .95rem; margin-bottom: 9px; transition: color var(--t), transform var(--t); }
.ft a:hover { color: #fff; transform: translateX(3px); }
.ft-logo { height: 32px; margin-bottom: 16px; }
.ft-bot { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .87rem; color: #93A08C; }

/* ---------- 7. CHUYỂN ĐỘNG ---------- */
/* trồi lên khi vào màn — so le theo thứ tự trong lưới */
.rise { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .09s }
.stagger.in > *:nth-child(3) { transition-delay: .18s }
.stagger.in > *:nth-child(4) { transition-delay: .27s }
.stagger.in > *:nth-child(5) { transition-delay: .36s }
.stagger.in > *:nth-child(6) { transition-delay: .45s }

/* dòng chữ hé lên từ dưới lằn cắt */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > i { display: block; font-style: normal; transform: translateY(105%); transition: transform .8s var(--ease); }
.in .reveal-line > i, .reveal-line.in > i { transform: none; }
.reveal-line:nth-child(2) > i { transition-delay: .08s }

@media (prefers-reduced-motion: reduce) {
  .rise, .stagger > * { opacity: 1; transform: none; transition: none; }
  .reveal-line > i { transform: none; }
  .marquee .track { animation: none; }
  .eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 7b. KHỐI CHO TRANG PHỤ (thêm 30/07) ---------- */

/* M · banner đầu trang — mọi trang phụ đều mở bằng ảnh, không mở bằng chữ */
.pbanner { position: relative; margin-top: 22px; border-radius: var(--r-xl); overflow: hidden; }
.pbanner .bg { aspect-ratio: 32/9; }
.pbanner .bg img { width: 100%; height: 100%; object-fit: cover; }
.pbanner .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,34,26,.72) 0%, rgba(30,34,26,.42) 45%, rgba(30,34,26,.06) 100%); }
.pbanner .pb-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(28px, 5vw, 64px); max-width: 62ch; }
.pbanner h1 { color: #fff; }
.pbanner p { color: #E8E7DE; margin-top: 12px; max-width: 46ch; }
.pbanner .eyebrow { color: #CBD3C0; }
.pbanner .eyebrow::before { background: #CBD3C0; }
.pbanner.dark { background: var(--sage-deep); }
.pbanner.dark .bg { display: none; }
.pbanner.dark .veil { background: none; }
.pbanner.dark .pb-in { position: static; min-height: 260px; padding-block: 48px; }

/* N · khung video — chưa có phim thì vẫn giữ chỗ đúng tỉ lệ */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .veil { position: absolute; inset: 0; background: rgba(28,32,24,.34); }
.video .play {
  position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 50%;
  background: var(--clay); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
  transition: transform var(--t), background var(--t);
}
.video:hover .play { transform: scale(1.06); background: var(--clay-press); }
.video .cap { position: absolute; z-index: 2; bottom: 18px; left: 20px; color: #fff; font-size: .9rem; }
.video.empty { border: 1.5px dashed var(--line-2); }
.video.empty .play { background: transparent; color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.video.empty .cap { position: static; color: var(--ink-faint); text-align: center; margin-top: 12px; }
.video.empty .in { position: relative; z-index: 2; display: grid; place-items: center; }

/* O · lưới ảnh lệch — kể chuyện bằng ảnh, không bằng chữ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: var(--gap); }
.bento > * { border-radius: var(--r-lg); overflow: hidden; }
.bento .w2 { grid-column: span 2; } .bento .w3 { grid-column: span 3; }
.bento .h2 { grid-row: span 2; }
.bento .ph, .bento .slot { height: 100%; min-height: 0; }
.bento .ph img { height: 100%; }

/* P · dải các bước */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: s; }
.step { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 24px; transition: border-color var(--t); }
.step:hover { border-color: var(--sage); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: var(--r-sm); background: var(--sage-wash); color: var(--sage-deep); font-weight: 500;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* Q · danh sách chữ có gạch phân cách (dùng ở trang chính sách) */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.doc nav { position: sticky; top: 96px; display: grid; gap: 10px; }
.doc nav a { font-size: .95rem; color: var(--ink-soft); transition: color var(--t), padding-left var(--t); }
.doc nav a:hover { color: var(--clay-text); padding-left: 4px; }
.doc article { max-width: 66ch; }   /* độ dài dòng đọc được (KryUI layout §2) */
.doc article h3 { margin-top: 40px; }
.doc article h3:first-child { margin-top: 0; }
.doc article p { margin-top: 12px; }

/* ---------- 8. TRANG KHO THÀNH PHẦN ---------- */
.sysbar { position: sticky; top: 0; z-index: 30; background: rgba(246,242,234,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sysbar .in { display: flex; align-items: center; gap: 20px; height: 58px; }
.sysbar .in b { margin-right: auto; font-weight: 500; }
.sysbar a { font-size: .92rem; color: var(--ink-soft); }
.sysbar a:hover { color: var(--clay-text); }
.spec { margin-top: 8px; font-size: .83rem; color: var(--ink-faint); font-family: ui-monospace, Menlo, monospace; }
.sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sw div .box { height: 78px; border-radius: var(--r-md); border: 1px solid var(--line); }
.sw div p { font-size: .82rem; margin-top: 8px; }
.blk { padding: 30px; background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); margin-bottom: 18px; }
.blk > h4 { margin-bottom: 18px; }
.blk .note { font-size: .88rem; color: var(--ink-faint); margin-bottom: 16px; }

/* ---------- 9. BẢN ĐỒ NHÚNG (thêm 31/07) ---------- */
.gmap { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--cream-2);
        border: 1px solid transparent; transition: border-color var(--t); }
.gmap:hover { border-color: var(--sage); }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.82); }

/* ---------- 9b. KHỐI ĐẶT LỊCH — cột trái (redesign 01/08, KryMark 6huvwe4bq0kma5s) ---------- */
/* 3 bước "sau khi gửi số" — hàng dọc mảnh, số đất nung làm mốc mắt */
.after-send { list-style: none; margin: 12px 0 0; padding: 0; }
.after-send li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; }
.after-send li + li { border-top: 1px solid var(--line); }
.after-send .no { flex: none; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--clay-text); font-variant-numeric: tabular-nums; }
.after-send p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
/* hàng liên hệ phẳng — không lồng card, mỗi hàng 1 việc, hành động nằm bên phải */
.crows { margin-top: 28px; border-top: 1px solid var(--line); }
.crow { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.crow > svg { flex: none; color: var(--sage-deep); }
.crow > div { flex: 1; min-width: 0; }
.crow b { color: var(--ink); font-weight: 500; }
.crow > .lnk { flex: none; font-size: .9rem; }
.gmap.slim { aspect-ratio: 21/7; margin-top: 24px; }

/* ---------- 10. BÀI VIẾT (thêm 31/07) ---------- */
/* thẻ bài trong lưới — cả thẻ là một liên kết */
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card p { font-size: .95rem; }
.post-card .lnk { margin-top: auto; align-self: flex-start; }

/* thân bài — độ dài dòng đọc được, nhịp đọc thoáng */
.doc-article { max-width: 68ch; margin-inline: auto; }
.doc-article h2 { font-size: 1.55rem; margin-top: 44px; }
.doc-article h3 { font-size: 1.2rem; margin-top: 32px; }
.doc-article p { margin-top: 14px; font-size: 1.04rem; line-height: 1.75; }
.doc-article ul, .doc-article ol { margin: 14px 0 0; padding-left: 22px; color: var(--ink-soft); }
.doc-article li { margin-top: 8px; line-height: 1.7; }
.doc-article strong { color: var(--ink); font-weight: 500; }
.doc-article a { color: var(--clay-text); border-bottom: 1px solid var(--line-2); }
.doc-article a:hover { border-bottom-color: var(--clay-text); }
.doc-article hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--line); }
.doc-article table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .96rem; }
.doc-article th, .doc-article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-article th { font-weight: 500; color: var(--ink); }
.doc-article td { color: var(--ink-soft); }
