:root {
  --nen: #f2f6fc;
  --the: #ffffff;
  --chu: #26233a;
  --mo: #6e6a86;
  --chinh: #1565e0;
  --chinh-nhat: #e1ecfc;
  --cua-toi: #1a7cf0;
  --xanh: #2f9e6f;
  --do: #d9485f;
  --vien: #dde6f2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--nen); color: var(--chu); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Khung app luôn vừa đúng phần màn hình đang thấy (app.js đặt --cao theo visualViewport), đầu và ô nhắn tin không bị tụt ra ngoài. */
#app { position: fixed; top: 0; left: 0; right: 0; height: var(--cao, 100dvh); max-width: 640px; margin: 0 auto; overflow: hidden; background: var(--nen); }

.man { display: none; height: 100%; flex-direction: column; overflow-y: auto; }
.man.hien { display: flex; }
.giua { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 12px; text-align: center; }
.logo { font-size: 56px; }
.ten-app { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .2px; }
.ten-app span:nth-child(1) { color: #1565e0; }
.ten-app span:nth-child(2) { color: #0aa2e8; }
.ten-app span:nth-child(3) { color: #2f9e6f; }
.ten-app span:nth-child(4) { color: #e08a1e; }
.ten-app.nho { font-size: 16px; line-height: 1.2; }
.ma-game { font-size: .62em; color: #fff; background: #e08a1e; border-radius: 8px; padding: 1px 6px; vertical-align: middle; font-weight: 800; }
.dau-ten { flex: 1; min-width: 0; }
.so-toi { font-size: 12px; color: var(--mo); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#han-toi.sap { color: var(--do); font-weight: 600; }
.ten-that { color: var(--mo); font-weight: 400; font-size: 13px; }
.ql-tim { padding: 10px 12px 0; }
.ql-tim input { width: 100%; border: 1.5px solid var(--vien); border-radius: 10px; padding: 8px 10px; font-size: 15px; background: var(--the); }
.ql-ghi { margin: 6px 14px; color: var(--mo); font-size: 12px; line-height: 1.4; }
.ql-ds { display: flex; flex-direction: column; margin: 6px 12px 24px; background: var(--the); border: 1px solid var(--vien); border-radius: 12px; }
.ql-dong { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--vien); }
.ql-dong:last-child { border-bottom: 0; }
.ql-so { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.ql-so.het { color: var(--do); }
.ql-so.vv { color: var(--xanh); }
.ql-xoa { border: 0; background: none; color: var(--do); font-size: 15px; font-weight: 700; padding: 2px 4px; }
.ql-ma { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 800; color: #5b51d8; letter-spacing: .5px; cursor: pointer; }
.ql-dong .nut-nho { padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.ql-vv { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--mo); }
.ql-vv input { width: 17px; height: 17px; margin: 0; }
.mo-ta { color: var(--mo); margin: 0 0 12px; max-width: 320px; }

.nut { display: block; width: 100%; max-width: 340px; border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.nut.chinh { background: var(--chinh); color: #fff; }
.nut.phu { background: var(--chinh-nhat); color: var(--chinh); }
.nut:disabled { opacity: .6; }
.nut-nho { border: 0; border-radius: 10px; padding: 7px 12px; background: var(--chinh); color: #fff; font-weight: 600; font-size: 14px; }
.nut-nho.phu { background: var(--chinh-nhat); color: var(--chinh); }
.nut-nho.do { background: var(--do); }
.nut-icon { border: 0; background: none; font-size: 22px; padding: 6px 8px; line-height: 1; display: inline-flex; align-items: center; }
.nut-ve { border: 0; background: none; font-size: 34px; line-height: 1; padding: 0 10px 4px 0; color: var(--chinh); }

.dau { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--the); border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 2; min-height: 56px; }
.dau h2 { margin: 0; font-size: 19px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bieu-mau { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; width: 100%; max-width: 420px; margin: 0 auto; text-align: left; }
.bieu-mau.hep { max-width: 340px; padding: 8px 0; }
.bieu-mau label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.bieu-mau input { width: 100%; border: 1.5px solid var(--vien); border-radius: 12px; padding: 12px; background: var(--the); font-size: 15px; }
.bieu-mau input:focus { outline: none; border-color: var(--cua-toi); }
.o-mk { position: relative; display: block; }
.o-mk input { padding-right: 48px; }
.mat { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 20px; padding: 6px; }
.ghi { margin: -4px 0 4px; color: var(--mo); font-size: 14px; }
.canh-bao { margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: #fff4e0; color: #8a5300; font-size: 14px; }
.loi { margin: 0; color: var(--do); font-weight: 600; }

.luat { padding: 8px 20px 28px; color: var(--mo); font-size: 14px; }
.luat h2 { font-size: 16px; color: var(--chu); margin: 0 0 6px; }
.luat ul { margin: 0; padding-left: 18px; }

.bang { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--chinh-nhat); color: var(--chinh); font-size: 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ds { display: flex; flex-direction: column; padding: 6px 0 90px; }
.ban { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 0; text-align: left; width: 100%; border-bottom: 1px solid var(--vien); }
.anh-dai-dien { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 19px; flex: none; text-transform: uppercase; }
.anh-dai-dien { position: relative; }
.anh-dai-dien.online::after { content: ""; position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #2fb344; border: 2px solid var(--nen, #fff); }
.chat-dau { flex: 1; min-width: 0; }
.chat-dau h2 { display: block; }
.chat-online { font-size: 12px; color: #2fb344; line-height: 1.2; }
.chat-online::before { content: "● "; }
.ban-chu { flex: 1; min-width: 0; }
.ban-ten { font-weight: 700; }
.ban-xem { color: var(--mo); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban.moi .ban-xem { color: var(--chu); font-weight: 600; }
.cham { width: 11px; height: 11px; border-radius: 50%; background: var(--do); flex: none; }
.loi-moi { margin: 10px 12px 0; padding: 12px; border-radius: 12px; background: var(--the); border: 1px solid var(--vien); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loi-moi b { flex: 1; }
.trong { text-align: center; color: var(--mo); padding: 40px 24px; }
.nut-noi { position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 28px; padding: 14px 20px; background: var(--chinh); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 6px 18px rgba(59,52,134,.3); }

#man-chat { overflow: hidden; }
.ds-tin { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.tin { max-width: 80%; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tin.cua-toi { align-self: flex-end; align-items: flex-end; }
.bong { padding: 8px 12px; border-radius: 18px; background: var(--the); border: 1px solid var(--vien); white-space: pre-wrap; word-break: break-word; }
/* Tin mình gửi: nền xanh dương nhạt, chữ đậm (Duong 2026-11-01) */
.tin.cua-toi .bong { background: #d9e9ff; color: #10233f; border-color: #c2dafc; }
.tin.thu-hoi .bong { background: none; color: var(--mo); font-style: italic; border: 1px dashed var(--vien); }
.hang { display: flex; align-items: center; gap: 8px; }
.hang .tin { align-self: auto; }
.hang.cua-toi .tin { margin-left: auto; }
.o-chon { display: none; flex: none; width: 22px; height: 22px; margin: 0; pointer-events: none; accent-color: var(--chinh); }
.ds-tin.dang-chon .o-chon { display: block; }
.hang.chon .bong { outline: 3px solid #f2b705; }
.bong .anh { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin: 2px 0; }
.bong .anh img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; display: block; }
.phu-de { font-size: 11px; color: var(--mo); margin: 1px 6px 4px; display: flex; gap: 6px; }
.phu-de .tt-chua-xem { color: #8b5a2b; }
.phu-de .tt-da-xem { color: #15803d; font-weight: 600; }
.da-sua { color: var(--do); font-weight: 700; }
.ngay { align-self: center; font-size: 12px; color: var(--mo); background: var(--chinh-nhat); border-radius: 10px; padding: 2px 10px; margin: 8px 0; }
.thanh-chon, .thanh-sua { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff7d6; border-top: 1px solid var(--vien); }
.thanh-chon span, .thanh-sua { flex: 1; font-weight: 600; }
.thanh-sua { justify-content: space-between; }
.anh-cho { display: flex; flex-wrap: wrap; gap: 8px; }
.anh-cho:not(:empty) { padding: 6px 0 4px; }
.anh-cho div { position: relative; }
.anh-cho img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.anh-cho button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--do); color: #fff; font-size: 12px; line-height: 22px; padding: 0; }
.bang-emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: var(--the); border-top: 1px solid var(--vien); max-height: 190px; overflow-y: auto; }
.bang-emoji button { border: 0; background: none; font-size: 26px; padding: 4px 0; }
.o-gui { flex: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--the); border-top: 1px solid var(--vien); }
/* Nút + chọn hình; hình chờ gửi và chữ nằm chung một khung, nút gửi nhỏ ở góc dưới bên phải khung. */
.nut-cong { flex: none; width: 40px; height: 40px; margin-bottom: 2px; border-radius: 50%; background: var(--chinh-nhat); color: var(--chinh); font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.khung-gui { flex: 1; min-width: 0; position: relative; border: 1.5px solid var(--vien); border-radius: 20px; background: var(--nen); padding: 4px 42px 4px 14px; }
.khung-gui:focus-within { border-color: var(--cua-toi); }
.khung-gui textarea { display: block; width: 100%; resize: none; border: 0; background: none; padding: 6px 0; font-size: 16px; color: inherit; }
.khung-gui textarea:focus { outline: none; }
.nut-gui { position: absolute; right: 5px; bottom: 5px; border: 0; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--cua-toi); color: #fff; font-size: 14px; }

.lop-goi { position: absolute; inset: 0; z-index: 20; background: linear-gradient(180deg, #2b2566, #3b3486 60%, #5b51d8); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; }
.lop-cc[hidden], .o-gui[hidden], .lop-goi[hidden], .lop-anh[hidden], .lop-menu[hidden], .toast[hidden], .bang[hidden], .thanh-chon[hidden], .thanh-sua[hidden], .bang-emoji[hidden] { display: none; }
.goi-ten { font-size: 32px; font-weight: 800; color: #ffd46b; }
.goi-trang-thai { font-size: 18px; opacity: .9; min-height: 26px; }
.goi-nut { display: flex; gap: 34px; margin-top: 70px; }
.goi-nhan { display: flex; gap: 34px; font-size: 14px; opacity: .85; }
.goi-nhan span { width: 72px; text-align: center; }
.tron { width: 72px; height: 72px; border-radius: 50%; border: 0; font-size: 28px; color: #fff; }
.tron.xanh { background: #2fb36f; animation: rung 1s infinite; }
.tron.do { background: var(--do); }
.tron.xam { background: rgba(255,255,255,.2); }
.tron.xam.tat { background: #fff; color: var(--do); }
.tron.xam.bat { background: #fff; color: #1c7ed6; }
@keyframes rung { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }

.lop-anh { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lop-anh img { max-width: 100%; max-height: 100%; }
.lop-menu { position: absolute; inset: 0; z-index: 25; background: rgba(20,16,50,.35); display: flex; align-items: flex-end; }
.menu { width: 100%; background: var(--the); border-radius: 18px 18px 0 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.menu .tieu-de { padding: 8px 18px 10px; color: var(--mo); font-size: 14px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 14px 20px; font-size: 15px; }
.menu button.do { color: var(--do); font-weight: 600; }
.menu button:disabled { opacity: .35; }
.menu button.nut-khoa { color: var(--chinh); font-weight: 600; font-size: 15px; padding: 10px 20px; background: var(--chinh-nhat); }
.menu input { margin: 0 16px 8px; width: calc(100% - 32px); border: 1.5px solid var(--vien); border-radius: 12px; padding: 12px; font-size: 15px; }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: #26233a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 15px; max-width: 90%; text-align: center; }
#nut-khoa { font-size: 20px; }
.chia-se { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chinh-nhat); color: #1c7ed6; padding: 0; }
.dau.trong-suot { background: none; border: 0; }
.gian { flex: 1; }
a.nut { text-align: center; text-decoration: none; box-sizing: border-box; }
.nut-cc { font-size: 24px; line-height: 1; color: #dc2626; background: #fee2e2; }
.nut-ql { font-size: 18px; background: #fef3c7; }
.chia-se[hidden] { display: none; }
.tai-nho { font-size: 12px; font-weight: 600; color: var(--chinh); text-decoration: none; padding: 4px 8px; margin-left: -4px; border-radius: 8px; background: var(--chinh-nhat); }
.lop-cc { position: absolute; inset: 0; z-index: 25; background: #f0f4f8; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.ql-ngay { font-size: 12px; font-weight: 700; color: var(--mo); min-width: 64px; text-align: right; }
.ql-ngay.sap { color: var(--do); }

#nut-goi { display: none !important; }
.cc-ban { font-size: 14px; font-weight: 700; margin-left: 8px; }
.cc-ban select { font-size: 15px; padding: 6px; border-radius: 8px; border: 1px solid var(--vien); max-width: 52vw; }
.lop-co { position: absolute; inset: 0; z-index: 40; background: var(--the); }
.lop-co[hidden] { display: none; }
.co-trong { height: 100%; overflow-y: auto; padding: 8px 12px; box-sizing: border-box; }
.co-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.co-top b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-hang { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.co-hang span { flex: 1; font-size: 14px; }
.co-hang input { width: 84px; border: 1.5px solid var(--vien); border-radius: 8px; padding: 4px 8px; font-size: 15px; text-align: right; background: var(--the); color: inherit; box-sizing: border-box; }
.co-hang.co-dau { margin-top: 8px; }
.co-mien { font-size: 13px; font-weight: 700; color: #1c7ed6; margin: 6px 0 2px; }
.co-thu-tu span { flex: none; width: 34px; }
.co-thu-tu select { flex: 1; min-width: 0; border: 1.5px solid var(--vien); border-radius: 8px; padding: 4px 2px; font-size: 14px; background: var(--the); color: inherit; }
.co-thu-tu.trung select { border-color: #dc2626; color: #dc2626; }
.co-hang.co-dau span { font-weight: 800; color: #7c3aed; }
.co-hang.co-dau span:not(:first-child) { width: 84px; flex: none; text-align: center; font-size: 13px; }

.hang-cc { flex: 0 0 100%; display: flex; gap: 6px; align-items: center; }
.hang-cc[hidden] { display: none; }
.hang-cc .nut-nho { flex: 1; padding: 6px 6px; font-size: 13px; border-radius: 9px; font-weight: 800; white-space: nowrap; }
.hang-cc #cc-gui { background: var(--cua-toi); }
.o-gui.cc-che-do .nut-gui { display: none; }
.o-gui.cc-che-do .khung-gui { padding-right: 14px; }

.mien-chat { flex: none; display: flex; gap: 4px; align-items: center; margin-left: auto; }
.mien-chat[hidden] { display: none; }
.mien-chat label { position: relative; }
.mien-chat input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.mien-chat label span { display: block; font-size: 12px; font-weight: 800; color: #374151; background: #eef2f7; border-radius: 6px; padding: 4px 6px; }
.mien-chat input:checked + span { background: #3b82f6; color: #fff; }
.ngay-chat { position: relative; margin-left: 2px; }
.ngay-chat > button { font-size: 12px; font-weight: 700; color: #1d4ed8; background: #fff; border: 1px solid #93c5fd; border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
#ngay-chat-ds { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 30; background: #fff; border: 1px solid #93c5fd; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); overflow: hidden; }
#ngay-chat-ds[hidden] { display: none; }
#ngay-chat-ds div { padding: 7px 16px; font-size: 14px; font-weight: 700; color: #1d4ed8; white-space: nowrap; }
#ngay-chat-ds div.dang { background: #dbeafe; }

.chat-dau { min-width: 0; }
.chat-dau h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }

/* Tô đỏ chữ sai sau KIỂM TIN: lớp chữ màu nằm dưới, ô nhập trong suốt chữ (vẫn thấy con trỏ). Gõ tiếp là bỏ tô. */
.o-boc { position: relative; }
.khung-gui textarea, .o-to { line-height: 1.4; }
.o-to { display: none; position: absolute; inset: 0; padding: 6px 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; overflow: hidden; pointer-events: none; }
.o-boc.to .o-to { display: block; }
.o-boc.to textarea { color: transparent; caret-color: #111827; }
.o-to .khong-hop-le { color: #dc2626; }
.o-boc.chua-dung textarea { color: #dc2626; }

.gat { flex: none; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mo); cursor: pointer; }
.gat input { display: none; }
.gat-nen { width: 34px; height: 20px; border-radius: 10px; background: #cbd5e1; position: relative; transition: background .15s; }
.gat-nut { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.gat input:checked + .gat-nen { background: #16a34a; }
.gat input:checked + .gat-nen .gat-nut { left: 16px; }
.gat b { min-width: 40px; }
.dai-chat { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 2px 12px; font-size: 12px; font-weight: 700; color: #1d4ed8; background: #eff6ff; border-bottom: 1px solid var(--vien); white-space: nowrap; }
#dai-chat-ten { overflow: hidden; text-overflow: ellipsis; }
.do-chat { flex: none; border: 0; border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 800; color: #fff; background: #8b5cf6; }
.do-chat:disabled { opacity: .6; }
.dai-chat[hidden] { display: none; }
.hang-cc .nut-cong { width: 34px; height: 30px; margin: 0; border-radius: 9px; font-size: 17px; }

/* Ô nhắn luôn cao tối thiểu 1 dòng; chế độ cc tối thiểu 4 dòng, nền trắng bo góc cho dễ nhìn. */
.khung-gui textarea { min-height: calc(1.4em + 12px); box-sizing: border-box; }
.o-gui.cc-che-do .khung-gui { border-radius: 14px; background: #fff; padding: 6px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.o-gui.cc-che-do .khung-gui textarea { min-height: calc(4 * 1.4em + 12px); }

/* Tc dưới tin cược đã gửi */
.tin-tc { margin: 4px 0 -3px -4px; text-align: left; color: #475569; font-size: 10px; font-weight: 400; font-style: italic; line-height: 1.3; }
.tin-tc .tc-cong { color: #dc2626; }
.tin-tc .tc-ghi { color: #1d4ed8; }
.tin-tc .tc-trung { color: #15803d; }
.dau-kiem { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 700; color: #16a34a; pointer-events: none; white-space: pre; }
.dau-kiem[hidden] { display: none; }
.hang-cc #cc-do { display: none; } /* ẩn nút Dò tay (Duong 2026-11-01): sẽ dò tự động khi có kết quả */
.hang-cc #cc-do:disabled { opacity: .4; }
.cc-che-do .o-boc textarea { padding-bottom: 14px; }

.logo-anh { width: 96px; height: 96px; border-radius: 22px; display: block; margin: 0 auto 10px; }
/* Ô mật khẩu trong hộp thoại: nút 👁 nằm trong ô */
.menu .o-mk { margin: 0 16px 8px; }
.menu .o-mk input { margin: 0; width: 100%; padding-right: 48px; }
.menu button.mat { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: auto; padding: 6px; font-size: 20px; }
.tg-ghi { font-size: 15px; color: var(--chu); }
.tg-so { font-size: 17px; color: var(--xanh); margin: 0 0 4px; }
.tg-so b { font-size: 22px; letter-spacing: .5px; }
a.nut { display: block; text-align: center; text-decoration: none; }
#f-dang-ky[hidden], #tg-buoc-1[hidden] { display: none; }
/* Nút hiện/ẩn mật khẩu: hình con mắt nét mảnh (Duong 2026-11-01), mắt gạch chéo khi đang hiện mật khẩu */
.o-mk .mat { width: 40px; height: 40px; padding: 0; font-size: 0; background: #7b8796;
  -webkit-mask: var(--mat) center / 24px no-repeat; mask: var(--mat) center / 24px no-repeat;
  --mat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.o-mk .mat.dang-hien { background: var(--chinh);
  --mat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c6.4 0 10 8 10 8a17 17 0 0 1-2.2 3.2M6.6 6.6C3.9 8.4 2 12 2 12s3.6 8 10 8a9.7 9.7 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3Cpath d='M2 2l20 20'/%3E%3C/svg%3E"); }
.menu .o-mk button.mat { width: 40px; padding: 0; }
/* Tinviet: dòng đỏ đầu tin gửi Thường, chữ báo đỏ của ô Chuẩn */
.tin-thuong { text-align: right; font-size: 8px; font-weight: 700; font-style: italic; line-height: 1; color: #a30014; margin: 3px -4px -3px 0; white-space: nowrap; }
.bao-cc { flex: 0 0 100%; color: #d62f3c; font-weight: 600; font-size: 13px; padding: 2px 10px 0; }
.bao-cc[hidden] { display: none; }
#cc-gui:disabled { opacity: .4; }
.co-quyen { display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 12px; border-radius: 12px; background: #e7f6ee; color: #1f7a4d; font-weight: 700; font-size: 16px; }
.co-quyen input { width: 22px; height: 22px; }
.co-quyen.loi-quyen { background: #fde8ea; color: #d62f3c; }
.co-quyen.loi-quyen::after { content: 'Chưa lưu được, kiểm tra mạng'; font-size: 12px; font-weight: 600; }

/* Nút Đăng nhập bằng Telegram (kiểu nút Google) */
.nut.nut-tg { background: #2aabee; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto; }
.tg-logo { width: 22px; height: 22px; }
#tg-o-so[hidden] { display: none; }
/* Công tắc Trả lời tự động của VIP */
.tu-tra { justify-content: space-between; background: #e8f1fd; color: #1565e0; }
.tu-tra[hidden] { display: none; }
.tu-tra-chu small { display: block; font-size: 12px; font-weight: 500; color: #4a5a70; }
.cong-tac { appearance: none; -webkit-appearance: none; width: 50px !important; height: 28px !important; border-radius: 14px; background: #c4cbd6; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.cong-tac::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cong-tac:checked { background: #1fa463; }
.cong-tac:checked::after { left: 25px; }
/* Quản lý: số nằm riêng 1 dòng, các nút xuống dòng dưới (chữ lớn trên điện thoại không bị chồng lên nhau) */
.ql-dong { flex-wrap: wrap; row-gap: 6px; column-gap: 10px; padding: 10px 12px; }
.ql-so { flex: 1 0 100%; font-size: 16px; }
.ql-vv { font-size: 13px; gap: 4px; white-space: nowrap; }
.ql-vv input { width: 20px; height: 20px; }
.ql-ngay { min-width: 0; text-align: left; white-space: nowrap; }
.ql-dong .nut-nho { margin-left: auto; white-space: nowrap; }
.tu-tra-chat { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #1d4ed8; white-space: nowrap; }
.tu-tra-chat[hidden] { display: none; }
.cong-tac.nho { width: 34px !important; height: 20px !important; border-radius: 10px; }
.cong-tac.nho::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.cong-tac.nho:checked::after { left: 16px; }
.tin-chuan-dau { text-align: right; font-size: 9px; font-weight: 800; line-height: 1; color: #16a34a; margin: 3px -4px -3px 0; }
/* Tin kết quả dò số: mỗi miền một màu, Tổng cộng màu riêng */
.bong.kq-bong { white-space: normal; }
.kq-dau { font-weight: 800; margin-bottom: 2px; }
.kq-khoi { font-weight: 700; line-height: 1.35; }
.kq-MN { color: #b45309; }
.kq-MT { color: #047857; }
.kq-MB { color: #1d4ed8; }
.kq-tong { color: #b91c1c; font-size: 1.05em; margin-top: 4px; }
.kq-gach { color: #64748b; font-weight: 700; text-align: left; }

/* Nút Real/Fake sau chữ Tinviet và mộc FAKE (Duong 2026-11-01) */
.dong-ten { display: flex; align-items: center; gap: 8px; }
.nut-fake { border: 1.5px solid #16a34a; color: #15803d; background: #f0fdf4; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 800; line-height: 1.5; }
.nut-fake.dang-fake { border-color: #dc2626; color: #fff; background: #dc2626; }
.nut-fake[hidden] { display: none; }
.bong.co-moc { position: relative; margin-top: 8px; }
.moc-fake { position: absolute; top: -10px; right: -4px; background: rgba(255, 255, 255, .9); transform: rotate(-14deg); border: 2px solid rgba(220, 38, 38, .75); color: rgba(220, 38, 38, .8); border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 900; letter-spacing: 2px; line-height: 1.4; font-style: normal; pointer-events: none; }

/* Tin Chuẩn gửi không thành công (chỉ người gửi thấy) và nhãn "Tin hợp lệ" (Duong 2026-11-01) */
.tin.cua-toi .bong.that-bai { background: #fff1f2; border: 1.5px solid #fca5a5; color: #1f2937; cursor: pointer; }
.tb-dau { font-size: 13px; font-weight: 800; color: #b91c1c; margin-bottom: 3px; }
.tb-chu .khong-hop-le { color: #dc2626; font-weight: 700; text-decoration: underline wavy #dc2626; }
.tb-ly-do { font-size: 11px; font-style: italic; color: #b91c1c; margin-top: 4px; }
.tin-hop-le { font-size: 8px; font-weight: 700; font-style: italic; line-height: 1; color: #15803d; margin: -3px 0 3px -4px; text-align: left; }
