.pageContainer {
  animation: fadeIn 0.3s ease-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.searchInput {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.875rem;
  min-width: 250px;
}

.searchInput:focus {
  outline: none;
  border-color: var(--primary);
}

.tableContainer {
  padding: 24px;
  border-radius: 16px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.table th {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.userCell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.875rem;
}

.userDetails {
  display: flex;
  flex-direction: column;
}

.userName {
  font-weight: 600;
  color: var(--foreground);
}

.userEmail {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge.planter {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary);
}

.badge.donor {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.banned {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actionBtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.actionBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btnPrimary {
  border-color: var(--primary);
  color: var(--primary);
}

.btnPrimary:hover {
  background: rgba(16, 185, 129, 0.1);
}

.emptyState {
  color: rgba(255, 255, 255, 0.55);
  padding: 32px 12px;
  text-align: center;
}

.modalOverlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.68);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2000;
}

.modal {
  max-height: min(720px, calc(100vh - 48px));
  max-width: 680px;
  overflow-y: auto;
  padding: 24px;
  width: 100%;
}

.modalHeader {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.modalHeader h2 {
  color: var(--foreground);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.modalHeader p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.closeButton {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.closeButton:hover {
  background: rgba(255, 255, 255, 0.12);
}

.formGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.profileItem span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.field input,
.field select {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 12px 14px;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  outline: none;
}

.modalActions {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
}

.profileGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profileItem {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
}

.profileItem strong {
  color: var(--foreground);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    justify-content: flex-start;
    width: 100%;
  }

  .searchInput {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .title {
    font-size: 2rem;
  }

  .formGrid,
  .profileGrid {
    grid-template-columns: 1fr;
  }

  .modalActions {
    justify-content: flex-start;
  }
}
