.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: color 0.15s, background 0.15s;
}
.back-btn:hover { color: var(--text); background: var(--secondary); }
.profile-header h1 { font-size: 1.3rem; font-weight: 700; }

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-muted);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: background 0.3s;
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.avatar-actions input[type="file"] { display: none; }

.profile-card .form-group { margin-bottom: 1.25rem; }
.profile-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-card input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--search-bg);
  color: var(--input-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.profile-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.profile-card input:disabled {
  opacity: 0.6;
}
.profile-card .btn {
  justify-content: center;
}
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.profile-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
}
.profile-error.visible { display: block; }
.profile-success {
  color: var(--success);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  padding: 0.5rem 0.75rem;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 8px;
}
.profile-success.visible { display: block; }
@media (max-width: 640px) {
  .profile-card { padding: 1.5rem; }
  .profile-page { padding: 0.75rem; }
  .avatar-preview { width: 80px; height: 80px; font-size: 2rem; }
}
