/* ============================================================
   Hoàng Gia — trang Hội viên tích điểm
   Dùng chung tokens với styles.css (nâu đỏ #2b1013 · vàng #d4a32a · kem #fbf7ef)
   Chỉ bổ sung phần riêng của trang; không định nghĩa lại .btn/.h2/.footer.
   ============================================================ */

html[lang="vi"] .lang-en { display: none; }
html[lang="en"] .lang-vi { display: none; }

.hv { background: var(--cream); }

/* khoảng thở trên cùng cho header cố định */
.hv-hero { padding-top: calc(var(--header-h) + 44px); }

/* ---------- HERO ---------- */
.hv-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 120% at 78% 8%, rgba(212, 163, 42, .18) 0%, rgba(212, 163, 42, 0) 62%),
    radial-gradient(90% 130% at 12% 0%, rgba(43, 16, 19, .55) 0%, rgba(16, 10, 14, 0) 70%),
    linear-gradient(165deg, #120a10 0%, #2b1013 46%, #100a0e 100%);
  color: #f4ecdf;
  isolation: isolate;
}
.hv-hero__glow {
  position: absolute;
  inset: auto -12% -38% -12%;
  height: 58%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(212, 163, 42, .22) 0%, rgba(212, 163, 42, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.hv-hero__inner { max-width: 780px; }
.hv-hero__title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #fbf3e4;
  text-wrap: balance;
}
.hv-hero__lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: rgba(245, 237, 223, .92);
}
/* câu chốt ngay dưới H1: tách khỏi dòng mô tả phía sau (p mặc định margin 0) */
.hv-hero__lede + .hv-hero__lede { margin-top: .7em; }
.hv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.hv-hero__meta {
  margin-top: var(--space-4);
  font-size: .86rem;
  letter-spacing: .02em;
  color: rgba(245, 237, 223, .76);
}

/* hoa văn vương miện bên phải hero (chỉ desktop) */
.hv-hero__art {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  top: 50%;
  width: min(26vw, 320px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: rgba(231, 194, 102, .55);
  pointer-events: none;
  z-index: -1;
}
.hv-hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-hero__crown {
  position: relative;
  width: 46%;
  margin-top: -14%;
  filter: drop-shadow(0 6px 22px rgba(212, 163, 42, .35));
}
.hv-hero__mono {
  position: absolute;
  bottom: 20%;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(243, 227, 184, .72);
}
@media (max-width: 1024px) {
  .hv-hero__art { display: none; }
}

/* ---------- dải chữ nhỏ dưới hero ---------- */
.hv-strap {
  background: var(--purple-950);
  border-top: 1px solid rgba(212, 163, 42, .28);
  border-bottom: 1px solid rgba(212, 163, 42, .22);
  color: rgba(243, 227, 184, .86);
}
.hv-strap__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hv-strap__sep { color: var(--gold); font-size: .68em; }

/* ---------- XEM ĐIỂM ---------- */
.hv-lookup__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}
.hv-lookup__note {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48ch;
}
.hv-lookup__note strong { color: var(--purple-900); }

.hv-tips {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hv-tips li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}
.hv-tips li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .1em;
  font-size: .6em;
  color: var(--gold);
}

/* ---------- panel + form ---------- */
.hv-panel {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid rgba(58, 26, 70, .14);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  box-shadow: 0 26px 60px -42px rgba(43, 27, 51, .55);
}
.hv-panel--dark {
  border-color: rgba(212, 163, 42, .34);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212, 163, 42, .14) 0%, rgba(212, 163, 42, 0) 55%),
    linear-gradient(168deg, #2b1013 0%, #100a0e 100%);
  box-shadow: 0 30px 70px -46px rgba(20, 8, 26, .95);
}

.hv-form { display: grid; gap: 16px; }
.hv-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hv-field__label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-800);
}
.hv-field input {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fbf7ee;
  border: 1.5px solid rgba(58, 26, 70, .16);
  border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.hv-field input::placeholder { color: rgba(116, 100, 123, .62); }
.hv-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 163, 42, .22);
}
.hv-field input[aria-invalid="true"] { border-color: #c0392b; }
.hv-field input[aria-invalid="true"]:focus { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, .18); }
/* nhãn "(không bắt buộc)" — chữ thường, không in hoa, để không tranh với nhãn chính */
.hv-field__opt {
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink-2);
}
/* input date: iOS Safari cấp cho <input type=date> một bề rộng nội tại riêng
   (lớn hơn ô text) nên nó tràn ra ngoài card dù đã width:100%. Ép về đúng box. */
.hv-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  color-scheme: light;
}
/* Máy có chuột (desktop) giữ nguyên widget ngày + icon lịch của trình duyệt. */
@media (hover: hover) and (pointer: fine) {
  .hv-field input[type="date"] {
    -webkit-appearance: auto;
    appearance: auto;
  }
}

.hv-field__hint { font-size: .84rem; color: var(--muted); line-height: 1.5; }

.hv-form--dark .hv-field__label { color: var(--gold-pale); }
.hv-form--dark .hv-field input {
  color: #fdf8ee;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(243, 227, 184, .28);
}
.hv-form--dark .hv-field input::placeholder { color: rgba(243, 234, 218, .45); }
.hv-form--dark .hv-field input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 163, 42, .26);
}
/* 20261113p3: quầng focus đủ tương phản (WCAG 2.4.11) — vàng đậm trên nền kem, vàng sáng trên nền tối */
.hv-field input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-deep);
}
.hv-form--dark .hv-field input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--gold-bright);
}
.hv-form--dark .hv-field__hint { color: rgba(243, 234, 218, .62); }
.hv-form--dark .hv-field__opt { color: rgba(243, 234, 218, .72); }
.hv-form--dark .hv-field input[type="date"] { color-scheme: dark; }
.hv-form--dark .hv-field input[aria-invalid="true"] { border-color: #ff8b7a; }

.hv-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.hv-form__actions .btn { min-height: 52px; }
.hv-link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--purple-800);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 26, 70, .28);
  padding-bottom: 2px;
}
.hv-link:hover { color: var(--gold-deep); border-color: var(--gold); }
.hv-form--dark .hv-link { color: var(--gold-pale); border-color: rgba(243, 227, 184, .4); }

.hv-error {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.5;
  color: #8e2018;
  background: #fdeeec;
  border: 1px solid #f3c9c2;
}
.hv-form--dark .hv-error {
  color: #ffd9d2;
  background: rgba(192, 57, 43, .18);
  border-color: rgba(255, 137, 122, .38);
}

.hv-consent {
  margin: 4px 0 0;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(243, 234, 218, .6);
}

/* ---------- thông báo trạng thái chương trình ---------- */
.hv-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.55;
  border: 1px solid rgba(212, 163, 42, .5);
  background: rgba(212, 163, 42, .1);
  color: #5c4408;
}
.hv-notice[hidden] { display: none; }
.hv-notice strong { display: block; font-size: .95rem; }
.hv-notice--warn {
  border-color: rgba(192, 57, 43, .35);
  background: #fdeeec;
  color: #8e2018;
}

/* ---------- thẻ hội viên (kết quả) ---------- */
.hv-result { margin-top: 20px; }
.hv-result[hidden] { display: none; }

.hv-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 26px);
  border-radius: 18px;
  color: #fbf3e4;
  background:
    radial-gradient(120% 120% at 88% -10%, rgba(212, 163, 42, .3) 0%, rgba(212, 163, 42, 0) 58%),
    linear-gradient(158deg, #2b1013 0%, #120a10 58%, #100a0e 100%);
  border: 1px solid rgba(212, 163, 42, .42);
  box-shadow: 0 24px 50px -34px rgba(20, 8, 26, .8);
}
.hv-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(243, 227, 184, .16);
  border-radius: 13px;
  pointer-events: none;
}
.hv-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}
.hv-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  line-height: 1.2;
  color: #fdf8ee;
  overflow-wrap: anywhere;
}
.hv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(243, 227, 184, .45);
  color: #f3e3b8;
  background: rgba(255, 255, 255, .06);
  white-space: nowrap;
}
.hv-badge--silver {
  border-color: rgba(226, 232, 240, .62);
  color: #eef2f7;
  background: linear-gradient(180deg, rgba(203, 213, 225, .3), rgba(148, 163, 184, .18));
}
.hv-badge--diamond {
  border-color: rgba(214, 236, 245, .75);
  color: #10222b;
  background: linear-gradient(180deg, #e8f7fd, #b6dcea);
}
.hv-badge--gold {
  border-color: rgba(231, 194, 102, .8);
  color: #241506;
  background: linear-gradient(180deg, #f0d494, #d4a32a);
}

.hv-card__points {
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.hv-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -.02em;
}
.hv-card__unit {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 234, 218, .7);
}
.hv-card__sub {
  font-size: .88rem;
  color: rgba(243, 234, 218, .72);
  line-height: 1.55;
}

.hv-card__need {
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(243, 227, 184, .78);
}

.hv-progress {
  margin-top: 16px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.hv-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  transition: width .5s var(--ease);
}
.hv-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(243, 234, 218, .66);
}

.hv-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 227, 184, .2);
  font-size: .86rem;
  color: rgba(243, 234, 218, .8);
}
.hv-card__foot strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--gold-pale);
  overflow-wrap: anywhere;
}
.hv-card__cta {
  margin-left: auto;
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 194, 102, .4);
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hv-card__cta:hover { color: #fff; border-color: #fff; }

/* ---------- khối giới thiệu bạn bè ---------- */
.hv-referral {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed rgba(212, 163, 42, .55);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(212, 163, 42, .16) 0%, rgba(212, 163, 42, 0) 60%),
    #fdf9f0;
}
.hv-referral[hidden] { display: none; }
.hv-referral__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hv-referral__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.hv-referral__code {
  flex: 1 1 190px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(58, 26, 70, .14);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  letter-spacing: .1em;
  color: var(--purple-900);
  overflow-wrap: anywhere;
  text-align: center;
}
.hv-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(58, 26, 70, .22);
  background: #fff;
  color: var(--purple-800);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.hv-copy:hover { border-color: var(--gold); color: var(--gold-deep); }
.hv-copy[hidden] { display: none; }
.hv-copy__ico { width: 18px; height: 18px; }
.hv-copy.is-done {
  background: var(--purple-800);
  border-color: var(--purple-800);
  color: #fff;
}
.hv-copy--share { background: #f4ecdf; }
.hv-referral__rule {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.hv-referral__rule strong { color: var(--gold-deep); }
.hv-referral__soon { margin-top: 4px; font-size: .88rem; color: var(--muted); }
.hv-referral__soon[hidden] { display: none; }

/* kết quả trong panel tối (đăng ký) */
.hv-result--dark .hv-card { border-color: rgba(231, 194, 102, .55); }

/* ---------- ĐĂNG KÝ ---------- */
.hv-join {
  background: linear-gradient(180deg, var(--purple-950) 0%, #2b1013 60%, #100a0e 100%);
  color: #f4ecdf;
}
.hv-join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.hv-join__title { color: #f9f0dd; margin-top: 8px; }
.hv-join__lede {
  color: rgba(243, 234, 218, .78);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 46ch;
}

.hv-rights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.hv-rights li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: .96rem;
  line-height: 1.6;
  color: rgba(243, 234, 218, .86);
}
.hv-rights__ico { width: 22px; height: 22px; color: var(--gold-bright); margin-top: 2px; }

/* ---------- CÁCH ĐỔI ĐIỂM ---------- */
.hv-redeem .section-head { margin-bottom: clamp(28px, 3.6vw, 44px); }
.hv-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.hv-step {
  position: relative;
  padding: 20px 20px 20px;
  border: 1px solid rgba(58, 26, 70, .12);
  border-radius: 16px;
  background: var(--paper);
  min-width: 0;
}
.hv-step__n {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--gold-deep);
}
.hv-step strong {
  display: block;
  font-size: 1rem;
  color: var(--purple-900);
  margin-bottom: 4px;
}
.hv-step p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }

.hv-conditions {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: 18px;
  border: 1px dashed rgba(125, 89, 6, .34);
  background: rgba(212, 163, 42, .07);
}
.hv-conditions__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--purple-900);
}
.hv-conditions__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hv-conditions__list li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.hv-conditions__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
}

/* ---------- HẠNG ---------- */
.hv-tiers {
  background:
    radial-gradient(70% 90% at 84% 0%, rgba(212, 163, 42, .14) 0%, rgba(120, 78, 8, 0) 62%),
    linear-gradient(180deg, #120a10 0%, #100a0e 100%);
  color: #f4ecdf;
}
.hv-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}
.hv-tier {
  position: relative;
  min-width: 0;
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(243, 227, 184, .18);
  background: rgba(255, 255, 255, .04);
}
.hv-tier--silver {
  border-color: rgba(214, 224, 236, .42);
  background: linear-gradient(180deg, rgba(203, 213, 225, .12), rgba(255, 255, 255, .03));
}
.hv-tier--gold {
  border-color: rgba(231, 194, 102, .5);
  background: linear-gradient(180deg, rgba(212, 163, 42, .14), rgba(255, 255, 255, .03));
}
.hv-tier--diamond {
  border-color: rgba(214, 236, 245, .5);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(198, 236, 255, .18) 0%, rgba(198, 236, 255, 0) 62%),
    linear-gradient(180deg, rgba(160, 205, 225, .12), rgba(255, 255, 255, .03));
}
.hv-tier--diamond .hv-tier__label { color: #dff3fb; }
.hv-tier__label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: #fbf3e4;
}
.hv-tier--gold .hv-tier__label { color: var(--gold-bright); }
.hv-tier--silver .hv-tier__label { color: #e9eef5; }
.hv-tier__need {
  margin-top: 4px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(243, 234, 218, .6);
}
.hv-tier__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hv-tier__list li {
  position: relative;
  padding-left: 16px;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(243, 234, 218, .84);
}
.hv-tier__list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .18em;
  font-size: .55em;
  color: var(--gold);
}
.hv-tier-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(243, 227, 184, .9);
  border: 1px dashed rgba(212, 163, 42, .45);
  background: rgba(212, 163, 42, .08);
}
.hv-tier-note[hidden] { display: none; }

.hv-tiers__foot {
  margin-top: 24px;
  font-size: .9rem;
  color: rgba(243, 234, 218, .68);
}
.hv-tiers__foot a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(231, 194, 102, .4); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hv-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hv-lookup__grid,
  .hv-join__grid { grid-template-columns: minmax(0, 1fr); }
  .hv-steps { grid-template-columns: minmax(0, 1fr); }
  .hv-hero__inner { max-width: 100%; }
}

@media (max-width: 620px) {
  .hv-tier-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .hv-form__actions { gap: 12px; }
  .hv-form__actions .btn { width: 100%; }
  .hv-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hv-card__cta { margin-left: 0; }
}

@media (max-width: 420px) {
  .hv-hero { padding-top: calc(var(--header-h) + 20px); }
  .hv-hero__actions .btn { width: 100%; }
  .hv-strap__inner { font-size: .72rem; letter-spacing: .08em; gap: 8px 12px; }
  .hv-panel { padding: 16px; border-radius: 18px; }
  .hv-card { padding: 16px; }
  .hv-card__num { font-size: 2.4rem; }
}

/* máy in / chụp ảnh tĩnh */
@media print {
  .site-header, .nav-toggle { position: static; }
  .hv-hero { background: none; color: #2b1b33; }
}

/* ---------- 20261113h: header trang hội viên dùng đúng bộ nút của trang chủ ---------- */
/* segmented là liên kết nhưng giữ nguyên dáng nút .modes__opt của trang chủ */
body.hv .modes__opt { display: inline-flex; align-items: center; text-decoration: none; }
/* đang ở trang hội viên: nút icon người sáng vàng để biết mình đang đứng đâu */
body.hv .member-btn[aria-current="page"] {
  border-color: rgba(231, 194, 102, .85);
  background: linear-gradient(180deg, #eccd7e, #d4a32a);
  color: #1b0f14;
}
body.hv .member-btn[aria-current="page"]:hover { background: linear-gradient(180deg, #f2d78f, #dcaa2e); color: #1b0f14; }
/* mục chỉ dùng trong menu mobile */
.nav__mob { display: none; }
@media (max-width: 900px) {
  body.hv .nav__desk, body.hv .nav__call { display: none; }
  body.hv .nav__mob { display: block; }
}

/* ---------- 20261113i: header dính không được che chữ trên iPhone ---------- */
/* 1) Mốc nhảy anchor (#dang-ky, mọi section[id]) phải dừng DƯỚI header thật.
   --header-h-real do hoi-vien.js đo bằng getBoundingClientRect (đã gồm
   safe-area-inset-top của iOS + lúc header co lại khi cuộn) — không hardcode. */
body.hv section[id] { scroll-margin-top: calc(var(--header-h-real, 84px) + 12px); }

/* 2) Nền header khi cuộn: đục tới hẳn mép dưới. Bản cũ mask mất 20px cuối
   nên dòng chữ nào đi qua mép đó bị "cắt đôi" (nửa trên chìm, nửa dưới rõ). */
body.hv .site-header.is-stuck::before {
  -webkit-mask-image: none;
  mask-image: none;
  background: linear-gradient(180deg, rgb(12, 8, 11) 0%, rgb(12, 8, 11) 100%);
}


/* 20261116d1: mục nav "Thực đơn tiệc" — không xuống dòng; nút gọi cũng vậy,
   để header 1024–1536px không bóp số điện thoại thành 2–3 dòng. */
.nav__banquet { white-space: nowrap; }
.nav__call { white-space: nowrap; }
