* { margin:0; padding:0; box-sizing:border-box;
    font-family:'Segoe UI',Tahoma,'Noto Sans Thai',sans-serif; }
body { background:#f1f5f9; color:#0f172a; min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; width:100%; max-width:560px; margin:0 auto; padding:14px; }

.site-head { background:linear-gradient(135deg,#0ea5e9,#2563eb); color:#fff; padding:16px 18px; text-align:center; }
.brand { color:#fff; text-decoration:none; font-size:22px; font-weight:800; display:block; }
.brand-en { font-size:12.5px; opacity:.9; }
.site-foot { text-align:center; color:#64748b; font-size:12.5px; padding:18px 10px 26px; }

.muted { color:#64748b; } .small { font-size:12.5px; }
.err { color:#dc2626; font-weight:700; margin-top:8px; }
.empty { text-align:center; color:#64748b; padding:40px 0; }

.search-box { background:#fff; border-radius:14px; padding:14px; margin-bottom:14px;
  box-shadow:0 1px 4px rgba(0,0,0,.06); }
.search-box form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; }
.search-box label { font-size:13px; color:#475569; font-weight:700; display:flex; flex-direction:column; gap:4px; }
.search-box input { padding:10px; border:2px solid #e2e8f0; border-radius:10px; font-size:15px; }
.search-box button { padding:11px 18px; border:none; border-radius:10px; background:#2563eb; color:#fff;
  font-weight:800; font-size:15px; cursor:pointer; }
.search-box .muted { margin-top:8px; font-size:13px; }

.type-card { background:#fff; border-radius:16px; overflow:hidden; margin-bottom:14px;
  box-shadow:0 1px 4px rgba(0,0,0,.06); }
.type-photo { background:#e2e8f0; color:#94a3b8; height:120px; display:flex; gap:8px;
  align-items:center; justify-content:center; font-size:26px; }
.type-photo span { font-size:14px; }
.type-body { padding:14px 16px; }
.type-body h2 { font-size:19px; display:flex; justify-content:space-between; align-items:baseline; }
.price { color:#2563eb; } .price small { color:#64748b; font-weight:400; }
details summary { margin-top:10px; font-weight:700; color:#2563eb; cursor:pointer; }
.room-pick { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; margin-top:10px; }
.room-btn { padding:10px 4px; border:2px solid #e2e8f0; background:#f8fafc; border-radius:10px;
  font-weight:800; font-size:15px; cursor:pointer; }
.room-btn small { display:block; font-weight:400; color:#64748b; font-size:11px; }
.room-btn:hover { border-color:#2563eb; }

.modal { display:none; position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:50;
  align-items:center; justify-content:center; padding:16px; }
.modal.open { display:flex; }
.modal-card { background:#fff; border-radius:16px; padding:20px; width:100%; max-width:420px; }
.modal-card h3 { margin-bottom:6px; }
.modal-card label { display:block; font-size:13px; font-weight:700; color:#475569; margin-top:10px; }
.modal-card input { width:100%; padding:11px; border:2px solid #e2e8f0; border-radius:10px;
  font-size:15px; margin-top:4px; }
.total-line { font-weight:800; font-size:17px; margin:12px 0 4px; color:#16a34a; }
.btn-main { display:block; width:100%; padding:13px; margin-top:10px; border:none; border-radius:11px;
  background:#2563eb; color:#fff; font-weight:800; font-size:16px; cursor:pointer; text-align:center;
  text-decoration:none; }
.btn-ghost { display:block; width:100%; padding:12px; margin-top:8px; border:none; border-radius:11px;
  background:#e2e8f0; color:#334155; font-weight:700; font-size:15px; cursor:pointer; }

.pane { background:#fff; border-radius:16px; padding:18px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.pane.center { text-align:center; } .pane.narrow { max-width:380px; margin:30px auto; }
.pin-input { text-align:center; font-size:24px; letter-spacing:8px; }

.qr-frame { background:#fff; border:2px solid #e2e8f0; border-radius:14px; text-align:center;
  padding-bottom:12px; margin:14px 0; overflow:hidden; }
.pp-head { background:#113566; color:#fff; padding:8px; font-weight:700; font-size:14px; margin-bottom:10px; }
.amount { font-size:22px; font-weight:800; }
.slip-form { text-align:center; }
.file-btn input { display:none; }
.wait-box { text-align:center; padding:26px 8px; }
.wait-box .spin { font-size:44px; animation:pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity:.4; } }

.bcard { background:#0f172a; color:#f8fafc; border-radius:18px; padding:24px 18px; text-align:center; }
.bcard .ok { color:#4ade80; font-weight:700; margin:6px 0 14px; }
.binfo { background:#1e293b; border-radius:12px; padding:12px; text-align:left; font-size:14px;
  line-height:1.9; margin-bottom:14px; }
.card-qr { background:#fff; padding:10px; border-radius:10px; }
.way { color:#facc15; font-weight:700; margin-top:10px; }
.pin-box { background:#1e293b; border-radius:12px; padding:10px; margin-top:14px; }
.pin-box small { color:#94a3b8; display:block; }
.pin-box b { font-size:40px; letter-spacing:9px; color:#facc15; }
.hint { font-size:12.5px; color:#94a3b8; margin-top:12px; line-height:1.8; }

.staff-row { display:flex; justify-content:space-between; align-items:center; gap:10px;
  border:2px solid #e2e8f0; border-radius:12px; padding:10px 12px; margin:8px 0; font-size:14px;
  flex-wrap:wrap; }
.staff-row.warn { border-color:#f59e0b; background:#fffbeb; }
.staff-row form { display:flex; gap:6px; }
.pane h3 { margin-top:20px; margin-bottom:6px; }
.btn-ok { background:#16a34a; } .btn-danger { background:#dc2626; } .btn-warn { background:#f59e0b; color:#1a1a1a!important; }
.btn-ok,.btn-danger,.btn-warn { border:none; color:#fff; font-weight:700; padding:9px 12px;
  border-radius:9px; cursor:pointer; font-size:13.5px; }
.clean-grid { display:flex; gap:8px; flex-wrap:wrap; }
.btn-clean { background:#fef3c7; border:2px solid #f59e0b; color:#92400e; font-weight:800;
  border-radius:10px; padding:8px 12px; cursor:pointer; }
.btn-clean small { display:block; font-weight:400; font-size:10.5px; }
.room-map { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.rm { padding:6px 9px; border-radius:8px; font-weight:700; font-size:13px; }
.st-free { background:#dcfce7; color:#166534; }
.st-occ { background:#fee2e2; color:#991b1b; }
.st-dirty { background:#fef3c7; color:#92400e; }
