/* Layout: mobile-first, một cột; từ 820px chia 2 cột. Luồng đặt phòng là màn hình toàn phần trên di động, hộp thoại giữa màn hình trên desktop. */
:root {
  /* Màu thương hiệu lấy từ logo + web vietthuong.edu.vn */
  --brand: #2b67fe;        /* xanh logo */
  --brand-ink: #1946c8;    /* xanh đậm cho chữ/hover */
  --brand-soft: #e7eeff;
  --teal: #1792a4;         /* xanh ngọc của web gốc */
  --sun: #ffd70e;          /* vàng nhấn */
  --on-brand: #ffffff;
  --bg: #ffffff;
  --tint: #f3f6fd;
  --card: #ffffff;
  --ink: #101a34;
  --muted: #5b6784;
  --line: #dde4f2;
  --ok: #12925c;
  --ok-soft: #e3f6ec;
  --few: #b86e00;
  --few-soft: #fff2d6;
  --full: #9aa3b8;
  --full-soft: #eef0f5;
  --danger: #d0263a;
  --shadow: 0 10px 30px -12px rgba(16, 26, 52, .25);

  --f-display: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --dock-h: 68px;
  color-scheme: light; /* luôn dùng theme sáng */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, label, summary, [role="radio"], [role="checkbox"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.selectable { user-select: all; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: .98rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--light { background: #ffffff; color: #1946c8; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { width: clamp(100px, 30vw, 136px); height: auto; }
.topbar__call {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-family: var(--f-display); font-weight: 700; font-size: .9rem; text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 40px;
}
.topbar__call svg { width: 16px; height: 16px; fill: currentColor; }

.topbar__right { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__acc {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--line);
  white-space: nowrap; max-width: 46vw;
}
.topbar__acc span { overflow: hidden; text-overflow: ellipsis; }
.topbar__acc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Máy hẹp: nút gọi chỉ còn biểu tượng (số hotline vẫn có ở thanh dưới đáy), giữ chữ "Đăng nhập" */
@media (max-width: 419px) { .topbar__call { width: 40px; padding: 0; justify-content: center; } .topbar__call span { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: 16px 32px; overflow: hidden; }
.hero__in { display: grid; gap: 20px; }
.hero__title { font: 800 clamp(1.6rem, 7.8vw, 3.4rem)/1.08 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.hero__title span { display: block; color: var(--brand); }
.hero__inst { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__inst li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: .88rem;
}
.hero__inst li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__cta .btn { flex: 1 1 140px; padding: 0 16px; white-space: nowrap; }
.facts {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts li { padding: 14px 6px 0 0; display: grid; gap: 2px; min-width: 0; }
.facts li + li { padding-left: clamp(8px, 3vw, 12px); border-left: 1px solid var(--line); }
.facts b { font-family: var(--f-display); font-weight: 800; font-size: clamp(.98rem, 4.6vw, 1.35rem); white-space: nowrap; color: var(--brand-ink); line-height: 1.1; }
.facts span { font-size: clamp(.7rem, 3.2vw, .8rem); color: var(--muted); line-height: 1.35; }
.facts b span { font: inherit; color: inherit; line-height: inherit; } /* số trong chữ đậm (VD "1–3 giờ") giữ cùng cỡ chữ */

.hero__media {
  margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 10; max-width: 100%; background: var(--tint);
  box-shadow: var(--shadow);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Dải phím đàn trang trí ở chân ảnh */
.keys {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 1px), rgba(16,26,52,.35) calc(100% / 14 - 1px) calc(100% / 14)),
    #ffffff;
}
.keys::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 20px;
  background: repeating-linear-gradient(90deg,
    transparent 0 4.6%, #101a34 4.6% 8.2%, transparent 8.2% 11.7%, #101a34 11.7% 15.3%, transparent 15.3% 25%,
    #101a34 25% 28.6%, transparent 28.6% 32.1%, #101a34 32.1% 35.7%, transparent 35.7% 39.2%, #101a34 39.2% 42.8%, transparent 42.8% 50%);
  background-size: 200% 100%;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(28px, 8vw, 40px); }
.section--tint { background: var(--tint); }
.sec-head { display: grid; gap: 6px; margin-bottom: 20px; }
.sec-head p { color: var(--muted); }

/* Lịch trống nhanh */
.quick { display: grid; gap: 14px; }
.quick__days { display: grid; gap: 12px; }
/* Ô dẫn sang trang Lịch trống */
.lt-promo {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 18px;
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow);
}
.lt-promo__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lt-promo__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lt-promo__text { display: grid; gap: 2px; min-width: 0; }
.lt-promo__text b { font: 800 clamp(1.05rem, 4.6vw, 1.3rem)/1.25 var(--f-display); }
.lt-promo__text span { font-size: .88rem; color: var(--muted); }
.lt-promo__btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) { .lt-promo { grid-template-columns: 56px 1fr auto; } .lt-promo__btn { grid-column: auto; width: auto; } }
.qlogin { justify-items: center; text-align: center; padding: 22px 16px; gap: 8px; grid-column: 1 / -1; }
.qlogin b { font: 800 1.08rem/1.3 var(--f-display); }
.qlogin p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.qlogin__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.qlogin__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qlogin__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; margin-top: 4px; }
.qlogin__btns .btn { flex: 1 1 120px; max-width: 220px; padding: 0 14px; white-space: nowrap; }
.qbr { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.qbr__opt {
  display: grid; gap: 2px; text-align: left; cursor: pointer; padding: 14px 16px; min-height: 64px;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
}
.qbr__opt b { font: 800 1.12rem/1.2 var(--f-display); }
.qbr__opt span { font-size: .82rem; color: var(--muted); }
.qbr__opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 18px -10px var(--brand); }
.qbr__opt[aria-checked="true"] span { color: var(--on-brand); opacity: .9; }
.day-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; display: grid; gap: 10px;
}
.day-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-card__h b { font-family: var(--f-display); font-size: .98rem; }
.day-card__h span { font-size: .82rem; color: var(--muted); }
.mini-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-slot {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ok); background: var(--ok-soft); color: var(--ok);
  font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.mini-slot--few { border-color: var(--few); background: var(--few-soft); color: var(--few); }
.mini-slot:hover { filter: brightness(.97); }
.day-card__empty { font-size: .9rem; color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
  padding-inline: var(--gutter-l) var(--gutter-r);
  scroll-padding-inline: var(--gutter-l);
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 500; font-size: .92rem; white-space: nowrap;
}
.chip[aria-checked="true"], .chip[aria-pressed="true"] {
  border-color: var(--brand); background: var(--brand); color: var(--on-brand);
}

/* Danh sách phòng: cuộn ngang trên di động */
.rooms {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter-l) var(--gutter-r); padding-bottom: 6px;
  scroll-padding-inline: var(--gutter-l);
}
.rooms::-webkit-scrollbar { display: none; }
.room-card {
  scroll-snap-align: start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.room-card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--tint); }
.room-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-card__body p { font-size: .9rem; color: var(--muted); }
.gear { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; padding: 0; list-style: none; }
.gear li { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.room-card .btn { margin-top: auto; min-height: 44px; }

/* Ai có thể đăng ký */
.two-col { display: grid; gap: 24px; }
.two-col h2 { margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232b67fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.rules-card { background: var(--card); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line); }
.rules-card h3 { margin-bottom: 8px; }
.kv { margin: 0; display: grid; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .92rem; flex: none; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* Quy trình */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-family: var(--f-display); font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 2px; background: var(--line);
}
.steps p { color: var(--muted); margin-top: 4px; font-size: .95rem; }

/* Lưu ý */
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li { background: var(--card); padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: .95rem; }
.notes b { color: var(--ink); }
.share { margin-top: 22px; text-align: center; display: grid; gap: 4px; color: var(--muted); font-size: .9rem; }
.tags { font-family: var(--f-display); font-weight: 800; color: var(--teal); font-size: 1.05rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 700 1.4rem/1 var(--f-display); color: var(--brand);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* CTA cuối trang */
.cta-band { background: var(--brand); color: var(--on-brand); }
.cta-band__in { padding-block: 36px; display: grid; gap: 16px; justify-items: start; }
.cta-band h2 { color: var(--on-brand); }

/* Footer */
.footer { background: var(--tint); font-size: .9rem; color: var(--muted); }
.footer__in { padding-block: 28px; display: grid; gap: 10px; }
.footer__logo { width: 130px; height: auto; margin-bottom: 4px; }
.footer b { color: var(--ink); }

/* Dock di động */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(16, 26, 52, .35);
}
.dock__call {
  display: grid; justify-items: center; gap: 0; padding: 0 10px;
  color: var(--brand-ink); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.dock__call svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Sheet đặt phòng ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 30, .55); display: flex; }
.sheet__panel {
  background: var(--bg); width: 100%; height: 100%; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  animation: up .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet__head {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px;
  padding: 6px var(--gutter-r) 6px var(--gutter-l);
}
.sheet__title { text-align: center; min-width: 0; }
.sheet__title h2 { font-size: 1.05rem; }
.sheet__title p { font-size: .8rem; color: var(--muted); }
.progress { height: 3px; background: var(--line); }
.progress span { display: block; height: 100%; width: 33%; background: var(--brand); transition: width .3s ease; }
.sheet__body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 18px var(--gutter-r) 24px var(--gutter-l);
}
.step { display: grid; gap: 14px; }
.step__h { font-size: 1rem; margin-top: 6px; }
.step__h small { font-weight: 500; color: var(--muted); font-family: var(--f-body); }
.sheet__foot {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  border-top: 1px solid var(--line); background: var(--card);
}
.sheet__pick { font-size: .85rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.sheet__pick b { color: var(--ink); display: block; font-size: .92rem; }
.sheet__foot .btn { min-width: 130px; }

/* Segmented */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg label span {
  flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted);
  display: grid; place-items: center; white-space: nowrap;
}
.seg button[aria-checked="true"], .seg input:checked + span { background: var(--card); color: var(--brand-ink); box-shadow: 0 2px 8px -4px rgba(16,26,52,.35); }
.seg label { flex: 1; display: flex; }
.seg label span { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }

/* Chi nhánh */
.branch-list { display: grid; gap: 10px; }
.opt-card {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1fr 22px; gap: 10px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card);
}
.opt-card b { display: block; font-family: var(--f-display); font-size: .95rem; }
.opt-card span { font-size: .84rem; color: var(--muted); }
.opt-card .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.opt-card[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt-card[aria-checked="true"] .radio { border: 7px solid var(--brand); }

/* Chọn loại phòng */
.room-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.room-opt {
  position: relative; cursor: pointer; padding: 0; overflow: hidden; text-align: left;
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card);
  display: flex; flex-direction: column;
}
.room-opt img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.room-opt span { padding: 8px 10px 10px; font-weight: 600; font-size: .88rem; line-height: 1.3; }
.room-opt small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.room-opt[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.room-opt[aria-checked="false"]::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 2px var(--line);
}
.room-opt[aria-checked="true"]::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 6px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Dải ngày */
.dates {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter-l) var(--gutter-r);
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
  padding: 2px var(--gutter-r) 4px var(--gutter-l);
}
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; width: 64px; padding: 10px 0 8px; scroll-snap-align: start; cursor: pointer;
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card);
  display: grid; justify-items: center; gap: 2px; font-variant-numeric: tabular-nums;
}
.date small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.date b { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.1; }
.date i { font-style: normal; font-size: .68rem; color: var(--ok); font-weight: 600; }
.date--closed i, .date--full i { color: var(--full); }
.date--closed, .date--full { opacity: .6; }
.date[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.date[aria-checked="true"] small, .date[aria-checked="true"] i { color: var(--on-brand); }

/* Khung giờ */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--ok); } .dot--few { background: var(--few); } .dot--full { background: var(--full); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot {
  cursor: pointer; padding: 12px; min-height: 64px; text-align: left;
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card);
  display: grid; gap: 2px; font-variant-numeric: tabular-nums;
}
.slot b { font-family: var(--f-display); font-size: 1.02rem; }
.slot small { font-size: .78rem; font-weight: 600; color: var(--ok); }
.slot--few small { color: var(--few); }
.slot:disabled { cursor: not-allowed; background: var(--full-soft); border-style: dashed; }
.slot:disabled b { color: var(--full); text-decoration: line-through; }
.slot:disabled small { color: var(--full); }
.slot[aria-checked="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.slot[aria-checked="true"] small { color: var(--on-brand); }
.hint { font-size: .85rem; color: var(--muted); }

/* Form */
.summary {
  background: var(--brand-soft); border-radius: var(--r-md); padding: 14px 16px;
  display: grid; gap: 2px; font-size: .9rem;
}
.summary b { font-family: var(--f-display); font-size: 1rem; color: var(--brand-ink); }
.summary button { justify-self: start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--brand-ink); text-decoration: underline; cursor: pointer; font-size: .85rem; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 6px; }
.field em { color: var(--danger); font-style: normal; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card);
  font-size: 16px; /* tránh iOS tự zoom */
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235b6784' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.stepper { display: grid; grid-template-columns: 50px 80px 50px; }
.stepper button { border: 1.5px solid var(--line); background: var(--card); font-size: 1.4rem; cursor: pointer; color: var(--brand-ink); }
.stepper button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.stepper button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.stepper input { text-align: center; border-radius: 0 !important; border-inline: 0 !important; font-weight: 700; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.teacher-opt { padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.teacher-opt small { color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }

/* Tài khoản trong luồng đặt */
.form-stack { display: grid; gap: 16px; }
.me-box {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card);
}
.me-box__avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-family: var(--f-display); font-weight: 800; font-size: 1.1rem;
}
.me-box div { display: grid; min-width: 0; }
.me-box b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-box span { font-size: .85rem; color: var(--muted); }
.auth-box { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--tint); }
.auth-box__title { font-size: 1.1rem; }
.auth-box__lead { font-size: .9rem; color: var(--muted); }
.auth-box[data-mode="login"] [data-for="reg"], .auth-box[data-mode="reg"] [data-for="login"] { display: none !important; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--brand-ink); box-shadow: 0 2px 8px -4px rgba(16,26,52,.35); }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px;
  border: 0; background: none; color: var(--brand-ink); font-weight: 600; font-size: .85rem; cursor: pointer;
}

/* Hoàn tất */
.step--done { text-align: center; justify-items: center; padding-top: 12px; }
.step--done h3 { font-size: 1.3rem; }
.step--done .muted { max-width: 30em; }
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done-badge svg { width: 38px; height: 38px; }
.ticket {
  width: 100%; max-width: 420px; text-align: left; position: relative;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.ticket__code {
  background: var(--brand); color: var(--on-brand); padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ticket__code span { font-size: .78rem; opacity: .85; }
.ticket__code b { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: .08em; user-select: all; }
.ticket .kv { padding: 4px 18px 8px; }
.ticket .status {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem;
  background: var(--few-soft); color: var(--few); font-weight: 600;
}
.next { text-align: left; max-width: 420px; width: 100%; padding-left: 20px; margin: 4px 0 0; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }

.copy-btn {
  width: calc(100% - 36px); margin: 0 18px 16px; min-height: 48px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--brand); color: var(--on-brand); font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 18px -10px var(--brand);
}
.copy-btn svg, .row-btns .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:disabled { opacity: .7; }
.link-btn { padding: 0; border: 0; background: none; color: var(--brand-ink); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket .kv small { font-weight: 400; color: var(--muted); }

.ticket__qr { display: grid; justify-items: center; gap: 8px; padding: 4px 18px 16px; text-align: center; }
.ticket__qr p { font-size: .84rem; color: var(--muted); }
.qr { background: #ffffff; padding: 10px; border-radius: 12px; line-height: 0; }
.qr svg { width: 168px; height: 168px; }

/* Đánh giá sau buổi tập */
.rv { position: fixed; inset: 0; z-index: 300; background: rgba(8, 14, 30, .55); display: flex; align-items: flex-end; justify-content: center; }
.rv__panel {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 24px 24px 0 0; display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 26px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  animation: up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 560px) { .rv { align-items: center; padding: 20px; } .rv__panel { border-radius: 24px; } }
.rv__x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint); font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.rv__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #ffe9ef; color: #e5476b; }
.rv__icon svg { width: 30px; height: 30px; fill: currentColor; }
.rv__icon--ok { background: var(--ok-soft); color: var(--ok); }
.rv__icon--ok svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rv h2 { font-size: clamp(1.25rem, 5.4vw, 1.5rem); }
.rv__lead { color: var(--muted); font-size: .94rem; max-width: 36ch; }
.rv__session { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r-md); background: var(--tint); width: 100%; }
.rv__session b { font-family: var(--f-display); font-size: .95rem; }
.rv__session span { font-size: .84rem; color: var(--muted); }
.rv__stars { display: flex; gap: 6px; justify-content: center; }
.rv__stars button { width: 52px; height: 52px; border: 0; background: none; padding: 4px; cursor: pointer; color: #d6dbe6; transition: transform .12s ease; }
.rv__stars button svg { width: 100%; height: 100%; fill: currentColor; }
.rv__stars button.on { color: #ffb400; }
.rv__stars button:active { transform: scale(.9); }
.rv__label { font-family: var(--f-display); font-weight: 700; color: var(--ink); min-height: 1.4em; }
.rv__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rv__tags .chip { min-height: 36px; font-size: .86rem; }
.rv__tags .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.rv__q { width: 100%; font-size: .86rem; color: var(--muted); }
.rv textarea { width: 100%; }
.rv__send { width: 100%; }
.rv__note { font-size: .8rem; color: var(--muted); }
.rv__panel--done { padding-block: 40px; }
.rv-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: #fff7e0; border: 1px solid #f3d27a; }
.rv-banner__star { width: 30px; height: 30px; color: #ffb400; }
.rv-banner__star svg { width: 100%; height: 100%; fill: currentColor; }
.rv-banner p { font-size: .9rem; color: var(--ink); }
.rv-banner p b { display: block; font-family: var(--f-display); }
.rv-banner .btn { min-height: 40px; padding: 0 16px; font-size: .88rem; white-space: nowrap; }
.stars-sm { color: #ffb400; letter-spacing: 1px; }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 200; pointer-events: none; /* chỉ để báo, không chặn nút bấm bên dưới */
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px;
  font-size: .9rem; max-width: calc(100% - 32px); box-shadow: var(--shadow);
}

/* ---------- Điện thoại xoay ngang / máy tính bảng nhỏ: chữ và ảnh 2 cột ---------- */
@media (min-width: 640px) {
  .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(20px, 4vw, 48px); }
  .hero__text { order: -1; }
  .hero__media { aspect-ratio: 4 / 3; max-height: 70vh; }
  .hero__title { font-size: clamp(1.7rem, 4.4vw, 3.4rem); }
}
/* Màn hình thấp (điện thoại xoay ngang): thu gọn khoảng trống để thấy nút đặt phòng */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-block: 10px 20px; }
  .hero__inst { margin-top: 8px; }
  .hero__cta { margin-top: 12px; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .toast { bottom: 24px; }
  .hero { padding-block: 56px 64px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero__text { order: -1; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__cta .btn { flex: 0 0 auto; }
  .section { padding-block: 64px; }
  .quick { grid-template-columns: 280px 1fr; align-items: start; }
  .quick .qbr { grid-template-columns: 1fr; }
  .quick__days { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rooms {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible;
    max-width: 1120px; margin: 0 auto;
  }
  .two-col { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding: 56px 0 0; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { left: 52px; right: -12px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__in { grid-template-columns: 1fr auto; align-items: center; }
  .sheet { align-items: center; justify-content: center; padding: 24px; }
  .sheet__panel { max-width: 520px; height: min(860px, 100%); border-radius: var(--r-lg); overflow: hidden; padding-top: 0; box-shadow: var(--shadow); }
  .room-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tạm khoá đặt lịch (vắng nhiều buổi) */
.lock-banner { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: #fff1f2; border: 1px solid #f3b4bc; color: var(--ink); font-size: .92rem; line-height: 1.45; }
.lock-banner b { color: var(--danger); }
.lock-banner[hidden] { display: none; }

/* Thông báo tình trạng phòng tập (bảo trì, sự kiện…) trên lịch trống */
.notice-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: #fff7e0; border: 1px solid #f3d27a; font-size: .9rem; line-height: 1.45; }
.notice-box[hidden] { display: none; }
.notice-box p { margin: 0; padding-left: 22px; position: relative; }
.notice-box p::before { content: "!"; position: absolute; left: 0; top: .1em; width: 16px; height: 16px; border-radius: 50%; background: #e0a100; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }

/* ================= Giao diện phẳng (flat) =================
   Bỏ đổ bóng, bỏ hoạ tiết trang trí, viền mảnh 1px, trạng thái chỉ bằng màu nền / màu chữ.
   Muốn quay lại kiểu cũ: xoá nguyên khối này. */
:root { --shadow: none; }
*, *::before, *::after { text-shadow: none; }
.btn, .btn--primary, .btn--primary:disabled, .qbr__opt[aria-checked="true"], .room-opt[aria-checked="true"],
.seg button[aria-checked="true"], .seg input:checked + span, .seg button[aria-selected="true"],
.hero__media, .lt-promo, .toast, .sheet__panel, .dock { box-shadow: none !important; }
.keys { display: none; }                                   /* dải phím đàn trang trí dưới ảnh */
.hero__media { border: 1px solid var(--line); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--brand) !important; }
.qbr__opt, .slot, .date, .room-opt { border-width: 1px; }
.qbr__opt[aria-checked="true"], .slot[aria-checked="true"], .date[aria-checked="true"] { border-color: var(--brand); }
.slot:disabled { border-style: solid; background: var(--tint); }
.slot:disabled b { text-decoration: none; color: var(--muted); }
.slot:disabled small { color: var(--muted); }
.room-opt[aria-checked="true"] { outline: 1.5px solid var(--brand); outline-offset: -1.5px; }
/* Nút đầu trang: Đặt phòng tập một hàng riêng, Xem lịch trống + Lịch tập của tôi cạnh nhau bên dưới */
@media (max-width: 639px) {
  .hero__cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__cta .btn--primary { grid-column: 1 / -1; }
  .hero__cta:not(.hero__cta--me) .btn--ghost { grid-column: 1 / -1; } /* chưa đăng nhập: chỉ còn Xem lịch trống */
  .hero__cta .btn--ghost { padding: 0 8px; font-size: clamp(.82rem, 3.8vw, .95rem); min-width: 0; }
}
.hero__cta .btn[hidden] { display: none; }
/* Chọn khu vực: 2 ô bấm chọn */
.region-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); cursor: pointer; }
.region-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.region-opt span { display: grid; min-width: 0; }
.region-opt b { font-size: .95rem; }
.region-opt small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
/* Ô khu vực nằm trong .field: giữ khoảng đệm riêng (không bị .field label đặt padding 0) */
.field .region-opt { padding: 12px 14px; margin: 0; font-weight: 400; gap: 12px; }
.field .region-opt b { font-weight: 700; line-height: 1.25; }
.field .region-opt small { line-height: 1.3; }
.region-opt input:focus { box-shadow: none; }
.field .region-opt { padding: 12px; gap: 8px; } .field .region-opt b { white-space: nowrap; }
.check em, .req-note em { color: var(--danger); font-style: normal; font-weight: 700; }
.req-note { margin: 0; font-size: .82rem; color: var(--muted); }

/* Chuông thông báo trên thanh đầu trang */
.bell { position: relative; }
.bell__btn { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.bell__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell__btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.bell__dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell__dot[hidden] { display: none; }
.bell__panel { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top, 0px)); width: auto; max-height: min(70vh, 480px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); z-index: 50; }
@media (min-width: 640px) { .bell__panel { position: absolute; left: auto; right: 0; top: calc(100% + 8px); width: 360px; } }
.bell__panel[hidden] { display: none; }
.bell__head { position: sticky; top: 0; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: .95rem; }
.bell__item { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.bell__item:last-child { border-bottom: 0; }
.bell__item:hover { background: var(--tint); }
.bell__item.is-new { background: var(--brand-soft); }
.bell__item b { display: block; font-size: .9rem; line-height: 1.35; }
.bell__item small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.bell__ic { font-size: 1rem; line-height: 1.4; text-align: center; }
.bell__empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: .9rem; text-align: center; }
/* Đầu trang trên điện thoại: khung Xem lịch trống thay cho 2 nút (Đặt phòng tập đã có ở thanh dưới cùng) */
.lt-promo--hero { display: none; margin-top: 16px; }
@media (max-width: 639px) {
  .lt-promo--hero { display: grid; }
  .hero__cta .btn--primary, .hero__cta a[href="lich-trong.html"] { display: none; }
  .hero__cta:not(.hero__cta--me) { display: none; }
  .hero__cta.hero__cta--me { grid-template-columns: 1fr; margin-top: 10px; }
  .hero__cta.hero__cta--me .btn--ghost { grid-column: 1 / -1; }
}
/* Nút trong khung Xem lịch trống: kiểu nhẹ, để nút Đặt phòng tập (xanh đậm) là nút chính */
.lt-promo__btn--soft { background: var(--brand-soft); color: var(--brand-ink); }
.lt-promo:hover .lt-promo__btn--soft { background: var(--brand); color: var(--on-brand); }
/* Tab Đăng nhập: chỉ 2 ô đều bắt buộc, không cần dấu * và dòng ghi chú */
[data-mode="login"] .req-note, [data-mode="login"] .field label em { display: none; }
/* Dòng 2 của tiêu đề: nhỏ hơn và luôn nằm trên một dòng */
.hero__title .hero__sub { display: block; font-weight: 800; white-space: nowrap; font-size: clamp(1rem, 5.2vw, 2.1rem); margin-top: 2px; }
@media (min-width: 640px) { .hero__title .hero__sub { font-size: clamp(1rem, 2.4vw, 2rem); } }

/* Nhận thêm lượt nhờ chia sẻ mạng xã hội (trang Tài khoản) */
.share-box { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); font-size: .92rem; }
.share-box[hidden] { display: none; }
.share-box p { margin: 0; color: var(--muted); }
.share-box__q { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.share-box__ok { color: var(--ok, #0e8f6e); font-weight: 600; font-size: .86rem; }
.share-box__tags { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.share-box__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.share-box__form input { min-width: 0; }
.share-box__form .btn { min-height: 44px; padding: 0 18px; }
.share__go { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--brand-ink); }
.rv__tags { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; width: 100%; }
.rv__later { justify-self: center; margin-top: 4px; }
/* Khung hướng dẫn nhận thêm lượt nhờ chia sẻ */
.sp__icon { background: var(--brand-soft); color: var(--brand); }
.sp__icon svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp__steps { margin: 0; padding-left: 22px; text-align: left; width: 100%; display: grid; gap: 6px; font-size: .92rem; color: var(--ink); }
.sp__url { width: 100%; min-height: 48px; padding: 10px 14px; }
.sp__err { margin: 0; width: 100%; text-align: left; }
.quota-banner { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: #fff7e0; border: 1px solid #f3d27a; font-size: .92rem; line-height: 1.45; }
.quota-banner[hidden] { display: none; }
.acc__q { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp__tabs { width: 100%; }
.sp__pane { display: grid; gap: 10px; width: 100%; justify-items: center; }
.sp__pane[hidden] { display: none; }
.sp__note { margin: 0; color: var(--muted); font-size: .92rem; text-align: left; width: 100%; }
.sp__agree { text-align: left; width: 100%; font-size: .9rem; }
.sp__tabs button { font-size: .86rem; line-height: 1.25; padding: 8px 6px; }
/* Hotline chi nhánh trong vé + nút Chỉ đường bên ngoài vé */
.tk-tel { font-weight: inherit; color: inherit; text-decoration: none; white-space: nowrap; } /* cùng màu chữ với các dòng khác, vẫn bấm gọi được */
.map-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 12px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--brand-ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.map-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.map-btn:hover { background: var(--brand-soft); }

/* Tên phòng tập + nhạc cụ đè lên chân ảnh đầu trang */
.hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px clamp(14px, 4vw, 22px) clamp(12px, 3.5vw, 18px);
  background: linear-gradient(to top, rgba(8, 14, 30, .82) 0%, rgba(8, 14, 30, .55) 50%, rgba(8, 14, 30, 0) 100%); }
.hero__cap .hero__title { color: #fff; font-size: clamp(1.5rem, 7.4vw, 3rem); }
.hero__cap .hero__title span { color: #9cc0ff; }
.hero__cap .hero__title .hero__sub { color: #fff; }
.hero__cap .hero__inst { margin-top: 8px; gap: 6px; }
.hero__cap .hero__inst li { background: rgba(255, 255, 255, .18); color: #fff; padding: 4px 10px; font-size: .8rem; }
.hero__cap .hero__inst li::before { background: #fff; }
.hero__text > .lt-promo--hero:first-child { margin-top: 0; }
@media (max-width: 639px) { .hero__media { aspect-ratio: 4 / 3.4; } }
/* Máy tính: tên đã nằm trên ảnh -> 1 cột, ảnh rộng, nút + thông tin nhanh bên dưới */
@media (min-width: 640px) {
  .hero__in { grid-template-columns: 1fr; gap: 18px; }
  .hero__text { order: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 28px; }
  .hero__text .hero__cta { margin-top: 0; }
  .hero__text .facts { margin-top: 0; }
  .hero__media { aspect-ratio: 21 / 8; max-height: 460px; }
  .hero__media img { object-position: 50% 35%; }
}
@media (min-width: 640px) and (max-width: 899px) { .hero__text { grid-template-columns: 1fr; } }

/* Menu tài khoản trên thanh đầu trang */
.acc-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; display: grid; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.acc-menu[hidden] { display: none; }
.acc-menu__head { display: grid; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acc-menu__head b { font-size: .95rem; }
.acc-menu__head span { font-size: .82rem; color: var(--muted); }
.acc-menu a, .acc-menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.acc-menu a:hover, .acc-menu button:hover { background: var(--tint); }
.acc-menu button { color: var(--danger); }
/* Mã QR có logo ở giữa */
.qr--logo { position: relative; }
.qr__logo { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 8px; border: 4px solid #fff; background: #fff; box-sizing: content-box; }
/* Phí của lượt đặt (bước cuối khung đặt lịch, vé) */
.fee-line { margin: 6px 0 0; font-size: .92rem; color: var(--ink); }
.fee-line s { color: var(--muted); margin-left: 4px; }
.fee-line small { color: var(--muted); }
.pay-line { margin: 0; font-weight: 600; font-size: .92rem; }
/* Giá chỉ hiện cho thành viên đã đăng nhập */
body:not(.is-member) .member-only { display: none !important; }
body.is-member .guest-only { display: none !important; }
/* Nhạc cụ: lưới 2 cột trên điện thoại (thấy đủ các nhạc cụ, không phải vuốt ngang), 4 cột trên máy tính */
.rooms { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; scroll-snap-type: none; }
@media (max-width: 559px) {
  .room-card__body { padding: 10px 12px 12px; gap: 6px; }
  .room-card__body h3 { font-size: 1rem; }
  .room-card__body p, .room-card .gear { display: none; }
  .room-card .btn { min-height: 40px; font-size: .9rem; padding: 0 10px; }
}
@media (min-width: 820px) { .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Chờ xác nhận: phiếu yêu cầu, chưa phải vé (không có QR) */
.ticket--pending .ticket__code { background: var(--few-soft); color: var(--ink); }
.ticket--pending .ticket__code span { opacity: 1; color: var(--few); font-weight: 600; }
.ticket__wait { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--few-soft); color: #7a4a00; font-size: .9rem; line-height: 1.5; font-weight: 500; }
/* Xác minh email (mã 6 số) */
.vf__code { width: 100%; max-width: 260px; justify-self: center; text-align: center; font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; letter-spacing: .45em; padding: 12px 8px 12px calc(8px + .45em); border: 1.5px solid var(--line); border-radius: var(--r-md); }
.vf__code:focus, .vf__email:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vf__email { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); font: inherit; }
.vf__err { min-height: 1.2em; margin: 0; color: var(--danger); font-size: .88rem; }
.vf__links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.vf__links .link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.vf__ok { color: var(--ok); background: var(--ok-soft); }
.ok-txt { color: var(--ok); font-weight: 600; }
.vf .rv__icon { color: var(--brand); background: var(--brand-soft); }
.vf .rv__icon.vf__ok { color: var(--ok); background: var(--ok-soft); }
.vf__help { text-align: left; font-size: .82rem; color: var(--muted); background: var(--tint); border-radius: var(--r-sm); padding: 10px 12px; line-height: 1.5; }
.vf__help b { color: var(--ink); }
.vf__help ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }

/* Đặt nhiều giờ + đồng ý chụp ảnh để được miễn phí giờ đầu */
.hours-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.consent-opt { align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--tint); }
.consent-opt small { color: var(--muted); }
.consent-opt small b { color: var(--ok); }
.fee-tip { color: var(--ok); font-weight: 600; }

/* Chi phí lượt đặt: cuối form, sát nút "Gửi yêu cầu" */
.fee-box { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-soft); }
.fee-box > span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fee-box .fee-line { margin: 0; font-size: .95rem; }
.fee-box .fee-line b { font-size: 1.25rem; color: var(--brand-ink); }
.fee-box .fee-line .fee-free, .fee-line .fee-free { color: var(--ok); font-weight: 700; }

/* Trạng thái học viên trong hồ sơ */
.chip-wait, .chip-ok { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-right: 4px; }
.chip-wait { background: var(--few-soft); color: var(--few); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.check.is-locked { opacity: .75; cursor: not-allowed; }
.check.is-locked input { cursor: not-allowed; }
#pCode[readonly] { background: var(--tint); color: var(--muted); }
.facts span.fact-stu { color: var(--ok); font-weight: 700; }
.acc__hv { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .74rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
/* Còn giờ miễn phí: nút đặt phòng màu xanh lá, chữ "miễn phí" */
body.has-free .js-book.btn--primary { background: var(--ok); border-color: var(--ok); }
body.has-free .js-book.btn--primary:hover { filter: brightness(.94); }
/* Ô tick đồng ý (miễn phí giờ đầu): viền xanh lá "thở" nhẹ để khách chú ý; tick rồi thì dừng, nền xanh nhạt */
@keyframes consentGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 146, 92, 0); border-color: var(--line); }
  50% { box-shadow: 0 0 0 5px rgba(18, 146, 92, .16); border-color: rgba(18, 146, 92, .55); }
}
@keyframes consentNudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.consent-opt:not([hidden]) { animation: consentGlow 2.4s ease-in-out infinite; }
.consent-opt:not([hidden]) input { animation: consentNudge 2.4s ease-in-out infinite; }
.consent-opt:has(input:checked) { animation: none; border-color: var(--ok); background: var(--ok-soft); }
.consent-opt:has(input:checked) input { animation: none; }
@media (prefers-reduced-motion: reduce) { .consent-opt:not([hidden]), .consent-opt:not([hidden]) input { animation: none; } }
