/* ═══════════════════════════════════════════════════════════════════════════
   public/assets/css/learn-hub.css — KHUÔN TRANG ĐẦU MỖI KHU (App học v3 GĐ3, 22/09/2026):
   dải khu (lv-band) + thẻ số liệu kính · thẻ "Lộ trình/Tiếp tục" chồng mép dải · lưới kỹ năng · ô công cụ.
   Dùng cho /ielts (courses/ielts-member.php) và các khu sau. Token --lv-* — KHÔNG hex cứng, tự lật ở chế độ tối.
   ═══════════════════════════════════════════════════════════════════════════ */
.hb-band { --lv-band-pb: 118px; }
.hb-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.hb-title { font-size: 44px; line-height: 1.04; font-weight: 800; letter-spacing: -.04em; color: var(--lv-on); }
.hb-title span { color: var(--lv-mint); }
.hb-stat { display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 18px; min-width: 300px; max-width: 380px; }
.hb-stat__t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hb-stat__t > b { font-size: 16px; font-weight: 700; color: var(--lv-on); }
.hb-stat__t > span:not(.lv-chip-d) { margin-top: 3px; font-size: 13px; color: var(--lv-on-3); }
.hb-stat__t > .lv-chip-d { margin-top: 10px; }
.hb-stat__t > .lv-chip-d .lv-i { color: var(--lv-mint); }

.hb-body { position: relative; margin-top: -78px; }

/* Thẻ lộ trình của khu (chồng mép dải) */
.hb-rm { padding: 20px 22px; }
.hb-rm__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hb-rm__h h2 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; color: var(--lv-ink); }
.hb-rm__h a { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--lv-brand-fg); white-space: nowrap; }
.hb-rm__h a:hover { color: var(--lv-brand-deep); }
.hb-rms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hb-rmc {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px;
  border: 1px solid var(--lv-hair); background: var(--lv-surface); color: inherit;
  transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease);
}
.hb-rmc:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-hair)); box-shadow: var(--lv-sh-2); }
.hb-rmc__cover { width: 92px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--lv-sunken); }
.hb-rmc__cover :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-rmc__t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-rmc__t b { font-size: 14.5px; line-height: 1.35; font-weight: 700; color: var(--lv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-rmc__m { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--lv-muted); }
.hb-rmc__m b { color: var(--lv-ink); font-variant-numeric: tabular-nums; }
.hb-empty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hb-empty > div { flex: 1 1 280px; min-width: 0; }
.hb-empty h2 { font-size: 18px; font-weight: 750; color: var(--lv-ink); }
.hb-empty p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.hb-plc { margin-top: 14px; }   /* thẻ Test trình độ IELTS dưới thẻ lộ trình (27/09/2026) */

/* Lưới kỹ năng */
.hb-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hb-skill { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.hb-skill__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hb-skill__v { text-align: right; line-height: 1; }
.hb-skill__v b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--lv-ink); font-variant-numeric: tabular-nums; }
.hb-skill__v small { display: block; margin-top: 4px; font-size: 12px; color: var(--lv-muted); }
.hb-skill__n { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; font-weight: 750; color: var(--lv-ink); }
.hb-skill__d { margin-top: -8px; font-size: 13px; color: var(--lv-muted); }
.hb-skill__f { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--lv-muted); }
.hb-skill__f .lv-bar { flex: 1; }
.hb-skill__f b { color: var(--lv-ink); font-variant-numeric: tabular-nums; }

/* Ô công cụ / luyện thêm */
.hb-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hb-tool { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hb-tool > span:not(.lv-ic) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-tool b { font-size: 14.5px; font-weight: 700; color: var(--lv-ink); }
.hb-tool small { font-size: 12.5px; line-height: 1.4; color: var(--lv-muted); }
.hb-tool > .lv-i { color: var(--lv-faint); }

a.hb-stat { color: inherit; transition: background var(--lv-dur) var(--lv-ease), border-color var(--lv-dur) var(--lv-ease); }
a.hb-stat:hover { background: linear-gradient(160deg, color-mix(in srgb, var(--color-on-dark) 22%, transparent), var(--lv-glass-2)); }
.hb-rmc__cover > .lv-ic { width: 100%; height: 100%; border-radius: 0; }
.hb-skill__p { margin-top: -4px; font-size: 12.5px; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.hb-skill__go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--lv-brand-fg); }
.hb-skill:hover .hb-skill__go { color: var(--lv-brand-deep); }
.hb-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.hb-soon__it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--lv-border); color: var(--lv-muted); }
.hb-soon__it:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-border)); }
.hb-soon__it > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hb-soon__it b { font-size: 14px; color: var(--lv-text); }
.hb-soon__it small { font-size: 12.5px; }
.hb-soon__it .lv-ic { background: var(--lv-sunken); color: var(--lv-faint); }
.hb-sec__hint { margin-left: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--lv-muted); }
.hb-tool em { align-self: flex-start; margin-top: 4px; font-style: normal; }
@media (max-width: 1180px) { .hb-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .hb-band { --lv-band-pb: 96px; }
  .hb-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hb-title { font-size: 34px; }
  .hb-stat { min-width: 0; max-width: none; padding: 14px 16px 14px 14px; gap: 14px; }
  .hb-body { margin-top: -64px; }
  .hb-rm { padding: 16px; }
  .hb-rms { grid-template-columns: minmax(0, 1fr); }
  .hb-skills { gap: 8px; }
  .hb-skill { padding: 14px; gap: 10px; }
  .hb-skill__v b { font-size: 22px; }
  .hb-tools { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hb-sec__hint { display: block; margin: 4px 0 0; }
  .hb-soon { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 380px) { .hb-title { font-size: 30px; } }

/* ═══ Shadowing (learn/shadowing/index.php) — hub: dải khu + hộp dán link kính; thanh tìm là thẻ chồng mép dải ═══ */
.sh-band__paste { padding: 16px; width: 420px; max-width: 100%; }
.sh-band__paste .sh-paste { margin: 0; padding: 0; background: transparent; border: 0; flex: none; }
.sh-band__paste .sh-paste__ic { background: var(--lv-glass-2); color: var(--lv-on); }
.sh-band__paste .sh-paste__t b { color: var(--lv-on); }
.sh-band__paste .sh-paste__t span { display: block; color: var(--lv-on-3); }
.sh-band__paste .sh-paste__input { border-color: transparent; background: var(--lv-surface); color: var(--lv-ink); }
.sh-band__paste .sh-paste__btn { background: var(--lv-on); color: var(--lv-deep-ink); }
.sh-band__paste .sh-paste__btn:hover { background: color-mix(in srgb, var(--color-primary) 10%, var(--color-on-dark)); }
.sh-band__paste .sh-quota { background: var(--lv-glass); color: var(--lv-on-2); border: 1px solid var(--lv-line-d); }
.sh-band__paste .sh-quota.is-out { background: var(--color-warning-soft); color: var(--lv-warn-deep); border-color: transparent; }
.sh-band__paste .sh-paste__msg { color: var(--lv-on-2); }
.sh-band__paste .sh-paste__msg.ok { color: var(--lv-mint); }
.sh-band__paste .sh-paste__msg.err { color: var(--color-warning-soft); }
.sh.sh--v3 { max-width: calc(1180px + 64px); margin: 24px auto 72px; padding: 0 32px; }
.sh.sh--v3.sh--hub { position: relative; margin-top: -76px; }
.sh--hub .sh-find { padding: 12px; margin-bottom: 26px; border-radius: 18px; background: var(--lv-surface); border: 1px solid var(--lv-hair); box-shadow: var(--lv-sh-2); }
.sh--v3 :is(.sh-find__search input, .sh-find select, .sh-find__ted) { border-color: var(--lv-border); border-radius: 11px; }
.sh--v3 .sh-back { display: none; }   /* trang 1 cấp: nút ‹ ở thanh trên */
@media (max-width: 1023px) {
  .sh-band__paste { width: auto; padding: 14px; }
  .sh.sh--v3 { padding: 0 16px; margin-top: 16px; }
  .sh.sh--v3.sh--hub { margin-top: -62px; }
  .sh--hub .sh-find { padding: 10px; }
}
/* Trang 1 cấp CEFR (Shadowing ?level=): đầu trang gọn theo .lv-head, bỏ ô icon gradient + nhãn chữ nhỏ viết hoa */
.sh--v3:not(.sh--hub) .sh-head { padding: 12px 0 18px; margin-bottom: 18px; border-bottom: 0; }
.sh--v3 .sh-head__ic { display: none; }
.sh--v3 .sh-head__t h1 { font-size: 30px; letter-spacing: -.03em; }
.sh--v3 .sh-head__stat b { color: var(--lv-brand-fg); }
.sh--v3 .sh-head__stat span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.sh--v3 .sh-card { border-color: var(--lv-hair); box-shadow: var(--lv-sh-1); }
.sh--v3 .sh-card:hover { transform: none; border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-hair)); box-shadow: var(--lv-sh-2); }
@media (max-width: 1023px) {
  .sh--v3 .sh-head__t h1 { font-size: 24px; }
  /* Điện thoại: lưới 2 cột (một thẻ ảnh 16:9 chiếm trọn màn = cuộn mỏi tay) */
  .sh--v3 .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sh--v3 .sh-grid .sh-card__body { padding: 10px 11px 12px; gap: 6px; }
  .sh--v3 .sh-grid .sh-card__title { font-size: 13px; }
  .sh--v3 .sh-grid .sh-card__meta { font-size: 11.5px; gap: 6px; }
}

/* ═══ Ngữ pháp (learn/foundation/_grammar_v3.php): thẻ tìm + tab cấp chồng mép dải · mỗi chủ đề một dòng, ba bài tập
   của nó là ba nút nhỏ ngay dưới (không còn 39 dòng "Bài tập…" trộn lẫn lý thuyết) ═══ */
.gr3 .hb-stat__t > .gr3-next { max-width: 250px; margin-top: 6px; color: var(--lv-on-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr3-find { padding: 12px; }
.gr3-search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 13px;
  border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-faint); cursor: text;
  transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease);
}
.gr3-search:focus-within { border-color: color-mix(in srgb, var(--color-primary) 55%, var(--lv-border)); box-shadow: var(--lv-focus); }
.gr3-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 15px var(--lv-font); color: var(--lv-ink); }
.gr3-search input::placeholder { color: var(--lv-faint); }
.gr3-tabs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.gr3-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; padding: 6px 10px;
  border-radius: 13px; border: 1px solid var(--lv-hair); background: var(--lv-surface); color: var(--lv-text); white-space: nowrap;
  transition: background var(--lv-dur) var(--lv-ease), border-color var(--lv-dur) var(--lv-ease);
}
.gr3-tab b { font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--lv-ink); }
.gr3-tab small { font-size: 12px; color: var(--lv-muted); }
.gr3-tab:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--lv-hair)); background: var(--lv-tint); }
.gr3-tab.is-full small { color: var(--lv-brand-fg); font-weight: 600; }
.gr3-tab.is-on { background: var(--lv-brand-strong); border-color: var(--lv-brand-strong); }
.gr3-tab.is-on :is(b, small) { color: var(--lv-on); }
.gr3-tab:focus-visible { outline: none; box-shadow: var(--lv-focus); }

.gr3-sec { margin-top: 28px; }
.gr3-sec__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.gr3-sec__head h2 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; color: var(--lv-ink); }
.gr3-sec__p { font-size: 13.5px; color: var(--lv-muted); }
.gr3-sec__bar { flex: 0 1 180px; margin-left: auto; }
.gr3-note { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--lv-muted); }
.gr3-list { overflow: hidden; }
.gr3-list > :is(.gr3-row, .gr3-topic) + :is(.gr3-row, .gr3-topic) { border-top: 1px solid var(--lv-hair); }
.gr3-row, .gr3-topic { position: relative; }
.gr3-row { display: flex; align-items: center; }
:is(.gr3-list > .gr3-row, .gr3-topic).is-rm::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lv-brand-strong); }
.gr3-row__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 8px 14px 18px; color: inherit;
  transition: background var(--lv-dur) var(--lv-ease);
}
.gr3-row__main:hover { background: var(--lv-tint); }
.gr3-row__main:focus-visible { outline: none; box-shadow: inset var(--lv-focus); }
.gr3-row__n {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lv-sunken); font-size: 13px; font-weight: 700; color: var(--lv-muted);
}
:is(.gr3-row, .gr3-topic).is-seen .gr3-row__n { background: var(--lv-wash); color: var(--lv-brand-deep); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-primary) 55%, transparent); }
:is(.gr3-row, .gr3-topic).is-done .gr3-row__n { background: var(--lv-brand-strong); color: var(--lv-on); }
.gr3-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gr3-row__t b { font-size: 15px; line-height: 1.4; font-weight: 650; color: var(--lv-ink); }
.gr3-row__t small { font-size: 13px; line-height: 1.45; color: var(--lv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr3-row__main > .lv-chip { flex: none; }
.gr3-bm {
  flex: none; width: 44px; height: 44px; margin-right: 8px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--lv-faint); cursor: pointer;
  transition: background var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease);
}
.gr3-bm:hover { background: var(--lv-sunken); color: var(--lv-ink); }
.gr3-bm:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.gr3-bm.is-on { color: var(--lv-brand-fg); }
.gr3-bm.is-on .lv-i { fill: currentColor; }
.gr3-bm:disabled { opacity: .5; }
/* Ba bài tập của chủ đề: nút nhỏ thẳng hàng với tên chủ đề */
.gr3-topic > .gr3-row .gr3-row__main { padding-bottom: 8px; }
.gr3-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 60px 14px 66px; }
.gr3-step {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--lv-border); background: var(--lv-surface); font-size: 13px; font-weight: 600; color: var(--lv-text); white-space: nowrap;
  transition: background var(--lv-dur) var(--lv-ease), border-color var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease);
}
.gr3-step:hover { background: var(--lv-tint); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); color: var(--lv-ink); }
.gr3-step:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.gr3-step.is-seen { border-color: color-mix(in srgb, var(--color-primary) 55%, var(--lv-border)); color: var(--lv-brand-deep); }
.gr3-step.is-done { background: var(--lv-wash); border-color: transparent; color: var(--lv-brand-deep); }
.gr3-step .lv-i { stroke-width: 2.4; }
.gr3-step.is-rm::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lv-brand-strong); }
.gr3-steps__p { margin-left: 4px; font-size: 12.5px; color: var(--lv-muted); }
.gr3-empty { padding: 28px 18px; text-align: center; font-size: 14px; color: var(--lv-muted); }
#gr3Results .gr3-row__main { padding-right: 18px; }
@media (max-width: 1023px) {
  .gr3 .hb-stat__t > .gr3-next { max-width: none; }
  .gr3-find { padding: 10px; }
  .gr3-search { height: 48px; }
  .gr3-tabs { grid-auto-columns: minmax(72px, 1fr); overflow-x: auto; scrollbar-width: none; margin: 10px -10px 0; padding: 0 10px 2px; }
  .gr3-tabs::-webkit-scrollbar { display: none; }
  .gr3-tab { min-height: 50px; }
  .gr3-sec { margin-top: 22px; }
  .gr3-sec__head h2 { font-size: 18px; }
  .gr3-sec__bar { flex-basis: 100%; margin-left: 0; order: 3; }
}
@media (max-width: 640px) {
  .gr3-row__main { gap: 12px; padding: 12px 4px 12px 14px; }
  .gr3-row__n { width: 30px; height: 30px; font-size: 12px; }
  .gr3-row__t b { font-size: 14.5px; }
  .gr3-row__main > .lv-chip { height: 22px; padding: 0 8px; font-size: 11.5px; }
  .gr3-bm { margin-right: 4px; }
  .gr3-steps { padding: 0 12px 12px 56px; }
  .gr3-step { height: 30px; padding: 0 10px; font-size: 12.5px; }
}

/* ═══ Phát âm IPA (learn/phonics/_phonics_v3.php): ô gọn ký hiệu + từ ví dụ, lọc nhóm tại chỗ theo main[data-cat] ═══ */
.ph3-stats { display: flex; gap: 28px; padding: 18px 24px; }
.ph3-stats dt { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--lv-on); }
.ph3-stats dd { margin-top: 6px; font-size: 13px; color: var(--lv-on-3); }
.ph3-find { scroll-margin-top: calc(var(--nav-h, 64px) + 12px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 10px; }
.hb-tabs { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
.hb-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid transparent; font-size: 14px; font-weight: 650; color: var(--lv-text); white-space: nowrap;
  transition: background var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease);
}
.hb-tab small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--lv-sunken); font-size: 12px; font-weight: 700; text-align: center; color: var(--lv-muted); }
.hb-tab:hover { background: var(--lv-tint); color: var(--lv-ink); }
.hb-tab.is-on { background: var(--lv-brand-strong); color: var(--lv-on); }
.hb-tab.is-on small { background: var(--lv-glass-2); color: var(--lv-on); }
.hb-tab:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.ph3-legend { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 13px; color: var(--lv-muted); }
.ph3-legend i, .ph3-tile__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lv-brand-strong); }
.ph3-cat { margin-top: 30px; }
.ph3-desc { margin: -6px 0 14px; max-width: 70ch; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.ph3-sub + .ph3-sub { margin-top: 18px; }
.ph3-sub h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--lv-ink); }
.ph3-sub h3 small { font-size: 13px; font-weight: 500; color: var(--lv-muted); }
.ph3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ph3-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 14px 8px 12px; border-radius: 16px; border: 1px solid var(--lv-hair); background: var(--lv-surface);
  box-shadow: var(--lv-sh-1); color: inherit;
  transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease), background var(--lv-dur) var(--lv-ease);
}
.ph3-tile:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-hair)); box-shadow: var(--lv-sh-2); }
.ph3-tile:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.ph3-tile__s { font-family: 'Charis SIL', 'Doulos SIL', 'Times New Roman', 'Noto Serif', serif; font-size: 34px; line-height: 1.05; font-weight: 700; color: var(--lv-brand-fg); }
.ph3-tile__w { font-size: 13.5px; font-weight: 550; color: var(--lv-muted); }
.ph3-tile__dot { position: absolute; top: 10px; right: 10px; }
.ph3 .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ph3[data-cat="vowel"] .ph3-cat:not([data-cat="vowel"]),
.ph3[data-cat="diphthong"] .ph3-cat:not([data-cat="diphthong"]),
.ph3[data-cat="consonant"] .ph3-cat:not([data-cat="consonant"]),
.ph3[data-cat="priority"] :is(.ph3-cat:not(:has(.is-vn)), .ph3-sub:not(:has(.is-vn)), .ph3-tile:not(.is-vn), .gr3-sec__p, .ph3-sub h3 small) { display: none; }
@media (max-width: 1023px) {
  .ph3-stats { justify-content: space-between; gap: 12px; padding: 14px 18px; }
  .ph3-stats dt { font-size: 24px; }
  .hb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; width: calc(100% + 20px); }
  .hb-tabs::-webkit-scrollbar { display: none; }
  .hb-tab { flex: none; height: 40px; padding: 0 12px; }
  .ph3-legend { margin: 0 4px 2px; }
  .ph3-cat { margin-top: 24px; }
}
@media (max-width: 640px) {
  .ph3-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ph3-tile { min-height: 84px; padding: 10px 4px; gap: 4px; border-radius: 14px; }
  .ph3-tile__s { font-size: 25px; }
  .ph3-tile__w { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph3-tile__dot { top: 7px; right: 7px; width: 6px; height: 6px; }
}

/* ═══ Bảng xếp hạng (vocab/_leaderboard_v3.php): thẻ "vị trí của bạn" trên dải · top 3 một thẻ · 20 hàng + "Xem thêm" ═══ */
.lb3-me { align-items: center; }
.lb3-me__r { flex: none; min-width: 88px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--lv-on); }
.lb3-flash { margin-top: 14px; display: inline-flex; padding: 7px 12px; border-radius: 10px; background: var(--lv-glass-2); color: var(--lv-on); font-size: 14px; font-weight: 600; }
.lb3-flash.is-warn { background: var(--color-warning-soft); color: var(--lv-warn-deep); }
.lb3-left { font-size: 13.5px; color: var(--lv-on-3); }
.lb3-ctrl { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px; }
.lb3-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; padding: 48px 20px; text-align: center; }
.lb3-empty b { font-size: 17px; color: var(--lv-ink); }
.lb3-empty span { font-size: 14px; color: var(--lv-muted); }
.lb3-top { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; margin-top: 18px; padding: 22px 18px 20px; }
.lb3-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 6px; border-radius: 16px; text-align: center; color: inherit; transition: background var(--lv-dur) var(--lv-ease); }
.lb3-pod--2 { grid-column: 1; } .lb3-pod--1 { grid-column: 2; } .lb3-pod--3 { grid-column: 3; }
.lb3-pod { grid-row: 1; }
.lb3-pod:hover { background: var(--lv-tint); }
.lb3-pod.is-me { background: var(--lv-wash); }
.lb3-pod__ava { position: relative; width: 60px; height: 60px; margin-bottom: 8px; }
.lb3-pod--1 .lb3-pod__ava { width: 78px; height: 78px; }
.lb3-pod__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--lv-surface), 0 0 0 5px var(--lv-hair); }
.lb3-pod--1 .lb3-pod__ava img { box-shadow: 0 0 0 3px var(--lv-surface), 0 0 0 5px var(--lv-brand-strong); }
.lb3-pod__ava i {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 800; background: var(--lv-sunken); color: var(--lv-ink); box-shadow: 0 0 0 2px var(--lv-surface);
}
.lb3-pod--1 .lb3-pod__ava i { background: var(--lv-brand-strong); color: var(--lv-on); }
.lb3-pod__n { max-width: 100%; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--lv-ink); }
.lb3-pod__xp { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--lv-ink); }
.lb3-pod--1 .lb3-pod__xp { font-size: 20px; color: var(--lv-brand-fg); }
.lb3-pod small { font-size: 12.5px; color: var(--lv-muted); }
.lb3-sec { margin-top: 26px; }
.lb3-list { overflow: hidden; }
.lb3-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px; color: inherit; transition: background var(--lv-dur) var(--lv-ease); }
.lb3-list > * + * { border-top: 1px solid var(--lv-hair); }
.lb3-row:hover { background: var(--lv-tint); }
.lb3-row.is-me { background: var(--lv-wash); }
.lb3-row:focus-visible { outline: none; box-shadow: inset var(--lv-focus); }
.lb3-row__r { flex: none; width: 34px; text-align: center; font-size: 14px; font-weight: 700; color: var(--lv-muted); }
.lb3-row.is-me .lb3-row__r { color: var(--lv-brand-deep); }
.lb3-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lb3-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb3-row__t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; color: var(--lv-ink); }
.lb3-row__t small { font-size: 12.5px; color: var(--lv-muted); }
.lb3-row__xp { flex: none; display: flex; align-items: baseline; gap: 4px; font-size: 16px; font-weight: 750; color: var(--lv-ink); }
.lb3-row__xp small { font-size: 11.5px; font-weight: 600; color: var(--lv-muted); }
.lb3-gap { padding: 4px 0 6px; text-align: center; font-size: 16px; letter-spacing: .3em; color: var(--lv-faint); }
.lb3-list:not(.is-open) .is-more { display: none; }
.lb3-list.is-open .lb3-gap:not(.lb3-gap--keep) { display: none; }
.lb3-more { display: flex; width: 100%; max-width: 360px; margin: 14px auto 0; }
@media (max-width: 1023px) {
  .lb3-me__r { min-width: 0; font-size: 36px; }
  .lb3-ctrl { padding: 10px; }
  .lb3-scope { width: auto; margin: 0; padding: 0; }
  .lb3-top { gap: 4px; padding: 18px 8px 14px; }
  .lb3-pod__ava { width: 52px; height: 52px; }
  .lb3-pod--1 .lb3-pod__ava { width: 66px; height: 66px; }
  .lb3-pod__n { font-size: 13.5px; }
  .lb3-pod__xp { font-size: 14.5px; }
  .lb3-pod--1 .lb3-pod__xp { font-size: 16px; }
  .lb3-row { gap: 12px; min-height: 60px; padding: 8px 14px; }
  .lb3-row__r { width: 28px; font-size: 13px; }
  .lb3-ava { width: 36px; height: 36px; }
  .lb3-row__t b { font-size: 14.5px; }
  .lb3-row__xp { font-size: 15px; }
}

/* ═══ VSTEP (learn/vstep/index.php): việc tiếp theo chồng mép dải · 4 kỹ năng (điểm lượt gần nhất) · phần nền · công cụ ═══ */
.vs3-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding: 20px 22px; }
.vs3-next > div { flex: 1 1 320px; min-width: 0; }
.vs3-next h2 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; color: var(--lv-ink); }
.vs3-next p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.vs3-skill .hb-skill__top { align-items: baseline; }
.vs3-skill .hb-skill__n { font-size: 18px; }
.vs3-skill .hb-skill__d { margin-top: -6px; }
.vs3-note { font-size: 13px; line-height: 1.5; color: var(--lv-text); }
.vs3-skill > .lv-chip, .vs3-skill > .hb-skill__go { align-self: flex-start; margin-top: auto; }
.vs3-skill.is-soon, .hb-tool.is-soon { border-style: dashed; box-shadow: none; background: transparent; }
.vs3-skill.is-soon :is(.hb-skill__n, .hb-skill__v b), .hb-tool.is-soon b { color: var(--lv-muted); }
.hb-tool > .lv-chip { flex: none; }
.vs3 .hb-stat__t > .vs3-quota { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--lv-line-d); font-size: 12.5px; line-height: 1.45; color: var(--lv-on-3); }
.vs3 .hb-stat__t > .vs3-quota.is-over { padding: 5px 10px; border: 0; border-radius: 9px; background: var(--color-warning-soft); color: var(--lv-warn-deep); }
.vs3-foot { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--lv-muted); }
.vs3-skill .hb-skill__v.vs3-none small { font-size: 13px; font-weight: 650; color: var(--lv-muted); }
/* Đợt 5 (03/10/2026): tóm tắt bài "Tìm hiểu đề thi" gọn một dòng — đủ ý ở trang bài. */
.vs3-ov small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* Lý thuyết v2 Đợt 5 (03/10/2026): tiến độ bài lý thuyết theo bậc mục tiêu + bài tiếp theo. */
.vs3-th { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 18px; }
.vs3-th__p { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vs3-th__p b { font-size: 15px; font-weight: 700; color: var(--lv-ink); }
.vs3-th__next { flex: 2 1 320px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--lv-hair);
  border-radius: 12px; background: var(--lv-sunken); color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease); }
.vs3-th__next:hover { border-color: var(--color-primary); }
.vs3-th__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs3-th__img { flex: none; width: 64px; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; object-position: 75% 50%; background: var(--lv-hair); }
.vs3-th__next small { font-size: 12.5px; color: var(--lv-muted); }
.vs3-th__next b { font-size: 14.5px; font-weight: 700; color: var(--lv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs3-th__next > .lv-chip { flex: none; }
.vs3-th__done { flex: 2 1 320px; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
/* Lộ trình VSTEP theo bậc (đợt 1, 04/10/2026): tiến độ lộ trình đang học hoặc lời giới thiệu lộ trình. */
.vs3-rm { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 18px; }
.vs3-rm__b { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vs3-rm__b b { font-size: 15.5px; font-weight: 700; color: var(--lv-ink); }
.vs3-rm__b span { font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.vs3-rm__b .lv-bar { margin-top: 4px; max-width: 420px; }
.vs3-rm > .lv-btn { flex: none; }
@media (max-width: 1023px) {
  .vs3-next { padding: 16px; }
  .vs3-next .lv-btn { width: 100%; justify-content: center; }
  .vs3-skill .hb-skill__n { font-size: 16px; }
}

/* ═══ Từ điển (tu-dien/index.php, học viên đăng nhập): ô tra chồng mép dải · thẻ nghĩa · gợi ý — nhãn chữ thường ═══ */
.td3 { --td-w: 860px; }
.td3-band .lv-band__inner, .td3-body { max-width: var(--td-w); }
.td3-body { margin-left: auto; margin-right: auto; box-sizing: content-box; }
.td3-find { display: flex; align-items: center; gap: 10px; padding: 12px; }
.td3-find .gr3-search { flex: 1; min-width: 0; }
.td3-find .lv-btn { flex: none; height: 50px; min-width: 88px; justify-content: center; }
.td3 .avd-empty { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--lv-hair); border-radius: 18px; background: var(--lv-surface); box-shadow: var(--lv-sh-1); font-size: 14.5px; line-height: 1.6; color: var(--lv-muted); }
.td3 .avd-empty b { color: var(--lv-ink); }
.td3 .avd-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.td3 .avd-examples a, .td3 :is(.avd-forms__item, .avd-rel__words a) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color var(--lv-dur) var(--lv-ease), background var(--lv-dur) var(--lv-ease);
}
.td3 .avd-examples a:hover, .td3 :is(.avd-forms__item, .avd-rel__words a):hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); background: var(--lv-tint); text-decoration: none; }
.td3 .avd-forms__item small { font-weight: 500; color: var(--lv-muted); }
.td3 .avd-lemma { margin: 18px 0 0; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--lv-wash); color: var(--lv-text); }
.td3 .avd-lemma strong { color: var(--lv-brand-deep); }
.td3 .avd-card { margin: 18px 0 0; padding: 26px 28px; border: 1px solid var(--lv-hair); border-radius: 20px; background: var(--lv-surface); box-shadow: var(--lv-sh-2); }
.td3 :is(.avd-def h1, .avd-headword) { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--lv-ink); border-bottom-color: var(--lv-hair); }
.td3 .avd-def h3, .td3 .avd-headword__ipa { font-family: 'Charis SIL', 'Doulos SIL', 'Times New Roman', serif; font-size: 18px; font-style: normal; color: var(--lv-brand-fg); }
.td3 .avd-def h2 { font-size: 14.5px; font-weight: 700; text-transform: none; color: var(--lv-brand-fg); }
.td3 .avd-def { font-size: 15.5px; line-height: 1.7; color: var(--lv-text); }
.td3 .avd-def i { color: var(--lv-muted); }
.td3 .avd-def h3 i { font-style: normal; color: inherit; }
.td3 .avd-meta { gap: 8px; margin: 4px 0 16px; }
.td3 .avd-chip, .td3 .avd-freq { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 650; letter-spacing: 0; background: var(--lv-sunken); color: var(--lv-text); }
.td3 :is(.avd-chip--exam, .avd-chip--ox) { background: var(--lv-wash); color: var(--lv-brand-deep); }
.td3 :is(.avd-forms, .avd-rel) { border-top-color: var(--lv-hair); }
.td3 :is(.avd-forms__lbl, .avd-rel__lbl) { min-width: 96px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--lv-ink); }
.td3 .avd-en summary { color: var(--lv-brand-fg); font-weight: 650; }
.td3 .avd-sug { margin-top: 28px; }
.td3 .avd-sug__lbl { text-transform: none; letter-spacing: -.01em; font-size: 18px; font-weight: 750; color: var(--lv-ink); }
.td3 .avd-sug__grid { gap: 10px; }
.td3 .avd-sug__item { padding: 12px 14px; border: 1px solid var(--lv-hair); border-radius: 14px; background: var(--lv-surface); box-shadow: var(--lv-sh-1); color: var(--lv-ink); }
.td3 .avd-sug__item:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-hair)); box-shadow: var(--lv-sh-2); }
.td3 .avd-sug__word { font-weight: 700; }
.td3 .avd-sug__item small { font-size: 12.5px; color: var(--lv-muted); }
@media (max-width: 1023px) {
  .td3-find { padding: 10px; }
  .td3-find .gr3-search { height: 48px; }
  .td3-find .lv-btn { height: 48px; min-width: 72px; padding: 0 16px; }
  .td3 .avd-card { padding: 20px 18px; }
  .td3 :is(.avd-def h1, .avd-headword) { font-size: 26px; }
  .td3 .avd-sug__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .td3 :is(.avd-forms__lbl, .avd-rel__lbl) { flex-basis: 100%; }
}

/* ═══ Nâng cấp gói (_pricing_v3.php): chọn kỳ thi → 3 thẻ gọn → bảng khác biệt theo kỳ thi → trọn đời → gói lẻ → cửa hàng → hỏi đáp ═══ */
.pp3-switch .lv-btn { min-height: 44px; }
.pp3-now .hb-stat__t > span:first-child { font-size: 13px; color: var(--lv-on-3); }
.pp3-now .hb-stat__t > b { margin-top: 2px; font-size: 22px; letter-spacing: -.01em; }
.pp3-now .hb-stat__t > .lv-chip-d { margin-top: 10px; }
.pp3-pick { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 14px 18px; }
.pp3-pick__q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp3-pick__q b { font-size: 16px; font-weight: 750; color: var(--lv-ink); }
.pp3-pick__q span { font-size: 13.5px; color: var(--lv-muted); }
.pp3-pick .hb-tab { min-width: 112px; justify-content: center; border: 1px solid var(--lv-border); background: var(--lv-surface); cursor: pointer; font-family: inherit; }
.pp3-pick .hb-tab.is-on { border-color: var(--lv-brand-strong); background: var(--lv-brand-strong); color: var(--lv-on); }
.pp3-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 18px; }
.pp3[data-path="ielts"] :is(.pp3-card, .pp3-tr)[data-path="toeic"],
.pp3[data-path="toeic"] :is(.pp3-card, .pp3-tr)[data-path="ielts"],
.pp3:not([data-path="vstep"]) :is(.pp3-card, .pp3-tr)[data-path="vstep"],
.pp3[data-path="vstep"] :is(.pp3-card, .pp3-tr):is([data-path="ielts"], [data-path="toeic"]) { display: none; }
.pp3-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pp3-card.is-featured { border: 2px solid var(--lv-brand-strong); box-shadow: var(--lv-sh-3); }
.pp3-card.is-current { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-hair)); }
.pp3-card.is-target, .pp3-lt.is-target { outline: 3px solid color-mix(in srgb, var(--color-primary) 40%, transparent); outline-offset: 3px; }
.pp3-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp3-card__head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--lv-ink); }
.pp3-card__for { font-size: 14px; line-height: 1.5; color: var(--lv-muted); }
.pp3-tiers .pp3-card__for { min-height: 4.5em; }
/* Chọn thời hạn ngay trong thẻ gói (All-in-One: 1 năm ↔ trọn đời) */
.pp3-term { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border: 1px solid var(--lv-border); border-radius: var(--radius-md); background: var(--lv-wash); }
.pp3-term__b { flex: 1; min-height: 38px; padding: 0 10px; border: 0; border-radius: calc(var(--radius-md) - 4px); background: transparent; color: var(--lv-muted); font-family: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease); }
.pp3-term__b:hover { color: var(--lv-ink); }
.pp3-term__b.is-on { background: var(--lv-surface); color: var(--lv-ink); box-shadow: var(--lv-sh-1, 0 1px 2px rgba(15,23,42,.08)); }
.pp3-term__note, .pp3-term__hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--lv-muted); }
.pp3-price s { font-size: 15px; font-weight: 600; color: var(--lv-mute); text-decoration: line-through; }

.pp3-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0; }
.pp3-price b { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--lv-ink); }
.pp3-price span { font-size: 14px; color: var(--lv-muted); }
.pp3-price s { margin-right: 4px; font-size: 15px; color: var(--lv-faint); }
.pp3-owned { min-height: 48px; justify-content: center; border-color: transparent; background: var(--lv-sunken); color: var(--lv-muted); cursor: default; }
.pp3-up { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--lv-wash); font-size: 13px; line-height: 1.45; color: var(--lv-text); }
.pp3-up__from { font-weight: 650; color: var(--lv-ink); }
.pp3-up b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--lv-brand-deep); }
.pp3-card__feats { padding-top: 14px; border-top: 1px solid var(--lv-hair); }
.pp3-feats { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp3-feats li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--lv-text); }
.pp3-feats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lv-brand-strong); }
.pp3-feats--no li { color: var(--lv-muted); }
.pp3-feats--no li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--lv-faint); }
.pp3-more { margin-top: 10px; }
.pp3-more summary { display: inline-flex; min-height: 36px; align-items: center; font-size: 14px; font-weight: 650; color: var(--lv-brand-fg); cursor: pointer; list-style: none; }
.pp3-more summary::-webkit-details-marker { display: none; }
.pp3-more[open] summary { margin-bottom: 6px; }
.pp3-no__h { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--lv-ink); }
.pp3-table { overflow: hidden; }
.pp3-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--lv-hair); }
.pp3-tr:first-child { border-top: 0; }
.pp3-tr > span { display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; font-size: 14px; line-height: 1.45; color: var(--lv-text); white-space: pre-line; }
.pp3-tr > [role="rowheader"] { font-weight: 600; color: var(--lv-ink); }
.pp3-tr > .is-hi { background: var(--lv-tint); color: var(--lv-ink); }
.pp3-tr--head > span { font-size: 15px; font-weight: 750; color: var(--lv-ink); }
.pp3-tr--head small { font-size: 12.5px; font-weight: 500; color: var(--lv-muted); }
.pp3-foot { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--lv-muted); }
/* Bảng "khoá lẻ nào có sẵn trong gói" (GĐ6) — cùng khung .pp3-table, thêm tên khoá bấm được + dấu ✓ */
.pp3-bundle__lead { margin: -4px 0 14px; font-size: 14px; line-height: 1.55; color: var(--lv-muted); }
.pp3-bundle .pp3-tr > [role="rowheader"] a { color: var(--lv-ink); font-weight: 650; }
.pp3-bundle .pp3-tr > [role="rowheader"] a:hover { color: var(--lv-brand-fg); }
.pp3-bundle .pp3-tr > [role="rowheader"] small { margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--lv-muted); }
.pp3-bundle .pp3-tr > [role="cell"] { align-items: center; color: var(--lv-faint); }
.pp3-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lv-wash); color: var(--lv-brand-fg); }
.pp3-lt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr); gap: 24px; padding: 24px; }
.pp3-lt.is-current { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-hair)); }
.pp3-lt__copy h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--lv-ink); }
.pp3-lt__copy > p { margin: 6px 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--lv-text); }
.pp3-lt__buy { display: flex; flex-direction: column; gap: 10px; align-self: start; padding: 18px; border-radius: 16px; background: var(--lv-tint); }
.pp3-lt__vs { margin: -4px 0 0; font-size: 13px; color: var(--lv-muted); }
.pp3-singles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pp3-shop { padding: 8px; }
.pp3-shop__lead { padding: 10px 12px 6px; font-size: 14px; line-height: 1.55; color: var(--lv-text); }
.pp3-shop__it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: inherit; transition: background var(--lv-dur) var(--lv-ease); }
.pp3-shop__it:hover { background: var(--lv-tint); }
.pp3-shop__img { flex: none; width: 76px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--lv-sunken); }
.pp3-shop__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp3-shop__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp3-shop__t b { font-size: 14.5px; line-height: 1.4; font-weight: 650; color: var(--lv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp3-shop__t small { font-size: 13px; font-weight: 700; color: var(--lv-brand-fg); }
.pp3-shop__t s { font-weight: 500; color: var(--lv-faint); }
.pp3-shop__it > .lv-i { flex: none; color: var(--lv-faint); }
.pp3-faq { overflow: hidden; }
.pp3-q + .pp3-q { border-top: 1px solid var(--lv-hair); }
.pp3-q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 20px; font-size: 15px; font-weight: 650; color: var(--lv-ink); cursor: pointer; list-style: none; }
.pp3-q summary::-webkit-details-marker { display: none; }
.pp3-q summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--lv-muted); }
.pp3-q[open] summary::after { content: "–"; }
.pp3-q summary:focus-visible, .pp3-more summary:focus-visible { outline: none; box-shadow: inset var(--lv-focus); border-radius: 10px; }
.pp3-q p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: var(--lv-text); }
.pp3-q p a { color: var(--lv-brand-fg); text-decoration: underline; }
/* Giá sắp tăng (includes/price_schedule.php) — dải trên đầu + dòng nhắc trong thẻ; qua ngày tăng thì PHP không in nữa */
.pp3-rise { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--lv-warn) 40%, var(--lv-hair)); background: color-mix(in srgb, var(--color-warning-soft) 60%, var(--lv-surface)); }
.pp3-rise__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.pp3-rise__head h2 { font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; color: var(--lv-ink); }
.pp3-rise__lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lv-text); }
.pp3-rise__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp3-rise__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 11px 14px; border-radius: 12px; background: var(--lv-surface); }
.pp3-rise__name { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--lv-ink); }
.pp3-rise__px { font-size: 14px; line-height: 1.4; color: var(--lv-muted); white-space: nowrap; }
.pp3-rise__px b { font-size: 15px; font-weight: 800; color: var(--lv-warn-deep); }
.pp3-rise__when { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--lv-muted); }
.pp3-rise-tag { margin: 8px 0 0; padding: 8px 11px; border-radius: 10px; background: var(--color-warning-soft); color: var(--lv-warn-deep); font-size: 13px; line-height: 1.45; font-weight: 600; }
.pp3-tr--head + .pp3-tr--head { border-top: 0; }   /* hai hàng tiêu đề (IELTS · TOEIC) — chỉ một hàng hiện theo kỳ thi */
@media (max-width: 1023px) {
  .pp3-rise__rows { grid-template-columns: minmax(0, 1fr); }
  .pp3-pick { padding: 12px 14px; }
  .pp3-pick .hb-tabs { width: 100%; margin: 0; padding: 0; overflow: visible; }
  .pp3-pick .hb-tab { flex: 1; min-width: 0; }
  .pp3-tiers { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pp3-tiers .pp3-card__for { min-height: 0; }
  .pp3-card { padding: 18px; }
  .pp3-price b { font-size: 26px; }
  .pp3-lt { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .pp3-singles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .pp3-tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp3-tr > [role="rowheader"] { grid-column: 1 / -1; padding: 12px 14px 2px; font-size: 13.5px; }
  .pp3-bundle .pp3-tr > [role="rowheader"] { display: flex; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 2px 8px; flex-wrap: wrap; }   /* justify: ô gốc là cột căn giữa — đổi sang hàng mà không đặt lại thì tên khoá chạy ra giữa */
  .pp3-bundle .pp3-tr > [role="rowheader"] small { margin-top: 0; }
  .pp3-bundle .pp3-tr > [role="cell"] { align-items: center; }
  .pp3-tr > span { padding: 6px 10px 12px; font-size: 13px; }
  .pp3-tr--head > span:first-child { display: none; }
  .pp3-tr--head > span { padding: 12px 10px; font-size: 14px; }
  .pp3-q summary { padding: 14px 16px; font-size: 14.5px; }
  .pp3-q p { padding: 0 16px 16px; font-size: 14px; }
  .pp3-rise { padding: 16px; }
  .pp3-rise__row { padding: 10px 12px; }
}

/* ═══ Cửa hàng sản phẩm lẻ (cua-hang.php, học viên đăng nhập): tìm + lọc chồng mép dải · lưới 2 cột trên điện thoại ═══ */
.sp3-find { padding: 12px; }
.sp3-find .gr3-search input { font-size: 15px; }
.sp3-chips { margin-top: 10px; }
.sp3-chips .hb-tab { height: 38px; border: 1px solid var(--lv-border); }
.sp3-chips .hb-tab.is-on { border-color: var(--lv-brand-strong); }
.sp3-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 12px; font-size: 14px; color: var(--lv-muted); }
.sp3-bar a { font-weight: 650; color: var(--lv-brand-fg); }
.sp3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sp3-card { display: flex; flex-direction: column; overflow: hidden; }
.sp3-card__img { display: block; aspect-ratio: 16 / 10; background: var(--lv-sunken); }
.sp3-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp3-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.sp3-card h3 { font-size: 15.5px; line-height: 1.4; font-weight: 700; letter-spacing: -.005em; }
.sp3-card h3 a { color: var(--lv-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp3-card h3 a:hover { color: var(--lv-brand-deep); }
.sp3-card__desc { font-size: 13.5px; line-height: 1.5; color: var(--lv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp3-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: auto 0 0; }
.sp3-card__price b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--lv-ink); }
.sp3-card__price s { font-size: 13px; color: var(--lv-faint); }
.sp3-off { padding: 1px 7px; border-radius: 999px; background: var(--lv-wash); font-size: 12px; font-weight: 700; color: var(--lv-brand-deep); }
.sp3-card__act { margin-top: 4px; }
.sp3-card__act .lv-btn { min-height: 44px; justify-content: center; }
.sp3-card.is-owned .sp3-card__img { opacity: .9; }
@media (max-width: 1023px) {
  .sp3-find { padding: 10px; }
  .sp3-chips { margin: 10px -10px 0; padding: 0 10px; width: calc(100% + 20px); }
}
@media (max-width: 640px) {
  .sp3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp3-card__body { gap: 6px; padding: 10px 11px 12px; }
  .sp3-card h3 { font-size: 13.5px; }
  .sp3-card__desc, .sp3-card__promo { display: none; }
  .sp3-card__price b { font-size: 16px; }
  .sp3-card__price s { font-size: 12px; }
  .sp3-off { display: none; }
  .sp3-card__act .lv-btn { min-height: 40px; padding: 0 8px; font-size: 13.5px; }
}

/* ═══ Cửa hàng: chỉ đường sang gói học (GĐ6, 23/09/2026) ═══ */
.sp3-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 16px 18px; background: var(--lv-tint);
  border-color: color-mix(in srgb, var(--color-primary) 26%, var(--lv-hair));
}
.sp3-hint:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-hair)); }
.sp3-hint__t { min-width: 0; }
.sp3-hint__t b { display: block; font-size: 15.5px; font-weight: 700; color: var(--lv-ink); }
.sp3-hint__t span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--lv-muted); }
.sp3-hint__go { flex: none; min-height: 44px; }
.sp3-card__inplan {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 8px; padding: 4px 10px;
  border-radius: 999px; background: var(--lv-wash); color: var(--lv-brand-deep); font-size: 12px; font-weight: 650; line-height: 1.35;
}
.sp3-card__inplan:hover { background: color-mix(in srgb, var(--color-primary) 16%, var(--lv-surface)); color: var(--lv-brand-deep); }
@media (max-width: 1023px) {
  .sp3-hint { padding: 14px; gap: 10px; }
  .sp3-hint__t b { font-size: 14.5px; }
  .sp3-hint__go { width: 100%; }
  .sp3-card__inplan { font-size: 11.5px; padding: 3px 8px; }
}

/* ═══ Bản KHÁCH của trang gói + cửa hàng (24/09/2026). Khung khách có thanh trên trắng CỐ ĐỊNH, body.gs3 đã chừa chỗ bằng
   padding-top (guest-shell.css) ⇒ dải bắt đầu NGAY DƯỚI thanh, không trượt lên sau thanh như bên app học (thanh trong suốt). ═══ */
body.gs3 .hb > .lv-band { margin-top: 0; padding-top: 44px; }
@media (max-width: 1023px) { body.gs3 .hb > .lv-band { padding-top: 28px; } }

/* ═══ Hub TOEIC (25/09/2026) — thẻ kỹ năng ≤5 thứ + link "bước kế tiếp", công cụ một lưới, lộ trình hết hạn một dòng ═══ */
.hb--toeic .hb-skill--v3 { position: relative; }
.hb--toeic a.hb-skill__lnk { color: var(--lv-ink); }
.hb--toeic a.hb-skill__lnk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* cả thẻ mở trang kỹ năng */
.hb--toeic .hb-skill--v3:hover a.hb-skill__lnk { color: var(--lv-brand-deep); }
.hb--toeic .hb-skill--v3 .hb-skill__p { margin-top: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.hb--toeic .hb-skill--v3 .hb-skill__f + .hb-skill__p { margin-top: -4px; }
/* Link bước kế tiếp nổi trên lớp phủ của thẻ — bấm nó là vào thẳng câu hỏi / bộ từ / đề đang dở. */
.hb--toeic .hb-skill--v3 .hb-skill__go { position: relative; z-index: 1; align-self: flex-start; max-width: 100%; }
.hb--toeic .hb-skill--v3 .hb-skill__go { align-items: flex-start; line-height: 1.45; }
.hb--toeic .hb-skill--v3 .hb-skill__go > .lv-i { flex: none; margin-top: 2px; }
.hb--toeic .hb-rm__gone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; font-size: 13px; color: var(--lv-muted); }
.hb--toeic .hb-rm__gone > span { font-weight: 600; color: var(--lv-text); }
.hb--toeic .hb-rm__gone > a { color: var(--lv-muted); text-decoration: underline; text-underline-offset: 3px; }
.hb--toeic .hb-rm__gone > a:hover { color: var(--lv-brand-fg); }
.hb--toeic .hb-rm__gone > i { font-style: normal; color: var(--lv-faint); }
.hb--toeic .hb-rm__gone > a.hb-rm__renew { margin-left: auto; text-decoration: none; font-weight: 650; color: var(--lv-brand-fg); }
.hb--toeic .hb-tools--grid .hb-tool { min-height: 76px; }
@media (max-width: 640px) {
  .hb--toeic .lv-band__actions .lv-btn { flex: 1 1 100%; justify-content: center; }   /* hai nút đầu trang bằng nhau */
  .hb--toeic .hb-rm__gone > a.hb-rm__renew { margin-left: 0; }
}
