/* ============================================
   Re-Kit Profile Page CSS
   ============================================ */
.profile-page { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 60px; min-height: 100vh; background: var(--bg-1); }
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.profile-avatar-wrap {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 16px;
}
.profile-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  color: #0A0F1C;
  border: 2px solid var(--bg-card);
}
.profile-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.profile-school-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--primary-glow);
  border: 1px solid rgba(87,242,135,0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.profile-stats { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.profile-stat { text-align: center; }
.p-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: block; }
.p-stat-label { font-size: 0.75rem; color: var(--text-muted); }
.profile-stat-div { width: 1px; background: var(--border); align-self: stretch; }
.profile-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.profile-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }

.profile-section-title { margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.profile-section-title h2 { font-size: 1.2rem; }
.profile-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.profile-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}
