/* Tìm hiểu Đạo Phật với AI - landing page cuộc đua Luyện AI.
   Màu đặt theo chức năng để dùng lại cho chủ đề khác (xem 03-quy-tac-thiet-ke-giao-dien.md). */
:root {
  --action: #0b2f6b;          /* Navy chính: tiêu đề, nút chính, liên kết */
  --action-deep: #071e47;     /* Navy sâu: rê chuột, khối kết trang */
  --accent: #c19a49;          /* Vàng trầm: CHỈ trang trí (2,48:1 trên nền ngà) */
  --accent-ink: #8a6420;      /* Vàng chữ trên nền sáng (5,05:1) */
  --accent-soft: #f6ecd8;     /* Nền nút phụ, nhãn vàng */
  --accent-on-dark: #e2bd6e;  /* Vàng chữ trên navy */
  --page: #fbf8f1;            /* Nền ngà */
  --sheet: #ffffff;
  --blue-soft: #eaf0f8;
  --ink: #14213d;
  --muted: #586274;
  --line: #e4e0d7;
  --line-ctrl: #8d98aa;
  --ok: #2c6e49;
  --ok-soft: #e7f1ea;
  --warn: #b42318;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --band-y: clamp(56px, 8vw, 96px);
  --header-h: 70px;
  --r-card: 14px;
  --r-lg: 20px;
  --r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--action);
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.18; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.28; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-deep); }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.band--navy :focus-visible, .final :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.quiet { color: var(--muted); font-size: 15px; line-height: 1.6; }
.measure { max-width: 720px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--action); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid var(--action);
  background: var(--action); color: #fff;
  font: 600 16px/1.3 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--action-deep); border-color: var(--action-deep); color: #fff; }
.btn--lg { min-height: 52px; padding: 14px 28px; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn--soft { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.btn--soft:hover { background: #efdfbf; color: #6d4e15; border-color: var(--accent-ink); }
.btn--gold { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--action-deep); }
.btn--gold:hover { background: #f0d293; border-color: #f0d293; color: var(--action-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions--center { justify-content: center; }

.link-strong { font-weight: 600; }

/* ---------- Nhãn ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-sm);
  background: #f1eee7; color: var(--muted);
  font: 600 13px/1.5 var(--sans); white-space: nowrap;
}
.tag--gold { background: var(--accent-soft); color: var(--accent-ink); }
.tag--blue { background: var(--blue-soft); color: var(--action); }
.tag--green { background: var(--ok-soft); color: var(--ok); }

.eyebrow {
  font: 600 14px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px;
}
.eyebrow--light { color: var(--accent-on-dark); }

/* ---------- Thanh đầu trang ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(11, 47, 107, .06); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--action); }
.brand__logo { width: 36px; height: 36px; mix-blend-mode: multiply; }
.brand__name { font: 600 21px/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--action); background: var(--blue-soft); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
    border: 1.5px solid var(--line-ctrl); border-radius: 999px; background: var(--sheet);
    font: 600 15px var(--sans); color: var(--action); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--page);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 47, 107, .08);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  html:not(.js) .nav { display: flex; position: static; box-shadow: none; }
}

/* ---------- Kỳ đã đóng ---------- */
.closed-banner { background: var(--accent-soft); border-bottom: 1px solid var(--accent); padding: 16px 0; }
.closed-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.closed-banner p { margin: 0; max-width: 760px; }

/* ---------- Dải nền ---------- */
.band { padding: var(--band-y) 0; }
.band--white { background: var(--sheet); }
.band--blue { background: var(--blue-soft); }
.band--navy { background: var(--action); color: #e8eef8; }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy a:not(.btn) { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head > p { font-size: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.split__head { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) {
  .split, .split--wide { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---------- Thẻ ---------- */
.card {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
}
.card--lg { border-radius: var(--r-lg); }
.card--blue { background: var(--blue-soft); border-color: #d5e0ef; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.card__head h3, .card__head p { margin: 0; }

.icon { width: 28px; height: 28px; fill: none; stroke: var(--action); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 40px; height: 40px; margin-bottom: 12px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.ticks--roomy { gap: 14px; margin-bottom: 24px; }

/* ---------- 1. Mở đầu ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--band-y); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero__lead { font: 500 clamp(20px, 2.2vw, 24px)/1.45 var(--serif); color: var(--action); margin-bottom: 20px; }
.hero__lead em { font-style: italic; color: var(--accent-ink); }
.hero__text { font-size: 19px; max-width: 680px; }
.hero__assure {
  display: inline-block; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ok-soft); color: #1f5236; font-weight: 500; font-size: 16px;
}
.ticket {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 24px 0 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card);
}
.ticket > div { padding: 14px 18px; }
.ticket > div + div { border-left: 1px solid var(--line); }
.ticket dt { font-size: 14px; color: var(--muted); }
.ticket dd { margin: 2px 0 0; font-weight: 700; color: var(--action); line-height: 1.4; }
.hero__note { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 640px; }

.session { position: relative; margin: 0; padding-top: 112px; }
.session__lotus {
  position: absolute; width: 180px; height: 126px; right: 32px; top: 0;
  color: var(--accent); pointer-events: none;
}
.session__card {
  position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 12px 32px rgba(11, 47, 107, .08);
}
.session__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.session__title { margin: 0; font: 600 19px/1.3 var(--serif); color: var(--action); }
.msg { padding: 12px 14px; border-radius: var(--r-card); margin-bottom: 10px; font-size: 15px; line-height: 1.6; }
.msg p { margin: 0; }
.msg .msg__who { font-weight: 600; font-size: 13px; color: var(--action); margin-bottom: 2px; }
.msg__who span { font-weight: 500; color: var(--muted); }
.msg--ai { background: var(--blue-soft); margin-right: 28px; }
.msg--me { background: var(--page); border: 1px solid var(--line); margin-left: 28px; }
.session__next { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li {
  padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-ctrl);
  font-size: 14px; font-weight: 500; color: var(--action); background: var(--sheet);
}
.session__cap { margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .session { max-width: 560px; }
  .session { padding-top: 0; }
  .session__lotus { display: none; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero__text { font-size: 18px; }
  .hero .actions .btn { width: 100%; }
  .session__lotus { display: none; }
  .msg--ai { margin-right: 0; }
  .msg--me { margin-left: 16px; }
}

/* ---------- 2. Người mới ---------- */
.who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.who .tag { margin-bottom: 12px; white-space: normal; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- 3. Câu hỏi ---------- */
.qa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.qa-grid .section-head { margin-bottom: 0; }
.qpick__hint { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.qlist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.qchip {
  width: 100%; text-align: left; cursor: pointer;
  padding: 14px 18px 14px 44px; position: relative; min-height: 48px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card);
  font: 500 16px/1.5 var(--sans); color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease;
}
.qchip::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid var(--line-ctrl); border-radius: 50%;
}
.qchip:hover { border-color: var(--line-ctrl); }
.qchip[aria-pressed="true"] { border-color: var(--action); background: var(--blue-soft); color: var(--action); font-weight: 600; }
.qchip[aria-pressed="true"]::before { border-color: var(--action); background: var(--action); box-shadow: inset 0 0 0 3px var(--blue-soft); }
html:not(.js) .qchip { cursor: default; }
.prompt { background: var(--sheet); border: 1px dashed var(--accent); border-radius: var(--r-card); padding: 20px; }
.prompt__label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-ink); margin-bottom: 8px; }
.prompt__text { font-size: 16px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.copy-status { font-size: 14px; font-weight: 600; color: var(--ok); }
.copy-status.is-warn { color: var(--warn); }
.copy-status--light { color: #bfe3cc; }
.copy-status--light.is-warn { color: #ffd2cc; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: 1fr; } }

/* ---------- 4. Một ngày ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.step { position: relative; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); }
.step__num {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--action); color: #fff; font: 600 17px/1 var(--serif);
}
.step .icon { margin-bottom: 12px; }
.step h3 { padding-right: 44px; }
.step p { font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

.day-extra { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 960px) { .day-extra { grid-template-columns: 1fr; gap: 16px; } }
.tpl { margin: 0 0 16px; display: grid; gap: 12px; }
.tpl div { border-left: 2px solid var(--accent); padding-left: 14px; }
.tpl dt { font-weight: 600; color: var(--action); font-size: 15px; }
.tpl dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.journey { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.cal { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.cal__stage { margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.cal__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__days li {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--page);
  padding: 6px 2px; text-align: center; line-height: 1.25;
}
.cal__days b { display: block; font: 600 15px/1.2 var(--serif); color: var(--action); }
.cal__days small { display: block; font-size: 12px; color: var(--muted); }
.cal__days li:first-child { border-color: var(--action); }

/* ---------- 5. Hai việc ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.pair__lotus { width: 64px; height: 45px; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 16px; } }

.map, .board, .prize { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; font: 600 20px/1.35 var(--serif); color: var(--action); padding-bottom: 12px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-ctrl); }
.map { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 20px 8px; margin-bottom: 24px; }
.map tbody td:last-child { color: var(--action); font-weight: 600; }
.map tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 6. Thầy AI ---------- */
#thay-ai .split { align-items: center; }
.disclaimer {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08); border-left: 3px solid var(--accent-on-dark); font-size: 15px;
}
.opener { background: var(--action-deep); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px); }
.opener__label { font-weight: 600; font-size: 14px; color: var(--accent-on-dark); margin-bottom: 10px; }
.opener__text { margin: 0; font: 500 clamp(18px, 1.8vw, 21px)/1.6 var(--serif); color: #fff; }
.opener__note { margin-top: 14px; font-size: 14px; color: #c8d3e6; }

/* ---------- 7. Học liệu ---------- */
.durations { display: grid; gap: 16px; }
.dur { background: var(--sheet); border: 1px solid #d5e0ef; border-radius: var(--r-card); padding: 20px 24px; }
.dur .tag { margin-bottom: 8px; }
.access { font-size: 15px; color: var(--ink); background: rgba(255,255,255,.6); border-radius: var(--r-card); padding: 16px 20px; }

/* ---------- 8. Cộng đồng ---------- */
.thread { margin: 0; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.thread__where { font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.post { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; font-size: 15px; }
.post__q { font: 600 17px/1.45 var(--serif); color: var(--action); margin-bottom: 8px; }
.reply { margin: 10px 0 0 24px; background: var(--blue-soft); border-radius: var(--r-card); padding: 12px 16px; font-size: 15px; }
.reply__who { font-weight: 600; font-size: 13px; color: var(--action); margin-bottom: 2px; }
.thread__next { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--ok); }
.thread__cap { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- 9. Sau 21 ngày ---------- */
.phases { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); }
.phase-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; }
.phase-list li { display: grid; gap: 2px; padding: 14px 0 14px 22px; border-left: 2px solid var(--line); position: relative; }
.phase-list li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--accent); }
.phase-list strong { color: var(--action); }
.phase-list span { font-size: 15px; color: var(--muted); }

/* ---------- 10. Cách thi ---------- */
.score-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rules .card { padding: 20px; }
.rules h3 { font-size: 19px; margin-bottom: 8px; }
.rules p { font-size: 15px; }
.board { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.board table { margin-bottom: 14px; min-width: 380px; }
.board td:nth-child(2) { font-weight: 500; }
@media (max-width: 1023px) { .score-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .rules { grid-template-columns: 1fr; } }

/* ---------- 11. Quyền lợi ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 16px; }
.plan {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
}
.plan--main { border: 2px solid var(--action); box-shadow: 0 12px 32px rgba(11, 47, 107, .08); }
.plan h3 { margin: 0; }
.plan__kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.plan__price { margin: 0; font: 600 24px/1.3 var(--serif); color: var(--action); }
.plan__price span { display: block; font: 500 14px/1.5 var(--sans); color: var(--muted); }
.plan .ticks { font-size: 15px; flex: 1; align-content: start; }
.plan .btn { margin-top: auto; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; line-height: 1.5; }
.status--ok { background: var(--ok-soft); color: #1f5236; }
.status--note { background: #f3efe6; color: #5c4a26; }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; } }

.award { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.prize { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 16px; margin: 20px 0; max-width: 620px; }
@media (min-width: 641px) { .prize th, .prize td { white-space: nowrap; } }
.award > * { min-width: 0; }
.prize tr:last-child td { border-bottom: 0; }
.cert { margin: 0; }
.cert__paper {
  position: relative; text-align: center; background: #fffdf8;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 36px 28px 32px; box-shadow: 0 12px 32px rgba(11, 47, 107, .08);
  outline: 1px solid var(--accent); outline-offset: -12px;
}
.cert__lotus { width: 80px; height: 56px; color: var(--accent); }
.cert__org { margin: 4px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.cert__title { margin: 0 0 14px; font: 600 26px/1.3 var(--serif); color: var(--action); }
.cert__name { margin: 0 0 10px; font: italic 500 20px/1.4 var(--serif); color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cert__line { margin: 0; font-size: 15px; color: var(--muted); }
.cert__prize { display: inline-block; margin-top: 14px; padding: 4px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.cert figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.cert figcaption .tag { margin-right: 6px; }
@media (max-width: 900px) { .award { grid-template-columns: 1fr; } .cert { max-width: 440px; } }

/* ---------- 12. Đăng ký ---------- */
.band--signup { background: var(--action); }
.signup { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1023px) { .signup { grid-template-columns: 1fr; } }
.confirm {
  margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-card); overflow: hidden;
}
.confirm > div { background: var(--action); padding: 12px 16px; }
.confirm dt { font-size: 13px; color: #c8d3e6; }
.confirm dd { margin: 2px 0 0; font-weight: 600; color: #fff; line-height: 1.45; }
@media (max-width: 600px) { .confirm { grid-template-columns: 1fr; } }

.bank {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start;
  margin: 24px 0 32px; padding: 20px; border-radius: var(--r-lg);
  background: var(--action-deep); border: 1px solid rgba(255,255,255,.14);
}
.bank__qr { width: 200px; border-radius: var(--r-sm); background: #fff; padding: 8px; }
.bank__title { font-size: 20px; margin-bottom: 12px; }
.bank dl { margin: 0 0 8px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.bank dt { color: #c8d3e6; }
.bank dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.bank__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bank__acc span { font: 600 19px/1.3 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bank__hint { margin-top: 10px; font-size: 14px; color: #c8d3e6; }
@media (max-width: 640px) {
  .bank { grid-template-columns: 1fr; }
  .bank__qr { width: 220px; margin: 0 auto; }
  .bank dl { grid-template-columns: 1fr; gap: 2px; }
  .bank dd { margin-bottom: 8px; }
}
.minor { font-size: 20px; }
.flow { margin: 0; padding: 0; list-style: none; counter-reset: flow; display: grid; gap: 12px; }
.flow li { counter-increment: flow; position: relative; padding-left: 44px; min-height: 30px; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-on-dark); color: var(--action-deep); font: 600 15px/1 var(--serif);
}
.signup__link { margin-top: 16px; font-size: 14px; color: #c8d3e6; overflow-wrap: anywhere; }
.signup__closed { padding: 16px; border-radius: var(--r-card); background: rgba(255,255,255,.08); font-weight: 500; }

.signup__side { display: grid; gap: 16px; }
.panel { background: var(--action-deep); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 24px; font-size: 15px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.panel--gold { border-color: var(--accent); }
.template-msg {
  margin: 12px 0 0; white-space: pre-line; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.3);
  font-size: 15px; line-height: 1.6; color: #fff;
}
.small-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- 13-14. Thể lệ và hỏi đáp ---------- */
.acc { display: grid; gap: 10px; }
.acc details { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-card); }
.band--white .acc details { background: var(--page); }
.acc summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 52px 16px 20px; min-height: 48px;
  font-weight: 600; color: var(--action); border-radius: var(--r-card);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(45deg);
  transition: transform .2s ease;
}
.acc details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc summary:hover { background: rgba(11, 47, 107, .04); }
.acc__body { padding: 0 20px 18px; font-size: 16px; }
.acc__body p { margin-bottom: 12px; }

/* ---------- 15. Lời mời cuối ---------- */
.final { background: var(--action-deep); color: #e8eef8; text-align: center; }
.final__inner { max-width: 820px; }
.final__lotus { width: 120px; height: 84px; color: var(--accent-on-dark); margin-bottom: 8px; }
.final h2 { color: #fff; }
.final p { font-size: 18px; }
.final__date { font: 600 20px/1.4 var(--serif); color: var(--accent-on-dark); margin-top: 8px; }
.final__meta { margin-top: 20px; font-size: 15px !important; color: #c8d3e6; }
.final__links { font-size: 15px !important; }
.final a:not(.btn) { color: #fff; }

/* ---------- Chân trang ---------- */
.footer { background: var(--page); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__row > div { max-width: 640px; }
.footer__org { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.footer__contact { overflow-wrap: anywhere; margin-bottom: 6px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-content: flex-start; }
.footer__nav a { padding: 6px 0; }

/* ---------- Thanh đăng ký cố định trên điện thoại ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 47, 107, .08);
    transition: transform .2s ease;
  }
  .sticky-cta p { margin: 0; display: grid; line-height: 1.3; }
  .sticky-cta span { font-size: 13px; color: var(--muted); }
  .sticky-cta strong { color: var(--action); font-size: 17px; }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-cta[hidden] { display: none; }
  body { padding-bottom: 76px; }
}

/* ---------- Trạng thái kỳ ---------- */
.is-closed [data-open-only] { display: none !important; }

/* ---------- Xuất hiện nhẹ một lần ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .session__card { animation: rise .5s ease-out both; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Quà tặng top 15 ---------- */
.gift {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  color: var(--ink); font-size: 16px;
}
.gift strong { color: var(--action); }

/* ---------- Nút lên đầu trang ---------- */
.to-top {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sheet); border: 1.5px solid var(--action); color: var(--action);
  box-shadow: 0 8px 24px rgba(11, 47, 107, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .18s ease, color .18s ease;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--action); color: #fff; }
.to-top.is-visible, html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 760px) {
  .to-top { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .is-closed .to-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
