/* Profile platform V2 — PROFILE / RANK / STATISTICS / ACHIEVEMENTS / SETTINGS */

.friends-profile-surface,
.friends-rank-surface,
.friends-stats-surface,
.friends-achievements-surface,
.friends-settings-surface {
  max-width: 960px;
  margin: 0 auto;
  color: #f3efe6;
}

.friends-profile-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.friends-profile-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9b27a;
}

.friends-profile-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.friends-profile-lead {
  margin: 0 0 12px;
  color: #cfc6b4;
  line-height: 1.45;
}

.friends-profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friends-profile-nav-btn.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  color: #f5e6b8;
}

.friends-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}

.friends-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(145deg, #3a2f1a, #1b1f2a);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.friends-profile-name {
  margin: 0 0 4px;
}

.friends-profile-nick,
.friends-profile-rank-badge,
.friends-profile-next,
.friends-profile-companion,
.friends-profile-activity,
.friends-profile-summary {
  margin: 0 0 6px;
  color: #cfc6b4;
}

.friends-profile-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friends-rank-current,
.friends-stats-section,
.friends-settings-block {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.friends-rank-bar {
  position: relative;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0;
}

.friends-rank-bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #2f8f55, #d4af37);
}

.friends-rank-bar span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 0.85rem;
}

.friends-rank-note,
.friends-settings-hint,
.friends-stats-empty,
.friends-achievements-loading,
.friends-achievements-empty {
  color: #bdb3a1;
  line-height: 1.4;
}

.friends-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friends-settings-field {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}

.friends-settings-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.friends-settings-block--danger {
  border-color: rgba(220, 90, 90, 0.35);
}

.friends-achievements-group {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .friends-profile-header {
    flex-direction: column;
  }

  .friends-profile-hero {
    grid-template-columns: 1fr;
  }

  .friends-profile-shortcuts .shell-btn,
  .friends-profile-nav-btn {
    flex: 1 1 auto;
  }
}
