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

.profile-modal__content {
  max-width: 480px;
  width: 90%;
  padding: 2rem 1.75rem;
}

/* Profile header */

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

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

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  /* Fixed dark ink, not var(--ink): see .user-badge__avatar — avatar-bg doesn't change with theme. */
  color: #3d3326;
  background: var(--avatar-bg);
  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-family: var(--font-pixel);
  font-size: 1.2rem;
}

.profile-header__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--down);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Divider */

.profile-divider {
  border: none;
  border-top: 1px dashed var(--panel-border);
  margin: 1.1rem 0;
}

/* Data section */

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

.profile-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 12px;
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
}

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

.profile-action-btn--danger {
  border-color: #c99a94 !important;
  color: var(--up) !important;
}

.profile-action-btn--danger:hover {
  background: var(--chip-error-bg) !important;
}

/* Logout button */

.profile-logout-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  color: var(--body-text);
  border: 1px solid var(--panel-border-strong);
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-logout-btn:hover { background: var(--hover-bg); }

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

.crop-modal__content {
  max-width: 480px;
  width: 92%;
  padding: 1.5rem;
}

.crop-modal__content h3 {
  margin: 0 0 1rem;
  font-family: var(--font-pixel);
  font-size: 1rem;
  text-align: left;
}

.crop-container {
  width: 100%;
  max-height: 380px;
  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;
}

/* Birthday field */

.profile-birthday-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-birthday-field {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  color: var(--ink);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.profile-birthday-field::placeholder { color: var(--placeholder); letter-spacing: 0; }
.profile-birthday-field:focus { border-color: var(--wood); }

.profile-birthday-save-btn { white-space: nowrap; flex-shrink: 0; }

.profile-birthday-hint {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Profile trigger button — reset button chrome, act as flex row */

.user-badge__profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.user-badge__profile-trigger:not(:disabled) { cursor: pointer; }

/* Badge avatar image support */

.user-badge__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
}
