/* ─── Profile Hero Layout ─────────────────────────────────────────────────── */
html body .profile-page .profile-hero {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px 20px !important;
  min-height: 0 !important;
  padding: 24px 28px !important;
}

html body .profile-page .profile-hero .avatar {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  margin: 0 !important;
}

html body .profile-page .profile-hero .ph-texts {
  min-width: 0 !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

/* h2 as flex row — nickname text + ADMIN badge sit side by side */
html body .profile-page .profile-hero .ph-texts h2 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  margin: 0 !important;
  font-size: clamp(26px, 2.4vw, 38px) !important;
  line-height: 1.1 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* ─── Admin / Group Badge ─────────────────────────────────────────────────── */
html body .user-group-tag,
html body .profile-page .profile-hero h2 .user-group-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--group-color, #e03040) !important;
  box-shadow: 0 2px 10px rgba(224, 48, 64, 0.45) !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

/* ─── Status (visibility) card ──────────────────────────────────────────────── */
html body .profile-page .profile-hero .profile-visibility-status {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 0 0 !important;
  padding: 14px 20px !important;
  gap: 12px 14px !important;
  border-radius: 16px !important;
  background: rgba(8, 20, 16, 0.65) !important;
  border: 1px solid rgba(74, 222, 128, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  box-sizing: border-box !important;
}

html body .profile-page .profile-hero .status-indicator {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  border-radius: 50% !important;
  background: #4ade80 !important;
  box-shadow: 0 0 12px #4ade80 !important;
  flex-shrink: 0 !important;
}

html body .profile-page .profile-hero .status-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body .profile-page .profile-hero .status-title {
  color: #f3f8ff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

html body .profile-page .profile-hero .status-text {
  color: rgba(220, 235, 252, 0.78) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* ─── Profile content ────────────────────────────────────────────────────── */
html body .profile-page .profile-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

html body .profile-page .profile-content .profile-card {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* ─── Mobile ≤ 860px ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  html body .profile-page .profile-hero {
    gap: 16px !important;
    padding: 18px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  html body .profile-page .profile-hero .avatar {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
  }
  html body .profile-page .profile-hero .ph-texts {
    margin-right: 0 !important;
    text-align: center !important;
  }
  html body .profile-page .profile-hero .ph-texts h2 {
    font-size: clamp(25px, 8vw, 34px) !important;
    justify-content: center !important;
  }
  html body .profile-page .profile-hero .profile-visibility-status {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 14px 16px !important;
    gap: 8px !important;
  }
  html body .profile-page .profile-hero .status-indicator {
    margin: 0 auto 2px auto !important;
  }
  html body .profile-page .profile-hero .status-copy {
    width: 100% !important;
    text-align: center !important;
  }
  html body .profile-page .profile-hero .status-title,
  html body .profile-page .profile-hero .status-text {
    text-align: center !important;
  }
  html body .profile-page .profile-content {
    flex-direction: column !important;
  }
}

/* ─── Mobile ≤ 480px ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html body .profile-page .profile-hero {
    gap: 12px !important;
    padding: 14px !important;
  }
  html body .profile-page .profile-hero .avatar {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    min-height: 74px !important;
  }
}
