.member-profile {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.member-profile__hero {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f4f2ff, #fff9f2);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.member-profile__identity {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.member-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #ecebff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #4338ca;
  overflow: hidden;
}

.member-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.member-profile__username,
.member-profile__meta,
.member-profile__role-desc {
  margin: 0.2rem 0;
  color: #6b7280;
}

.member-profile__role {
  font-weight: 600;
  color: #4338ca;
}

.member-profile__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-profile__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: #4338ca;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-profile__button:hover,
.member-profile__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(67, 56, 202, 0.25);
}

.member-profile__button--secondary {
  background: #f3f4f6;
  color: #111827;
}

.member-profile__button--ghost {
  background: transparent;
  border: 1px solid rgba(67, 56, 202, 0.2);
  color: #4338ca;
  box-shadow: none;
}

.member-profile__button--ghost:hover,
.member-profile__button--ghost:focus-visible {
  background: rgba(67, 56, 202, 0.08);
}

.member-profile__badge {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e1b4b;
  font-weight: 600;
}

.member-profile__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.member-profile__stat {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.member-profile__stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.member-profile__stat-label {
  margin: 0.25rem 0 0;
  color: #6b7280;
}

.member-profile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.member-profile__card--badges {
  gap: 1rem;
}

.member-profile__badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.member-profile__badge-item {
  padding: 1rem;
  border-radius: 16px;
  background: #f8f9ff;
  border: 1px solid #eef2ff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-profile__badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #4338ca, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.member-profile__badge-desc {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.member-profile__card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-profile__card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.member-profile__card-meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.member-profile__people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-profile__person-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 14px;
  transition: background 0.2s ease;
  color: inherit;
}

.member-profile__person-link:hover,
.member-profile__person-link:focus-visible {
  background: #f8fafc;
}

.member-profile__person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4338ca;
  overflow: hidden;
}

.member-profile__person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__person-username {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.member-profile__comments {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.member-profile__activity {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-profile__activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.member-profile__activity-card {
  border: 1px solid #eef2ff;
  border-radius: 20px;
  padding: 1.25rem;
  background: #fafbff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-profile__activity-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.member-profile__activity-count {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.member-profile__activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-profile__activity-item {
  padding: 0.75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.member-profile__activity-title {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.member-profile__activity-meta {
  margin: 0.3rem 0 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.member-profile__activity-excerpt {
  margin: 0 0 0.75rem;
  color: #1f2937;
}

.member-profile__activity-link {
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
}

.member-profile__activity-link:hover,
.member-profile__activity-link:focus-visible {
  text-decoration: underline;
}

.member-profile__activity-link--disabled {
  color: #94a3b8;
  pointer-events: none;
}

.member-profile__comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.member-profile__comment {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #f0f2ff;
  background: #fafbff;
}

.member-profile__comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.member-profile__comment-body {
  margin: 0 0 0.75rem;
  color: #111827;
}

.member-profile__comment-link {
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
}

.member-profile__comment-link:hover,
.member-profile__comment-link:focus-visible {
  text-decoration: underline;
}

.member-profile__comment-link--disabled {
  color: #94a3b8;
  pointer-events: none;
  text-decoration: none;
}

.member-profile__empty {
  margin: 0;
  color: #94a3b8;
}

@media (max-width: 720px) {
  .member-profile__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-profile__identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-profile__avatar {
    width: 80px;
    height: 80px;
  }

  .member-profile__activity-grid {
    grid-template-columns: 1fr;
  }
}
