:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --bg: #f3f5f6;
  --text: #191919;
  --muted: #8f8f8f;
  --border: #e7e7e7;
  --danger: #e64340;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font: inherit; }
.hidden { display: none !important; }

.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(7, 193, 96, .10), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(64, 158, 255, .10), transparent 60%),
    #f3f5f6;
  padding: 24px;
}
.login-card {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}
.login-logo {
  text-align: center;
  color: var(--green);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
}
.login-sub {
  margin: 8px 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3px;
}
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; color: #666; font-size: 12px; }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e3e5;
  border-radius: 8px;
  background: #fafbfb;
  outline: none;
}
.field input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .10);
}
.login-error { min-height: 18px; margin-bottom: 10px; color: var(--danger); font-size: 12px; }
.login-hint { margin-top: 16px; text-align: center; color: #b0b0b0; font-size: 11px; }
.btn-primary {
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 14px;
}
.login-card .btn-primary { width: 100%; height: 44px; font-size: 15px; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  padding: 7px 14px;
  border-radius: 6px;
  background: #f2f3f4;
  color: #555;
  font-size: 13px;
}
.btn-ghost:hover { background: #e9eaeb; }
.btn-ghost.danger { color: var(--danger); }

.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-size: 17px; font-weight: 600; }
.top-actions { display: flex; gap: 8px; }

.container { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #eee;
}
.stat .num { font-size: 28px; font-weight: 700; color: var(--green); }
.stat .label { margin-top: 4px; color: var(--muted); font-size: 12px; }

.panel { background: #fff; border-radius: 12px; border: 1px solid #eee; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid #eee; padding: 0 16px; }
.tab {
  padding: 13px 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.tab.on { color: var(--green); border-color: var(--green); font-weight: 500; }
.tab-body { padding: 6px 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f2f2f2; font-size: 13px; }
th { color: #888; font-weight: 500; background: #fafafa; }
tr:last-child td { border-bottom: none; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #7a7a7a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.user-name { font-weight: 500; }
.user-sign { color: #a0a0a0; font-size: 11px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}
.status.active { background: #e8f8ee; color: #07a854; }
.status.pending { background: #fff7e6; color: #d48806; }
.status.banned { background: #fdecec; color: #e64340; }
.status.rejected { background: #f1f1f1; color: #888; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button {
  padding: 5px 10px;
  border-radius: 5px;
  background: #f2f3f4;
  font-size: 12px;
  color: #555;
}
.actions button:hover { background: #e9eaeb; }
.actions button.green { background: #e8f8ee; color: #07a854; }
.actions button.red { background: #fdecec; color: var(--danger); }

.empty { padding: 50px 20px; text-align: center; color: #aaa; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  width: 400px;
  max-width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { font-size: 20px; color: #999; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 9px 16px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 12px;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 14px; }
  .brand { font-size: 15px; }
  .top-actions .btn-ghost { padding: 6px 9px; font-size: 12px; }
  .container { padding: 14px 10px 40px; }
  th, td { padding: 10px 9px; }
  .user-sign, .hide-mobile { display: none; }
}
