/* Edit profile page styles (shared EN/ES) — extracted from the old inline <style>. */
.edit-profile-page {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-12) var(--container-padding) var(--space-20);
}

.edit-profile-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  letter-spacing: -2px;
  margin-bottom: var(--space-10);
}

.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ─── FIELD GROUP ─── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field-hint {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ─── AVATAR ─── */
.avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-bold);
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}

.avatar-preview-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-bold);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-muted);
}

.avatar-upload-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  color: var(--text-ghost);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.avatar-upload-label:hover { color: var(--text-muted); }

#avatar-file-input { display: none; }

/* ─── BIO ─── */
.bio-wrap { position: relative; }

.bio-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  transition: border-color var(--transition-fast);
}
.bio-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.bio-counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-align: right;
  margin-top: var(--space-1);
}
.bio-counter.over { color: #ff4444; }

/* ─── BANNER ITEM ─── */
.banner-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}
.banner-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* ─── SAVE BUTTON ─── */
.save-btn {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-8);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  align-self: flex-start;
}
.save-btn:hover { opacity: 0.85; }
.save-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.save-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.save-status.ok  { color: #4caf50; }
.save-status.err { color: #ff4444; }

/* ─── VIEW PROFILE LINK ─── */
.view-profile-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  color: var(--text-ghost);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
  align-self: flex-start;
}
.view-profile-link:hover { color: var(--text-muted); }

.auth-required {
  padding: var(--space-20) var(--container-padding);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
