/* ─── Profile Page ────────────────────────────────────────── */
#page-profile { display: none; }
#page-profile.active { display: flex; flex-direction: column; gap: 14px; }

/* Hero card */
.profile-hero {
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  background: linear-gradient(145deg, rgba(124,92,252,.18) 0%, rgba(180,77,255,.10) 100%);
  border: 1px solid rgba(124,92,252,.25);
  position: relative; overflow: hidden;
  text-align: center;
}
.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(124,92,252,.22), transparent);
  pointer-events: none;
}

/* Avatar */
.avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  border: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 24px rgba(0,0,0,.4);
  position: relative;
}
.avatar-level {
  position: absolute; bottom: -4px; right: -4px;
  background: linear-gradient(135deg, var(--gold), #e8a800);
  border: 2px solid var(--bg);
  border-radius: 20px; padding: 2px 7px;
  font-size: 10px; font-weight: 800; color: #000;
}
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Name / username / ID */
.profile-name     { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 3px; }
.profile-username { font-size: 13px; color: var(--text2); margin-bottom: 14px; }
.profile-id {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 12px;
  font-size: 11px; color: var(--text2); font-family: monospace;
}

/* Rank badge */
.rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 6px 14px; margin-top: 12px;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
}

/* Economy cards */
.eco-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px;
}
.eco-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.eco-icon  { font-size: 22px; }
.eco-value { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.eco-label { font-size: 11px; color: var(--text2); }

/* Rank progress block */
.rank-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rank-current { display: flex; align-items: center; gap: 8px; }
.rank-emoji   { font-size: 24px; }
.rank-name    { font-size: 15px; font-weight: 700; }
.rank-exp-text { font-size: 11px; color: var(--text2); }
.rank-next     { font-size: 12px; color: var(--text2); text-align: right; }
