.editprofile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.editprofile-panel {
  position: relative;
  background: #fff;
  padding: 28px;
  border-radius: 5px;
  width: 420px;
  border: 1px solid #e6e8eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editprofile-title {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.editprofile-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.editprofile-close:hover {
  color: #111;
}

.editprofile-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editprofile-label {
  font-size: 13px;
  color: #666;
}

.editprofile-input,
.editprofile-textarea {
  font-size: 14px;
  font-family: inherit;
  padding: 10px;
  border: 1px solid #e6e8eb;
  border-radius: 3px;
}

.editprofile-textarea {
  min-height: 80px;
  resize: vertical;
}

.editprofile-avatar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.editprofile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 1%;
  object-fit: cover;
  border: 1px solid #e6e8eb;
  background: #f3f4f6;
}

.editprofile-avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.editprofile-avatar-btn {
  font-size: 13px;
  font-family: inherit;
  padding: 7px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.editprofile-avatar-btn:hover {
  border-color: #888;
  color: #111;
}

.editprofile-avatar-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* Banner preview inside the edit panel */
.editprofile-banner-wrap {
  width: 100%;
}

.editprofile-banner-preview {
  position: relative;
  width: 100%;
  height: 70.70px;
  background: #2e2f34;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editprofile-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.editprofile-banner-edit-btn {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.editprofile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#editprofile-save {
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  cursor: pointer;
}

#editprofile-cancel {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.error {
  margin-top: 2px;
  color: #c44;
  font-size: 13px;
  text-align: center;
}