.user-profile {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: $bg;
}

.user-profile__nav {
  flex-shrink: 0;
  background: $bg;
}

.user-profile__nav-row {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
}

.user-profile__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.user-profile__back-icon {
  transform: rotate(180deg);
}

.user-profile__title {
  flex: 1;
  text-align: center;
  color: $fg;
  font: 700 16px / 1 $font-display;
}

.user-profile__nav-spacer {
  width: 36px;
}

.user-profile__scroll {
  flex: 1;
  min-height: 0;
}

.user-profile__actions {
  padding: 0 20px 20px;
}

.user-profile__primary {
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, $accent 0%, $accent-2 100%);
  color: $primary-on;
  font: 700 14px / 1 $font-body;
}

.user-profile__section {
  padding: 0 20px 12px;
}

.user-profile__section-title {
  color: $fg-2;
  font: 600 13px / 1 $font-display;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-profile__pet-scroll {
  margin: 0 -20px;
}

.user-profile__pet-list {
  display: flex;
  gap: 10px;
  padding: 0 20px 22px;
}

.user-profile__pet-card {
  width: 132px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(45, 34, 85, 0.4);
  border: 1px solid rgba(216, 180, 255, 0.08);
}

.user-profile__pet-photo {
  position: relative;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
}

.user-profile__pet-img {
  width: 100%;
  height: 78px;
  border-radius: 10px;
}

.user-profile__pet-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: $radius-pill;
  background: rgba(0, 0, 0, 0.4);
  color: $fg;
  font: 500 9px / 1 $font-body;
}

.user-profile__pet-name {
  display: block;
  margin-top: 10px;
  color: $fg;
  font: 600 13px / 1.2 $font-body;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile__pet-meta {
  display: block;
  margin-top: 3px;
  color: $muted;
  font: 400 10px / 1.3 $font-body;
}

.user-profile__feed {
  padding: 0 16px 24px;
}

.user-profile__empty,
.user-profile__empty-small {
  display: block;
  text-align: center;
  color: $muted;
  font: 400 13px / 1.6 $font-body;
}

.user-profile__empty {
  padding: 48px 24px;
}

.user-profile__empty-small {
  width: 100%;
  padding: 22px 0;
}
