.profile-page {
  display: grid;
  gap: 24px;
  margin: 34px auto 70px;
  width: min(100% - 32px, var(--container));
}

.profile-hero-card,
.profile-info-card,
.profile-wall-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 238, 0.98);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(12, 24, 43, 0.08);
  overflow: hidden;
  position: relative;
}

.profile-hero-card {
  min-height: 300px;
  padding: 34px;
}

.profile-hero-card::before {
  background:
    radial-gradient(circle at 86% 15%, rgba(7, 93, 242, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0), rgba(7,93,242,0.055));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.profile-hero-main,
.profile-hero-actions,
.profile-info-card > *,
.profile-wall-card > * {
  position: relative;
  z-index: 1;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.profile-action-btn {
  min-height: 42px;
  min-width: 150px;
}

.profile-hero-main {
  align-items: center;
  display: flex;
  gap: 28px;
}

.profile-avatar-wrap {
  flex: 0 0 auto;
}

.profile-avatar-large,
.profile-avatar-fallback {
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(7, 93, 242, 0.14);
  height: 150px;
  width: 150px;
}

.profile-avatar-large {
  object-fit: cover;
}

.profile-avatar-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), #4d94ff);
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.profile-identity h1 {
  font-size: clamp(3.5rem, 5.4vw, 6.6rem);
  margin-bottom: 16px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-badge {
  align-items: center;
  border: 1px solid rgba(219, 228, 238, 0.9);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  text-transform: uppercase;
}

.profile-role-badge {
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: -4px 0 16px;
  min-height: 34px;
  padding: 0 14px;
  text-transform: uppercase;
}

.status-badge.status-active,
.status-badge.status-open,
.status-badge.status-accepted {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(34, 197, 94, 0.24);
  color: #15803d;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  color: #b45309;
}

.status-badge.status-suspended,
.status-badge.status-closed,
.status-badge.status-banned {
  background: rgba(239, 68, 68, 0.11);
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.profile-hero-note {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.profile-info-card,
.profile-wall-card {
  padding: 26px;
}

.compact-heading {
  margin-bottom: 18px;
}

.profile-info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-presence-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-info-item {
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
  padding: 16px;
}

.profile-info-item span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.profile-info-item strong {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-value-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.profile-copy-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(7, 93, 242, 0.16);
  border-radius: 10px;
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  transition: 0.2s ease;
  width: 36px;
}

.profile-copy-button:hover,
.profile-copy-button.is-copied {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 20px rgba(7, 93, 242, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.profile-wall-form {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.profile-wall-editor > span {
  color: var(--ink);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}


.profile-wall-textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  display: block;
  font: inherit;
  min-height: 150px;
  padding: 15px;
  resize: vertical;
  width: 100%;
}

.profile-wall-textarea:focus {
  border-color: rgba(7, 93, 242, 0.55);
  box-shadow: 0 0 0 4px rgba(7, 93, 242, 0.08);
  outline: none;
}

.profile-wall-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.profile-wall-thread {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.profile-wall-message {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(12, 24, 43, 0.04);
  padding: 16px;
}

.profile-comment-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-comment-author {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.profile-comment-author img,
.profile-comment-author span {
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(7, 93, 242, 0.12);
  height: 46px;
  width: 46px;
}

.profile-comment-author img {
  object-fit: cover;
}

.profile-comment-author span {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), #4d94ff);
  color: #fff;
  display: inline-flex;
  font-weight: 1000;
  justify-content: center;
}

.profile-comment-author strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-comment-author:hover strong {
  color: var(--blue);
}

.profile-comment-head time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-comment-meta {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
}

.profile-comment-actions {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.profile-comment-actions form {
  margin: 0;
}

.profile-comment-action {
  align-items: center;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: 0.18s ease;
  width: 34px;
}

.profile-comment-action:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.profile-comment-action.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.profile-comment-content {
  margin-top: 0;
}

.profile-wall-edit-form {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
}

.profile-wall-edit-form[hidden] {
  display: none;
}

.profile-wall-edit-form .profile-wall-actions {
  gap: 10px;
}

.profile-secondary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-page {
    width: min(100% - 22px, var(--container));
  }

  .profile-hero-card,
  .profile-info-card,
  .profile-wall-card {
    padding: 20px;
  }

  .profile-hero-actions {
    justify-content: flex-start;
  }

  .profile-action-btn {
    width: 100%;
  }

  .profile-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-large,
  .profile-avatar-fallback {
    height: 122px;
    width: 122px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-wall-actions,
  .profile-secondary-actions {
    justify-content: stretch;
  }

  .profile-wall-actions .button,
  .profile-secondary-actions .button {
    width: 100%;
  }
}

/* Profile edit page */
.profile-edit-page {
  display: grid;
  gap: 22px;
  margin: 34px auto 76px;
  width: min(100% - 32px, var(--container));
}

.profile-edit-head {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.profile-edit-head .lead {
  margin: 8px 0 0;
  max-width: 780px;
  text-align: left;
}

.profile-edit-form {
  display: grid;
  gap: 22px;
}

.profile-edit-card,
.profile-edit-notice {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 238, 0.98);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(12, 24, 43, 0.07);
  padding: 26px;
}

.profile-edit-card-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-edit-card-head h2 {
  margin: 0;
}

.profile-edit-hint,
.profile-edit-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-edit-identity-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.profile-edit-avatar-panel {
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.profile-edit-avatar {
  border: 6px solid #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(7, 93, 242, 0.14);
  height: 172px;
  object-fit: cover;
  width: 172px;
}

.profile-edit-avatar-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), #4d94ff);
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.profile-edit-fields-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-edit-fields-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-edit-card label span,
.profile-file-field > span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.profile-edit-card input {
  border-radius: 12px;
  min-height: 50px;
}

.profile-file-field input[type="file"] {
  background: #fff;
  border: 1px dashed rgba(7, 93, 242, 0.35);
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  min-height: 54px;
  padding: 9px 12px;
}

.profile-file-field input[type="file"]::file-selector-button {
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 1000;
  margin-right: 12px;
  min-height: 34px;
  padding: 0 14px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-file-field input[type="file"]::file-selector-button:hover {
  background: #0052dc;
  box-shadow: 0 10px 22px rgba(7, 93, 242, 0.22);
  transform: translateY(-1px);
}

.profile-notification-options {
  display: grid;
  gap: 12px;
}

.profile-toggle-line {
  align-items: center;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.profile-toggle-line input {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid rgba(8, 20, 38, 0.24);
  border-radius: 5px;
  box-shadow: none;
  height: 18px;
  position: relative;
  width: 18px;
}

.profile-toggle-line input[type="hidden"] {
  display: none;
}

.profile-toggle-line input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.profile-toggle-line input[type="checkbox"]:checked::after {
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -52%);
}

.profile-toggle-line input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(7, 93, 242, 0.14);
}

.profile-toggle-line strong {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.profile-toggle-line small {
  color: var(--muted);
  display: block;
  line-height: 1.5;
}

.profile-edit-actions,
.profile-danger-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.profile-edit-actions .button,
.profile-danger-actions .button {
  min-height: 44px;
}

.profile-danger-card {
  border-color: rgba(239, 68, 68, 0.18);
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .profile-edit-identity-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-fields-grid,
  .profile-edit-fields-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-edit-page {
    width: min(100% - 22px, var(--container));
  }

  .profile-edit-head,
  .profile-edit-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-edit-card,
  .profile-edit-notice {
    padding: 20px;
  }

  .profile-edit-fields-grid,
  .profile-edit-fields-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .profile-edit-avatar {
    height: 132px;
    width: 132px;
  }

  .profile-edit-actions,
  .profile-danger-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .profile-edit-actions .button,
  .profile-danger-actions .button,
  .profile-edit-head .button {
    justify-content: center;
    width: 100%;
  }
}

.profile-account-action-page {
  display: grid;
  gap: 22px;
  margin: 34px auto 76px;
  width: min(100% - 32px, var(--container));
}

.profile-account-action-form {
  max-width: 980px;
}

.profile-account-action-card {
  overflow: hidden;
  position: relative;
}

.profile-account-action-card::before {
  background: radial-gradient(circle at top right, rgba(7, 93, 242, 0.08), transparent 36%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.profile-account-action-card > * {
  position: relative;
  z-index: 1;
}

.profile-select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--blue) 50%, transparent 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 50px;
  padding: 0 44px 0 14px;
  width: 100%;
}

.profile-select:focus {
  border-color: rgba(7, 93, 242, 0.42);
  box-shadow: 0 0 0 4px rgba(7, 93, 242, 0.10);
  outline: 0;
}

.profile-custom-period {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.profile-action-warning,
.profile-delete-warning {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(7, 93, 242, 0.08), rgba(7, 93, 242, 0.03));
  border: 1px solid rgba(7, 93, 242, 0.14);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
}

.profile-action-warning i {
  color: var(--blue);
  margin-top: 2px;
}

.profile-action-warning p,
.profile-delete-warning p {
  margin: 0;
}

.profile-delete-card {
  border-color: rgba(239, 68, 68, 0.20);
}

.profile-delete-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(245, 158, 11, 0.05));
  border-color: rgba(239, 68, 68, 0.18);
  margin-bottom: 20px;
  margin-top: 0;
}

.profile-delete-warning i {
  color: #ef4444;
  font-size: 1.15rem;
  margin-top: 2px;
}

.profile-delete-warning strong {
  color: var(--ink);
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .profile-account-action-page {
    width: min(100% - 22px, var(--container));
  }

  .profile-account-action-form {
    max-width: none;
  }
}

/* Community users directory */
.users-directory-page {
  display: grid;
  gap: 22px;
  margin: 34px auto 70px;
  padding-bottom: 70px;
  width: min(100% - 48px, var(--container));
}

.users-directory-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.users-directory-head .lead {
  margin-left: 0;
  max-width: 720px;
  text-align: left;
}

.users-directory-toolbar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(176, 194, 218, 0.72);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(12, 24, 43, 0.07);
  padding: 14px;
}

.users-search-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  transition: 0.22s ease;
  width: 100%;
}

.users-search-wrap:focus-within {
  border-color: rgba(7, 93, 242, 0.35);
  box-shadow: 0 0 0 4px rgba(7, 93, 242, 0.08);
}

.users-search-wrap i {
  color: var(--blue);
}

.users-search-wrap input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  height: 46px;
  outline: 0;
  width: 100%;
}

.users-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.community-user-card {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(7, 93, 242, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(176, 194, 218, 0.72);
  border-radius: 19px;
  box-shadow: 0 14px 28px rgba(12, 24, 43, 0.065);
  display: grid;
  gap: 14px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  min-height: 118px;
  overflow: hidden;
  padding: 16px;
  position: relative;
  transition: 0.24s ease;
}

.community-user-card:hover {
  border-color: rgba(7, 93, 242, 0.28);
  box-shadow: 0 20px 38px rgba(7, 93, 242, 0.10);
  transform: translateY(-2px);
}

.community-user-status {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(12, 24, 43, 0.16);
  height: 14px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 14px;
}

.community-user-status.status-active {
  background: #22c55e;
}

.community-user-status.status-pending,
.community-user-status.status-suspended {
  background: #f59e0b;
}

.community-user-status.status-inactive,
.community-user-status.status-banned,
.community-user-status.status-deleted {
  background: #ef4444;
}

.community-user-avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(7, 93, 242, 0.16), rgba(7, 93, 242, 0.04));
  border: 1px solid rgba(7, 93, 242, 0.14);
  border-radius: 18px;
  display: inline-flex;
  height: 70px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 70px;
}

.community-user-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.community-user-avatar span {
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 1000;
}

.community-user-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.community-user-titleline {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 0;
}

.community-user-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-user-name:hover {
  color: var(--blue);
}

.community-user-role {
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  min-height: 24px;
  padding: 0 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.community-user-meta {
  display: grid;
  gap: 2px;
}

.community-user-meta span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-user-meta strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-user-link {
  align-items: center;
  align-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 1000;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.22s ease;
  white-space: nowrap;
}

.community-user-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 22px rgba(7, 93, 242, 0.18);
  color: #fff;
}

.users-empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 42px;
  text-align: center;
}

.users-empty-state i {
  color: var(--blue);
  font-size: 2rem;
}

.users-empty-state strong {
  color: var(--ink);
}

.users-pagination {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 4px;
}

.users-pagination p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.users-pagination-controls,
.users-pagination-controls > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.users-pagination-controls button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
  transition: 0.22s ease;
}

.users-pagination-controls button:hover:not(:disabled),
.users-pagination-controls button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.users-pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.community-user-card[hidden],
.users-empty-state[hidden],
.users-pagination[hidden] {
  display: none !important;
}

@media (max-width: 1320px) {
  .users-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .users-directory-page {
    width: min(100% - 28px, var(--container));
  }

  .users-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .users-pagination-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .users-card-grid {
    grid-template-columns: 1fr;
  }

  .community-user-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .community-user-avatar {
    border-radius: 15px;
    height: 58px;
    width: 58px;
  }

  .community-user-link {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
