/* Luxwave · Dự án — giao diện chung (điện thoại trước, 390px) */
:root {
  --nen: #f2f4f7; --the: #ffffff; --chu: #161a21; --phu: #5c6573; --nhat: #8a93a0; --vien: #e2e6ec; --vien2: #d3d9e1;
  --navy: #0f2747; --chinh: #1a56c4; --chinh-dam: #1446a3; --chinh-nhat: #e9f0fc;
  --xanh: #15803d; --xanh-nhat: #e7f6ec; --zalo: #0068ff; --vang: #a86400; --vang-nhat: #fff3dc; --do: #c0262d; --do-nhat: #fdeaea;
  --bo: 14px; --bong: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; }
a { color: var(--chinh); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.an { display: none !important; }
.nho { font-size: 14px; color: var(--phu); }
.nhat { color: var(--nhat); }

/* ── đầu trang ── */
.dau { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.dau-trong { max-width: 1040px; margin: 0 auto; height: 56px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thuong-hieu { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 17px; white-space: nowrap; }
.thuong-hieu b { font-weight: 750; letter-spacing: .2px; }
.thuong-hieu img { display: block; border-radius: 7px; }
.menu-tk { position: relative; }
.menu-tk summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 6px 6px 6px; border-radius: 999px; min-height: 44px; }
.menu-tk summary::-webkit-details-marker { display: none; }
.menu-tk summary:hover, .menu-tk[open] summary { background: rgba(255, 255, 255, .1); }
.avt { width: 34px; height: 34px; border-radius: 50%; background: #f0b429; color: #3b2600; display: grid; place-items: center; font-weight: 750; font-size: 16px; flex: none; }
.ten-tk { font-size: 15px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 4px; }
.menu-ds { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--chu); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .22); min-width: 230px; padding: 6px; z-index: 40; }
.menu-ai { padding: 10px 12px 10px; border-bottom: 1px solid var(--vien); margin-bottom: 4px; display: grid; gap: 2px; }
.menu-ai span { font-size: 13px; color: var(--phu); }
.menu-ds a, .menu-ds button { display: block; width: 100%; text-align: left; padding: 12px; border-radius: 8px; color: var(--chu); background: none; border: 0; cursor: pointer; font-size: 16px; }
.menu-ds a:hover, .menu-ds button:hover { background: var(--nen); }
.menu-ds form { margin: 0; }
.menu-ds form button { color: var(--do); }

/* ── khung ── */
.khung { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.khung.hep { max-width: 760px; }
.khung.vua { max-width: 980px; }
.khung.rat-hep { max-width: 440px; }
.tieu-de-trang { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.tieu-de-trang h1 { font-size: 22px; }
button.ve { background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; }
.ve { display: inline-flex; align-items: center; gap: 4px; color: var(--phu); font-size: 15px; padding: 8px 0; min-height: 40px; }

/* ── thẻ, nút ── */
.the { background: var(--the); border-radius: var(--bo); box-shadow: var(--bong); padding: 16px; }
.the + .the { margin-top: 12px; }
.the-loi { text-align: center; padding: 28px 20px; margin-top: 24px; }
.the-loi h1 { font-size: 22px; margin-bottom: 8px; }
.the-loi p { color: var(--phu); }
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--vien2); background: #fff; color: var(--chu); font-weight: 600; font-size: 16px; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.nut:hover { background: #f7f8fa; }
.nut:active { transform: translateY(1px); }
.nut:disabled { opacity: .55; cursor: default; transform: none; }
.nut.chinh { background: var(--chinh); border-color: var(--chinh); color: #fff; }
.nut.chinh:hover { background: var(--chinh-dam); }
.nut.goi { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.nut.zalo { background: var(--zalo); border-color: var(--zalo); color: #fff; }
.nut.nguy { color: var(--do); border-color: #f0c4c6; }
.nut.nho-nut { min-height: 40px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
.nut svg { width: 19px; height: 19px; flex: none; }
.hang-nut { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hang-nut.hai { grid-template-columns: repeat(2, 1fr); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef1f5; color: #3b4452; white-space: nowrap; }
.chip.uu-A { background: var(--vang-nhat); color: var(--vang); }
.chip.uu-B { background: var(--chinh-nhat); color: var(--chinh-dam); }
.chip.uu-C { background: #eef1f5; color: #4b5563; }
.chip.do { background: var(--do-nhat); color: var(--do); }
.chip.xanh { background: var(--xanh-nhat); color: var(--xanh); }
.chip.vien { background: #fff; border: 1px solid var(--vien2); }

/* ── ô nhập ── */
.o-nhap { display: grid; gap: 6px; margin-bottom: 14px; }
.o-nhap label { font-weight: 600; font-size: 15px; }
.o-nhap input, .o-nhap select, .tim-o input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--vien2); border-radius: 12px; background: #fff; font-size: 17px; outline: none; }
.o-nhap input:focus, .o-nhap select:focus, .tim-o input:focus { border-color: var(--chinh); box-shadow: 0 0 0 3px rgba(26, 86, 196, .15); }
.o-mk { position: relative; }
.o-mk input { padding-right: 64px; }
.o-mk button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--chinh); font-size: 14px; font-weight: 600; padding: 10px 8px; cursor: pointer; }
.bao { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.bao.loi { background: var(--do-nhat); color: #8f1d22; }
.bao.ok { background: var(--xanh-nhat); color: #0f5e2c; }
.bao.vang { background: var(--vang-nhat); color: #7a4a00; }

/* ── trang đăng nhập ── */
.trang-dn { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 48px; background: radial-gradient(120% 60% at 50% 0, #1b3a66 0, var(--navy) 60%); }
.dn-logo { color: #fff; text-align: center; margin-bottom: 22px; }
.dn-logo img { width: 56px; height: 56px; border-radius: 14px; display: block; margin: 0 auto 12px; }
.dn-logo .chu-logo { font-size: 26px; letter-spacing: .3px; }
.dn-logo .chu-logo b { font-weight: 800; }
.dn-logo p { margin: 6px 0 0; color: #b9c6dc; font-size: 15px; }
.dn-the { width: 100%; max-width: 400px; padding: 22px 18px 18px; }
.dn-the h1 { font-size: 21px; margin-bottom: 16px; }
.dn-the .nut { width: 100%; margin-top: 4px; }
.dn-ghi { margin-top: 18px; color: #8ea3c4; font-size: 13px; text-align: center; }
.dn-chan { margin-top: 16px; text-align: center; font-size: 14px; color: var(--phu); }

/* ── trang chủ ── */
.chao { margin: 4px 0 18px; }
.chao h1 { font-size: 25px; }
.chao p { margin: 4px 0 0; color: var(--phu); }
.luoi-o { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.o-lon { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 16px; box-shadow: var(--bong); padding: 16px; color: var(--chu); min-height: 150px; position: relative; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.o-lon:hover { border-color: var(--vien2); box-shadow: 0 6px 18px rgba(16, 24, 40, .1); }
.o-lon .bieu { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--chinh-nhat); color: var(--chinh); }
.o-lon .bieu svg { width: 26px; height: 26px; }
.o-lon h2 { font-size: 18px; }
.o-lon p { margin: 0; font-size: 14.5px; color: var(--phu); line-height: 1.4; }
.o-lon .ra-ngoai { position: absolute; top: 14px; right: 14px; color: var(--nhat); }
.o-lon .ra-ngoai svg { width: 18px; height: 18px; }
.o-lon.chinh { grid-column: 1 / -1; background: var(--chinh); color: #fff; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 18px 16px; }
.o-lon.chinh .bieu { background: rgba(255, 255, 255, .16); color: #fff; width: 54px; height: 54px; flex: none; }
.o-lon.chinh .bieu svg { width: 30px; height: 30px; }
.o-lon.chinh h2 { font-size: 20px; }
.o-lon.chinh p { color: #d6e2fb; margin-top: 3px; }
.o-lon.chinh .mui { margin-left: auto; flex: none; opacity: .9; }
.o-lon.chinh .mui svg { width: 22px; height: 22px; }
.o-lon .ghi { font-size: 13px; color: var(--vang); font-weight: 600; margin-top: auto; display: flex; align-items: center; gap: 5px; }
.o-lon .ghi svg { width: 14px; height: 14px; flex: none; }
@media (min-width: 760px) {
  .luoi-o { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .o-lon.chinh { padding: 24px; }
  .o-lon { min-height: 170px; padding: 20px; }
  .chao h1 { font-size: 30px; }
}

/* ── tra khách ── */
.tim-dinh { position: sticky; top: 56px; z-index: 20; background: var(--nen); padding: 12px 0 10px; margin: -8px 0 0; }
.tim-o { position: relative; }
.tim-o input { min-height: 54px; padding: 0 48px 0 46px; font-size: 17px; border-radius: 14px; box-shadow: var(--bong); border-color: var(--vien); }
.tim-o .kinh { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: var(--nhat); pointer-events: none; }
.tim-o .xoa { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: var(--nhat); cursor: pointer; display: grid; place-items: center; }
.tim-o .xoa svg { width: 20px; height: 20px; }
.goi-y { margin-top: 10px; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); overflow-y: auto; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overscroll-behavior: contain; }
.goi-y .dem { padding: 10px 14px; font-size: 13.5px; color: var(--phu); border-bottom: 1px solid var(--vien); }
.goi-y button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--vien); padding: 12px 14px; cursor: pointer; }
.goi-y button:last-child { border-bottom: 0; }
.goi-y button:hover, .goi-y button.dang { background: #f6f8fb; }
.goi-y .t { font-weight: 650; font-size: 16px; line-height: 1.3; }
.goi-y .p { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; color: var(--phu); }
.goi-y .p .tx { margin-right: 2px; }
.goi-y .rong { padding: 16px 14px; color: var(--phu); font-size: 15px; }
.huong-dan { text-align: center; padding: 28px 12px 8px; color: var(--phu); }
.huong-dan .to { font-size: 18px; color: var(--chu); font-weight: 650; margin-bottom: 6px; }
.huong-dan .so-lieu { margin-top: 14px; font-size: 14px; }
.vi-du { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.vi-du button { border: 1px solid var(--vien2); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14.5px; cursor: pointer; color: var(--chu); }

.hs-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.hs-dau .ve { padding: 6px 0; }
.ho-so .the { padding: 16px; }
.hs-ten { font-size: 19px; font-weight: 750; letter-spacing: .1px; line-height: 1.3; overflow-wrap: anywhere; }
.hs-phu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }
.hs-dong { margin-top: 8px; font-size: 14px; color: var(--phu); }
.ly-do { margin-top: 12px; font-size: 14.5px; color: #3b4452; background: #f6f8fb; border-radius: 10px; padding: 9px 11px; }
.lien-he { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vien); }
.lh-dong { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 16px; margin-bottom: 10px; align-items: center; }
.lh-dong .sdt { font-weight: 700; font-size: 18px; letter-spacing: .3px; white-space: nowrap; }
.lh-dong .email { color: var(--chu); overflow-wrap: anywhere; }
.lh-dong svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--phu); margin-right: 5px; }
.lh-them { margin-top: 10px; display: grid; gap: 6px; font-size: 15px; }
.lh-them .dong-sdt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lh-nguon { margin-top: 9px; font-size: 12.5px; color: var(--nhat); }
.giao { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--xanh); background: var(--xanh-nhat); padding: 5px 10px; border-radius: 8px; }
.khong-lh { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vien); color: var(--phu); font-size: 15px; }
.so { display: grid; gap: 7px; }
.so .dong { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 16px; }
.so .dong span:first-child { color: var(--phu); }
.so .dong b { font-weight: 700; text-align: right; }
.so .dong.lon b { font-size: 18px; }
.muc { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); margin-top: 10px; overflow: hidden; }
.muc > summary { list-style: none; cursor: pointer; padding: 15px 16px; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16.5px; min-height: 54px; -webkit-tap-highlight-color: transparent; }
.muc > summary::-webkit-details-marker { display: none; }
.muc > summary .mui { width: 18px; height: 18px; color: var(--nhat); transition: transform .15s; flex: none; }
.muc[open] > summary .mui { transform: rotate(90deg); }
.muc > summary .sl { color: var(--phu); font-weight: 500; }
.muc > summary .ai-nhan { margin-left: auto; font-size: 12px; font-weight: 700; color: #6d28d9; background: #f1eafe; padding: 2px 8px; border-radius: 999px; }
.muc .than { padding: 0 16px 14px; }
.ds-dong { list-style: none; margin: 0; padding: 0; }
.ds-dong li { padding: 11px 0; border-top: 1px solid var(--vien); }
.ds-dong li:first-child { border-top: 0; padding-top: 2px; }
.ds-dong .t { font-weight: 600; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ds-dong a.t { color: var(--chinh); display: inline; }
.ds-dong .p { font-size: 14px; color: var(--phu); margin-top: 3px; line-height: 1.4; }
.ds-dong .p b { color: var(--chu); font-weight: 650; }
.ds-dong .ngay { font-size: 13px; color: var(--nhat); font-weight: 600; }
.nhom-nho { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--phu); text-transform: uppercase; letter-spacing: .4px; }
.bang-nam { width: 100%; border-collapse: collapse; font-size: 15px; }
.bang-nam th { text-align: left; font-size: 13px; color: var(--phu); font-weight: 600; padding: 4px 0 6px; }
.bang-nam td { padding: 8px 0; border-top: 1px solid var(--vien); }
.bang-nam td:not(:first-child), .bang-nam th:not(:first-child) { text-align: right; }
.cach-chao { font-size: 16px; line-height: 1.55; background: #f6f8fb; border-radius: 10px; padding: 12px; margin: 0 0 12px; white-space: pre-line; }
.sp { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--vien); }
.sp:first-of-type { border-top: 0; }
.sp .ma { font-weight: 700; white-space: nowrap; }
.sp .ld { font-size: 14px; color: var(--phu); }
.ai-chu { font-size: 16px; line-height: 1.6; white-space: pre-line; background: #faf7ff; border: 1px solid #ece3fd; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ai-chu b { color: #4c1d95; }
.chan-trang { margin: 22px 4px 0; font-size: 12.5px; color: var(--nhat); line-height: 1.5; text-align: center; }
.xem-them { display: block; width: 100%; margin-top: 8px; background: none; border: 1px dashed var(--vien2); border-radius: 10px; padding: 10px; color: var(--chinh); font-weight: 600; cursor: pointer; font-size: 15px; }
.cho { display: flex; align-items: center; gap: 10px; color: var(--phu); padding: 6px 0; font-size: 15px; }
.xoay { width: 20px; height: 20px; border: 3px solid #d9def0; border-top-color: var(--chinh); border-radius: 50%; animation: xoay .8s linear infinite; flex: none; }
@keyframes xoay { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1f2937; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; transition: .2s; z-index: 99; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.hien { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 760px) {
  .ho-so .luoi-hs { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: start; }
  .ho-so .luoi-hs .the + .the { margin-top: 0; }
  .hs-ten { font-size: 22px; }
}

/* ── tài liệu ── */
.tl-nhom { margin-top: 18px; }
.tl-nhom h2 { font-size: 16px; color: var(--phu); font-weight: 700; margin: 0 4px 8px; display: flex; gap: 8px; align-items: baseline; }
.tl-nhom h2 span { font-weight: 500; font-size: 14px; }
.tl-ds { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); overflow: hidden; }
.tl-tep { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-top: 1px solid var(--vien); }
.tl-tep:first-child { border-top: 0; }
.tl-tep .bieu-tep { width: 40px; height: 40px; border-radius: 10px; background: #fdecec; color: #c0262d; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; letter-spacing: .3px; }
.tl-tep .bieu-tep.khac { background: #eef1f5; color: #4b5563; }
.tl-tep a.ten-tep { flex: 1; min-width: 0; color: var(--chu); }
.tl-tep .ten-tep b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.tl-tep .ten-tep span { display: block; font-size: 13.5px; color: var(--phu); margin-top: 2px; }
.tl-tep .tai { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--chinh); border: 1px solid var(--vien2); background: #fff; }
.tl-tep .tai svg { width: 20px; height: 20px; }
.trong { text-align: center; padding: 40px 16px; color: var(--phu); }
.trong .to { font-size: 18px; color: var(--chu); font-weight: 650; margin-bottom: 4px; }

/* ── quản lý ── */
.ql-tk { display: grid; gap: 10px; }
.tk { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); padding: 14px 16px; }
.tk-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tk-dau .ten { font-weight: 700; font-size: 17px; }
.tk-dau .u { font-size: 14px; color: var(--phu); }
.tk .tt { font-size: 13.5px; color: var(--phu); margin-top: 6px; }
.tk .viec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tk .viec select { min-height: 40px; width: 100%; border: 1px solid var(--vien2); border-radius: 10px; padding: 0 10px; background: #fff; font-size: 15px; }
.tk.khoa { opacity: .75; background: #fafafa; }
.mk-hien { margin-top: 12px; background: var(--xanh-nhat); border-radius: 12px; padding: 14px; }
.mk-hien .mk { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: 1px; margin: 6px 0 10px; user-select: all; color: #0f5e2c; }
.mk-hien p { margin: 0; font-size: 14px; color: #285c3c; }
.mk-hien .hang-nut { margin-top: 10px; }
.nk { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nk li { padding: 9px 0; border-top: 1px solid var(--vien); display: flex; gap: 10px; }
.nk li:first-child { border-top: 0; }
.nk .gio { color: var(--nhat); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 86px; }
.nk .nd { overflow-wrap: anywhere; }
.phan { margin-top: 26px; }
.phan > h2 { font-size: 18px; margin: 0 2px 10px; }
.luoi-tao { display: grid; gap: 0; }
@media (min-width: 760px) {
  .luoi-tao { grid-template-columns: 1fr 1fr 160px; gap: 12px; }
  .ql-tk { grid-template-columns: 1fr 1fr; }
}
