.page-container {
  padding: 32px 40px;
  max-width: 1400px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
color: var(--text-primary);
  margin: 0 0 8px;
}

.page-header p {
color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}


.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
color: var(--text-primary);
}

.tab.active {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  color: #667eea;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state p {
color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 80px 0;
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
color: var(--text-primary);
  font-size: 18px;
  margin: 0 0 8px;
}

.empty-state p {
color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;

  background: var(--bg-card);
  border: 1px solid var(--border-color);

  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.user-card:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.user-card-info {
  flex: 1;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.user-card-info h4 {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.user-card-info p {
color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 4px;
}

.user-joined {
  color: var(--text-muted);
  font-size: 11px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.view-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  transition: all 0.2s;
}

.user-card:hover .view-arrow {
color: var(--text-secondary);
  transform: translateX(4px);
}

.action-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}

.action-btn .material-symbols-rounded {
  font-size: 20px;
}

.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.level-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.level-badge[data-level="beginner"] {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.level-badge[data-level="intermediate"] {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.level-badge[data-level="advanced"] {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.level-badge[data-level="expert"] {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

@media (max-width: 768px) {
  .page-container {
    padding: 24px 16px;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }
}