/* ---------- Perfil público ---------- */
.profile-page { gap: 28px; }
.pp-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: end;
  padding: 32px; border-radius: var(--r-lg); color: #f4f1ff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(219 39 119 / 22%), transparent 60%),
    radial-gradient(120% 90% at 0% 0%, var(--stage-2), var(--stage-1) 70%);
}
.pp-head .avatar { box-shadow: 0 18px 40px -12px rgb(0 0 0 / 55%); border: 3px solid rgb(255 255 255 / 14%); }
.pp-head .avatar-wrap-xl .status-dot { --dot: 22px; right: 8px; bottom: 8px; }
.pp-id { display: grid; gap: 6px; min-width: 0; }
.pp-kicker { margin: 0; display: flex; gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; color: #cfc6f5; }
.pp-staff { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / 12%); font-size: .75rem; }
.pp-staff svg { width: 13px; height: 13px; }
.pp-id h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; color: #fff; overflow-wrap: anywhere; }
.pp-handle { margin: 0; display: flex; gap: 10px; align-items: center; color: #cfc6f5; flex-wrap: wrap; }
.pp-bio { margin: 4px 0 0; max-width: 60ch; color: #ece8ff; font-size: 1rem; line-height: 1.5; }
.pp-presence { margin: 0; display: flex; gap: 6px; align-items: center; color: #cfc6f5; }
.pp-stats { margin: 6px 0 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .9rem; color: #cfc6f5; }
.pp-stats button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pp-stats button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pp-stats strong { color: #fff; font-weight: 700; }
.pp-actions { align-self: end; }
.pp-actions .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 30%); background: transparent; }
.pp-actions .btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.follows-you { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: .72rem; font-weight: 600; }
.pp-head .follows-you { background: rgb(255 255 255 / 14%); color: #fff; }

/* Seguir: contorno quando não segue; preenchido (discreto) quando segue */
.follow-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--r-pill);
  font: 700 .95rem var(--font); cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s, border-color .15s, color .15s;
  border: 1.5px solid var(--primary); background: var(--primary); color: var(--on-primary);
}
.follow-btn svg { width: 17px; height: 17px; }
.follow-btn:hover { transform: scale(1.03); }
.follow-btn:active { transform: scale(.98); }
.follow-btn.is-following { background: transparent; color: var(--text); border-color: var(--border-strong); }
.follow-btn.is-following:hover { border-color: var(--danger); color: var(--danger); }
.pp-head .follow-btn { background: #fff; border-color: #fff; color: var(--stage-1); }
.pp-head .follow-btn.is-following { background: transparent; color: #fff; border-color: rgb(255 255 255 / 45%); }
.pp-head .follow-btn.is-following:hover { border-color: #fca5a5; color: #fecaca; }
.follow-btn.is-sm { padding: 6px 14px; font-size: .82rem; gap: 6px; }
.follow-btn.is-sm svg { width: 15px; height: 15px; }

.pp-body { display: grid; gap: 32px; min-width: 0; }
.pp-section { display: grid; gap: 14px; min-width: 0; }
.pp-section h2 { font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pp-hidden { display: inline-flex; gap: 4px; align-items: center; font: 600 .75rem var(--font); color: var(--text-2); background: var(--surface-2); padding: 2px 8px; border-radius: var(--r-pill); }
.pp-hidden svg { width: 13px; height: 13px; }

.pp-now { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pp-now li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--hue, var(--primary)); }
.pp-now-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pp-now-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-now-text .small { display: flex; gap: 5px; align-items: center; }
.pp-now-text svg { width: 14px; height: 14px; color: var(--hue); }
.pp-progress { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.pp-progress i { display: block; height: 100%; background: var(--hue, var(--primary)); border-radius: inherit; }

.pp-shelf { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; }
.pp-shelf li { display: grid; gap: 6px; align-content: start; scroll-snap-align: start; min-width: 0; }
.pp-shelf strong { font-size: .875rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pp-badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.pp-badges li { display: grid; justify-items: center; gap: 4px; width: 104px; text-align: center; }
.pp-badges strong { font-size: .8rem; line-height: 1.25; }

.pp-clubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pp-clubs li > a, .pp-clubs li > div { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; }
.pp-clubs li > a:hover { border-color: var(--hue); }
.pp-club-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--hue); color: #fff; }
.pp-club-icon svg { width: 20px; height: 20px; }
.pp-club-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pp-club-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-since { margin: 0; }

@media (max-width: 720px) {
  .pp-head { grid-template-columns: 1fr; padding: 22px 18px; justify-items: start; }
  .pp-head .avatar-xl { width: 96px; height: 96px; }
}

/* ---------- Pessoas ---------- */
.people-search { position: relative; display: block; }
.people-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-3); }
.people-search input { padding: 12px 14px 12px 42px; font-size: 1rem; border-radius: var(--r-pill); }
.section-title { font-size: 1.05rem; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; }
.people-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.people-list li + li { border-top: 1px solid var(--border); }
.people-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.people-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.people-text { display: grid; gap: 1px; min-width: 0; }
.people-text .handle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.people-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-actions { display: flex; gap: 12px; align-items: center; flex: none; }

/* ---------- Atividade de quem você segue ---------- */
.feed-card { display: grid; gap: 12px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feed-head h2 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.feed-head h2 svg { width: 18px; height: 18px; color: var(--primary); }
.feed-empty { margin: 0; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feed-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.feed-list li + li { border-top: 1px solid var(--border); }
.feed-avatar { flex: none; }
.feed-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.feed-text p { margin: 0; line-height: 1.4; }
.feed-actor { font-weight: 700; color: var(--text); text-decoration: none; }
.feed-actor:hover { text-decoration: underline; }
.feed-meta { display: flex; gap: 8px; align-items: center; }
.feed-badge { flex: none; }
.feed-more { justify-self: start; }

/* Nomes que levam ao perfil */
.person-name, .author-name, .chat-author-link { font-weight: 700; color: var(--text); text-decoration: none; }
.person-name:hover, .author-name:hover, .chat-author-link:hover { text-decoration: underline; text-underline-offset: 3px; }
