/* JOHN Academy — phễu 10 lãng phí ẩn.
   Bộ nhận diện (john-academy-brand/BRAND.md): cam #F47421, đen #0D0D0D, Be Vietnam Pro, đường đồng mức + quầng cam.
   Phương án B (Toàn chốt 18/11/2026): màn "đã mắt" nền đen (vào, kết quả, Mentor, khoá, cảm ơn);
   màn đọc/làm nền sáng ấm có dấu ấn thương hiệu (câu hỏi, sách, chi tiết sản phẩm, thanh toán). */
:root {
  --cam: #F47421; --cam-sang: #FF8A3D; --cam-dam: #B8520E; --cam-nhat: #FFF1E6; --cam-vien: #F9C9A6;
  --den: #0D0D0D; --den-2: #161616; --den-3: #1F1F1F; --vien-toi: #2C2C2C;
  --nen-sang: #F6F3EE; --mat: #FFFFFF; --chu: #17181B; --mo: #5F6268; --vien: #E7E1D8;
  --loi: #B42318; --ok: #23784A;
  --bong: 0 1px 2px rgba(20, 14, 6, .05), 0 8px 24px rgba(20, 14, 6, .07);
  --bong-dam: 0 2px 4px rgba(0, 0, 0, .08), 0 18px 48px rgba(0, 0, 0, .22);
  --bo: 16px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { background: var(--nen-sang); -webkit-text-size-adjust: 100% }
body { margin: 0; color: var(--chu); font: 16px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; background: transparent }
main { flex: 1 }
img { max-width: 100%; display: block }
button { font: inherit }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.012em }
p { margin: 0 }
.khung { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)) }
.khung.hep { max-width: 760px }
.cam { color: var(--cam) }
.nho { font-size: 14px; color: var(--mo) }
.can-giua { text-align: center }

/* ---------- nền: lớp cố định phía sau, đổi theo màn ---------- */
.nen-chim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: var(--nen-sang);
  background-image: url(/static/nen/duong-muc-sang.svg), url(/static/nen/luoi-cham.svg);
  background-size: cover, 22px 22px; background-position: center, 0 0 }
.nen-chim::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246, 243, 238, .55), rgba(246, 243, 238, .9) 40%, rgba(246, 243, 238, .97)) }
body.toi .nen-chim { background-color: var(--den); background-image: url(/static/nen/duong-muc.svg); background-size: cover }
body.toi .nen-chim::after { background:
  radial-gradient(1000px 680px at 100% 105%, rgba(244, 116, 33, .40), transparent 62%),
  radial-gradient(700px 520px at -5% -10%, rgba(244, 116, 33, .14), transparent 70%),
  radial-gradient(ellipse at 50% 45%, rgba(13, 13, 13, .55), rgba(13, 13, 13, .2) 70%) }
html:has(body.toi) { background: var(--den) }
/* 3 phương án nền trang đầu (Toàn chọn) — ?nen=b | c */
body[data-nen="b"].toi .nen-chim { background-image: url(/static/nen/con-duong.svg) }
body[data-nen="c"].toi .nen-chim { background-image: url(/static/nen/luoi-cham.svg); background-size: 26px 26px }
body[data-nen="c"].toi .nen-chim::after { background:
  radial-gradient(520px 520px at 50% 42%, rgba(244, 116, 33, .28), transparent 70%),
  radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(13, 13, 13, .92) 75%) }

/* ---------- đầu trang ---------- */
.dau { position: sticky; top: 0; z-index: 20; background: rgba(13, 13, 13, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06) }
body:not(.toi) .dau { border-bottom: 2px solid var(--cam) }
.dau-trong { max-width: 1120px; margin: 0 auto; padding: 8px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; min-height: 66px }
.logo { height: 54px; width: auto }
.logo-link { display: inline-flex; border-radius: 6px }
.nut-gio { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 8px 8px 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer }
.nut-gio:hover { border-color: var(--cam) }
.nut-gio b { background: var(--cam); color: var(--den); min-width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 7px }
.nut-gio-tien { color: #d9d9d9; font-weight: 600; padding-right: 6px }
.nut-gio-tien:empty { display: none }

/* ---------- nút ---------- */
.nut { font-weight: 700; border-radius: 999px; padding: 13px 26px; cursor: pointer; border: 2px solid transparent; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; line-height: 1.25; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s }
.nut.chinh { background: var(--cam); color: var(--den); box-shadow: 0 8px 22px rgba(244, 116, 33, .32) }
.nut.chinh:hover { background: var(--cam-sang); transform: translateY(-1px) }
.nut.vien { background: transparent; border-color: var(--vien); color: var(--chu) }
.nut.vien:hover { border-color: var(--cam); color: var(--cam-dam) }
.nut.toi { background: var(--den); color: #fff }
.nut.toi:hover { background: #262626 }
.nut-lon { font-size: 18px; padding: 18px 44px; min-height: 62px }
.nut-rong { width: 100% }
.nut:disabled { opacity: .55; cursor: wait; transform: none }
.nut-chu { background: none; border: 0; padding: 10px 4px; color: var(--mo); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .2) }
.nut-chu:hover { color: var(--chu) }
.nut-lui { text-decoration: none; padding: 0; margin: 4px 0 18px; display: flex; width: fit-content; align-items: center; gap: 8px }
.nut-lui::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px }
:focus-visible { outline: 3px solid var(--cam); outline-offset: 2px }

/* ---------- chữ nhỏ dùng chung ---------- */
.huy-hieu { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cam-dam) }
.huy-hieu::before { content: ""; width: 22px; height: 2px; background: currentColor }
.toi .huy-hieu { color: var(--cam) }
.the-nhan { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cam-dam); margin-bottom: 6px }
.nhom-tieu-de { font-size: 20px; margin: 40px 0 16px; display: flex; align-items: center; gap: 12px }
.nhom-tieu-de::after { content: ""; flex: 1; height: 1px; background: var(--vien) }
.toi .nhom-tieu-de::after { background: var(--vien-toi) }
.ds-dau { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 8px }
.ds-dau li { position: relative; padding-left: 28px; font-size: 15px }
.ds-dau li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--cam); border-bottom: 2.5px solid var(--cam); transform: rotate(-45deg) }

/* ---------- thẻ trắng + ô nhập ---------- */
.the-trang { background: var(--mat); color: var(--chu); border-radius: 20px; padding: 28px; box-shadow: var(--bong); border: 1px solid var(--vien) }
.toi .the-trang { box-shadow: var(--bong-dam); border: 0; border-top: 4px solid var(--cam) }
.the-trang h3 { font-size: 22px; line-height: 1.3; margin-bottom: 4px }
.o { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #34363B }
.o em { font-style: normal; font-weight: 500; color: var(--mo) }
.o input, .o select, .o textarea { font: inherit; font-size: 16px; font-weight: 500; color: var(--chu); padding: 13px 14px; border: 1.5px solid var(--vien); border-radius: 12px; background: #FDFCFA; width: 100%; transition: border-color .15s, box-shadow .15s }
.o input:hover { border-color: #d5ccbf }
.o input:focus { outline: none; border-color: var(--cam); box-shadow: 0 0 0 4px rgba(244, 116, 33, .15); background: #fff }
.o input::placeholder { color: #A9A49C }
.hai-o { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px }
.loi { color: var(--loi); font-size: 14px; font-weight: 600; margin: 0 0 12px }
.mo { color: #9C9C9C }
body:not(.toi) .mo { color: var(--mo) }

/* =================== 1. TRANG ĐẦU =================== */
.vao { min-height: calc(100vh - 66px - 64px); min-height: calc(100svh - 66px - 64px); display: grid; place-items: center; padding: 48px 20px 64px; color: #fff; text-align: center }
.vao-khoi { max-width: 860px; display: flex; flex-direction: column; align-items: center }
.vao h1 { font-size: clamp(34px, 6.4vw, 66px); line-height: 1.1; font-weight: 900; margin: 20px 0 22px; text-wrap: balance; letter-spacing: -.02em }
.vao-phu { font-size: clamp(17px, 2.1vw, 20px); color: #C9C9C9; max-width: 640px; margin-bottom: 34px; text-wrap: pretty }
.vao .huy-hieu::after { content: ""; width: 22px; height: 2px; background: currentColor }
.vao-tin { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.vao-tin li { padding: 14px 26px; display: grid; gap: 2px; text-align: center }
.vao-tin li + li { border-left: 1px solid rgba(255, 255, 255, .1) }
.vao-tin b { font-size: 16px; color: #fff }
.vao-tin span { font-size: 13px; color: #A8A8A8 }

/* =================== 2. KHẢO SÁT =================== */
#m-cau { padding: 40px 0 72px }
.khao-sat { background: var(--mat); border-radius: 24px; box-shadow: 0 2px 4px rgba(20, 14, 6, .04), 0 24px 60px rgba(20, 14, 6, .10); overflow: hidden; border: 1px solid var(--vien) }
.ks-dau { background: var(--den); color: #fff; padding: 18px 28px 0; position: relative; overflow: hidden }
.ks-dau::before { content: ""; position: absolute; inset: 0; background: url(/static/nen/duong-muc.svg) center/cover; opacity: .7 }
.ks-dau::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 100%, rgba(244, 116, 33, .35), transparent 70%) }
.ks-dau-chu { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 16px }
#cauPhan { color: var(--cam) }
#cauSo { color: #CFCFCF; font-variant-numeric: tabular-nums }
.vach { position: relative; z-index: 1; height: 5px; background: rgba(255, 255, 255, .12); margin: 0 -28px }
.vach i { display: block; height: 100%; background: linear-gradient(90deg, var(--cam), var(--cam-sang)); width: 0; transition: width .35s ease }
.ks-than { padding: 34px 32px 10px }
.ks-hoi { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.32; text-wrap: balance; min-height: 2.6em }
.ks-goi-y { color: var(--mo); font-size: 15px; margin-top: 8px }
.ks-goi-y:empty { display: none }
.chon { display: grid; gap: 12px; margin: 24px 0 8px }
.lc { display: flex; gap: 14px; align-items: center; text-align: left; font-size: 16px; font-weight: 600; padding: 15px 18px; border: 1.5px solid var(--vien); border-radius: 14px; background: #FDFCFA; color: var(--chu); cursor: pointer; min-height: 60px; transition: border-color .15s, background-color .15s, transform .1s }
.lc:hover { border-color: var(--cam); background: #fff }
.lc:active { transform: scale(.995) }
.lc-ky { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--nen-sang); color: var(--mo); border: 1px solid var(--vien); transition: inherit }
.lc.da-chon { border-color: var(--cam); background: var(--cam-nhat) }
.lc.da-chon .lc-ky, .lc:hover .lc-ky { background: var(--cam); color: var(--den); border-color: var(--cam) }
.lc input { position: absolute; opacity: 0; pointer-events: none }
label.lc { position: relative }
label.lc:has(input:checked) { border-color: var(--cam); background: var(--cam-nhat) }
label.lc:has(input:focus-visible) { outline: 3px solid var(--cam); outline-offset: 2px }
.lc-o { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #C9C1B5; display: grid; place-items: center }
label.lc:has(input:checked) .lc-o { background: var(--cam); border-color: var(--cam) }
label.lc:has(input:checked) .lc-o::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--den); border-bottom: 2.5px solid var(--den); transform: rotate(-45deg) translate(1px, -1px) }
.ks-chan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 32px 28px }
.ks-cuoi { text-align: center; font-size: 13px; color: var(--mo); margin-top: 18px }

/* =================== 3. KẾT QUẢ =================== */
#m-kq { padding: 48px 0 80px; color: #fff }
.kq-luoi { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start }
.kq-tieu-de { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: #E6E6E6; margin: 18px 0 4px }
.kq-so { font-size: clamp(56px, 9vw, 104px); font-weight: 900; line-height: 1; color: var(--cam); letter-spacing: -.03em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; text-shadow: 0 10px 40px rgba(244, 116, 33, .35) }
.kq-so small { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0; text-shadow: none }
.kq-phu { color: #C9C9C9; margin: 14px 0 0; font-size: 17px }
.kq-top { margin: 34px 0 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--vien-toi); border-radius: 18px; padding: 22px 22px 12px }
.kq-top h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #BDBDBD; margin-bottom: 14px }
.kq-top ol { list-style: none; padding: 0; margin: 0; counter-reset: top }
.kq-top li { counter-increment: top; display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0 14px }
.kq-top li + li { border-top: 1px solid var(--vien-toi) }
.kq-top li::before { content: counter(top); grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; background: rgba(244, 116, 33, .15); color: var(--cam); display: grid; place-items: center; font-weight: 800; font-size: 14px }
.kq-top .ten { font-weight: 600; font-size: 15px; line-height: 1.4 }
.kq-top .tien { font-weight: 800; color: #fff; white-space: nowrap; font-size: 15px }
.kq-top .thanh { grid-column: 2 / 4; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden }
.kq-top .thanh i { display: block; height: 100%; background: linear-gradient(90deg, var(--cam-dam), var(--cam)); border-radius: 3px }
.kq-form { position: sticky; top: 90px }

/* =================== 4. MENTOR =================== */
#m-mentor { padding: 32px 0 80px; color: #fff }
#m-mentor .nut-lui, #m-khoa .nut-lui, #m-kct .nut-lui { color: #BDBDBD }
.mt-dau { max-width: 820px }
.mt-tieu-de { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; font-weight: 900; margin: 16px 0 16px; text-wrap: balance }
.mt-phu { font-size: 18px; color: #CFCFCF; max-width: 64ch }
.mt-nhan { margin-top: 12px; color: var(--cam); font-weight: 700 }
.mt-buoc { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: b }
.mt-buoc li { counter-increment: b; background: rgba(255, 255, 255, .04); border: 1px solid var(--vien-toi); border-radius: 16px; padding: 18px; display: grid; gap: 6px; align-content: start }
.mt-buoc li::before { content: "Bước " counter(b); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cam) }
.mt-buoc b { font-size: 17px }
.mt-buoc span { font-size: 14px; color: #BDBDBD; line-height: 1.5 }
.mt-thong-tin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 40px }
.mt-thong-tin > div { border: 1px solid rgba(244, 116, 33, .45); background: rgba(244, 116, 33, .07); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px }
.mt-thong-tin b { font-size: 20px }
.mt-thong-tin span:last-child { color: #CFCFCF; font-size: 14px }
.mt-form { max-width: 820px }
.nhom-chon { border: 0; padding: 0; margin: 18px 0 }
.nhom-chon legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0 }
.chip-ds { display: flex; flex-wrap: wrap; gap: 8px }
.chip { position: relative; cursor: pointer }
.chip input { position: absolute; opacity: 0 }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--vien); border-radius: 999px; font-size: 14px; font-weight: 600; background: #FDFCFA; transition: all .15s }
.chip:hover span { border-color: var(--cam) }
.chip input:checked + span { background: var(--cam); border-color: var(--cam); color: var(--den) }
.chip input:focus-visible + span { outline: 3px solid var(--cam); outline-offset: 2px }
.lich { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.lich-ngay { border: 1px solid var(--vien); border-radius: 14px; padding: 12px; background: #FDFCFA }
.lich-ngay > b { display: block; font-size: 14px; margin-bottom: 8px }
.lich-ngay .chip-ds { gap: 6px }
.lich-ngay .chip span { padding: 6px 12px; font-size: 13px }

/* =================== 5. CỬA HÀNG =================== */
.dai-toi { background: var(--den); color: #fff; position: relative; overflow: hidden; padding: 44px 0 48px }
.dai-toi::before { content: ""; position: absolute; inset: 0; background: url(/static/nen/duong-muc.svg) center/cover; opacity: .8 }
.dai-toi::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 100% 100%, rgba(244, 116, 33, .38), transparent 70%) }
.dai-toi .khung { position: relative; z-index: 1 }
.dai-toi .huy-hieu { color: var(--cam) }
.dai-toi h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 14px 0 10px; font-weight: 900 }
.dai-toi-phu { color: #CFCFCF; font-size: 17px; max-width: 60ch }
.bao-gui { display: flex; width: fit-content; flex-wrap: wrap; gap: 4px 10px; align-items: center; background: rgba(35, 120, 74, .18); border: 1px solid rgba(80, 190, 130, .45); color: #CFF5DD; padding: 8px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 22px }
.bao-gui:empty { display: none }
.bao-gui a { color: #fff; font-weight: 700 }
.cua-hang { padding-bottom: 72px }
.luoi-sp { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px }
.sp-the { background: var(--mat); border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--bong); transition: transform .2s, box-shadow .2s }
.sp-the:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 14, 6, .05), 0 16px 36px rgba(20, 14, 6, .12) }
.sp-anh { background: linear-gradient(180deg, #FBF8F4, #F1ECE4); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px; cursor: pointer; border: 0; width: 100% }
.sp-anh img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply }
.sp-than { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.sp-ten { font-size: 16px; line-height: 1.35; font-weight: 700 }
.sp-ngan { font-size: 14px; color: var(--mo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.sp-tag { font-size: 13px; color: var(--cam-dam); font-weight: 600; background: var(--cam-nhat); border-radius: 8px; padding: 6px 10px; line-height: 1.45 }
.sp-qua { font-size: 13px; color: var(--ok); font-weight: 600 }
.gia { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 4px }
.gia b { font-size: 20px; font-weight: 800 }
.gia s { color: #9A958D; font-size: 14px }
.gia .giam { font-size: 12px; font-weight: 800; color: #fff; background: var(--cam-dam); padding: 2px 7px; border-radius: 6px }
.bac { font-size: 12.5px; color: var(--ok); font-weight: 600; width: 100% }
.mua-hang { display: flex; gap: 8px; align-items: center }
.so-luong { display: inline-flex; align-items: center; border: 1.5px solid var(--vien); border-radius: 12px; background: #FDFCFA; overflow: hidden; flex: none }
.so-luong button { width: 38px; height: 44px; border: 0; background: transparent; font-size: 20px; font-weight: 600; color: var(--chu); cursor: pointer; display: grid; place-items: center }
.so-luong button:hover { background: var(--cam-nhat); color: var(--cam-dam) }
.so-luong input { width: 44px; height: 44px; border: 0; border-left: 1px solid var(--vien); border-right: 1px solid var(--vien); text-align: center; font: inherit; font-weight: 700; background: #fff; -moz-appearance: textfield; appearance: textfield }
.so-luong input::-webkit-outer-spin-button, .so-luong input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.mua-hang .nut { flex: 1; min-height: 46px; padding: 10px 14px; font-size: 15px; white-space: nowrap }
.luoi-sp .mua-hang { flex-direction: column; align-items: stretch } .luoi-sp .so-luong { justify-content: space-between } .luoi-sp .so-luong input { flex: 1 }
.nut.da-them { background: var(--den); color: #fff; box-shadow: none }
.lk-ct { background: none; border: 0; padding: 2px 0; color: var(--cam-dam); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cam-vien) }
.lk-ct:hover { text-decoration-color: currentColor }
/* thẻ ngang cho nhóm gợi ý */
.sp-the.ngang { flex-direction: row }
.sp-the.ngang .sp-anh { width: 230px; flex: none; aspect-ratio: auto }
.sp-the.ngang .sp-than { padding: 22px 24px }
.sp-the.ngang .sp-ten { font-size: 19px }
.sp-the.ngang .sp-ngan { -webkit-line-clamp: 3; font-size: 15px }
.luoi-goi-y { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 18px }
.sang-khoa { margin-top: 56px; background: var(--den); color: #fff; border-radius: 22px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden }
.sang-khoa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 100% 100%, rgba(244, 116, 33, .4), transparent 70%); pointer-events: none }
.sang-khoa > * { position: relative; z-index: 1 }
.sang-khoa h3 { font-size: 22px; margin-bottom: 6px }
.sang-khoa p { color: #CFCFCF }
.sang-khoa .nut.toi { background: var(--cam); color: var(--den); flex: none }

/* chi tiết sản phẩm */
#m-sp { padding: 32px 0 80px }
.sp-ct { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start }
.sp-album { position: sticky; top: 90px }
.sp-album-chinh { background: linear-gradient(180deg, #FBF8F4, #F1ECE4); border-radius: 22px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 24px; border: 1px solid var(--vien) }
.sp-album-chinh img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply }
.sp-album-nho { display: flex; gap: 10px; margin-top: 12px }
.sp-album-nho button { width: 74px; height: 74px; border-radius: 12px; border: 2px solid var(--vien); background: #F6F2EC; padding: 6px; cursor: pointer }
.sp-album-nho button.dang { border-color: var(--cam) }
.sp-album-nho img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply }
.sp-ct-ten { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 10px 0 14px }
.sp-ct .gia b { font-size: 30px }
.sp-ct-mua { background: var(--mat); border: 1px solid var(--vien); border-radius: 18px; padding: 20px; margin: 20px 0 26px; display: grid; gap: 12px; box-shadow: var(--bong) }
.sp-ct-mua .mua-hang .nut { min-height: 50px }
.mo-ta { font-size: 16px; line-height: 1.75; color: #2A2B2F }
.mo-ta h3, .mo-ta h4 { font-size: 19px; line-height: 1.35; margin: 26px 0 10px; color: var(--chu) }
.mo-ta p { margin: 0 0 12px }
.mo-ta ul, .mo-ta ol { padding-left: 22px; margin: 0 0 14px }
.mo-ta li { margin: 4px 0 }
.mo-ta li p { margin: 0 }
.mo-ta strong { color: var(--chu) }
.mo-ta-khung { border-top: 1px solid var(--vien); padding-top: 22px }

/* ngăn kéo giỏ */
.phu-lop { position: fixed; inset: 0; background: rgba(8, 8, 8, .62); display: grid; place-items: center; padding: 16px; z-index: 50; animation: hien .18s ease }
@keyframes hien { from { opacity: 0 } }
.gio-lop { place-items: stretch end; padding: 0 }
.ngan-keo { background: var(--mat); width: min(440px, 100vw); height: 100%; display: flex; flex-direction: column; animation: truot .22s ease; box-shadow: -20px 0 60px rgba(0, 0, 0, .25) }
@keyframes truot { from { transform: translateX(40px); opacity: .4 } }
.nk-dau { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--vien); border-top: 4px solid var(--cam) }
.nk-dau h3 { font-size: 22px }
.nk-than { flex: 1; overflow: auto; padding: 8px 22px }
.nk-trong { color: var(--mo); text-align: center; padding: 48px 0 }
.nk-dong { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid #F0EBE3 }
.nk-dong img { width: 64px; height: 64px; object-fit: contain; background: #F6F2EC; border-radius: 10px; padding: 4px; mix-blend-mode: multiply }
.nk-dong-ten { font-weight: 700; font-size: 14.5px; line-height: 1.4 }
.nk-dong-duoi { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px }
.nk-dong .so-luong button { width: 32px; height: 36px; font-size: 17px }
.nk-dong .so-luong input { width: 38px; height: 36px }
.nk-dong-tien { font-weight: 800; white-space: nowrap }
.nk-xoa { background: none; border: 0; color: var(--mo); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; margin-top: 4px }
.nk-chan { padding: 18px 22px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--vien); background: #FBF9F6; display: grid; gap: 10px }
.nk-tong { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700 }
.nk-tong b { font-size: 24px; font-weight: 900 }
.thanh-gio { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--den); color: #fff; border-top: 2px solid var(--cam); padding-bottom: env(safe-area-inset-bottom) }
.thanh-gio-trong { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; max-width: 1120px; margin: 0 auto }
.thanh-gio .nut { min-height: 44px; padding: 10px 18px }

/* =================== 7-8. KHOÁ HỌC =================== */
#m-khoa, #m-kct { padding: 32px 0 80px; color: #fff }
.kh-tieu-de { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 900; margin: 14px 0 10px }
.kh-phu { color: #CFCFCF; font-size: 17px }
.luoi-khoa { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px }
.kh-the { background: var(--den-2); border: 1px solid var(--vien-toi); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s }
.kh-the:hover { border-color: rgba(244, 116, 33, .6); transform: translateY(-2px) }
.kh-bia { position: relative; aspect-ratio: 16 / 8; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: pointer; border: 0; text-align: left; color: #fff; width: 100%;
  background: radial-gradient(420px 240px at 100% 100%, rgba(244, 116, 33, .55), transparent 70%), linear-gradient(135deg, #1E1E1E, #0D0D0D) }
.kh-bia::before { content: ""; position: absolute; inset: 0; background: url(/static/nen/duong-muc.svg) center/cover; opacity: .9 }
.kh-bia > * { position: relative }
.kh-bia-nhan { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cam) }
.kh-bia-ten { font-size: 22px; line-height: 1.2; font-weight: 900; max-width: 92%; text-wrap: balance }
.kh-bia-so { display: flex; gap: 8px; flex-wrap: wrap }
.kh-bia-so span { font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px }
.kh-than { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.kh-than p { color: #C4C4C4; font-size: 15px }
.kh-tag { font-size: 13px; color: var(--cam); font-weight: 600; background: rgba(244, 116, 33, .1); border-radius: 8px; padding: 6px 10px }
.kh-gia { font-size: 22px; font-weight: 800; margin-top: auto }
.kh-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.kh-nut .nut { min-height: 46px; padding: 10px 12px; font-size: 15px; white-space: nowrap }
.toi .nut.vien { border-color: #3A3A3A; color: #fff }
.toi .nut.vien:hover { border-color: var(--cam); color: var(--cam) }
.combo-the { margin: 26px 0 0; border-radius: 22px; padding: 28px 30px; border: 1.5px solid var(--cam); background: linear-gradient(135deg, rgba(244, 116, 33, .16), rgba(244, 116, 33, .04)); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center }
.combo-the h3 { font-size: 24px; line-height: 1.25; margin: 6px 0 10px }
.combo-the ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; font-size: 14px; color: #D6D6D6 }
.combo-the li { break-inside: avoid; padding: 3px 0 3px 18px; position: relative }
.combo-the li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--cam) }
.combo-gia { text-align: right; display: grid; gap: 6px; justify-items: end }
.combo-gia s { color: #9A9A9A }
.combo-gia b { font-size: 40px; font-weight: 900; color: var(--cam); line-height: 1 }
.combo-gia small { color: #CFCFCF }
/* chi tiết khoá */
.kct-dau { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; margin-bottom: 26px }
.kct-dau h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 900; margin: 12px 0 12px; text-wrap: balance }
.kct-dau p { color: #CFCFCF; font-size: 17px }
.kct-mua { background: var(--den-2); border: 1px solid var(--vien-toi); border-radius: 18px; padding: 20px; display: grid; gap: 12px }
.kct-mua .kh-gia { font-size: 30px; color: #fff }
.kct-luoi { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--vien-toi) }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.video-cho { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; cursor: pointer; border: 0; color: #fff; padding: 20px; width: 100%;
  background: radial-gradient(500px 300px at 80% 100%, rgba(244, 116, 33, .45), transparent 70%), linear-gradient(135deg, #1B1B1B, #0B0B0B) }
.video-cho::before { content: ""; position: absolute; inset: 0; background: url(/static/nen/duong-muc.svg) center/cover; opacity: .8 }
.video-cho > span { position: relative; display: grid; gap: 14px; justify-items: center }
.video-phat { width: 76px; height: 76px; border-radius: 50%; background: var(--cam); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(244, 116, 33, .5); transition: transform .2s }
.video-phat::after { content: ""; border-left: 22px solid var(--den); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px }
.video-cho:hover .video-phat { transform: scale(1.06) }
.video-cho b { font-size: 18px }
.video-cho small { color: #C9C9C9 }
.video-ten { margin-top: 12px; font-weight: 700 }
.ds-bai { background: var(--den-2); border: 1px solid var(--vien-toi); border-radius: 18px; overflow: hidden }
.ds-bai-dau { padding: 16px 18px; border-bottom: 1px solid var(--vien-toi); display: flex; justify-content: space-between; align-items: baseline }
.ds-bai-dau b { font-size: 16px }
.ds-bai ol { list-style: none; margin: 0; padding: 6px 0; max-height: 520px; overflow: auto }
.ds-bai li button, .ds-bai li > div { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 18px; background: none; border: 0; color: #D9D9D9; text-align: left; font-size: 14.5px; line-height: 1.4 }
.ds-bai li button { cursor: pointer }
.ds-bai li button:hover, .ds-bai li button.dang { background: rgba(244, 116, 33, .1); color: #fff }
.ds-bai .stt { font-size: 13px; font-weight: 700; color: #8A8A8A; font-variant-numeric: tabular-nums }
.ds-bai .thu { font-size: 11.5px; font-weight: 800; color: var(--den); background: var(--cam); padding: 3px 8px; border-radius: 999px; white-space: nowrap }
.ds-bai .khoa-bai { font-size: 12px; color: #7A7A7A; white-space: nowrap }

/* =================== 9. THANH TOÁN =================== */
#m-tt { padding: 32px 0 80px }
.tt-tieu-de { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 22px }
.tt-luoi { display: grid; grid-template-columns: 1.35fr .9fr; gap: 24px; align-items: start }
.don-tom { position: sticky; top: 90px }
.don-dong { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F0EBE3; font-size: 15px }
.don-dong b { white-space: nowrap }
.don-tong { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; font-weight: 700 }
.don-tong b { font-size: 26px; font-weight: 900; color: var(--cam-dam) }
.qr-luoi { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 14px 0 16px }
.qr-khung { padding: 12px; border-radius: 18px; border: 2px solid var(--cam); background: #fff }
#qrAnh { width: 230px; height: 230px; object-fit: contain; background: #F5F2ED; border-radius: 10px }
.ck { margin: 0; display: grid; gap: 0 }
.ck > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0EBE3; align-items: center }
.ck dt { color: var(--mo); font-size: 14px }
.ck dd { margin: 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; word-break: break-word }
.sao-chep { flex: none }
.nd-ck { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--cam-nhat); color: var(--cam-dam); padding: 2px 8px; border-radius: 6px }
.sao-chep { font-size: 12px; font-weight: 700; border: 1px solid var(--vien); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--mo) }
.sao-chep:hover { border-color: var(--cam); color: var(--cam-dam) }
.cho { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--cam-dam); background: var(--cam-nhat); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px }
.cham-nhay { width: 10px; height: 10px; border-radius: 50%; background: var(--cam); flex: none; animation: nhay 1.2s infinite }
@keyframes nhay { 0% { box-shadow: 0 0 0 0 rgba(244, 116, 33, .6) } 100% { box-shadow: 0 0 0 12px rgba(244, 116, 33, 0) } }

/* =================== 10. CẢM ƠN =================== */
#m-xong { padding: 48px 0 80px; color: #fff }
.xong-tieu-de { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; font-weight: 900; margin: 16px 0 24px; text-wrap: balance }
.xong-don .don-dong:last-child { border-bottom: 0 }
.xong-don .don-dong b { white-space: normal; text-align: right; word-break: break-word; max-width: 65% }
.xong-buoc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: x }
.xong-buoc li { counter-increment: x; display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--vien-toi); border-radius: 16px; padding: 16px 18px }
.xong-buoc li::before { content: counter(x); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--cam); color: var(--den); display: grid; place-items: center; font-weight: 900; font-size: 18px }
.xong-buoc b { font-size: 17px }
.xong-buoc span { color: #CFCFCF; font-size: 15px }
.xong-buoc strong { color: #fff }
.xong-hotro { margin-top: 18px; color: #CFCFCF; font-size: 15px }
.xong-hotro a { color: var(--cam); font-weight: 800; text-decoration: none; white-space: nowrap }
.xong-mentor { margin-top: 32px }

/* ---------- popup ---------- */
.hop { background: var(--mat); color: var(--chu); border-radius: 22px; padding: 30px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; border-top: 5px solid var(--cam); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: noi .22s ease }
@keyframes noi { from { transform: translateY(12px) scale(.98); opacity: 0 } }
.hop h3 { font-size: 24px; line-height: 1.3; margin: 4px 0 12px }
.hop p { color: #3C3E43 }
.hop-nut { display: grid; gap: 6px; margin-top: 22px }

/* ---------- chân trang ---------- */
.chan { background: var(--den); color: #8C8C8C; font-size: 13px; border-top: 1px solid #1E1E1E }
.chan-trong { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 12px; padding-bottom: 12px }
.chan img { height: 30px; width: auto; opacity: .85 }
body.co-gio .chan { padding-bottom: 70px }

/* ---------- điện thoại / máy tính bảng ---------- */
@media (max-width: 960px) {
  .kq-luoi, .tt-luoi, .sp-ct, .kct-dau, .kct-luoi, .combo-the { grid-template-columns: 1fr }
  .kq-form, .don-tom, .sp-album { position: static }
  .mt-buoc { grid-template-columns: 1fr 1fr }
  .combo-gia { text-align: left; justify-items: start }
  .luoi-goi-y { grid-template-columns: 1fr }
}
@media (max-width: 640px) {
  .khung { padding-left: 16px; padding-right: 16px }
  .dau-trong { min-height: 58px; padding-left: 16px; padding-right: 16px }
  .logo { height: 44px }
  .thanh-gio { display: block }
  .nut-gio { padding: 6px 6px 6px 12px } .nut-gio-tien { display: none }
  .vao { padding: 36px 16px 48px }
  .vao-tin { width: 100% } .vao-tin li { flex: 1; padding: 12px 8px } .vao-tin b { font-size: 14px } .vao-tin span { font-size: 12px }
  #m-cau { padding: 16px 0 48px }
  .ks-dau { padding: 14px 18px 0 } .vach { margin: 0 -18px }
  .ks-than { padding: 24px 18px 6px } .ks-chan { padding: 10px 18px 20px }
  .the-trang { padding: 22px 18px; border-radius: 18px }
  .hai-o, .mt-thong-tin, .lich { grid-template-columns: 1fr }
  .mt-buoc { grid-template-columns: 1fr }
  .sp-the.ngang { flex-direction: column } .sp-the.ngang .sp-anh { width: 100%; aspect-ratio: 4 / 3 }
  .luoi-sp { grid-template-columns: 1fr 1fr; gap: 12px }
  .luoi-sp .sp-than { padding: 12px 12px 14px } .luoi-sp .sp-ten { font-size: 14.5px } .luoi-sp .sp-ngan { display: none }
  .gia b { font-size: 17px }
  .sang-khoa { flex-direction: column; align-items: flex-start; padding: 24px 20px }
  .luoi-khoa { grid-template-columns: 1fr }
  .combo-the { padding: 22px 18px } .combo-the ul { columns: 1 }
  .qr-luoi { grid-template-columns: 1fr; justify-items: center } .ck { width: 100% }
  .ck > div { grid-template-columns: 96px 1fr }
  .hop { padding: 24px 20px }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
