* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0f1115;
  color: #e6e6e6;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: #161922; border-bottom: 1px solid #23262f;
}
.brand { font-size: 18px; font-weight: 700; color: #ff8a3d; letter-spacing: 1px; }
.login-area { font-size: 14px; }
.nav-login-link { color: #ff8a3d; text-decoration: none; margin-left: 8px; }
.uname { color: #cfd2da; }

.wrap { max-width: 980px; margin: 26px auto; padding: 0 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.tools { display: flex; align-items: center; gap: 10px; }
.tag { font-size: 13px; color: #8a90a0; }

.utable { width: 100%; border-collapse: collapse; background: #161922; border-radius: 8px; overflow: hidden; }
.utable th, .utable td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #23262f; font-size: 14px; }
.utable th { background: #1d2130; color: #b9bfce; font-weight: 600; }
.utable tr:last-child td { border-bottom: none; }
.utable .pw { font-family: monospace; color: #7fd1ff; word-break: break-all; }
.muted { color: #6b7180; }
.empty { text-align: center; color: #6b7180; padding: 24px; }

.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.ok { background: #16331f; color: #5ad17f; }
.badge.banned { background: #3a1c1c; color: #ff7a7a; }

.hint { color: #6b7180; font-size: 13px; margin-top: 14px; }

.btn {
  background: #ff8a3d; color: #1a1206; border: none; padding: 8px 14px;
  border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.btn:hover { background: #ff9d5c; }
.btn.block { width: 100%; padding: 10px; margin-top: 6px; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: #9aa0b0; border: 1px solid #333845; }
.btn.ban { background: #c0392b; color: #fff; }
.btn.unban { background: #2e7d4f; color: #fff; }

.modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6);
  align-items: center; justify-content: center; z-index: 50;
}
.modal.show { display: flex; }
.modal-box {
  background: #1a1e29; width: 460px; max-width: 92vw; padding: 22px 24px;
  border-radius: 12px; border: 1px solid #2a2f3c; position: relative;
}
.modal-box h3 { margin: 0 0 14px; color: #ff8a3d; }
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  color: #888; font-size: 22px; cursor: pointer;
}
#authForm input {
  width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 6px;
  border: 1px solid #2a2f3c; background: #0f1115; color: #e6e6e6; font-size: 14px;
}
.msg { color: #ff7a7a; font-size: 13px; min-height: 18px; margin-top: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.agree-text { font-size: 14px; line-height: 1.7; color: #c7ccd8; max-height: 50vh; overflow: auto; }
.agree-text p { margin: 8px 0; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #2a2f3c; color: #fff; padding: 10px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; font-size: 14px;
}
.toast.show { opacity: 1; }

.noperm { background: #2a1c1c; color: #ff9a9a; padding: 16px; border-radius: 8px; font-size: 14px; }
