/* X-style Edit profile modal */
.yal-edit-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 16000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 24px;
}

.yal-edit-profile-modal {
  width: min(600px, 100%);
  max-height: min(92vh, 900px);
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.yal-edit-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  min-height: 53px;
  border-bottom: 1px solid #2f3336;
}

.yal-edit-profile-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  flex: 1;
  text-align: center;
}

.yal-edit-profile-close {
  border: none;
  background: transparent;
  color: #e7e9ea;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yal-edit-profile-close:hover {
  background: rgba(231, 233, 234, 0.08);
}

.yal-edit-profile-save {
  border: none;
  background: #eff3f4;
  color: #0f1419;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.yal-edit-profile-save:disabled {
  opacity: 0.5;
  cursor: default;
}

.yal-edit-profile-save:not(:disabled):hover {
  background: #d7dbdc;
}

.yal-edit-profile-body {
  overflow-y: auto;
  flex: 1;
}

.yal-edit-profile-media {
  position: relative;
}

.yal-edit-banner {
  height: 200px;
  background: #3b3f45;
  background-size: cover;
  background-position: center;
  position: relative;
}

.yal-edit-banner-btn {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yal-edit-banner-btn:hover {
  background: rgba(0, 0, 0, 0.25);
}

.yal-edit-avatar-row {
  position: relative;
  padding: 0 16px;
  margin-top: -48px;
  margin-bottom: 12px;
}

.yal-edit-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.yal-edit-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #000;
  background: #243447;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.yal-edit-avatar-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.yal-edit-avatar-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.yal-edit-camera-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.yal-edit-fields {
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yal-edit-field {
  display: flex;
  flex-direction: column;
  border: 1px solid #536471;
  border-radius: 4px;
  padding: 8px 12px;
  gap: 2px;
}

.yal-edit-field:focus-within {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 1px #1d9bf0;
}

.yal-edit-field span {
  font-size: 0.78rem;
  color: #71767b;
}

.yal-edit-field input,
.yal-edit-field textarea {
  border: none;
  background: transparent;
  color: #e7e9ea;
  padding: 0;
  font-size: 1rem;
  outline: none;
  resize: vertical;
  min-height: 1.4em;
}

.yal-edit-field textarea {
  min-height: 80px;
  line-height: 1.4;
}

.yal-edit-verified-notice {
  background: rgba(29, 155, 240, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e7e9ea;
}

.yal-edit-verified-notice a {
  color: #1d9bf0;
  text-decoration: none;
}

.yal-edit-verified-notice a:hover {
  text-decoration: underline;
}

.yal-edit-profile-error {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(244, 33, 46, 0.12);
  color: #f4212e;
  font-size: 0.88rem;
}

/* Profile page: hide inline photo controls; editing is in modal */
.x-profile-avatar-actions {
  display: none !important;
}

.x-profile-meta > button:not(.x-profile-action-btn) {
  border: 1px solid #536471;
  color: #eff3f4;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  min-width: 120px;
}

.x-profile-meta > button:not(.x-profile-action-btn):hover {
  background: rgba(239, 243, 244, 0.1);
}

.x-profile-avatar-trigger {
  cursor: default;
}
