

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-card.clickable-card {
  cursor: pointer;
  background: var(--bg-card);
}

.stat-card.clickable-card:hover {
  border-color: #383848;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #14141a;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card.clickable-card:hover .stat-sub {
  color: #ffffff;
}

.panel-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.panel-section.margin-bottom {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.badge-servers-total {
  font-size: 12px;
  font-weight: 600;
  background: #14141a;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.servers-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.server-status-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.server-status-card.clickable-card {
  cursor: pointer;
  user-select: none;
}

.server-status-card.clickable-card:hover {
  border-color: #404052;
  background: #14141a;
  transform: translateY(-2px);
}

.server-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color var(--transition-fast);
}

.server-status-card.clickable-card:hover .server-card-meta {
  color: #ffffff;
}

.server-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
}

.server-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.server-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
}

.server-pill.online {
  background: #181820;
  color: #e4e4e7;
  border: 1px solid #30303e;
}

.server-count-val {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}


.server-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px 0 24px;
}

.server-filter-pill {
  appearance: none;
  -webkit-appearance: none;
  background: #121217;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
  user-select: none;
}

.server-filter-pill:hover {
  background: #1a1a22;
  color: #ffffff;
  border-color: #383848;
}

.server-filter-pill.active {
  background: #242430;
  color: #ffffff;
  border-color: #525268;
}

.filter-pill-count {
  font-size: 10px;
  font-weight: 700;
  background: #181820;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.server-filter-pill.active .filter-pill-count {
  background: #343444;
  border-color: #525268;
  color: #ffffff;
}

.server-count-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.ranks-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .ranks-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ranks-summary-grid {
    grid-template-columns: 1fr;
  }
}

.rank-summary-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.rank-summary-card:hover {
  border-color: #383848;
  background: #14141a;
  transform: translateY(-1px);
}

.rank-info {
  display: flex;
  flex-direction: column;
}

.rank-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.rank-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

.rank-count {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text-muted);
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: #525264;
}

.search-box.full-width {
  width: 100%;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #15151c;
  border: 1px solid #282834;
  color: #e4e4e7;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #71717a;
}


.role-badge.trainee .badge-dot, .badge-dot.trainee { background: #a1a1aa; }
.role-badge.trainee { color: #f4f4f5; border-color: #343442; background: #181820; }

.role-badge.helper .badge-dot, .badge-dot.helper { background: #d4d4d8; }
.role-badge.helper { color: #f4f4f5; border-color: #343442; background: #181820; }

.role-badge.jrmod .badge-dot, .badge-dot.jrmod { background: #a1a1aa; }
.role-badge.jrmod { color: #f4f4f5; border-color: #343442; background: #181820; }

.role-badge.mod .badge-dot, .badge-dot.mod { background: #e4e4e7; }
.role-badge.mod { color: #ffffff; border-color: #3e3e50; background: #1a1a24; }

.role-badge.srmod .badge-dot, .badge-dot.srmod { background: #ffffff; }
.role-badge.srmod { color: #ffffff; border-color: #48485c; background: #1c1c28; }

.role-badge.deputy .badge-dot, .badge-dot.deputy { background: #a1a1aa; }
.role-badge.deputy { color: #f4f4f5; border-color: #343442; background: #181820; }

.role-badge.curator .badge-dot, .badge-dot.curator { background: #d4d4d8; }
.role-badge.curator { color: #ffffff; border-color: #404052; background: #1b1b24; }

.role-badge.techadmin .badge-dot, .badge-dot.techadmin { background: #e4e4e7; }
.role-badge.techadmin { color: #ffffff; border-color: #48485c; background: #1d1d28; }

.role-badge.admin .badge-dot, .badge-dot.admin { background: #ffffff; }
.role-badge.admin { color: #ffffff; border-color: #56566c; background: #20202c; }


.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #15151c;
  border: 1px solid #282834;
  color: #e4e4e7;
}

.platform-badge.youtube .badge-dot,
.badge-dot.youtube { background: #e4e4e7; }
.platform-badge.youtube { color: #ffffff; border-color: #383848; background: #181820; }

.tiktok-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-dot.tiktok-black {
  background: #000000;
  border: 1px solid #52525e;
  width: 8px;
  height: 8px;
}

.badge-dot.tiktok-white {
  background: #ffffff;
  width: 8px;
  height: 8px;
}

.platform-badge.tiktok { 
  background: #14141a; 
  border-color: #2c2c38;
  color: #ffffff;
}


.staff-donate {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  margin-top: 1px;
}


.server-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  background: #14141a;
  border: 1px solid #272734;
  color: #a1a1aa;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}


.status-badge.online {
  color: #e4e4e7;
}
.status-badge.online .status-dot-sm {
  background: #d4d4d8;
}

.status-badge.offline {
  color: var(--text-muted);
}


.modal-footer-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0d;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.page-btn, 
.page-btn {
  appearance: none;
  -webkit-appearance: none;
  background: #14141a;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  user-select: none;
}

button.page-btn:hover:not(:disabled), 
.page-btn:hover:not(:disabled) {
  border-color: #474758;
  color: #ffffff;
  background: #1c1c24;
}

button.page-btn:disabled, 
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #0a0a0d;
  border-color: #17171e;
  color: #52525e;
}

.page-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0 4px;
}

.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.staff-member-card {
  background: #111116;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.staff-member-card:hover {
  border-color: #383848;
  background: #171720;
  transform: translateY(-2px);
}

.staff-skin-container {
  width: 48px;
  height: 48px;
  background: #16161e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.staff-skin-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  image-rendering: pixelated;
}

.staff-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.staff-username {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.empty-box {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-symbol {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-muted);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #14141a;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.warn-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #20161a;
  border: 1px solid #482a32;
  color: #ff99aa;
  letter-spacing: 0.3px;
}
