/* Extracted from user.php */
.profile-shell { padding: 0 0 3rem; }
.profile-hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 340px;
  background: #161616;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: saturate(1.02);
  transform: scale(1.06);
}
.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.36) 44%, rgba(17,17,17,.68) 100%),
    linear-gradient(180deg, rgba(17,17,17,.08) 0%, rgba(17,17,17,.76) 100%);
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7.5rem 1.25rem 2rem;
  min-height: 340px;
}
.profile-hero-main {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  min-width: 0;
}
.profile-hero-avatar,
.profile-hero-avatar-placeholder {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 4px solid rgba(244,247,242,.92);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  background: var(--surface);
  flex: 0 0 138px;
}
.profile-hero-avatar { object-fit: cover; }
.profile-hero-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
}
.profile-hero-copy { min-width: 0; max-width: 760px; }
.profile-hero-name {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: .35rem;
}
.profile-hero-handle {
  display: inline-block;
  color: rgba(244,247,242,.74);
  font-size: 1rem;
  margin-bottom: .75rem;
}
.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  color: rgba(244,247,242,.74);
  font-size: .92rem;
}
.profile-hero-meta a { color: var(--text); }
.profile-hero-meta a { color: #fff; }
.profile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.profile-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.profile-badge-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.profile-badge-pill--crew {
  border-color: rgba(255,209,102,.45);
  box-shadow: inset 0 0 0 1px rgba(255,209,102,.18);
}
.profile-badge-pill--supporter {
  border-color: rgba(245,158,11,.45);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.16);
}
.profile-badge-pill--streak {
  border-color: rgba(249,115,22,.45);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,.16);
}
.profile-hero-bio {
  color: rgba(244,247,242,.88);
  margin-top: 1rem;
  max-width: 62ch;
}
.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
  align-self: flex-end;
}
.profile-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1.4rem;
  position: relative;
  z-index: 2;
}
.profile-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.profile-summary-value {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}
.profile-summary-label {
  display: block;
  margin-top: .35rem;
  color: var(--text-secondary);
  font-size: .86rem;
}
.profile-tabs-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 1.75rem;
}
.profile-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.profile-tabs-scroll::-webkit-scrollbar { display: none; }
.profile-tabs-track {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: max-content;
}
.profile-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.05rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 600;
}
.profile-tab-link.active,
.profile-tab-link:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-muted);
}
.profile-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex: 0 0 40px;
}
.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
}
.profile-pane,
.profile-aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.profile-pane + .profile-pane,
.profile-aside-card + .profile-aside-card { margin-top: 1rem; }
.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-section-head h2,
.profile-section-head h3 { font-size: 1rem; }
.profile-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.profile-cover-card {
  display: block;
  color: inherit;
}
.profile-cover-card:hover { color: inherit; }
.profile-cover-art {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--surface-muted);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.profile-cover-title {
  display: block;
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.profile-list-stack {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.profile-row-card {
  display: flex;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-row-card:last-child { border-bottom: none; }
.profile-row-thumb {
  width: 52px;
  height: 72px;
  border-radius: 8px;
  background: var(--surface-muted);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  flex: 0 0 52px;
}
.profile-row-copy { min-width: 0; }
.profile-row-copy strong {
  display: block;
  color: var(--text);
  margin-bottom: .25rem;
}
.profile-row-copy p {
  color: var(--text-secondary);
  font-size: .84rem;
}
.profile-mini-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.profile-mini-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
}
.profile-mini-link:hover { color: inherit; }
.profile-mini-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-muted);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  flex: 0 0 42px;
}
.profile-mini-copy { min-width: 0; }
.profile-mini-copy strong {
  display: block;
  color: var(--text);
  font-size: .84rem;
}
.profile-mini-copy span {
  color: var(--text-muted);
  font-size: .75rem;
}
.profile-streak-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.profile-streak-flame {
  font-size: 2.2rem;
  line-height: 1;
}
.profile-streak-metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-family: var(--font-display);
}
.profile-grid-users {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.profile-user-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
}
.profile-user-card:hover { color: inherit; border-color: var(--primary); }
.profile-user-avatar,
.profile-user-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
}
.profile-user-avatar { object-fit: cover; }
.profile-user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  font-weight: 700;
}
.profile-lock,
.profile-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 1rem;
}
@media (max-width: 980px) {
  .profile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-content-grid { grid-template-columns: 1fr; }
  .profile-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero-inner { align-items: flex-start; flex-direction: column; padding-top: 6.5rem; }
  .profile-hero-main { align-items: center; }
  .profile-hero-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .profile-hero-avatar,
  .profile-hero-avatar-placeholder {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
  }
  .profile-hero-main { flex-direction: column; align-items: flex-start; }
  .profile-summary { grid-template-columns: 1fr 1fr; }
}
