:root {
  --nen: #fafbfd;
  --trang: #ffffff;
  --muc: #0f172a;
  --muc-2: #475569;
  --muc-3: #8a97ab;
  --vien: #e6eaf2;
  --vien-dam: #d5dbe7;
  --chinh: #2457f5;
  --chinh-dam: #1a45d1;
  --chinh-nhat: #eef3ff;
  --mint: #00b383;
  --mint-nhat: #e6f8f2;
  --vang: #ffb020;
  --do: #d92d20;
  --bo: 16px;
  --bong-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --bong-2: 0 12px 32px -12px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .04);
  --em: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--nen); color: var(--muc);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: 0; font-weight: 700; }
.khung { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
::selection { background: #cfdcff; }

/* Băng dữ liệu mẫu */
.bang-mau { background: #fff8e6; color: #7a5600; font-size: 12.5px; font-weight: 500; text-align: center; padding: 6px 14px; border-bottom: 1px solid #f5e3b3; }

/* Thanh trên */
.thanh-tren { position: sticky; top: 0; z-index: 20; background: rgba(250, 251, 253, .8); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.thanh-tren.cuon { border-color: var(--vien); box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .25); }
.thanh-tren .khung { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.logo i { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--chinh) 0%, #4f8bff 55%, var(--mint) 100%); display: block; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.logo i::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.menu { display: flex; gap: 4px; font-size: 14.5px; font-weight: 500; color: var(--muc-2); }
.menu a { padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.menu a:hover { background: #eef1f6; color: var(--muc); }
@media (max-width: 760px) { .menu { display: none; } }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: 15.5px; border-radius: 12px; padding: 13px 22px; background: var(--chinh); color: #fff; transition: transform .16s var(--em), box-shadow .16s var(--em), background .16s; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(36, 87, 245, .55); }
.nut:hover { background: var(--chinh-dam); transform: translateY(-1px); }
.nut:active { transform: scale(.98); }
.nut.nho { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.nut.phu { background: var(--trang); color: var(--muc); border-color: var(--vien-dam); box-shadow: var(--bong-1); }
.nut.phu:hover { background: #f4f6fa; }
.nut.vang { background: var(--muc); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .5); }
.nut.vang:hover { background: #1e293b; }
:focus-visible { outline: 3px solid #9db7ff; outline-offset: 2px; border-radius: 8px; }

/* Hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(520px 320px at 88% 8%, rgba(0, 179, 131, .13), transparent 70%),
  radial-gradient(620px 360px at 4% 0%, rgba(36, 87, 245, .12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-luoi { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { padding: 36px 0 32px; } .hero-luoi { grid-template-columns: 1fr; gap: 28px; } }
.the-nho { display: inline-flex; align-items: center; gap: 8px; background: var(--trang); border: 1px solid var(--vien); border-radius: 999px; padding: 6px 14px 6px 12px; font-size: 13px; font-weight: 500; color: var(--muc-2); box-shadow: var(--bong-1); }
.the-nho::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 179, 131, .18); }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); letter-spacing: 0; line-height: 1.14; margin: 20px 0 16px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--chinh) 10%, #3d8bff 55%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.dan { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muc-2); max-width: 520px; margin: 0 0 28px; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; }

.dem { background: var(--trang); border: 1px solid var(--vien); border-radius: 24px; box-shadow: var(--bong-2); padding: 26px; }
.dem .ngay { font-size: 13px; font-weight: 500; color: var(--muc-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.dem .ngay b { color: var(--muc); display: block; font-size: 19px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.dem-so { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--vien); border-radius: 16px; overflow: hidden; background: #fbfcfe; }
.dem-so div { text-align: center; padding: 16px 4px 12px; border-right: 1px solid var(--vien); }
.dem-so div:last-child { border-right: 0; }
.dem-so b { display: block; font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dem-so span { font-size: 12px; color: var(--muc-3); font-weight: 500; }
.dem .con-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--vien-dam); font-size: 13px; color: var(--muc-2); }
.dem .con-so span { display: grid; }
.dem .con-so b { color: var(--muc); font-size: 22px; font-weight: 700; letter-spacing: 0; }

/* Nhãn nổi quanh bảng đếm ngược */
.dem-bao { position: relative; }
.noi-nhan { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--trang); border: 1px solid var(--vien); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; box-shadow: var(--bong-2); white-space: nowrap; }
.noi-nhan::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--chinh)); }
.noi-nhan.a { top: -18px; right: 22px; --c: var(--chinh); transform: rotate(3deg); }
.noi-nhan.b { bottom: -16px; left: -18px; --c: var(--mint); transform: rotate(-3deg); }
@media (max-width: 900px) { .noi-nhan.b { left: 16px; } }

/* Khối chung */
section.khoi { padding: 56px 0; }
@media (max-width: 760px) { section.khoi { padding: 40px 0; } }
.dau-khoi { margin-bottom: 24px; }
.dau-khoi .nhan-khoi { font-size: 12.5px; font-weight: 600; color: var(--chinh); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; display: block; }
.dau-khoi h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: 0; }
.dau-khoi p { margin: 8px 0 0; color: var(--muc-2); max-width: 560px; }

/* Cách tham gia */
.buoc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .buoc { grid-template-columns: 1fr; } }
.buoc div { background: var(--trang); border: 1px solid var(--vien); border-radius: 20px; padding: 22px; box-shadow: var(--bong-1); }
.buoc b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--chinh-nhat); color: var(--chinh); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.buoc h3 { font-size: 17px; letter-spacing: 0; margin-bottom: 6px; }
.buoc p { margin: 0; color: var(--muc-2); font-size: 14.5px; }

/* Lịch live */
.lich { background: var(--trang); border: 1px solid var(--vien); border-radius: 20px; box-shadow: var(--bong-1); overflow: hidden; }
.lich a { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--vien); transition: background .15s; }
.lich a:last-child { border-bottom: 0; }
.lich a:hover { background: #f7f9fd; }
.lich .gio { font-weight: 700; font-size: 20px; letter-spacing: 0; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.lich .gio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mau, var(--chinh)); flex: none; }
.lich .ten { font-weight: 600; }
.lich .nguoi { font-size: 13.5px; color: var(--muc-3); }
.lich .mui { color: var(--muc-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .15s, transform .15s var(--em); }
.lich a:hover .mui { color: var(--chinh); transform: translateX(3px); }

/* Lọc + thẻ trường */
.loc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.loc button { border: 1px solid var(--vien-dam); background: var(--trang); border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muc-2); transition: all .15s; }
.loc button:hover { border-color: var(--muc-3); color: var(--muc); }
.loc button.chon { background: var(--muc); color: #fff; border-color: var(--muc); }
.luoi-truong { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.the-truong { background: var(--trang); border: 1px solid var(--vien); border-radius: 20px; padding: 22px; box-shadow: var(--bong-1); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: transform .2s var(--em), box-shadow .2s var(--em), border-color .2s; }
.the-truong::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mau, var(--chinh)); opacity: 0; transition: opacity .2s; }
.the-truong:hover { transform: translateY(-3px); box-shadow: var(--bong-2); border-color: var(--vien-dam); }
.the-truong:hover::before { opacity: 1; }
.huy-hieu { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: 0; color: var(--mau, var(--chinh)); background: #eef3ff; background: color-mix(in srgb, var(--mau, var(--chinh)) 11%, #fff); border: 1px solid #dfe6f7; border-color: color-mix(in srgb, var(--mau, var(--chinh)) 22%, #fff); }
.huy-hieu.lon { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; background: #fff; }
.the-truong h3 { font-size: 18px; letter-spacing: 0; }
.the-truong p { margin: 0; font-size: 14.5px; color: var(--muc-2); flex: 1; }
.nhan { display: flex; gap: 6px; flex-wrap: wrap; }
.nhan span { font-size: 12px; font-weight: 500; background: #f1f4f9; border-radius: 999px; padding: 3px 10px; color: var(--muc-2); }
.the-truong .chan { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--chinh); padding-top: 14px; border-top: 1px solid var(--vien); }
.the-truong .chan small { color: var(--muc-3); font-weight: 500; font-size: 13px; }
.the-truong .chan span { transition: transform .15s var(--em); }
.the-truong:hover .chan span { transform: translateX(3px); }

/* Bốc thăm */
.boc-tham { position: relative; overflow: hidden; background: linear-gradient(120deg, #eef3ff 0%, #e9f9f3 100%); border: 1px solid #dbe6fb; border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.boc-tham::before { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .28), transparent 65%); }
@media (max-width: 760px) { .boc-tham { grid-template-columns: 1fr; padding: 24px; } }
.boc-tham > * { position: relative; }
.boc-tham h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: 0; }
.boc-tham p { margin: 10px 0 20px; color: var(--muc-2); }
.qua { display: grid; gap: 10px; }
.qua div { background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; padding: 13px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; box-shadow: var(--bong-1); }
.qua div b { width: 26px; height: 26px; border-radius: 8px; background: #fff4dc; color: #a66a00; display: grid; place-items: center; font-size: 13px; flex: none; }

/* Form */
.form { background: var(--trang); border: 1px solid var(--vien); border-radius: 24px; box-shadow: var(--bong-2); padding: 28px; display: grid; gap: 20px; }
@media (max-width: 640px) { .form { padding: 20px; } }
.hang { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .hang { grid-template-columns: 1fr; } }
label.o { display: grid; gap: 7px; font-weight: 500; font-size: 14px; color: var(--muc); }
label.o small, legend small { font-weight: 400; color: var(--muc-3); font-size: 13px; }
input[type=text], input[type=tel], select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vien-dam); background: var(--trang); color: var(--muc); width: 100%; transition: border-color .15s, box-shadow .15s; box-shadow: var(--bong-1); }
input::placeholder, textarea::placeholder { color: #a7b1c2; }
input:hover, select:hover, textarea:hover { border-color: var(--muc-3); }
input:focus, select:focus, textarea:focus { border-color: var(--chinh); outline: none; box-shadow: 0 0 0 4px rgba(36, 87, 245, .14); }
textarea { min-height: 92px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: 14px; margin-bottom: 10px; padding: 0; }
.chon-truong { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.chon-truong label, .tich { display: flex; gap: 11px; align-items: center; border: 1px solid var(--vien-dam); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; font-size: 14.5px; background: var(--trang); transition: border-color .15s, background .15s, box-shadow .15s; }
.chon-truong label:hover { border-color: var(--muc-3); }
.chon-truong label:has(input:checked) { border-color: var(--chinh); background: var(--chinh-nhat); box-shadow: 0 0 0 1px var(--chinh) inset; }
.tich { font-weight: 400; align-items: flex-start; border: 0; padding: 0; background: none; color: var(--muc-2); }
input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--chinh); flex: none; margin: 2px 0 0; }
.hop-phu { background: var(--mint-nhat); border: 1px solid #c5ecdf; border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
[hidden] { display: none !important; }
.loi { color: var(--do); background: #fef3f2; border: 1px solid #fcd5d1; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; margin: 0; }
.ghi-chu { font-size: 13px; color: var(--muc-3); margin: 0; }
.form .nut { padding: 15px 22px; }
.xong { background: var(--trang); border: 1px solid #bfe9db; border-radius: 24px; padding: 40px 28px; text-align: center; box-shadow: var(--bong-2); background-image: radial-gradient(420px 200px at 50% 0%, rgba(0, 179, 131, .12), transparent 70%); }
.xong h3 { font-size: 26px; letter-spacing: 0; }
.xong p { color: var(--muc-2); margin: 8px 0 0; }
.ma { display: inline-block; margin: 16px 0 12px; font-size: 34px; font-weight: 700; letter-spacing: .14em; background: var(--mint-nhat); color: #00704f; border-radius: 16px; padding: 12px 26px; border: 1.5px dashed #6fd3b4; font-variant-numeric: tabular-nums; }

/* Trang trường */
.dau-truong { position: relative; padding: 36px 0 76px; border-bottom: 1px solid var(--vien); background: #f3f6fd; background: linear-gradient(180deg, color-mix(in srgb, var(--mau, var(--chinh)) 9%, #fff) 0%, color-mix(in srgb, var(--mau, var(--chinh)) 3%, #fff) 100%); }
.dau-truong a.ve { font-size: 14px; font-weight: 500; color: var(--muc-2); display: inline-block; margin-bottom: 26px; }
.dau-truong a.ve:hover { color: var(--muc); }
.dau-truong .ten-hang { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.dau-truong h1 { font-size: clamp(28px, 5.5vw, 46px); letter-spacing: 0; }
.dau-truong p { margin: 0 0 16px; max-width: 640px; color: var(--muc-2); font-size: 17px; }
.dau-truong .nhan span { background: rgba(255, 255, 255, .8); border: 1px solid var(--vien); }
.than-truong { margin-top: -44px; position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; padding-bottom: 56px; }
@media (max-width: 900px) { .than-truong { grid-template-columns: 1fr; } }
.than-truong aside { position: sticky; top: 84px; }
@media (max-width: 900px) { .than-truong aside { position: static; } }
.o-trang { background: var(--trang); border: 1px solid var(--vien); border-radius: 20px; box-shadow: var(--bong-1); padding: 24px; margin-bottom: 20px; }
@media (max-width: 640px) { .o-trang { padding: 18px; } }
.o-trang h2 { font-size: 19px; letter-spacing: 0; margin-bottom: 14px; }
.o-trang > p { color: var(--muc-2); }
.video { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #f4f6fb; border: 1px dashed var(--vien-dam); display: grid; place-items: center; text-align: center; color: var(--muc-3); font-size: 14.5px; padding: 16px; }
.video:has(iframe) { border: 0; padding: 0; }
.video iframe { width: 100%; height: 100%; border: 0; }
table.nganh { width: 100%; border-collapse: collapse; font-size: 15px; }
table.nganh th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muc-3); text-transform: uppercase; letter-spacing: .07em; padding: 0 8px 10px; border-bottom: 1px solid var(--vien); }
table.nganh td { padding: 13px 8px; border-bottom: 1px solid var(--vien); color: var(--muc-2); }
table.nganh tr:last-child td { border-bottom: 0; }
table.nganh td:first-child { font-weight: 600; color: var(--muc); }
details { border-bottom: 1px solid var(--vien); padding: 14px 0; }
details:first-child { padding-top: 0; }
details:last-child { border-bottom: 0; padding-bottom: 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muc-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s var(--em); }
details[open] summary::after { transform: rotate(45deg); color: var(--chinh); }
details p { margin: 8px 0 0; color: var(--muc-2); }
.live-hop { border-radius: 14px; padding: 16px; background: #f7f9fd; border: 1px solid var(--vien); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-hop b { font-size: 26px; font-weight: 700; letter-spacing: 0; line-height: 1.1; display: block; }

/* Hỏi đáp */
.chat { display: grid; gap: 12px; }
.chat .khung-tin { height: 280px; overflow-y: auto; background: #f7f9fd; border: 1px solid var(--vien); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tin { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; animation: hien-tin .25s var(--em); }
.tin.may { background: var(--trang); border: 1px solid var(--vien); align-self: flex-start; border-bottom-left-radius: 4px; }
.tin.toi { background: var(--chinh); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes hien-tin { from { opacity: 0; transform: translateY(6px); } }
.goi-y { display: flex; gap: 6px; flex-wrap: wrap; }
.goi-y button { border: 1px solid var(--vien-dam); background: var(--trang); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muc-2); transition: all .15s; }
.goi-y button:hover { border-color: var(--chinh); color: var(--chinh); background: var(--chinh-nhat); }
.chat form { display: flex; gap: 8px; }
.chat form input { flex: 1; min-width: 0; }

/* Chân trang */
.chan-trang { border-top: 1px solid var(--vien); padding: 28px 0 96px; color: var(--muc-3); font-size: 13.5px; }
.chan-trang .khung { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.chan-trang .logo { font-size: 15px; color: var(--muc); }
@media (min-width: 761px) { .chan-trang { padding-bottom: 28px; } }

/* Nút nổi trên điện thoại */
.noi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(250, 251, 253, .96) 38%); }
.noi .nut { width: 100%; padding: 15px; }
@media (max-width: 760px) { .noi { display: block; } .noi.an { display: none; } }
@media (max-width: 520px) {
  .lich a { grid-template-columns: 78px 1fr auto; padding: 16px; gap: 12px; }
  .lich .mui { font-size: 0; }
  .lich .mui::after { content: "→"; font-size: 18px; }
  .dau-truong .ten-hang { gap: 14px; }
  .huy-hieu.lon { width: 52px; height: 52px; font-size: 17px; border-radius: 15px; }
}

/* Hiện dần khi cuộn tới (chỉ bật khi có JS) */
.co-js .cho-hien { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--em), transform .6s var(--em); }
.co-js .cho-hien.hien { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .co-js .cho-hien { opacity: 1; transform: none; }
}

/* ================= LỚP MÀU TƯƠI ================= */
:root { --vang-tuoi: #ffd23f; --vang-nhat: #fff5cf; --cam: #ff6b4a; --cam-nhat: #ffe9e3; --tim: #7c5cff; }

/* Đầu trang: nền chuyển màu rõ hơn */
.hero { background: linear-gradient(160deg, #dfe9ff 0%, #e6f6ff 38%, #dff8ee 72%, #fff6d6 100%); }
.hero::before { background:
  radial-gradient(420px 280px at 92% 10%, rgba(255, 210, 63, .45), transparent 70%),
  radial-gradient(520px 320px at 0% 100%, rgba(0, 179, 131, .22), transparent 70%),
  radial-gradient(560px 340px at 30% 0%, rgba(36, 87, 245, .20), transparent 70%); z-index: 0; }
.hero::after { z-index: 0; }
.hero .khung { position: relative; z-index: 1; }
.the-nho { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .9); }
.nut.phu { background: rgba(255, 255, 255, .85); }

/* Bảng đếm ngược: bốn ô bốn màu */
.dem-so { border: 0; background: none; gap: 8px; overflow: visible; }
.dem-so div { border: 0; border-radius: 16px; background: var(--chinh-nhat); }
.dem-so div:nth-child(1) b { color: var(--chinh); }
.dem-so div:nth-child(2) { background: var(--mint-nhat); } .dem-so div:nth-child(2) b { color: #008f69; }
.dem-so div:nth-child(3) { background: var(--vang-nhat); } .dem-so div:nth-child(3) b { color: #b97a00; }
.dem-so div:nth-child(4) { background: var(--cam-nhat); } .dem-so div:nth-child(4) b { color: #e04a2b; }
.dem-so span { color: var(--muc-2); }
.noi-nhan.a { --c: var(--cam); } .noi-nhan.b { --c: var(--vang-tuoi); }

/* Ba bước: mỗi ô một màu */
.buoc div { border: 0; box-shadow: none; }
.buoc div:nth-child(1) { background: #e3ecff; } .buoc div:nth-child(1) b { background: var(--chinh); color: #fff; }
.buoc div:nth-child(2) { background: #d9f5ea; } .buoc div:nth-child(2) b { background: var(--mint); color: #fff; }
.buoc div:nth-child(3) { background: #ffefb8; } .buoc div:nth-child(3) b { background: var(--cam); color: #fff; }
.buoc p { color: #3b4a63; }

/* Nhãn đầu khối thành viên màu */
.dau-khoi .nhan-khoi { display: inline-block; background: var(--chinh-nhat); color: var(--chinh); border-radius: 999px; padding: 5px 12px; letter-spacing: .06em; }
#truong .nhan-khoi { background: var(--mint-nhat); color: #008f69; }
#dang-ky .nhan-khoi { background: var(--vang-tuoi); color: #4a3800; }

/* Nền từng khối */
#truong { background: linear-gradient(180deg, #eef4ff 0%, #f3fbf8 100%); }
#dang-ky { background: linear-gradient(160deg, #e3ecff 0%, #dff6ee 100%); }
.lich .gio { color: var(--mau, var(--chinh)); }
.lich .gio::before { width: 10px; height: 10px; }
.loc button.chon { background: var(--chinh); border-color: var(--chinh); }

/* Thẻ trường: dải màu của trường ở trên */
.the-truong { padding-top: 46px; border: 0; box-shadow: var(--bong-2); }
.the-truong::before { height: 78px; opacity: 1; background: linear-gradient(120deg, var(--mau, var(--chinh)) 0%, color-mix(in srgb, var(--mau, var(--chinh)) 55%, #fff) 100%); }
.the-truong > * { position: relative; }
.the-truong .huy-hieu { width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 0; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3); font-size: 16px; }
.the-truong .nhan span { background: color-mix(in srgb, var(--mau, var(--chinh)) 11%, #fff); color: color-mix(in srgb, var(--mau, var(--chinh)) 70%, #0f172a); }
.the-truong .chan { color: var(--mau, var(--chinh)); }

/* Bốc thăm: vàng tươi */
.boc-tham { background: linear-gradient(120deg, #ffe37a 0%, var(--vang-tuoi) 55%, #ffc24a 100%); border: 0; }
.boc-tham::before { background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 65%); }
.boc-tham::after { content: ""; position: absolute; width: 180px; height: 180px; left: -60px; bottom: -90px; border-radius: 50%; background: rgba(255, 107, 74, .28); }
.boc-tham h2 { color: #2b2100; }
.boc-tham p { color: #5a4400; }
.qua div { background: rgba(255, 255, 255, .9); border: 0; }
.qua div b { background: var(--cam); color: #fff; }

/* Form */
.chon-truong label:has(input:checked) { background: var(--chinh-nhat); }
.xong { border: 0; background-color: #fff; }

/* Trang trường: đầu trang theo màu trường */
.dau-truong { border-bottom: 0; color: #fff; background: linear-gradient(120deg, var(--mau, var(--chinh)) 0%, color-mix(in srgb, var(--mau, var(--chinh)) 62%, #fff) 100%); position: relative; overflow: hidden; }
.dau-truong::after { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dau-truong .khung { position: relative; z-index: 1; }
.dau-truong a.ve, .dau-truong a.ve:hover { color: rgba(255, 255, 255, .92); }
.dau-truong p { color: rgba(255, 255, 255, .95); }
.dau-truong .nhan span { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .35); color: #fff; }
.dau-truong .huy-hieu { border: 0; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .35); }
.live-hop { background: var(--vang-nhat); border-color: #ffe08a; }
.video { background: var(--chinh-nhat); border-color: #c9d8ff; color: #5b74b8; }
table.nganh th { color: var(--chinh); }

/* Chân trang xanh */
.chan-trang { background: var(--chinh); color: rgba(255, 255, 255, .85); border-top: 0; }
.chan-trang .logo { color: #fff; }
.chan-trang .logo i { background: rgba(255, 255, 255, .22); }

/* ================= THANH DEMO (chỉ hiện khi mở ?demo=1) ================= */
.thanh-demo { position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: min(560px, calc(100vw - 24px)); background: #fff; border: 2px solid var(--tim); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(124, 92, 255, .5); padding: 10px 12px; font-size: 13px; display: grid; gap: 8px; }
.td-dong { display: flex; align-items: center; gap: 10px; }
.td-dong > b { background: var(--tim); color: #fff; border-radius: 8px; padding: 2px 9px; font-size: 12px; }
.td-gio { color: var(--muc-2); font-variant-numeric: tabular-nums; flex: 1; }
.td-thu { border: 0; background: #f1eeff; color: var(--tim); border-radius: 8px; width: 28px; height: 26px; font: inherit; font-weight: 700; cursor: pointer; }
.td-nut, .td-link { display: flex; flex-wrap: wrap; gap: 6px; }
.td-nut button { border: 1px solid #dcd3ff; background: #f7f5ff; color: #4b33c9; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.td-nut button:hover { background: var(--tim); color: #fff; border-color: var(--tim); }
.td-link a { color: var(--chinh); font-weight: 600; font-size: 12.5px; padding: 2px 4px; }
.td-link a:hover { text-decoration: underline; }
.thanh-demo.gon .td-nut, .thanh-demo.gon .td-link { display: none; }
@media (max-width: 760px) { .co-demo .thanh-demo { bottom: 84px; } }

/* ================= ĐANG LIVE (trang chủ + lịch) ================= */
.cham-do { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: nhay-do 1.4s infinite; vertical-align: middle; }
@keyframes nhay-do { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.huy-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; background: #ff3b30; color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; vertical-align: middle; letter-spacing: .02em; }
.huy-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.dem-live-the { display: grid; gap: 12px; background: linear-gradient(150deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--mau, var(--chinh)) 12%, #fff) 100%); }
.dem-live-the .ngay { margin: 0; color: #e0342a; font-weight: 700; }
.dem-live-the .ten-hang { display: flex; align-items: center; gap: 14px; }
.dem-live-the h3 { font-size: clamp(22px, 3vw, 28px); }
.dem-live-the p { margin: 0; color: var(--muc-2); }
.dem-live-the .nut { justify-self: start; }
.dem-live-the .tiep { padding-top: 12px; border-top: 1px dashed var(--vien-dam); }
.lich a.dang { background: color-mix(in srgb, var(--mau, var(--chinh)) 9%, #fff); box-shadow: inset 4px 0 0 var(--mau, var(--chinh)); }
.lich a.dang .mui { color: var(--mau, var(--chinh)); font-weight: 700; }
.lich a.xong-roi { opacity: .55; }

/* ================= PHÒNG LIVE ================= */
.luoi-live { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
@media (max-width: 900px) { .luoi-live { grid-template-columns: 1fr; padding-top: 14px; } }
.luoi-live aside { position: sticky; top: 84px; }
@media (max-width: 900px) { .luoi-live aside { position: static; } }
.san-khau { aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: #fff;
  background: radial-gradient(500px 300px at 85% 0%, rgba(255, 210, 63, .45), transparent 70%), linear-gradient(130deg, var(--mau, var(--chinh)) 0%, color-mix(in srgb, var(--mau, var(--chinh)) 55%, #3d8bff) 100%); box-shadow: var(--bong-2); }
.san-khau::after { content: ""; position: absolute; width: 300px; height: 300px; left: -90px; bottom: -150px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.san-khau > * { position: relative; z-index: 1; }
.san-khau.pha-truoc, .san-khau.pha-khaiMac { background: radial-gradient(420px 280px at 90% 0%, rgba(255, 210, 63, .55), transparent 70%), linear-gradient(130deg, #2457f5 0%, #3d8bff 50%, #00b383 100%); }
.san-khau.pha-quaySo { background: radial-gradient(420px 260px at 10% 0%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(130deg, #ffd23f 0%, #ffb020 60%, #ff6b4a 100%); color: #2b2100; }
.san-khau.pha-sau { background: linear-gradient(130deg, #00b383 0%, #3d8bff 100%); }
.san-khau.co-video { padding: 0; display: block; background: #0f172a; }
.san-khau iframe { width: 100%; height: 100%; border: 0; }
.nhan-san { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nhan-san.do { background: #ff3b30; border-color: #ff3b30; }
.nhan-san.do .cham-do { background: #fff; }
.san-khau .to { font-size: clamp(24px, 4.4vw, 44px); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.san-khau p { margin: 0; font-size: clamp(14px, 1.8vw, 17px); opacity: .95; }
.san-khau .huy-hieu.lon { background: #fff; border: 0; width: 76px; height: 76px; font-size: 24px; box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .45); }
.dem-live { font-size: clamp(34px, 7vw, 64px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.ghi-san { position: absolute !important; bottom: 12px; left: 0; right: 0; font-size: 12px; opacity: .85; }
@media (max-width: 520px) { .san-khau { border-radius: 16px; padding: 16px; gap: 6px; } .san-khau .huy-hieu.lon { width: 52px; height: 52px; font-size: 17px; } .ghi-san { display: none; } }
.duoi-san { background: var(--trang); border-radius: 18px; box-shadow: var(--bong-1); border: 1px solid var(--vien); padding: 16px 18px; margin: 14px 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.duoi-san > div > b { display: block; font-size: 13px; color: var(--muc-3); font-weight: 600; margin-bottom: 6px; }
.duoi-san .nhan span { background: var(--chinh-nhat); color: var(--chinh); }
.ds-trung { width: 100%; display: grid; gap: 8px; }
.ds-trung div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: var(--vang-nhat); border-radius: 12px; padding: 10px 14px; }
.ds-trung div span { font-weight: 600; }
.ds-trung div strong { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ds-trung div small { grid-column: 1 / -1; color: var(--muc-2); }
.ds-trung div.la-toi { background: var(--mint-nhat); box-shadow: inset 0 0 0 2px var(--mint); }
.lich-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lich-live li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.lich-live li b { font-variant-numeric: tabular-nums; color: var(--mau, var(--chinh)); }
.lich-live li div { display: grid; }
.lich-live li span { font-weight: 600; }
.lich-live li small { color: var(--muc-3); font-size: 13px; }
.lich-live li.dang { background: color-mix(in srgb, var(--mau, var(--chinh)) 10%, #fff); box-shadow: inset 4px 0 0 var(--mau, var(--chinh)); }
.lich-live li.dang small { color: #e0342a; font-weight: 700; }
.lich-live li.xong-roi { opacity: .5; }
.the-ma { background: linear-gradient(135deg, #e6f8f2 0%, #fff5cf 100%); border: 0; }
.the-ma h2 { margin-bottom: 6px; }
.ma.nho-ma { font-size: 26px; padding: 8px 18px; margin: 8px 0 10px; background: #fff; }

/* ================= QUAY SỐ ================= */
body.trang-quay { min-height: 100vh; background: radial-gradient(700px 420px at 90% 0%, rgba(255, 255, 255, .55), transparent 70%), linear-gradient(140deg, #ffe37a 0%, #ffd23f 45%, #ffb347 100%); }
.quay-luoi { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; min-height: calc(100vh - 40px); align-items: center; }
@media (max-width: 900px) { .quay-luoi { grid-template-columns: 1fr; padding-top: 20px; } }
.quay-chinh { text-align: center; display: grid; justify-items: center; gap: 14px; }
.quay-chinh h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; color: #2b2100; }
.quay-dem { margin: 0; color: #5a4400; font-size: 16px; }
.so-quay { font-size: clamp(48px, 10vw, 120px); font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; background: #fff; color: var(--chinh); border-radius: 28px; padding: 14px 40px; box-shadow: 0 24px 50px -22px rgba(90, 60, 0, .55); line-height: 1.1; min-width: min(640px, 100%); }
.so-quay.dang-quay { color: var(--muc-3); }
.ket-qua-to { display: grid; gap: 2px; animation: hien-tin .4s var(--em); }
.ket-qua-to span { font-weight: 700; color: #c2410c; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.ket-qua-to strong { font-size: clamp(26px, 4vw, 40px); color: #2b2100; }
.ket-qua-to small { color: #5a4400; font-size: 15px; }
.nut-quay { font-size: 20px; padding: 18px 40px; border-radius: 16px; background: var(--cam); box-shadow: 0 14px 30px -12px rgba(255, 107, 74, .8); }
.nut-quay:hover { background: #f0532f; }
.nut-quay:disabled { background: #c9b98a; box-shadow: none; cursor: not-allowed; transform: none; }
.trang-quay .ghi-chu { color: #6b5300; }
.quay-ben { background: rgba(255, 255, 255, .88); border-radius: 24px; padding: 22px; box-shadow: var(--bong-2); }
.quay-ben h2 { font-size: 20px; margin-bottom: 12px; }
.ds-giai { display: grid; gap: 8px; }
.ds-giai div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 14px; border-radius: 12px; background: #f6f1e2; }
.ds-giai div span { font-weight: 600; }
.ds-giai div strong { color: var(--muc-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-giai div small { grid-column: 1 / -1; color: var(--muc-2); }
.ds-giai div.co { background: var(--mint-nhat); }
.ds-giai div.co strong { color: #00704f; letter-spacing: .05em; }
.phao-giay { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.phao-giay i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: roi linear forwards; }
@keyframes roi { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

/* ================= BAN TỔ CHỨC ================= */
body.trang-btc { background: linear-gradient(180deg, #eef4ff 0%, #f6fbf9 320px, var(--nen) 600px); }
.nhan-btc { background: var(--tim); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.btc { padding-top: 24px; padding-bottom: 48px; }
.btc-dau { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.btc-dau h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.btc-dau .ghi-chu { max-width: 560px; }
.nut-xoa { color: var(--do); }
.tk-luoi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .tk-luoi { grid-template-columns: repeat(2, 1fr); } }
.tk-luoi div { border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; background: var(--chinh-nhat); }
.tk-luoi div:nth-child(2) { background: var(--mint-nhat); }
.tk-luoi div:nth-child(3) { background: var(--vang-nhat); }
.tk-luoi div:nth-child(4) { background: var(--cam-nhat); }
.tk-luoi div:nth-child(5) { background: #f1eeff; }
.tk-luoi span { font-size: 13px; color: var(--muc-2); font-weight: 500; }
.tk-luoi b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.btc-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .btc-hai { grid-template-columns: 1fr; } }
.btc-hai .o-trang { margin-bottom: 20px; }
.thanh-so { margin-bottom: 14px; }
.ts-dau { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 6px; }
.ts-dau span { flex: 1; font-weight: 600; }
.ts-dau b { color: var(--muc-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-ong { height: 10px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.ts-ong i { display: block; height: 100%; border-radius: 999px; background: var(--mau, var(--chinh)); transition: width .5s var(--em); }
.nut-csv { border: 1px solid var(--vien-dam); background: #fff; border-radius: 8px; padding: 2px 9px; font: inherit; font-size: 12px; font-weight: 600; color: var(--chinh); cursor: pointer; }
.nut-csv:hover { background: var(--chinh-nhat); border-color: var(--chinh); }
.cp-hang input { max-width: 100%; }
.cp-kq { margin: 14px 0 0; font-weight: 600; font-size: 16px; padding: 12px 14px; border-radius: 12px; background: #f4f6fa; color: var(--muc-2); }
.cp-kq.tot { background: var(--mint-nhat); color: #00704f; }
.cp-kq.xau { background: var(--cam-nhat); color: #c2410c; }
.cuon-ngang { overflow-x: auto; }
table.bang-btc { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.bang-btc th { text-align: left; font-size: 12px; color: var(--chinh); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
table.bang-btc td { padding: 10px 8px; border-bottom: 1px solid var(--vien); vertical-align: top; color: var(--muc-2); }
table.bang-btc td b { color: var(--muc); display: block; }
table.bang-btc td small { color: var(--muc-3); font-size: 12px; }
.ma-o { font-weight: 600; color: var(--muc) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--mau, var(--chinh)); background: color-mix(in srgb, var(--mau, var(--chinh)) 12%, #fff); }
.nhan-hs-mau { display: inline-block; margin-left: 6px; font-size: 11px; background: var(--vang-nhat); color: #8a6200; border-radius: 6px; padding: 0 6px; font-weight: 600; }
table.bang-btc td b + .nhan-hs-mau { margin-left: 0; }
.bang-dau { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bang-dau h2 { margin: 0; }
.bang-dau h2 small { font-size: 14px; color: var(--muc-3); font-weight: 500; }
.bang-loc { display: flex; gap: 8px; flex-wrap: wrap; }
.bang-loc select, .bang-loc input { width: auto; padding: 8px 12px; font-size: 14px; }
.ds-hoi { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; }
.nhom-hoi { border-left: 4px solid var(--mau, var(--chinh)); padding-left: 12px; }
.nhom-hoi ul { margin: 6px 0 0; padding-left: 18px; color: var(--muc-2); font-size: 14px; }

/* ================= CHÉP TỪ SÀN TUYỂN DỤNG (03/12/2026): chọn ngành gom theo trường, ảnh chân dung, CV nhanh, quà tặng ================= */
/* Giữ nguyên như tuyendung.akane.vn; sửa riêng cho tuyển sinh thì thêm ở cuối file */
/* Chọn vị trí trong form: gom theo doanh nghiệp */
.nhom-vt { border: 1px solid var(--vien-dam); border-radius: 14px; padding: 0; margin-bottom: 10px; background: var(--trang); overflow: hidden; }
.nhom-vt:first-child { padding-top: 0; } .nhom-vt:last-child { border-bottom: 1px solid var(--vien-dam); padding-bottom: 0; margin-bottom: 0; }
.nhom-vt summary { padding: 13px 16px; font-size: 15px; }
.nhom-vt summary .ten { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nhom-vt summary .ten::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mau, var(--chinh)); flex: none; }
.nhom-vt summary small { font-weight: 500; color: var(--muc-3); font-size: 13px; margin-left: auto; white-space: nowrap; }
.nhom-vt summary small.co { color: var(--chinh); font-weight: 600; }
.nhom-vt .chon-truong { padding: 0 12px 12px; }
.chon-truong label span small { display: block; font-weight: 400; color: var(--muc-3); font-size: 12.5px; }

/* CV nhanh */
.hop-cv { background: var(--vang-nhat); border: 1px solid #ffe08a; border-radius: 16px; padding: 18px; display: grid; gap: 16px; }
.cv-xem { background: #fff; border-radius: 14px; box-shadow: var(--bong-2); padding: 22px 22px 22px 28px; position: relative; overflow: hidden; }
.cv-xem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--chinh), var(--mint) 60%, var(--vang-tuoi)); }
.cv-xem .mac { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muc-3); }
.cv-xem h4 { margin: 4px 0 2px; font-size: 24px; line-height: 1.2; }
.cv-xem .lien-he { color: var(--muc-2); font-size: 14px; margin-bottom: 14px; }
.cv-xem h5 { margin: 12px 0 3px; font-size: 12px; font-weight: 600; color: var(--chinh); text-transform: uppercase; letter-spacing: .07em; }
.cv-xem p { margin: 0; font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.cv-xem p.trong { color: var(--muc-3); font-style: italic; }
.xong .tom { text-align: left; max-width: 460px; margin: 16px auto 0; display: grid; gap: 8px; }
.xong .tom div { background: var(--chinh-nhat); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.xong .tom b { display: block; }

/* Tải CV thành PDF: chỉ in riêng bản CV, khổ A4 */
.cv-tai { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cv-tai .ghi-chu { margin: 0; }
.cv-tai .ghi-chu.loi { color: #d92d20; font-weight: 600; }
#banInCV { display: none; }
@page { size: A4; margin: 16mm; }
@media print {
  body.in-cv { background: #fff !important; }
  body.in-cv > *:not(#banInCV) { display: none !important; }
  body.in-cv #banInCV { display: block; box-shadow: none; border-radius: 0; padding: 4mm 0 4mm 12mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.in-cv #banInCV h4 { font-size: 30px; margin: 6px 0 4px; }
  body.in-cv #banInCV .lien-he { font-size: 15px; margin-bottom: 22px; }
  body.in-cv #banInCV h5 { font-size: 13px; margin: 20px 0 5px; }
  body.in-cv #banInCV p { font-size: 15.5px; line-height: 1.6; }
}

/* Ảnh chân dung trong CV */
.cv-anh { display: flex; align-items: center; gap: 16px; }
.cv-anh .o-anh { flex: none; width: 84px; aspect-ratio: 3 / 4; border-radius: 12px; background: #fff; border: 2px dashed #f5c542; display: grid; place-items: center; overflow: hidden; color: var(--muc-3); font-size: 12.5px; font-weight: 500; }
.cv-anh .o-anh:has(img) { border: 0; box-shadow: var(--bong-1); }
.cv-anh .o-anh { position: relative; }
.cv-anh .o-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-anh .ben { display: grid; gap: 8px; min-width: 0; }
.cv-anh .ben b { font-weight: 500; font-size: 14px; }
.cv-anh .ben b small { font-weight: 400; color: var(--muc-3); font-size: 13px; }
.cv-anh .ghi-chu { margin: 0; }
.cv-anh .ghi-chu.loi { color: #d92d20; font-weight: 600; background: none; border: 0; padding: 0; }
.cv-anh label.nut { cursor: pointer; }
.an-tep { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.an-tep:focus-visible + .ghi-chu { outline: 2px solid var(--chinh); outline-offset: 4px; border-radius: 6px; }
.cv-xem .anh { float: right; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin: 0 0 12px 16px; box-shadow: var(--bong-1); }
.cv-xem .anh[hidden] { display: none; }
@media print {
  body.in-cv #banInCV .anh { width: 30mm; border-radius: 2mm; box-shadow: none; margin: 0 0 6mm 8mm; }
}

/* Ảnh chân dung nằm ngoài form chính (bắt buộc) */
.form > .cv-anh { background: var(--chinh-nhat); border: 1px solid #d5e0ff; border-radius: 16px; padding: 16px; }
.form > .cv-anh .o-anh { border-color: #9db5ff; }

/* Quà tặng khi tham dự phiên */
.luoi-qua { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .luoi-qua { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .luoi-qua { grid-template-columns: 1fr; } }
.the-qua { --nen: #eef3ff; --dam: var(--chinh); background: linear-gradient(160deg, var(--nen), #fff 85%); border: 1px solid color-mix(in srgb, var(--dam) 22%, #fff); border-radius: 20px; padding: 22px; box-shadow: var(--bong-1); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.the-qua:hover { transform: translateY(-3px); box-shadow: var(--bong-2); }
.the-qua.vang { --nen: #fff3cf; --dam: #e69500; }
.the-qua.mint { --nen: #dff7ee; --dam: #00a077; }
.the-qua.cam { --nen: #ffe6d6; --dam: #f2671f; }
.the-qua .bt { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--dam) 60%, transparent); margin-bottom: 6px; }
.the-qua h3 { font-size: 18px; letter-spacing: 0; margin: 0; }
.the-qua p { margin: 0; color: var(--muc-2); font-size: 14.5px; }
.the-qua .dk { margin-top: auto; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--dam) 35%, #fff); font-size: 13.5px; }
.the-qua .dk b { color: var(--dam); font-weight: 600; }
#ghiChuQua { margin-top: 14px; }
.form .cv-anh .nut.nho { padding: 9px 16px; }

/* Nhãn nổi thứ ba ở bảng đếm ngược: quà tặng */
.noi-nhan.c { top: -18px; left: -14px; --c: var(--mint); transform: rotate(-3deg); color: inherit; text-decoration: none; transition: transform .2s; }
.noi-nhan.c:hover { transform: rotate(-3deg) translateY(-2px); }
.noi-nhan.c::after { content: "→"; color: var(--mint); font-weight: 700; }
.noi-nhan[hidden] { display: none; }
@media (max-width: 900px) {
  .noi-nhan.c { top: auto; bottom: -68px; left: auto; right: 16px; transform: rotate(2deg); }
  .noi-nhan.c:hover { transform: rotate(2deg) translateY(-2px); }
  .dem-bao:has(.noi-nhan.c:not([hidden])) { margin-bottom: 58px; }
}

/* Trạng thái kiểm tra khuôn mặt */
.cv-anh.dang .o-anh { border-style: solid; animation: nhip-anh 1s ease-in-out infinite alternate; }
.cv-anh.dang .o-anh span { visibility: hidden; }
@keyframes nhip-anh { from { background: #fff; } to { background: #cfdcff; } }
.cv-anh .ghi-chu.on { color: #00875f; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cv-anh.dang .o-anh { animation: none; } }

/* Quà có hình minh hoạ */
.luoi-qua-hinh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .luoi-qua-hinh { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.luoi-qua-hinh[hidden], .cach-nhan[hidden] { display: none; }
.the-qua-hinh { --nen1: #dfe8ff; --nen2: #f3f6ff; background: #fff; border: 1px solid var(--vien); border-radius: 22px; overflow: hidden; box-shadow: var(--bong-1); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.the-qua-hinh:hover { transform: translateY(-4px); box-shadow: var(--bong-2); }
.the-qua-hinh.mint { --nen1: #c9f3e3; --nen2: #effcf6; }
.the-qua-hinh.cam { --nen1: #ffd9c2; --nen2: #fff3ea; }
.the-qua-hinh.vang { --nen1: #ffe9a8; --nen2: #fff9e3; }
.the-qua-hinh .khu-hinh { aspect-ratio: 4 / 3; background: radial-gradient(circle at 30% 25%, #fff 0, transparent 55%), linear-gradient(150deg, var(--nen1), var(--nen2)); display: grid; place-items: center; }
.the-qua-hinh .khu-hinh svg { width: 100%; height: 100%; display: block; transition: transform .3s; }
.the-qua-hinh:hover .khu-hinh svg { transform: scale(1.05) rotate(-2deg); }
.the-qua-hinh .khu-hinh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.the-qua-hinh .chu { padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.the-qua-hinh h3 { font-size: 16.5px; letter-spacing: 0; margin: 0; }
.the-qua-hinh .nhan-mau { font-size: 12px; font-weight: 600; color: var(--muc-2); background: #f1f4f9; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.the-qua-hinh.khac { border-style: dashed; border-color: #f5c542; }
.cach-nhan { font-size: 18px; letter-spacing: 0; margin: 32px 0 14px; }
@media (prefers-reduced-motion: reduce) { .the-qua-hinh:hover .khu-hinh svg { transform: none; } }

/* ================= PHẦN RIÊNG SÀN TUYỂN SINH (thêm sau khi chép từ tuyển dụng) ================= */
#qua .nhan-khoi { background: var(--cam-nhat); color: #d2401f; }
.o-ten { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; align-items: center; }
.o-ten .anh-nho { grid-row: span 3; width: 34px; height: 45px; border-radius: 8px; overflow: hidden; background: var(--chinh-nhat); color: var(--chinh); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.o-ten .anh-nho img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-ten .anh-nho.can-xem { box-shadow: 0 0 0 2px var(--cam); }
.o-ten .nhan-hs-mau { justify-self: start; margin-left: 0; }
.chip.cv-chip { --mau: #00a077; }

/* ----- Màn hình live kiểu camera giám sát (trang chủ) ----- */
#man-hinh { padding-top: 40px; padding-bottom: 24px; }
#man-hinh .nhan-khoi { background: #ffe8e6; color: #d92d20; }
.man-hinh { background: var(--trang); border-radius: 22px; padding: 14px; box-shadow: var(--bong-2); border: 1px solid var(--vien); }
.mh-thanh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--muc-2); }
.mh-thanh .mh-gio { font-variant-numeric: tabular-nums; color: var(--muc-3); font-weight: 500; }
.cham-xam { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b8c2d3; vertical-align: middle; }
.luoi-cam { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.o-cam { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #f4f6fb; border: 1px solid var(--vien); transition: transform .18s var(--em), box-shadow .18s var(--em); }
.o-cam:hover { transform: translateY(-2px); box-shadow: var(--bong-2); }
.o-cam:focus-visible { outline: 3px solid var(--chinh); outline-offset: 2px; }
.o-cam.dang { border-color: transparent; box-shadow: 0 0 0 2px #ff3b30, 0 10px 26px -10px rgba(255, 59, 48, .55); }
.man { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mau, var(--chinh)); color: #fff; }
.man img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gia-lap { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .45), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--mau, var(--chinh)) 72%, #fff) 0%, var(--mau, var(--chinh)) 100%); }
.gia-lap::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); animation: quet-cam 5s linear infinite; }
.gia-lap b { font-size: 34px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(15, 23, 42, .18); }
.gia-lap small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.o-cam.dang .gia-lap b { animation: tho-cam 2.4s ease-in-out infinite; }
@keyframes quet-cam { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
@keyframes tho-cam { 50% { transform: scale(1.08); } }
.goc { position: absolute; inset: 9px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(#fff, #fff) top left / 16px 2px, linear-gradient(#fff, #fff) top left / 2px 16px,
    linear-gradient(#fff, #fff) top right / 16px 2px, linear-gradient(#fff, #fff) top right / 2px 16px,
    linear-gradient(#fff, #fff) bottom left / 16px 2px, linear-gradient(#fff, #fff) bottom left / 2px 16px,
    linear-gradient(#fff, #fff) bottom right / 16px 2px, linear-gradient(#fff, #fff) bottom right / 2px 16px;
  background-repeat: no-repeat; }
.cam-so, .cam-gio { position: absolute; font-size: 11px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(15, 23, 42, .45); }
.cam-so { top: 15px; left: 24px; }
.cam-gio { bottom: 14px; left: 24px; }
.cam-nhan { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--muc); }
.cam-nhan i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nhay-do 1.4s infinite; }
.o-cam.dang .cam-nhan { background: #ff3b30; color: #fff; }
.o-cam.sap .cam-nhan { background: var(--vang-tuoi, #ffd23f); }
.cam-phat { position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(15, 23, 42, .2); transform: scale(.85); opacity: .9; transition: transform .18s var(--em), opacity .18s; }
.cam-phat::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--mau, var(--chinh)); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.o-cam:hover .cam-phat { transform: scale(1); opacity: 1; }
.o-chan { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px 12px; background: var(--trang); }
.o-chan b { font-size: 15px; font-weight: 700; }
.o-chan small { font-size: 12.5px; color: var(--muc-2); line-height: 1.4; }
.o-cam.dang .o-chan small { color: #d92d20; font-weight: 600; }

/* Khung xem to */
.khoa-cuon { overflow: hidden; }
.hop-cam { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--trang); color: var(--muc); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); overflow: auto; }
.hop-cam::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); }
.hop-cam[open] { animation: mo-hop .22s var(--em); }
@keyframes mo-hop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.hc-khung { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.hc-dong { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f4f9; color: var(--muc); font-size: 24px; line-height: 1; cursor: pointer; }
.hc-dong:hover { background: #e4e9f2; }
.hc-trai { padding: 16px; background: color-mix(in srgb, var(--mau, var(--chinh)) 7%, #fff); }
.hc-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--mau, var(--chinh)); color: #fff; }
.hc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gia-lap.lon b { font-size: 64px; }
.gia-lap.lon span { font-weight: 700; font-size: 16px; }
.gia-lap.lon small { max-width: 320px; margin-top: 6px; }
.hc-nguon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hc-nguon button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--vien-dam); background: #fff; color: var(--muc-2); cursor: pointer; }
.hc-nguon button.chon { background: var(--mau, var(--chinh)); border-color: transparent; color: #fff; }
.hc-nguon button.chon .cham-do { background: #fff; }
.hc-phai { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.hc-phai .ten-hang { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.hc-phai h3 { font-size: 21px; }
.hc-nhan { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f6; color: var(--muc-2); margin-bottom: 4px; }
.hc-nhan.dang { background: #ff3b30; color: #fff; }
.hc-nhan.sap { background: #fff3c4; color: #8a5a00; }
.hc-gt { margin: 0; font-size: 14.5px; color: var(--muc-2); }
.hc-nganh { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-nganh span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--mau, var(--chinh)) 10%, #fff); color: color-mix(in srgb, var(--mau, var(--chinh)) 80%, #0f172a); }
.hc-nganh span.them { background: #f1f4f9; color: var(--muc-2); }
.hc-lich { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muc-2); display: grid; gap: 4px; }
.hc-lich li::before { content: "● "; color: var(--mau, var(--chinh)); }
.hc-phai .hang-nut { margin-top: auto; }
.hc-chuyen { display: flex; justify-content: space-between; border-top: 1px solid var(--vien); padding-top: 10px; }
.hc-chuyen button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muc-2); background: none; border: 0; cursor: pointer; padding: 4px 2px; }
.hc-chuyen button:hover { color: var(--chinh); }
@media (max-width: 760px) {
  .man-hinh { padding: 10px; border-radius: 18px; }
  .luoi-cam { grid-template-columns: 1fr 1fr; gap: 8px; }
  .o-chan { padding: 8px 10px 10px; }
  .o-chan b { font-size: 13.5px; }
  .o-chan small { font-size: 11.5px; }
  .gia-lap b { font-size: 24px; }
  .cam-so { top: 10px; left: 11px; font-size: 9.5px; }
  .cam-gio { display: none; }
  .cam-nhan { top: 8px; right: 8px; font-size: 9px; padding: 2px 6px; }
  .cam-phat { width: 26px; height: 26px; right: 8px; bottom: 8px; }
  .cam-phat::after { left: 10px; top: 7px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
  .goc { inset: 6px; }
  .hop-cam { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .hc-khung { grid-template-columns: 1fr; }
  .hc-trai { padding: 0 0 12px; }
  .hc-video { border-radius: 0; }
  .hc-nguon { padding: 0 14px; }
  .hc-phai { padding: 6px 16px 20px; }
  .hc-dong { background: rgba(255, 255, 255, .92); }
}
@media (prefers-reduced-motion: reduce) {
  .gia-lap::after, .o-cam.dang .gia-lap b, .hop-cam[open] { animation: none; }
}
