:root {
  --chinh: #0f5f58;
  --chinh-dam: #0a443f;
  --chinh-nhat: #e6f2ef;
  --vang: #f2b63c;
  --nen: #f6f4ee;
  --the: #ffffff;
  --chu: #1d2725;
  --chu-phu: #5d6b68;
  --vien: #e3e0d6;
  --do: #b4372b;
  --xanh-la: #1f8a4c;
  --bo: 18px;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--nen); color: var(--chu); padding-bottom: 96px; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.dau { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--the); border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 5; }
.thuong-hieu { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--chinh-dam); }
.logo { background: var(--chinh); color: var(--vang); border-radius: 12px; padding: 8px 9px; font-size: 15px; letter-spacing: .5px; }
.anh-dai-dien { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chinh-nhat); color: var(--chinh); font-weight: 700; }

.man { max-width: 560px; margin: 0 auto; padding: 0 0 8px; }
.bang-so-du { background: linear-gradient(160deg, var(--chinh) 0%, var(--chinh-dam) 100%); color: #fff; text-align: center; padding: 26px 16px 70px; }
.bang-so-du.nho { padding-bottom: 28px; }
.chao { margin: 0 0 6px; font-weight: 600; color: var(--vang); }
.nhan { margin: 0; opacity: .85; }
.so-lon { margin: 4px 0 18px; font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.phu-trang { margin: 0; opacity: .8; font-size: 14px; }
.hai-o { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.o { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.o b { font-size: 20px; }
.o span { font-size: 13px; opacity: .85; }
.nut-trang { background: #fff; color: var(--chinh-dam); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; }

.the { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); margin: 14px 16px; padding: 18px 16px; }
.the.noi-len { margin-top: -48px; position: relative; box-shadow: 0 10px 30px rgba(15,95,88,.12); }
.the.trung-tam { text-align: center; margin-top: 28px; }
.the h1 { font-size: 22px; margin: 8px 0 12px; }
.the h2 { font-size: 19px; margin: 2px 0 12px; }
.the h3 { font-size: 16px; margin: 0 0 2px; }
.tieu-de-nho { margin: 0; color: var(--chinh); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.phu { color: var(--chu-phu); font-size: 14px; margin: 0 0 10px; }
.bieu-tuong-lon { font-size: 44px; }
.buoc { text-align: left; line-height: 1.7; padding-left: 22px; }
code { background: var(--chinh-nhat); color: var(--chinh-dam); padding: 2px 6px; border-radius: 6px; font-weight: 700; }

.hang-nhap { display: flex; gap: 8px; margin-bottom: 10px; }
input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--vien); border-radius: 14px; background: #fff; color: var(--chu); }
input:focus { outline: none; border-color: var(--chinh); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--chu-phu); }
.cot { display: flex; flex-direction: column; gap: 12px; }
.nut-chinh { width: 100%; border: 0; border-radius: 14px; padding: 15px; background: var(--chinh); color: #fff; font-weight: 700; font-size: 17px; }
.nut-chinh:disabled { opacity: .6; }
.nut-vien { border: 1.5px solid var(--chinh); background: #fff; color: var(--chinh); border-radius: 14px; padding: 0 18px; font-weight: 700; }
.nut-vien.rong { padding: 13px; }
.nut-chu { display: block; margin: 8px auto 20px; background: none; border: 0; color: var(--do); font-weight: 600; }

.ket-qua { margin-top: 14px; background: var(--chinh-nhat); border-radius: 14px; padding: 14px; }
.ket-qua .ten-sp { font-weight: 700; margin: 0 0 6px; }
.ket-qua .link { word-break: break-all; font-size: 14px; color: var(--chinh-dam); margin: 0 0 10px; }
.ket-qua .hai-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ket-qua .hai-nut a, .ket-qua .hai-nut button { text-align: center; text-decoration: none; padding: 11px; border-radius: 12px; font-weight: 700; }
.ket-qua .hai-nut a { background: var(--chinh); color: #fff; }
.ket-qua .hai-nut button { background: #fff; border: 1.5px solid var(--chinh); color: var(--chinh); }
.ket-qua.loi { background: #fbebe8; color: var(--do); }

.luoi-nhanh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.luoi-nhanh button { background: var(--the); border: 1px solid var(--vien); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--chu); }
.luoi-nhanh span { font-size: 24px; }

.buoc-so { display: flex; gap: 12px; margin: 14px 0; }
.buoc-so > b { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--chinh-nhat); color: var(--chinh); display: grid; place-items: center; }
.buoc-so p { margin: 0; color: var(--chu-phu); font-size: 15px; line-height: 1.5; }

.danh-sach { list-style: none; margin: 0; padding: 0; }
.danh-sach li { border-top: 1px solid var(--vien); padding: 12px 0; display: flex; justify-content: space-between; gap: 10px; }
.danh-sach li:first-child { border-top: 0; }
.danh-sach .trai { min-width: 0; }
.danh-sach .trai p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danh-sach .trai small { color: var(--chu-phu); }
.danh-sach .phai { text-align: right; flex-shrink: 0; }
.danh-sach a { color: var(--chinh); font-weight: 600; text-decoration: none; }
.danh-sach .trong { color: var(--chu-phu); justify-content: center; text-align: center; }
.nhan-tt { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-top: 4px; }
.tt-cho, .tt-hoan_thanh { background: #fff4dc; color: #8a5a00; }
.tt-da_xac_thuc, .tt-da_tra { background: #e3f4ea; color: var(--xanh-la); }
.tt-huy, .tt-tu_choi { background: #fbebe8; color: var(--do); }

.canh-bao { background: #fff4dc; color: #8a5a00; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.thong-bao { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: var(--chinh-nhat); color: var(--chinh-dam); white-space: pre-line; }
.thong-bao.loi { background: #fbebe8; color: var(--do); }

.thanh-duoi { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(520px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--the); border: 1px solid var(--vien); border-radius: 22px; box-shadow: 0 8px 28px rgba(0,0,0,.1); padding: 6px; z-index: 10; }
.thanh-duoi button { background: none; border: 0; border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--chu-phu); }
.thanh-duoi button span { font-size: 20px; }
.thanh-duoi .dang-chon { background: var(--chinh-nhat); color: var(--chinh-dam); }

.thong-bao-noi { position: fixed; left: 50%; transform: translateX(-50%); bottom: 100px; background: var(--chu); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 20; }
@media (min-width: 600px) {
  .bang-so-du { border-radius: 0 0 28px 28px; }
}
