/* ── Profile settings modal ───────────────────────────────────────────────── */

.profile-modal__content {
  max-width: 600px;
  width: 90%;
  padding: 2.75rem 3rem 2.5rem;
}

/* Profile header */

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.4rem;
}

.profile-avatar-wrap {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.6rem;
  color: #1a1205;
  background: linear-gradient(135deg, #ffeaa7, #f2d66b);
  box-shadow: 0 0 36px rgba(242, 214, 107, 0.55);
  overflow: hidden;
  user-select: none;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
}

.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }

.profile-header__info h3 {
  margin: 0 0 0.35rem;
  text-align: left;
  font-size: 1.5rem;
  color: var(--text);
}

.profile-header__status {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(239, 244, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Divider */

.profile-divider {
  border: none;
  border-top: 1px solid rgba(152, 180, 255, 0.12);
  margin: 1.5rem 0;
}

/* Data section */

.profile-section .eyebrow {
  margin-bottom: 0.65rem;
}

.profile-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  text-align: center;
  cursor: pointer;
}

.profile-action-btn.file-label {
  cursor: pointer;
}

.profile-action-btn--danger {
  border-color: rgba(255, 77, 95, 0.28) !important;
  color: rgba(255, 77, 95, 0.8) !important;
}

.profile-action-btn--danger:hover {
  background: rgba(255, 77, 95, 0.1) !important;
  color: #ff4d5f !important;
  border-color: rgba(255, 77, 95, 0.5) !important;
  transform: translateY(-1px);
}

/* Logout button */

.profile-logout-btn {
  width: 100%;
  padding: 0.85rem;
  background: transparent;
  color: rgba(239, 244, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-logout-btn:hover {
  background: rgba(255, 77, 95, 0.1);
  color: #ff4d5f;
  border-color: rgba(255, 77, 95, 0.3);
}

/* ── Crop modal ───────────────────────────────────────────────────────────── */

.crop-modal__content {
  max-width: 500px;
  width: 92%;
  padding: 2rem;
}

.crop-modal__content h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--text);
  text-align: left;
}

.crop-container {
  width: 100%;
  max-height: 380px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.crop-container img { display: block; max-width: 100%; }

.crop-container .cropper-view-box,
.crop-container .cropper-face {
  border-radius: 50%;
}

.crop-container .cropper-point { border-radius: 50%; }

.crop-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

/* Badge clickable affordance */

.user-badge--clickable {
  cursor: pointer;
}

.user-badge--clickable:hover {
  border-color: rgba(152, 180, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(125, 178, 255, 0.12);
}

/* Badge avatar image support */

.user-badge__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
