.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-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--role-color, #4338ca) 90%, #fff 6%), color-mix(in srgb, var(--role-color, #4338ca) 70%, #0f172a 8%));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 15px 30px color-mix(in srgb, var(--role-color, #4338ca) 30%, transparent);
  width: fit-content;
}

.member-profile__role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--role-color, #4338ca) 18%, transparent);
}

.member-profile__role-label {
  line-height: 1;
}

.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, color-mix(in srgb, var(--badge-color, #4338ca) 85%, #fff 6%), color-mix(in srgb, var(--badge-color, #4338ca) 70%, #0f172a 10%));
  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__about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.member-profile__about-headline {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.member-profile__about-bio {
  margin: 0;
  color: #374151;
  line-height: 1.65;
}

.member-profile__about-side {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f8f9ff;
  border: 1px solid #eef2ff;
}

.member-profile__about-item {
  display: grid;
  gap: 0.4rem;
}

.member-profile__about-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
}

.member-profile__about-value {
  font-weight: 600;
  color: #1f2937;
}

.member-profile__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.member-profile__link-item {
  display: block;
}

.member-profile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4338ca;
  font-weight: 600;
  text-decoration: none;
}

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

.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;
  }

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

/* 2026 profile refresh */
.member-profile {
  max-width: 1180px;
  padding-top: clamp(1.25rem, 3vw, 2.4rem);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.member-profile__hero,
.member-profile__card,
.member-profile__comments,
.member-profile__activity,
.member-profile__showcase {
  border: 1px solid color-mix(in srgb, var(--surface-border, #d8deea) 78%, transparent);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.member-profile__hero {
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-accent, #2f3fa9) 12%, #fff) 0%, #fff 44%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface-muted, #f2ede5) 58%, #fff));
}

.member-profile__hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-botanical, #2f8a6d) 16%, transparent), transparent 66%);
  pointer-events: none;
}

.member-profile__hero > * {
  position: relative;
  z-index: 1;
}

.member-profile__avatar {
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-accent, #2f3fa9) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent, #2f3fa9) 22%, transparent);
}

.member-profile__identity h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.member-profile__eyebrow,
.member-profile__section-kicker {
  color: var(--theme-accent, #2f3fa9);
  font-weight: 750;
}

.member-profile__role-chip,
.member-profile__button {
  border-radius: 12px;
}

.member-profile__actions {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-profile__button {
  background: var(--theme-accent, #2f3fa9);
  min-height: 42px;
  padding: 0.7rem 1rem;
}

.member-profile__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-profile__stat {
  text-align: left;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--surface-border, #d8deea) 78%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.member-profile__stat-value {
  color: var(--theme-accent, #2f3fa9);
}

.member-profile__showcase {
  background: var(--surface-card, #fff);
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.member-profile__section-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-profile__showcase h2 {
  margin: 0;
}

.member-profile__showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.member-profile__activity-card {
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-muted, #f2ede5) 38%, #fff);
  border-color: color-mix(in srgb, var(--surface-border, #d8deea) 74%, transparent);
}

.member-profile__activity-card--collection {
  --profile-card-accent: var(--color-botanical, #2f8a6d);
}

.member-profile__activity-card--ratings {
  --profile-card-accent: var(--color-amber, #c97232);
}

.member-profile__perfume-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.member-profile__perfume-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: var(--surface-card, #fff);
  border: 1px solid color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 13%, var(--surface-border, #d8deea));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.member-profile__perfume-link:hover,
.member-profile__perfume-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 32%, var(--surface-border, #d8deea));
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.member-profile__perfume-thumb {
  width: 58px;
  height: 68px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 9%, var(--surface-muted, #f2ede5));
  display: grid;
  place-items: center;
  padding: 0.35rem;
  overflow: hidden;
}

.member-profile__perfume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-profile__perfume-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.member-profile__perfume-copy strong,
.member-profile__perfume-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile__perfume-copy span {
  color: var(--color-text-muted, #47516b);
  font-size: 0.88rem;
}

.member-profile__perfume-status {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 24%, transparent);
  color: color-mix(in srgb, var(--profile-card-accent, var(--theme-accent, #2f3fa9)) 75%, var(--color-text, #161a2a));
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .member-profile__stats,
  .member-profile__showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-profile {
    padding-inline: 1rem;
  }

  .member-profile__hero,
  .member-profile__card,
  .member-profile__comments,
  .member-profile__activity,
  .member-profile__showcase {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .member-profile__stats,
  .member-profile__showcase-grid {
    grid-template-columns: 1fr;
  }

  .member-profile__card-header,
  .member-profile__activity-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-profile__perfume-link {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .member-profile__perfume-status {
    grid-column: 2;
    justify-self: start;
  }
}
