/* Trang khách tự đăng ký xin mã — 06/10/2026.
   Dùng lại bảng màu của trang quản lý nhưng là trang CÔNG KHAI: chữ to hơn, ít nút hơn, đọc trên điện thoại là chính. */
:root {
  --nen: #f3f5f8;
  --the: #ffffff;
  --chu: #14202b;
  --mo: #5b6b7a;
  --vien: #dde3ea;
  --chinh: #0f5c8c;
  --chinh-dam: #0b4468;
  --chinh-nhat: #e3f0f8;
  --xanh: #11805a;
  --xanh-nhat: #e2f5ec;
  --cam: #c26a00;
  --cam-nhat: #fff1dc;
  --do: #c0342b;
  --dau: #0f3d5c;
  --bo: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--chinh); }
.mo { color: var(--mo); }

.dau { background: var(--dau); color: #fff; padding-top: env(safe-area-inset-top); }
.dau-trong {
  max-width: 540px; margin: 0 auto; padding: 11px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 16px;
}
.dau .logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.dau .logo img { display: block; }

.than { max-width: 540px; margin: 0 auto; padding: 18px 16px 48px; }
h1 { font-size: 22px; margin: 4px 0 6px; }
.than > section > .mo { margin: 0 0 18px; }
.dang-tai { color: var(--mo); text-align: center; padding: 30px 0; margin: 0; }

/* ---------- biểu mẫu ---------- */
form { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 16px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
form > label:first-of-type { margin-top: 0; }
input, select {
  width: 100%; min-width: 0; min-height: 48px;
  border: 1px solid var(--vien); border-radius: 10px; padding: 10px 12px;
  background: #fff; font: inherit; color: inherit;
}
input:focus, select:focus, .nut:focus-visible { outline: 2px solid #7fb6da; outline-offset: 1px; }
.gy { color: var(--mo); font-size: 13.5px; margin: 6px 0 0; }
.nhom-lien-he {
  margin: 18px 0 0; padding: 12px 13px 14px;
  border: 1px solid var(--vien); border-radius: 11px; background: #fbfcfd;
}
.nhom-lien-he legend { font-weight: 700; font-size: 14px; padding: 0 5px; }
.nhom-lien-he label { margin-top: 11px; }
.nhom-lien-he .gy { margin: 0; }

.nut {
  appearance: none; border: 1px solid var(--vien); background: var(--the);
  border-radius: 10px; padding: 10px 16px; min-height: 46px;
  cursor: pointer; font: inherit; font-weight: 600; color: inherit; touch-action: manipulation;
}
.nut:hover { border-color: #b9c4cf; }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.nut.chinh { background: var(--chinh); border-color: var(--chinh); color: #fff; }
.nut.chinh:hover:not(:disabled) { background: var(--chinh-dam); }
.nut.to { width: 100%; min-height: 52px; font-size: 17px; margin-top: 18px; }
.nut.nho { min-height: 40px; padding: 7px 13px; font-size: 14.5px; }
.loi-chu { color: var(--do); margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.loi-chu:empty { min-height: 0; margin: 0; }

/* ---------- thẻ đơn ---------- */
.the {
  background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo);
  padding: 18px 16px; margin-bottom: 14px;
}
.the h2 { font-size: 19px; margin: 0 0 4px; }
.the p { margin: 0 0 10px; }
.the p:last-child { margin-bottom: 0; }
.the.cho { border-color: #f0d7aa; background: var(--cam-nhat); }
.the.xong { border-color: #a9d8c2; background: var(--xanh-nhat); }
.the.huy { border-color: #e7c4c0; background: #fdf2f1; }

.ma-to {
  margin: 14px 0; padding: 18px 12px; border-radius: 12px; background: var(--chinh-nhat); color: var(--chinh-dam);
  text-align: center; font: 700 24px/1.35 ui-monospace, "SFMono-Regular", Menlo, "Courier New", monospace;
  letter-spacing: 1px; word-break: break-all; user-select: all;
}
.hang-nut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hang-nut .nut { flex: 1 1 auto; }

dl.so-lieu { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 15px; }
dl.so-lieu dt { color: var(--mo); }
dl.so-lieu dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
dl.so-lieu dd.tien { color: var(--do); font-size: 17px; }

.ck { background: #fff; border: 1px dashed #c6b088; border-radius: 11px; padding: 13px; margin-top: 12px; }
.ck h3 { font-size: 15px; margin: 0 0 9px; }
.ck .noi-dung { user-select: all; font-weight: 700; }
/* Ảnh QR VietQR (img.vietqr.io) — đã điền sẵn số tiền + nội dung. Ảnh hỏng thì onerror ẩn cả khối, số tài khoản vẫn còn. */
.ck .qr { text-align: center; margin: 0 0 12px; }
.ck .qr img { width: 100%; max-width: 240px; height: auto; border-radius: 9px; }
.ck .qr .ghi-nho { margin: 6px 0 0; }
.ghi-nho { font-size: 14px; color: var(--mo); margin-top: 12px; }
.link-tra { word-break: break-all; font-size: 13.5px; }

.chan { max-width: 540px; margin: 0 auto; padding: 0 16px 36px; color: var(--mo); font-size: 14px; text-align: center; }

.thong-bao { position: fixed; left: 0; right: 0; bottom: 18px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.thong-bao div {
  background: #14202b; color: #fff; border-radius: 10px; padding: 10px 16px; font-size: 14.5px;
  max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.thong-bao div.loi { background: var(--do); }

/* ===== 19/10/2026 — tài khoản khách (đăng nhập bằng email / Google) ===== */
.hoac { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--mo, #5b6b7a); font-size: 13.5px; }
.hoac::before, .hoac::after { content: ""; flex: 1; height: 1px; background: #dde3ea; }
.google-boc { display: flex; justify-content: center; min-height: 44px; }
.gy.giua { text-align: center; margin-top: 14px; }
.nhu-link {
  appearance: none; background: none; border: 0; padding: 0;
  color: #0f5c8c; font: inherit; text-decoration: underline; cursor: pointer;
}
.tk-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tk-dau h1 { margin-bottom: 2px; }
.tk-dau .nut { flex: none; }
#tk-don .the + .the { margin-top: 10px; }
#tk-don .the h3 { margin: 0 0 8px; font-size: 16px; }
#tk-don .ma-to { font-size: 19px; padding: 11px 8px; }
#form-doi-mk { margin-top: 12px; }
#form-doi-mk input[hidden] { display: none; }
