.game-lobby-panel--social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.social-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-hub-panel {
  display: none;
}

.social-hub-panel.is-active:not([hidden]) {
  display: block;
}

.social-profile-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 2px solid var(--profile-frame, #fbbf24);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 12, 24, 0.98));
  box-shadow: 0 0 24px color-mix(in srgb, var(--profile-frame, #fbbf24) 25%, transparent);
}

.social-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.06);
}

.social-profile-meta strong {
  display: block;
  font-size: 1.15rem;
}

.social-profile-meta span,
.social-profile-meta p {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.social-profile-form,
.social-search-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-profile-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.social-field {
  display: grid;
  gap: 0.35rem;
}

.social-field input,
.social-field textarea,
.social-field select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  padding: 0.55rem 0.65rem;
}

.social-avatar-grid,
.social-frame-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-avatar-option,
.social-frame-option {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.social-avatar-option.is-active,
.social-frame-option.is-active {
  border-color: var(--frame-color, #fbbf24);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--frame-color, #fbbf24) 40%, transparent);
}

.social-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.social-achievement-card {
  border-radius: 14px;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  opacity: 0.72;
}

.social-achievement-card.is-unlocked {
  opacity: 1;
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.social-achievement-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.social-achievement-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.98rem;
}

.social-achievement-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.social-achievement-card footer {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #4ade80;
}

.social-friend-list {
  display: grid;
  gap: 0.5rem;
}

.social-friend-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.65);
  text-align: left;
  color: inherit;
}

.social-friend-row--link {
  cursor: pointer;
  width: 100%;
  grid-template-columns: auto auto 1fr;
}

.social-friend-row--link .social-friend-actions {
  grid-column: 1 / -1;
}

.social-friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.social-friend-actions {
  display: flex;
  gap: 0.35rem;
}

.social-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.social-leaderboard {
  display: grid;
  gap: 0.35rem;
}

.social-leaderboard-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}

.social-leaderboard-row.is-friend {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.social-hub-loading {
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 1.5rem;
  text-align: center;
  animation: social-hub-loading-pulse 1.4s ease-in-out infinite;
}

@keyframes social-hub-loading-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.social-hub-error {
  color: #fca5a5;
  font-size: 0.88rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.15);
}

.social-achievement-head {
  margin-bottom: 0.75rem;
}

.social-achievement-summary {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.social-achievement-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.social-achievement-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.35s ease;
}

.liveops-season-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.liveops-season-banner__dismiss {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
}

.social-hub-empty,
.social-hub-lead {
  color: #94a3b8;
  font-size: 0.88rem;
}

.social-profile-preview {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 12, 24, 0.72);
}

.social-profile-preview .retention-profile-view--other {
  gap: 0.35rem;
}

.social-search-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.social-friends-section h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.social-friends-section--suggested {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

.social-online-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #64748b;
  opacity: 0.45;
  vertical-align: middle;
  flex-shrink: 0;
}

.social-online-dot--on {
  background: #22c55e;
  opacity: 1;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: social-presence-pulse 2s ease-in-out infinite;
}

.social-online-dot--recent {
  background: #fbbf24;
  opacity: 0.95;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.45);
}

@keyframes social-presence-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
  }
}

.social-online-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-online-badge--on {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.social-online-badge--recent {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  text-transform: none;
}

.social-online-badge--off {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-transform: none;
}

.social-online-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
  font-size: 0.86rem;
  font-weight: 600;
}

.social-online-summary-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  animation: social-presence-pulse 2s ease-in-out infinite;
}

.social-tab-online-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: #052e16;
  background: #4ade80;
  vertical-align: middle;
}

.social-friend-row--online {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}

.social-friend-last-seen {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.social-friend-recent--empty {
  color: #94a3b8;
  font-style: italic;
}

.retention-activity-freshness {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: #64748b;
}

.retention-activity-row--fresh time {
  color: #86efac;
}

.retention-activity-copy .social-online-dot {
  margin-right: 0.25rem;
}

.social-mutual-friends {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.social-friend-comparison {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .social-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .social-friend-row {
    grid-template-columns: auto 1fr;
  }

  .social-friend-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
