/* ── PROFILE & DASHBOARD ─────────────────────────────────────────────────────── */

.profile-layout {
  display: flex;
  gap: 24px;
  padding: 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-items: flex-start;
}

.profile-card {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
}

.avatar-wrap { margin-bottom: 4px; }
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--outline-hi);
}
.profile-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-cont);
  color: var(--on-prim-cont);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name     { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--on-surf); }
.profile-username { font-family: var(--mono); font-size: 12px; color: var(--on-surf-var); }
.profile-bio      { font-size: 13px; color: var(--on-surf-var); line-height: 1.5; }
.profile-location { font-size: 12.5px; color: var(--on-surf-var); }

.profile-socials { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.social-link {
  width: 32px; height: 32px;
  background: var(--surf-high);
  border: 1px solid var(--outline);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--on-surf-var);
  transition: border-color 0.15s, color 0.15s;
}
.social-link:hover { border-color: var(--primary); color: var(--primary); }

.profile-stats { display: flex; gap: 20px; margin-top: 4px; }
.pstat { display: flex; flex-direction: column; }
.pstat-n { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--on-surf); line-height: 1; }
.pstat-l { font-size: 11px; color: var(--on-surf-var); }

.profile-main { flex: 1; min-width: 0; }

/* Settings / avatar upload */
.avatar-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surf);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.avatar-preview {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--outline-hi);
  flex-shrink: 0;
}
.avatar-preview-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-cont);
  color: var(--on-prim-cont);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dashboard progress */
.progress-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surf);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  transition: border-color 0.15s;
}
.progress-item:hover { border-color: var(--outline-hi); }
.progress-check { font-size: 16px; flex-shrink: 0; }
.progress-info  { flex: 1; min-width: 0; }
.progress-title { font-size: 13px; font-weight: 500; color: var(--on-surf); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-meta  { font-size: 11px; color: var(--on-surf-var); margin-top: 2px; }
.progress-cta   { font-size: 12px; color: var(--primary); flex-shrink: 0; }

@media (max-width: 768px) {
  .profile-layout { flex-direction: column; }
  .profile-card   { width: 100%; position: static; }
}
