* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 68px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e6ecf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1f5eff, #112f93);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
}

.brand-sub {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  padding: 9px 14px;
  border: 1px solid #dce4f2;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  color: #4a5870;
}

.btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid #d8e0ef;
  background: #fff;
  color: #243047;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: #1f5eff;
  color: #fff;
  border-color: #1f5eff;
}

.btn.danger {
  background: #fff;
  color: #b42318;
  border-color: #ffd0d0;
}

.btn.soft {
  background: #eef4ff;
  color: #1f5eff;
  border-color: #d7e4ff;
}

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.welcome {
  background:
    radial-gradient(circle at right top, rgba(31, 94, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #ffffff, #f5f8ff);
  border: 1px solid #e4ebf6;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(34, 67, 128, 0.08);
  margin-bottom: 22px;
}

.welcome h1 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.welcome p {
  margin: 0;
  color: #63728a;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.info-card {
  background: #fff;
  border: 1px solid #e4ebf6;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(34, 67, 128, 0.06);
}

.info-card .label {
  color: #718096;
  font-size: 13px;
  margin-bottom: 8px;
}

.info-card .value {
  font-size: 24px;
  font-weight: 900;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.module-card {
  background: #fff;
  border: 1px solid #e4ebf6;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(34, 67, 128, 0.06);
}

.module-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.module-card p {
  margin: 0 0 18px;
  color: #65758c;
  line-height: 1.7;
  font-size: 14px;
}

.section {
  background: #fff;
  border: 1px solid #e4ebf6;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(34, 67, 128, 0.06);
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  color: #68778e;
  font-size: 13px;
  background: #fafcff;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.active {
  background: #eafbf2;
  color: #087443;
}

.badge.pending {
  background: #fff7e8;
  color: #b25e09;
}

.badge.banned,
.badge.rejected {
  background: #fff0f0;
  color: #b42318;
}

.badge.role {
  background: #eef4ff;
  color: #1f5eff;
}

.empty {
  padding: 28px;
  color: #7a8798;
  text-align: center;
  background: #f8fbff;
  border-radius: 18px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #172033;
  color: #fff;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  font-size: 14px;
  display: none;
  z-index: 50;
}

.toast.show {
  display: block;
}

@media (max-width: 980px) {
  .info-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    padding: 16px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .main {
    padding: 18px;
  }
}
