/* AI cho người mới (web mẹ, từ v002) — nền tối, kính mờ, xanh ngọc. Không phông ngoài, không thư viện ngoài. */
:root {
  --nen-1: #07111F;
  --nen-2: #0B1B2B;
  --ngoc: #14B8A6;
  --ngoc-sang: #2DD4BF;
  --vang: #E3BE74;
  --chu: #F4F7FA;
  --chu-phu: #A8B6C7;
  --kinh: rgba(255, 255, 255, .06);
  --kinh-dam: rgba(255, 255, 255, .09);
  --vien: rgba(255, 255, 255, .14);
  --bo: 18px;
  --rong: 1180px;
  --bong: 0 10px 40px -12px rgba(20, 184, 166, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--nen-1); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--chu);
  background: linear-gradient(180deg, var(--nen-1) 0%, var(--nen-2) 60%, var(--nen-1) 100%);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 88px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ngoc-sang); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 34px; font-weight: 900; }
h2 { font-size: 28px; font-weight: 850; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0 0 1em; }
.chu-phu { color: var(--chu-phu); }
.sang { background: linear-gradient(90deg, var(--ngoc-sang), var(--vang)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Món 2: nền sống (canvas) */
#nen-song { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.toa { position: relative; z-index: 1; }

.khung { max-width: var(--rong); margin: 0 auto; padding: 0 20px; }
.muc { padding: 56px 0; }
.muc-tieu-de { margin-bottom: 26px; max-width: 720px; }
.muc-tieu-de p { color: var(--chu-phu); margin: 0; }
.nhan-muc { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vang); margin-bottom: 8px; }

/* Đầu trang */
.dau { position: sticky; top: 0; z-index: 20; background: rgba(7, 17, 31, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--vien); }
.dau .khung { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 12px; padding-bottom: 10px; }
.logo { font-weight: 850; font-size: 19px; color: var(--chu); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-dau { width: 28px; height: 28px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(135deg, var(--ngoc-sang), var(--ngoc) 55%, var(--vang)); box-shadow: 0 0 18px var(--ngoc); }
.nav { position: relative; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 15px; padding-bottom: 4px; }
.nav a { color: var(--chu-phu); text-decoration: none; padding: 4px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chu); }
/* Món 8: vạch sáng trượt tới mục đang mở */
.nav-vach { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--ngoc-sang), var(--vang)); box-shadow: 0 0 10px var(--ngoc-sang); transition: transform .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1); }
.dau .nut { display: none; }

/* Nút */
.nut {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--ngoc-sang), var(--ngoc));
  color: #04221E; font-weight: 800; text-decoration: none;
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 8px 28px -8px rgba(45, 212, 191, .7);
  transition: transform .2s, box-shadow .2s;
}
.nut:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(45, 212, 191, .9); }
/* Món 7: vệt sáng quét qua nút Zalo */
.nut[data-zalo]::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: quet 4.2s ease-in-out infinite;
}
@keyframes quet { 0%, 62% { transform: translateX(-160%) skewX(-20deg); } 85%, 100% { transform: translateX(360%) skewX(-20deg); } }
.nut-vien { background: var(--kinh); color: var(--chu); border: 1px solid var(--vien); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nut-vien:hover { border-color: var(--ngoc-sang); box-shadow: 0 0 22px -6px var(--ngoc-sang); }
.nut-nho { padding: 9px 18px; font-size: 15px; }

/* Thanh Zalo dưới cùng, kính mờ, trượt lên khi vào trang (món 7) */
.thanh-duoi {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30;
  background: rgba(11, 27, 43, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--vien); border-radius: 20px;
  padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -6px 30px -10px rgba(0, 0, 0, .6);
  animation: truot-len .8s .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes truot-len { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }
.thanh-duoi span { font-size: 14px; color: var(--chu-phu); line-height: 1.3; flex: 1; }
.thanh-duoi .nut { flex: 0 0 auto; padding: 11px 20px; }

/* Thẻ kính mờ */
.kinh {
  background: var(--kinh);
  border: 1px solid var(--vien);
  border-radius: var(--bo);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--bong);
  padding: 22px;
}
.kinh p:last-child { margin-bottom: 0; }
.luoi { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* Khối đầu trang */
.mo-dau { padding: 26px 0 30px; }
.mo-dau .khung { display: grid; gap: 18px; }
.mo-dau .phu { font-size: 18px; color: var(--chu-phu); max-width: 620px; }
.nhom-nut { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.ghi-nho { font-size: 14px; color: var(--chu-phu); }

/* Món 1: nhân vật lơ lửng, vòng sáng nở ra co lại */
.nhan-vat { position: relative; display: grid; place-items: center; min-height: 300px; order: -1; }
.nhan-vat img { position: relative; z-index: 2; width: min(320px, 82vw);
  animation: lo-lung 5.5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(20, 184, 166, .35)); }
.vong-sang { position: absolute; z-index: 1; width: min(300px, 76vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .45) 0%, rgba(20, 184, 166, .18) 42%, transparent 70%); animation: tho 4.2s ease-in-out infinite; }
.vong-sang::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(227, 190, 116, .45); animation: xoay 18s linear infinite; border-style: dashed; }
.vong-sang::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(45, 212, 191, .35); }
@keyframes lo-lung { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes tho { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes xoay { to { transform: rotate(360deg); } }

/* Món 3: hội thoại tự chạy */
.hoi-thoai { display: grid; gap: 10px; align-content: start; min-height: 290px; }
.hoi-thoai .dau-chat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--chu-phu); padding-bottom: 8px; border-bottom: 1px solid var(--vien); margin-bottom: 4px; }
.cham-xanh { width: 8px; height: 8px; border-radius: 50%; background: var(--ngoc-sang); box-shadow: 0 0 8px var(--ngoc-sang); }
.loi { max-width: 90%; padding: 10px 14px; border-radius: 16px; font-size: 15.5px; transition: opacity .4s, transform .4s; }
.loi b { display: block; font-size: 12px; color: var(--chu-phu); font-weight: 600; margin-bottom: 2px; }
.loi-khach { justify-self: end; background: rgba(45, 212, 191, .16); border: 1px solid rgba(45, 212, 191, .35); border-bottom-right-radius: 5px; }
.loi-ai { justify-self: start; background: var(--kinh-dam); border: 1px solid var(--vien); border-bottom-left-radius: 5px; }
.co-js .hoi-thoai .loi.an { opacity: 0; transform: translateY(8px); }
.dang-go { display: inline-flex; gap: 4px; padding: 4px 0; }
.dang-go i { width: 7px; height: 7px; border-radius: 50%; background: var(--chu-phu); animation: nhay 1s infinite; }
.dang-go i:nth-child(2) { animation-delay: .15s; }
.dang-go i:nth-child(3) { animation-delay: .3s; }
@keyframes nhay { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* Món 6: dải chữ chạy ngang */
.dai-chay { overflow: hidden; border-block: 1px solid var(--vien); background: rgba(255, 255, 255, .03); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dai-chay .ray { display: flex; width: max-content; animation: chay 38s linear infinite; }
.dai-chay ul { display: flex; list-style: none; margin: 0; padding: 0; }
.dai-chay li { white-space: nowrap; padding: 0 22px; font-weight: 650; color: var(--chu); display: flex; align-items: center; gap: 22px; }
.dai-chay li::after { content: ""; width: 9px; height: 9px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: var(--vang); }
@keyframes chay { to { transform: translateX(-50%); } }

/* Món 4: cuộn tới đâu hiện tới đó */
.co-js .hien-dan { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--tre, 0) * 110ms); }
.co-js .hien-dan.da-hien { opacity: 1; transform: none; }

/* Nỗi đau → món giải */
.icon { position: relative; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(45, 212, 191, .55), rgba(20, 184, 166, .12) 60%, transparent 75%), var(--kinh-dam);
  border: 1px solid rgba(45, 212, 191, .4); box-shadow: 0 0 26px -6px var(--ngoc-sang); overflow: hidden; }
.icon img { width: 100%; height: 100%; object-fit: contain; }
.icon .ky { font-size: 26px; font-weight: 900; color: var(--chu); text-shadow: 0 0 12px var(--ngoc-sang); }
.icon img + .ky { display: none; }
.dau-cau { font-weight: 750; font-size: 18px; margin-bottom: 10px; }
.giai { color: var(--chu-phu); margin: 0; border-left: 2px solid var(--ngoc); padding-left: 12px; }
.giai b { color: var(--chu); }

/* Nhãn */
.nhan { display: inline-block; font-size: 12.5px; font-weight: 750; padding: 3px 11px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.nhan-sap { background: rgba(168, 182, 199, .14); color: #D3DCE6; border: 1px solid rgba(168, 182, 199, .3); }
.nhan-thu { background: rgba(227, 190, 116, .14); color: var(--vang); border: 1px solid rgba(227, 190, 116, .45); }
.loai { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ngoc-sang); font-weight: 700; }

/* Ba tầng */
.tang-so { width: 40px; height: 40px; display: grid; place-items: center; font-weight: 900; color: #04221E; margin-bottom: 12px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(135deg, var(--ngoc-sang), var(--vang)); }
.lien-ket { font-weight: 700; text-decoration: none; }
.lien-ket::after { content: " →"; transition: margin .2s; }
.lien-ket:hover::after { margin-left: 4px; }

/* Món 5: thẻ skill nghiêng theo con trỏ, vệt sáng theo, chạm thì lún */
.the-skill { position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out, border-color .25s; will-change: transform; }
.the-skill::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, .28), transparent 60%); }
.the-skill:hover { border-color: rgba(45, 212, 191, .55); }
.the-skill:hover::before { opacity: 1; }
.the-skill:active { transform: scale(.97); }
.the-skill h3 { margin: 0; }
.the-skill p { color: var(--chu-phu); margin: 0; flex: 1; }
.the-skill .chan-the { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.the-skill .bia { margin: -22px -22px 6px; height: 170px; background: radial-gradient(circle at 50% 70%, rgba(45, 212, 191, .3), transparent 70%); display: grid; place-items: center; border-bottom: 1px solid var(--vien); }
.the-skill .bia img { height: 160px; width: auto; }
.the-skill[hidden] { display: none; }

/* Lọc */
.loc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.loc button { font: inherit; font-size: 15px; cursor: pointer; border: 1px solid var(--vien); background: var(--kinh); color: var(--chu); padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.loc button:hover { border-color: var(--ngoc-sang); }
.loc button[aria-pressed="true"] { background: linear-gradient(135deg, var(--ngoc-sang), var(--ngoc)); border-color: transparent; color: #04221E; font-weight: 750; }

/* Ba bước */
.buoc { counter-reset: buoc; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.buoc li { counter-increment: buoc; position: relative; padding-left: 74px; }
.buoc li::before { content: counter(buoc); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 900; color: #04221E; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(135deg, var(--ngoc-sang), var(--vang)); }

/* Hỏi đáp */
details { background: var(--kinh); border: 1px solid var(--vien); border-radius: 14px; padding: 16px 18px; transition: border-color .25s; }
details[open] { border-color: rgba(45, 212, 191, .5); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ngoc-sang); font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--chu-phu); }

/* Bảng */
.bang-boc { overflow-x: auto; border-radius: 14px; border: 1px solid var(--vien); }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--kinh); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--vien); vertical-align: top; }
th { color: var(--vang); font-weight: 700; font-size: 14px; letter-spacing: .04em; background: rgba(255, 255, 255, .04); }
td:last-child { color: var(--chu); }
td:first-child { color: var(--chu-phu); }
tr:last-child td { border-bottom: 0; }

/* Danh sách */
.ds { padding-left: 20px; margin: 0; color: var(--chu-phu); }
.ds li + li { margin-top: 8px; }
.ds li::marker { color: var(--ngoc-sang); }
.ds-khong li::marker { color: var(--chu-phu); }

/* Hộp */
.hop-cho { border: 1px solid rgba(227, 190, 116, .45); background: rgba(227, 190, 116, .08); border-radius: 14px; padding: 16px 18px; color: #F8E3AE; }
.hop-cho p { margin: 0; }
.cho-anh { border: 1px dashed rgba(45, 212, 191, .5); border-radius: var(--bo); background: radial-gradient(circle at 50% 40%, rgba(45, 212, 191, .18), transparent 70%), var(--kinh); display: grid; place-items: center; text-align: center; color: var(--chu-phu); font-weight: 650; padding: 16px; }
.truoc-sau { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.truoc-sau .cho-anh { aspect-ratio: 9 / 16; max-height: 440px; }
.truoc-sau .cho-anh img { max-height: 200px; width: auto; margin-bottom: 10px; }

/* Lời gọi cuối trang */
.ket { text-align: center; }
.ket .kinh { padding: 40px 22px; background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, .22), transparent 65%), var(--kinh); }
.ket p { color: var(--chu-phu); }

/* Chân trang */
.chan { border-top: 1px solid var(--vien); padding: 30px 0 20px; font-size: 15px; color: var(--chu-phu); }
.chan .khung { display: grid; gap: 10px; }
.chan nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chan a { color: var(--chu-phu); }

/* Món 8: chuyển trang mờ dần vào, mờ đi khi rời */
.co-js body { animation: vao-trang .6s ease-out both; }
.co-js body.roi-trang { opacity: 0; transition: opacity .25s; }
@keyframes vao-trang { from { opacity: 0; } to { opacity: 1; } }

/* Trang skill */
.duong-dan { font-size: 14px; color: var(--chu-phu); }
.duong-dan a { color: var(--chu-phu); }
.cot-ben .kinh + .kinh { margin-top: 14px; }
.muc-luc { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15px; }
.muc-luc li + li { margin-top: 6px; }
.muc-luc a { color: var(--chu-phu); text-decoration: none; }
.muc-luc a:hover { color: var(--ngoc-sang); }
.trang-skill section { padding: 34px 0; }

@media (min-width: 720px) {
  .luoi-2 { grid-template-columns: repeat(2, 1fr); }
  .luoi-3 { grid-template-columns: repeat(3, 1fr); }
  .luoi-4 { grid-template-columns: repeat(2, 1fr); }
  .buoc { grid-template-columns: repeat(3, 1fr); }
  h2 { font-size: 36px; }
  .muc { padding: 80px 0; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  h1 { font-size: 56px; }
  .thanh-duoi { display: none; }
  .dau .nut { display: inline-flex; margin-left: auto; }
  .mo-dau { padding: 40px 0 50px; }
  .mo-dau .khung { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; min-height: min(78vh, 680px); }
  .mo-dau-1cot .khung { grid-template-columns: 1fr; min-height: 0; }
  .nhan-vat { order: 0; min-height: 460px; }
  .nhan-vat img { width: 400px; }
  .vong-sang { width: 400px; }
  .luoi-4 { grid-template-columns: repeat(4, 1fr); }
  .trang-skill { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
  .cot-ben { position: sticky; top: 90px; }
}

/* Giảm chuyển động: đứng yên hết, vẫn đọc được hết */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .co-js .hien-dan, .co-js .hoi-thoai .loi.an { opacity: 1 !important; transform: none !important; }
  .dai-chay .ray { flex-wrap: wrap; width: auto; }
  .dai-chay .ray ul + ul { display: none; }
  .dai-chay ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
}

/* Trang Kiến thức */
.muc-luc { margin: 18px 0 0; padding-left: 22px; list-style: decimal; display: grid; gap: 6px; }
.muc-luc a { color: var(--chu); }
.muc-luc a:hover { color: var(--ngoc-sang); }
.bai-luoi { display: grid; gap: 18px; }
.bai { padding: 26px 22px; scroll-margin-top: 90px; }
.bai h2 { font-size: 24px; margin-bottom: 10px; }
.bai p, .bai li { color: var(--chu-phu); }
.bai p b, .bai li b { color: var(--chu); }
.bai ol { padding-left: 22px; margin: 6px 0 16px; display: grid; gap: 6px; }
.bai code { font-size: .92em; color: var(--ngoc-sang); }
.truoc-sau .clip-mau { margin: 0; aspect-ratio: 9 / 16; max-height: 440px; border-radius: var(--bo); overflow: hidden; border: 1px solid var(--vien); background: #000; }
.clip-mau video { display: block; width: 100%; height: 100%; object-fit: cover; }

.truoc-sau .o { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.truoc-sau .the-truoc { flex: 1; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--vien); border-radius: var(--bo); background: var(--kinh); padding: 16px; max-height: 440px; overflow-wrap: anywhere; }
.the-truoc-de { margin: 0 0 8px; font-weight: 700; color: var(--chu); }
.the-truoc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--chu-phu); }
.truoc-sau .nhan-o { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #04221E; background: linear-gradient(135deg, var(--ngoc-sang), var(--vang)); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 719px) { .the-truoc { font-size: 14px; padding: 12px; } }
.truoc-sau .o .clip-mau { align-self: flex-start; width: min(100%, 248px); }

/* Trang Kiến thức: hình cạnh từng câu */
.bai-hinh { display: grid; place-items: center; margin: -6px auto 12px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .28), transparent 68%); }
.bai-hinh img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(20, 184, 166, .35)); }
.bai-clip { display: block; width: 170px; height: auto; border-radius: var(--bo); background: none; margin-bottom: 14px; }
.bai-clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--bo); border: 1px solid var(--vien); background: #000; object-fit: contain; }
.bai-clip figcaption { margin-top: 8px; font-size: 13px; color: var(--chu-phu); text-align: center; }
@media (min-width: 960px) {
  .bai { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 36px; padding: 30px 32px; }
  .bai > * { grid-column: 1; }
  .bai > .bai-hinh { grid-column: 2; grid-row: 1 / span 12; align-self: center; margin: 0 auto; width: 260px; height: 260px; }
  .bai > .bai-clip { width: 230px; height: auto; }
  .bai > .lien-ket { justify-self: start; }
}
/* Trang Kiến thức: video YouTube, ảnh bìa là link mở thẻ mới */
.yt { margin: 4px 0 18px; max-width: 560px; }
.yt-mo { position: relative; display: block; text-decoration: none; }
.yt-mo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--bo); border: 1px solid var(--vien); background: #000; object-fit: cover; transition: transform .3s; }
.yt-mo:hover img, .yt-mo:focus-visible img { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 184, 166, .3); }
.yt-nut { position: absolute; right: 12px; top: 12px; width: 56px; height: 40px; border-radius: 12px; background: rgba(220, 38, 38, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.yt-nut::after { content: ""; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt-chu { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ngoc-sang); }
.yt-chu::after { content: "\00a0\2197"; content: "\00a0\2197" / ""; }
.yt .yt-ghi { margin: 4px 0 0; font-size: 14px; }
@media (max-width: 719px) { .yt-nut { right: 8px; top: 8px; width: 38px; height: 27px; border-radius: 8px; } .yt-nut::after { left: 15px; top: 7px; border-width: 6.5px 0 6.5px 11px; } }
@media (prefers-reduced-motion: reduce) { .yt-mo img { transition: none; } .yt-mo:hover img { transform: none; } }
/* Trang Kiến thức: mục lục. Máy tính: cột trái dính khi cuộn. Màn hẹp: khối gập ở đầu trang và nút nổi góc trái dưới. */
.ml { margin: 0 20px 26px; }
.ml-hop { margin: 0; padding: 0; border: 1px solid var(--vien); border-radius: 12px; background: rgba(16, 31, 47, .9); box-shadow: var(--bong); }
.ml-dau { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 750; color: var(--chu); border-radius: 12px; }
.ml-dau::-webkit-details-marker { display: none; }
.ml-vach { flex: 0 0 auto; width: 16px; height: 12px; background: linear-gradient(var(--vang), var(--vang)) 0 0 / 16px 2px no-repeat, linear-gradient(var(--vang), var(--vang)) 0 5px / 11px 2px no-repeat, linear-gradient(var(--vang), var(--vang)) 0 10px / 14px 2px no-repeat; }
.ml-dau small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--chu-phu); }
.ml-dau::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 2px 0 0; border: solid var(--vang); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
.ml-hop[open] > .ml-dau::after { transform: translateY(4px) rotate(225deg); }
.ml-than { padding: 0 8px 10px; }
.ml-nhom { margin: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vang); }
.ml-than ol { list-style: none; margin: 0; padding: 0; }
.ml-than a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-left: 3px solid transparent; border-radius: 6px; font-size: 15px; line-height: 1.35; color: var(--chu-phu); text-decoration: none; transition: color .2s, background .2s; }
.ml-than a::before { content: attr(data-so); content: attr(data-so) / ""; flex: 0 0 20px; font-size: 13px; font-weight: 700; text-align: right; color: var(--chu-phu); font-variant-numeric: tabular-nums; }
.ml-than a:hover { color: var(--chu); background: var(--kinh); }
.ml-than a[aria-current] { color: var(--chu); font-weight: 700; background: rgba(45, 212, 191, .14); border-left-color: var(--ngoc-sang); }
.ml-than a[aria-current]::before { color: var(--ngoc-sang); }
.ml-than a:focus-visible, .ml-dau:focus-visible, .ml-nut:focus-visible { outline: 2px solid var(--ngoc-sang); outline-offset: -2px; }
.ml-nut { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: var(--ml-day, 98px); z-index: 25; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 14px; border: 1px solid rgba(227, 190, 116, .6); border-radius: 10px; background: #0B1B2B; color: var(--chu); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8); cursor: pointer; transition: opacity .2s, visibility .2s; }
.co-js .ml-nut { opacity: 0; visibility: hidden; }
.co-js .ml-nut.ml-hien { opacity: 1; visibility: visible; }
.ml-hop.ml-noi { position: fixed; left: 12px; right: 12px; bottom: calc(var(--ml-day, 98px) + 68px); z-index: 26; max-width: 420px; max-height: calc(100vh - var(--ml-tren, 120px) - var(--ml-day, 98px) - 70px); max-height: calc(100dvh - var(--ml-tren, 120px) - var(--ml-day, 98px) - 70px); overflow-y: auto; overscroll-behavior: contain; background: #0B1B2B; border-color: rgba(227, 190, 116, .5); box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .9); }
.ml-noi > .ml-dau { position: sticky; top: 0; z-index: 1; background: #0B1B2B; border-radius: 0; }
.kt #muc-luc, .kt .bai { scroll-margin-top: var(--ml-tren, 136px); }
/* Bài chỉ mờ dần vào, không trượt, để nhảy tới bài dừng đúng chỗ. */
.co-js .kt .bai.hien-dan { transform: none; }
@media (min-width: 960px) and (max-width: 1199px) { .ml { max-width: 1140px; } .ml-nut { --ml-day: 24px; } }
@media (max-width: 959px) { .kt .mo-dau { padding-bottom: 14px; } }
@media (min-width: 1200px) {
  .kt { display: grid; grid-template-columns: 256px minmax(0, 1fr); column-gap: 28px; margin-left: max(20px, calc(50% - 854px)); margin-right: calc(50% - 570px); }
  .kt #muc-luc, .kt .bai { scroll-margin-top: var(--ml-tren, 100px); }
  .kt .khung { padding: 0; }
  .kt-dau, .kt-bai { grid-column: 2; min-width: 0; }
  .ml { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .ml-hop { position: sticky; top: 104px; margin: 24px 0 80px; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
  .ml-dau { pointer-events: none; padding: 14px 16px 6px; }
  .ml-dau::after { display: none; }
  .ml-than a { min-height: 36px; font-size: 14.5px; }
  .ml-nut { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ml-dau::after, .ml-than a, .ml-nut { transition: none; } }
@media print { .ml, .ml-nut { display: none; } }
/* Trang Tin AI */
.tin-luoi { display: grid; gap: 18px; }
.tin { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.tin h2 { font-size: 21px; line-height: 1.35; }
.tin p { color: var(--chu-phu); }
.tin .tin-ngay { font-size: 13px; font-weight: 700; color: var(--vang); letter-spacing: .02em; }
.tin .tin-y { border-left: 3px solid var(--ngoc-sang); padding-left: 12px; }
.tin .tin-y b { color: var(--chu); }
.tin .lien-ket { margin-top: auto; align-self: flex-start; }
@media (min-width: 960px) { .tin-luoi { grid-template-columns: 1fr 1fr; } }
/* Thư viện kiểu video */
.kieu { display: flex; flex-direction: column; gap: 10px; }
.kieu h3 { margin: 4px 0 0; }
.kieu p { margin: 0; color: var(--chu-phu); }
.kieu .hop { font-size: 14.5px; }
.kieu .hop b { color: var(--chu); }
.kieu .chan-the { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.kieu > .nut { align-self: flex-start; }
.clip-tv, .clip-cho { margin: 0 auto; width: min(100%, 230px); aspect-ratio: 9 / 16; border-radius: var(--bo); overflow: hidden; border: 1px solid var(--vien); }
.clip-tv { background: #000; }
.clip-tv video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-cho { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--kinh); border-style: dashed; color: var(--chu-phu); font-size: 14px; font-weight: 700; text-align: center; padding: 16px; }
.clip-cho-hinh { position: relative; width: 64px; height: 48px; border: 2px solid var(--ngoc-sang); border-radius: 10px; opacity: .8; }
.clip-cho-hinh::before { content: ""; position: absolute; left: -2px; right: -2px; top: -14px; height: 10px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--ngoc-sang) 0 6px, transparent 6px 12px); border: 2px solid var(--ngoc-sang); }
.clip-cho-hinh::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: var(--ngoc-sang); box-shadow: 0 -10px 0 var(--ngoc-sang), 0 10px 0 var(--ngoc-sang); opacity: .7; }
.chu-clip { font-size: 13.5px; color: var(--chu-phu); border-left: 3px solid var(--ngoc-sang); padding-left: 10px; }
.chu-clip b { color: var(--chu); }
.chu-clip ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.nhan-co { background: rgba(45, 212, 191, .14); color: var(--ngoc-sang); border: 1px solid rgba(45, 212, 191, .45); }
.nhan-dai { white-space: normal; line-height: 1.45; border-radius: 12px; }
.ghep { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ghep h3 { margin: 0; font-size: 18px; }
.ghep p { margin: 0; color: var(--chu-phu); }
.the-thu-vien { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; border-color: rgba(45, 212, 191, .45); }
.the-thu-vien h2 { margin: 2px 0 4px; font-size: 24px; }
.the-thu-vien p { margin: 0; color: var(--chu-phu); }
.clip-tv { position: relative; }
.clip-phat { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(0, 0, 0, .18); cursor: pointer; display: grid; place-items: center; }
.clip-phat span { width: 64px; height: 64px; border-radius: 50%; background: rgba(7, 17, 31, .78); border: 2px solid var(--ngoc-sang); position: relative; transition: transform .2s; }
.clip-phat span::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ngoc-sang); }
.clip-phat:hover span, .clip-phat:focus-visible span { transform: scale(1.08); }
.clip-phat[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .clip-phat span { transition: none; } }
.clip-tv.clip-ngang, .clip-cho.clip-ngang { width: 100%; aspect-ratio: 16 / 9; }

/* Ba kệ */
.the-ke { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
.the-ke h2 { margin: 0; font-size: 26px; }
.the-ke p { margin: 0; color: var(--chu-phu); flex: 1; }
.the-ke .nhan-muc { margin-bottom: 0; }
.the-ke:hover, .the-ke:focus-visible { border-color: rgba(45, 212, 191, .55); }
.khoi-ke { scroll-margin-top: 80px; }
.the-skill .gia { flex: 0; font-size: 14px; color: var(--chu); font-weight: 700; }
.nhom-nhan { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.nhan-bac { background: rgba(45, 212, 191, .12); color: var(--ngoc-sang); border: 1px solid rgba(45, 212, 191, .4); }
.nut-mo { pointer-events: none; cursor: default; background: rgba(255, 255, 255, .06); color: var(--chu-phu); border: 1px dashed var(--vien); box-shadow: none; }
.the-tai { display: flex; flex-direction: column; gap: 10px; }
.the-tai h3 { margin: 0; }
.the-tai p { margin: 0; color: var(--chu-phu); }
.the-tai .chan-the { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.the-gh { display: flex; flex-direction: column; gap: 8px; }
.the-gh h3 { margin: 0; font-size: 18px; }
.the-gh p { margin: 0; color: var(--chu-phu); font-size: 15px; }
.the-gh dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.the-gh dt { color: var(--chu); font-weight: 700; }
.the-gh dd { margin: 0; color: var(--chu-phu); }
.the-gh .nut { align-self: flex-start; margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .the-ke { transition: none; } }

/* Đầu trang bản 2: menu dạng viên kính, ô sáng trượt theo mục */
.dau { background: linear-gradient(180deg, rgba(7, 17, 31, .9), rgba(7, 17, 31, .74)); border-bottom: 0; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }
.dau::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .55) 30%, rgba(227, 190, 116, .45) 70%, transparent); }
.dau .khung { gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 18px; letter-spacing: -.01em; }
.logo-dau { width: 32px; height: 32px; flex: 0 0 auto; clip-path: none; background: url("favicon.svg") center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 0 10px rgba(45, 212, 191, .45)); transition: transform .4s, filter .4s; }
.logo:hover .logo-dau, .logo:focus-visible .logo-dau { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 14px rgba(45, 212, 191, .7)); }
.logo-chu { font-weight: 700; color: #F4F7FB; white-space: nowrap; }
.logo-chu b { font-weight: 850; letter-spacing: .01em; background: linear-gradient(135deg, #5EEAD4, #14B8A6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .logo-dau { transition: none; } .logo:hover .logo-dau { transform: none; } }
.nav { flex-wrap: nowrap; gap: 2px; padding: 4px; width: 100%; overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--vien); border-radius: 999px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; z-index: 1; flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--chu-phu); transition: color .25s; }
.nav a:hover, .nav a:focus-visible { color: var(--chu); }
.nav a.sang, .nav a.sang:hover { color: #04221E; }
.nav a:focus-visible { outline: 2px solid var(--ngoc-sang); outline-offset: -2px; }
.nav-vach { z-index: 0; top: 0; bottom: auto; height: 0; border-radius: 999px; background: linear-gradient(135deg, var(--ngoc-sang), var(--ngoc)); box-shadow: 0 4px 18px -4px rgba(45, 212, 191, .8); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), background .25s; }
@media (min-width: 960px) {
  .dau .khung { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .nav { width: auto; margin: 0 auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .dau .nut { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .nav-vach { transition: none; } }
.the-tai-dong { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--chu-phu); }
.the-tai-dong li::marker { color: var(--ngoc-sang); }

/* Nhận miễn phí: khối Cách cài, câu cài, nút chép */
.cach-cai { padding: 28px; }
.cach-cai .muc-tieu-de { margin-bottom: 18px; }
.ba-buoc { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: none; }
.ba-buoc li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--vien); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.ba-buoc p { margin: 2px 0 0; color: var(--chu); }
.so-buoc { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 850; color: #04221E; background: linear-gradient(135deg, #5EEAD4, #14B8A6); box-shadow: 0 0 18px rgba(45, 212, 191, .35); }
.cach-cai code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: rgba(45, 212, 191, .12); color: var(--chu); word-break: break-all; }
.cau-cai { margin: 4px 0 2px; font-size: 14px; }
.cau-cai summary { cursor: pointer; color: var(--ngoc-sang); font-weight: 600; width: max-content; }
.cau-cai-chu { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(45, 212, 191, .4); background: rgba(7, 17, 31, .6); color: var(--chu); line-height: 1.5; user-select: all; }
.nhom-nut-the { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.the-gh .nhom-nut-the { margin-top: auto; }
.the-gh .nhom-nut-the .nut { align-self: auto; margin-top: 0; }
button.chep-cau { font: inherit; font-size: 14px; cursor: pointer; }
button.chep-cau.da-chep { border-color: var(--ngoc-sang); color: var(--ngoc-sang); }
.nguon-gh { font-size: 13.5px; color: var(--chu-phu); }
.nguon-gh:hover { color: var(--ngoc-sang); }
.nhom-gh { margin: 26px 0 14px; font-size: 18px; color: var(--chu); }
.nhan-dau { align-self: flex-start; }
@media (min-width: 760px) { .ba-buoc { grid-template-columns: repeat(3, 1fr); } .cach-cai { padding: 36px; } }

.nguon-bai { font-size: .86rem; color: var(--chu-phu); margin-top: .6rem; }
.nguon-bai a { color: var(--ngoc-sang); text-decoration: underline; text-underline-offset: 2px; }
.bai code { overflow-wrap: anywhere; }

/* The skill nha lam: dung khi, cau goi, nhan da kiem */
.dung-khi { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--vien); }
.dung-khi dt { font-weight: 700; color: var(--chu); white-space: nowrap; }
.dung-khi dt:nth-of-type(2) { color: var(--vang); }
.dung-khi dd { margin: 0; color: var(--chu-phu); }
.the-tai .goi-bang { font-size: 13.5px; }
.goi-bang q { color: var(--ngoc-sang); font-weight: 600; quotes: "\201C" "\201D"; }
.the-tai .da-kiem { font-size: 13px; line-height: 1.5; }
.nhan-kiem { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #07111F; background: linear-gradient(90deg, var(--ngoc-sang), var(--ngoc)); vertical-align: 1px; }
.nhan-kiem::before { content: "\2713"; font-weight: 800; }
.the-tai .buoc-nho { font-size: 12.5px; opacity: .85; }
@media (max-width: 420px) { .dung-khi { grid-template-columns: 1fr; } .dung-khi dd { margin-bottom: 4px; } }
a.nhan { text-decoration: none; transition: background .2s, border-color .2s; }
a.nhan-co:hover, a.nhan-co:focus-visible { background: rgba(45, 212, 191, .26); border-color: var(--ngoc-sang); }
.goi-bang code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .95em; font-weight: 600; color: var(--ngoc-sang); background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .35); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

/* Menu: nút sáng kiểu "phản chiếu" (dựa trên một mẫu mở của Uiverse, giấy phép MIT) */
.nav { box-shadow: 0 0 46px -6px rgba(31, 76, 101, .95); -webkit-box-reflect: below 4px linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28)); }
.nav-vach { background: linear-gradient(270deg, rgba(2, 29, 78, .75) 0%, rgba(31, 215, 232, .92) 16%, rgba(45, 212, 191, .95) 100%); box-shadow: 0 0 22px rgba(31, 215, 232, .45), 0 0 60px rgba(31, 76, 101, .9); }
.nav a { transition: color .3s, scale .15s; }
.nav a.sang, .nav a.sang:hover { color: #040426; }
.nav a:active { scale: .92; }
@media (prefers-reduced-motion: reduce) { .nav a:active { scale: 1; } }

/* Honey (ban thu) */
.honey-goi { align-items: stretch; }
.the-honey { display: flex; gap: 22px; align-items: center; }
.the-honey img { flex: 0 0 auto; width: 150px; height: auto; filter: drop-shadow(0 14px 24px rgba(227, 190, 116, .25)); }
.the-honey h2 { margin: 4px 0 2px; color: var(--vang); }
.gia-dong { margin: 0 0 8px; font-weight: 700; color: var(--chu); }
.gia-dong span { font-weight: 400; font-size: 13px; color: var(--chu-phu); }
.the-honey .chu-phu { margin: 0 0 12px; }
.gia-honey { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--vang); }
.gia-honey img { width: 20px; height: 24px; }
.gia-honey small { font-weight: 400; color: var(--chu-phu); font-size: 13px; }
@media (max-width: 560px) { .the-honey { flex-direction: column; text-align: center; } .the-honey img { width: 120px; } }

/* Góc vuông hơn: tab menu, nút lọc, nút bấm, nhãn nhỏ */
.nav { border-radius: 10px; gap: 6px; padding: 6px; }
.nav a, .nav-vach { border-radius: 6px; }
/* Tab kiểu khung vàng mảnh: mỗi tab một khung, tab đang mở sáng mật ong, vạch xanh ngọc dưới chân */
.nav a { border: 1px solid rgba(227, 190, 116, .42); background: rgba(7, 17, 31, .55); }
.nav a:hover, .nav a:focus-visible { border-color: rgba(227, 190, 116, .85); }
.nav a::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .85), transparent); box-shadow: 0 0 6px rgba(45, 212, 191, .7); opacity: .55; transition: opacity .3s; pointer-events: none; }
.nav a:hover::after, .nav a.sang::after { opacity: 1; }
.nav-vach { border: 1px solid #E3BE74; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(196, 142, 58, .78), rgba(96, 66, 22, .45) 55%, rgba(40, 26, 6, .55) 100%); box-shadow: 0 0 18px rgba(227, 190, 116, .5), inset 0 0 12px rgba(227, 190, 116, .18); }
.nav a.sang, .nav a.sang:hover { color: #FFF4D8; border-color: transparent; background: transparent; text-shadow: 0 0 10px rgba(227, 190, 116, .55); }
.loc button { border-radius: 6px; border-color: rgba(227, 190, 116, .42); }
.loc button[aria-pressed="true"] { background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(196, 142, 58, .78), rgba(96, 66, 22, .45) 55%, rgba(40, 26, 6, .55) 100%); border-color: #E3BE74; color: #FFF4D8; box-shadow: 0 0 14px rgba(227, 190, 116, .4); }
.nut { border-radius: 10px; }
.nhan, .nhan-kiem, .truoc-sau .nhan-o { border-radius: 6px; }

/* Gói nạp honey: 6 gói, lưới 2 cột điện thoại, 3 cột máy tính */
.goi-nap { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.the-nap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 16px; border-radius: 10px; }
.the-nap h2 { margin: 6px 0 2px; font-size: clamp(22px, 5.4vw, 30px); color: var(--vang); white-space: nowrap; }
.the-nap .gia-dong { font-size: 15px; }
.the-nap .gia-dong span { display: block; }
.the-nap .nut { margin-top: auto; }
.the-nap-tang { border-color: rgba(227, 190, 116, .55); box-shadow: 0 0 26px -8px rgba(196, 142, 58, .55); }
@media (min-width: 760px) { .goi-nap { grid-template-columns: repeat(3, 1fr); gap: 16px; } .the-nap { padding: 22px; } }
/* Menu 7 tab: màn 960–1199px cho menu xuống hàng riêng, vuốt ngang được, không chen với logo */
@media (min-width: 960px) and (max-width: 1199px) {
  .dau .khung { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; justify-content: center; }
  .dau .nut { margin-left: auto; }
}

/* Vàng champagne: chữ số honey ánh kim, nhãn tặng viền mảnh, hũ mật ở đầu trang */
.nhan-muc { color: #D9B871; }
.so-mat { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 16px; font-weight: 700; color: #CDB894; }
.so-mat img { width: 52px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(196, 142, 58, .45)); }
.so-mat b { font-size: clamp(26px, 6vw, 34px); font-weight: 850; letter-spacing: -.01em; background: linear-gradient(180deg, #FBEBC4 0%, #E3BE74 48%, #B4863C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tang-nhan { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .03em; color: #F3DDA8; border: 1px solid rgba(227, 190, 116, .55); background: linear-gradient(180deg, rgba(227, 190, 116, .16), rgba(180, 134, 60, .08)); }
.the-nap-tang { border-color: rgba(227, 190, 116, .38); box-shadow: 0 0 30px -12px rgba(196, 142, 58, .55); }
.honey-mo { display: grid; gap: 8px; align-items: center; }
.hu-mat { width: min(100%, 420px); height: auto; justify-self: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(196, 142, 58, .18)); }
.goi-nap > * { min-width: 0; }
@media (max-width: 559px) { .goi-nap { grid-template-columns: 1fr; } .hu-mat { width: min(100%, 300px); } }
@media (min-width: 900px) { .mo-dau-1cot .khung.honey-mo { grid-template-columns: 1.2fr 1fr; gap: 32px; } .hu-mat { width: 100%; max-width: 460px; } }
/* Hình gói nạp honey */
.the-nap .hinh-nap { display: block; width: 120px; height: 120px; margin: -4px 0 6px -6px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(196, 142, 58, .26)) drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); transition: transform .35s ease; }
.the-nap:hover .hinh-nap { transform: translateY(-3px); }
@media (max-width: 759px) { .the-nap .hinh-nap { width: 104px; height: 104px; } }
@media (prefers-reduced-motion: reduce) { .the-nap .hinh-nap { transition: none; } .the-nap:hover .hinh-nap { transform: none; } }
/* Tên gọi ngắn của skill */
p.ten-goi, .the-skill p.ten-goi, .the-tai p.ten-goi { flex: 0 0 auto; margin: -2px 0 4px; font-size: 13px; line-height: 1.35; color: var(--chu-phu); }
p.ten-goi b { color: #E3BE74; font-weight: 700; }
.mo-dau p.ten-goi { margin: -4px 0 12px; font-size: 14px; }

/* Nạp honey bằng mã QR: nút vàng champagne trên thẻ gói, khung nạp kính tối, mã QR nền trắng có viền trắng */
.nap-chon { border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #2A1C05; background: linear-gradient(180deg, #F6E3B4 0%, #E3BE74 55%, #C9A158 100%); box-shadow: 0 8px 24px -10px rgba(227, 190, 116, .75), inset 0 1px 0 rgba(255, 255, 255, .55); }
.nap-chon:hover { box-shadow: 0 12px 30px -10px rgba(227, 190, 116, .95), inset 0 1px 0 rgba(255, 255, 255, .55); }
.nap-chon:focus-visible, .nap-hop button:focus-visible, .nap-hop input:focus-visible { outline: 2px solid #F3DDA8; outline-offset: 2px; }
.nap-hop { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 22px 20px 20px; border: 1px solid rgba(227, 190, 116, .55); border-radius: 12px; color: var(--chu); background: linear-gradient(180deg, #0E2033 0%, #0A1828 100%); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 40px -16px rgba(196, 142, 58, .5); }
.nap-hop::backdrop { background: rgba(3, 8, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nap-hop[open] { animation: nap-hien .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes nap-hien { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.nap-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nap-dau .nhan-muc { margin-bottom: 4px; }
.nap-dau h2 { margin: 0; font-size: 22px; color: #F3DDA8; }
.nap-nhan { margin: 2px 0 0; font-size: 15px; color: var(--chu-phu); }
.nap-dong { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--vien); background: rgba(255, 255, 255, .05); color: var(--chu); font-size: 24px; line-height: 1; cursor: pointer; }
.nap-dong:hover { border-color: rgba(227, 190, 116, .8); }
.nap-cho[hidden] { display: none; }
.nap-cho { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; margin: 0; color: var(--chu-phu); font-size: 15px; }
.nap-xoay { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(227, 190, 116, .25); border-top-color: #E3BE74; animation: nap-xoay .8s linear infinite; }
@keyframes nap-xoay { to { transform: rotate(360deg); } }
.nap-moi { padding: 18px 16px 16px; border: 1px solid rgba(227, 190, 116, .32); border-radius: 10px; background: linear-gradient(160deg, rgba(227, 190, 116, .12) 0%, rgba(227, 190, 116, .03) 55%, rgba(255, 255, 255, .02) 100%); }
.nap-moi:focus { outline: none; }
.nap-moi-dau { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.nap-moi-huy { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; border: 1px solid rgba(227, 190, 116, .5); background: rgba(7, 17, 31, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px -14px rgba(196, 142, 58, .8); }
.nap-moi-chu { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; color: #F3DDA8; }
.nap-moi-loi { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.nap-moi-loi li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--chu-phu); }
.nap-moi-loi li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid #E3BE74; border-bottom: 2px solid #E3BE74; transform: rotate(-45deg); }
.nap-moi-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nap-moi-nut .nut { justify-content: center; text-align: center; width: 100%; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.nap-moi-nut .nut:only-child { grid-column: 1 / -1; }
.nap-moi-phu { margin: 12px 0 0; font-size: 13.5px; color: var(--chu-phu); text-align: center; }
.nap-tk { margin: 0 0 10px; font-size: 14.5px; color: var(--chu-phu); }
.nap-tk b { color: #F3DDA8; letter-spacing: .06em; }
.nap-qr { width: min(100%, 260px); margin: 0 auto 10px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(227, 190, 116, .6), 0 14px 34px -14px rgba(0, 0, 0, .7); }
.nap-qr svg { display: block; width: 100%; height: auto; }
.nap-quet { text-align: center; font-size: 14px; color: var(--chu-phu); margin-bottom: 12px; }
.nap-ttin { margin: 0 0 12px; border: 1px solid var(--vien); border-radius: 10px; overflow: hidden; }
.nap-hang { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; }
.nap-hang + .nap-hang { border-top: 1px solid rgba(255, 255, 255, .08); }
.nap-hang dt { font-size: 13.5px; color: var(--chu-phu); }
.nap-hang dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-weight: 700; }
.nap-hang dd span { min-width: 0; overflow-wrap: anywhere; }
.nap-chep { flex: 0 0 auto; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(227, 190, 116, .5); background: rgba(227, 190, 116, .08); color: #F3DDA8; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nap-chep:hover { background: rgba(227, 190, 116, .18); }
.nap-chep.da-chep { border-color: var(--ngoc-sang); color: var(--ngoc-sang); }
.nap-ghi { font-size: 14.5px; padding: 10px 12px; border-radius: 8px; border-left: 3px solid #E3BE74; background: rgba(227, 190, 116, .08); }
.nap-mot-dong { white-space: nowrap; }
.nap-buoc2:focus { outline: none; }
@media (max-width: 420px) { .nap-hop { padding: 18px 14px 16px; } .nap-hang { grid-template-columns: 84px 1fr; gap: 6px; padding: 8px 8px 8px 10px; } .nap-hang dd { font-size: 15.5px; } }
@media (min-width: 760px) {
  .nap-hop.nap-hop-qr { width: min(780px, calc(100vw - 48px)); padding: 24px 26px 24px; }
  .nap-hop-qr .nap-buoc2:not([hidden]) { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; }
  .nap-hop-qr .nap-qr { width: 100%; }
  .nap-hop-qr .nap-quet { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .nap-hop[open] { animation: none; } .nap-chon:hover { transform: none; } .nap-xoay { animation-duration: 2.4s; } }
/* Cụm nút liên hệ nổi ở góc phải dưới, có ở mọi trang */
.lh-noi {
  position: fixed; right: 12px; bottom: var(--lh-day, 18px); z-index: 35;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.lh-noi > * { pointer-events: auto; }
.lh-mat {
  position: relative; width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #12324A 0%, #0B1B2B 70%);
  border: 2px solid var(--vang);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .18), 0 10px 24px -8px rgba(0, 0, 0, .7);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
  animation: lh-hien .6s .5s cubic-bezier(.2, .8, .2, 1) both;
}
.lh-mat img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lh-mat::after {
  content: ""; position: absolute; right: 1px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: #22C55E; border: 2px solid #0B1B2B;
}
.lh-mat:focus-visible, .lh-nut:focus-visible { outline: 2px solid var(--ngoc-sang); outline-offset: 3px; }
.lh-nhan {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: #0B1B2B;
  background: linear-gradient(135deg, #F1D9A3, var(--vang));
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .7);
  transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
}
.lh-nhan::after {
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--vang); transform: rotate(45deg); border-radius: 2px;
}
.lh-thu .lh-nhan { opacity: 0; visibility: hidden; transform: translate(8px, -50%); }
.lh-ds {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  transform-origin: 50% 0;
}
.lh-ds li { animation: lh-hien .5s calc(.6s + var(--i) * .07s) cubic-bezier(.2, .8, .2, 1) both; }
.lh-dong .lh-ds { opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.9); pointer-events: none; }
.lh-noi:not(.lh-dong) { gap: 12px; }
.lh-dong { gap: 0; }
.lh-dong .lh-ds { position: absolute; top: 100%; }
.lh-nut {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, filter .22s;
}
.lh-nut svg { display: block; }
.lh-chu { font-size: 13px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.lh-zalo { background: #0068FF; }
.lh-fb { background: #1877F2; }
.lh-fb svg { width: 24px; height: 24px; }
.lh-yt { background: #E62117; }
.lh-goi { background: var(--vang); color: #0B1B2B; }
.lh-goi svg { width: 21px; height: 21px; }
@keyframes lh-hien { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .lh-mat:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(45, 212, 191, .28), 0 14px 28px -8px rgba(0, 0, 0, .75); }
  .lh-mat:hover .lh-nhan { opacity: 1; visibility: visible; transform: translateY(-50%); }
  .lh-nut:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .lh-nut::after {
    content: attr(data-goi); position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
    padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
    font-size: 13px; font-weight: 600; color: var(--chu);
    background: rgba(11, 27, 43, .94); border: 1px solid var(--vien); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .lh-nut:hover::after, .lh-nut:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(-50%); }
}
@media (min-width: 960px) {
  .lh-noi { right: 18px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lh-mat, .lh-ds li { animation: none; }
  .lh-mat, .lh-nut, .lh-ds, .lh-nhan, .lh-nut::after { transition: none; }
  .lh-mat:hover, .lh-nut:hover { transform: none; }
}
@media print { .lh-noi { display: none; } }

/* Đầu trang: nút Đăng nhập (viền), Đăng ký (nền champagne); đã đăng nhập thì một nút Tài khoản kèm số dư */
.dau-tk { order: 1; margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dau .nav { order: 2; }
.dau .dau-tk .nut { display: inline-flex; margin: 0; padding: 8px 14px; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; border-radius: 8px; box-shadow: none; }
.dau .dau-tk .nut:hover { transform: translateY(-1px); }
.dau .dau-tk .tk-nut-vao { background: rgba(7, 17, 31, .55); color: #F4E7C8; border: 1px solid rgba(227, 190, 116, .55); }
.dau .dau-tk .tk-nut-vao:hover, .dau .dau-tk .tk-nut-vao:focus-visible { border-color: #E3BE74; color: #FFF4D8; box-shadow: 0 0 16px -4px rgba(227, 190, 116, .55); }
.dau .dau-tk .tk-nut-dk { background: linear-gradient(135deg, #F1D9A3, #E3BE74 60%, #C9A25A); color: #2A1E08; border: 1px solid #E3BE74; }
.dau .dau-tk .tk-nut-dk:hover, .dau .dau-tk .tk-nut-dk:focus-visible { box-shadow: 0 8px 22px -8px rgba(227, 190, 116, .85); }
.dau .dau-tk .tk-nut-tk { gap: 8px; padding: 6px 6px 6px 12px; background: rgba(7, 17, 31, .55); color: #F4E7C8; border: 1px solid rgba(227, 190, 116, .6); }
.dau .dau-tk .tk-nut-tk:hover, .dau .dau-tk .tk-nut-tk:focus-visible { border-color: #E3BE74; box-shadow: 0 0 16px -4px rgba(227, 190, 116, .55); }
.tk-so-du-dau { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 8px; border-radius: 6px; background: linear-gradient(135deg, #F1D9A3, #E3BE74); color: #2A1E08; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-so-du-dau small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.dau .dau-tk .nut:focus-visible { outline: 2px solid #E3BE74; outline-offset: 2px; }
@media (max-width: 959px) { .dau .khung { column-gap: 12px; } }
@media (max-width: 420px) {
  .logo { gap: 8px; font-size: 16.5px; }
  .logo-dau { width: 28px; height: 28px; }
  .dau-tk { gap: 6px; }
  .dau .dau-tk .nut { padding: 7px 10px; font-size: 13px; }
  .dau .dau-tk .tk-nut-tk { padding: 5px 5px 5px 10px; }
}
@media (max-width: 359px) { .dau .dau-tk .tk-nut-vao { display: none; } }
@media (min-width: 960px) {
  .dau .nav { order: 0; }
  .dau-tk { order: 0; margin-left: 0; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .dau .nav { order: 3; }
  .dau-tk { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .dau .dau-tk .nut:hover { transform: none; } }