.ab-profile-page {
  min-height: 100vh;
  background: #f5f7fb;
}

.ab-profile-shell {
  width: min(100% - 28px, 680px);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.ab-profile-back {
  display: inline-block;
  margin-bottom: 14px;
  color: #526174;
  font-size: 14px;
  text-decoration: none;
}

.ab-profile-card {
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(32, 48, 71, 0.08);
}

.ab-profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 70%);
}

.ab-profile-icon {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #ffedd5;
  font-size: 30px;
}

.ab-profile-summary h1 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 24px;
}

.ab-profile-summary p {
  margin: 3px 0;
  color: #5f6b7a;
  font-size: 14px;
}

.ab-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d7dee8;
  border-bottom: 1px solid #d7dee8;
}

.ab-profile-stats span,
.ab-profile-stats a,
.ab-profile-stats button {
  padding: 15px 18px;
  color: #354052;
  text-align: center;
  text-decoration: none;
}

.ab-profile-stats button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.ab-profile-stats > button + button,
.ab-profile-stats > button + a,
.ab-profile-stats > a + button,
.ab-profile-stats > a + a {
  border-left: 1px solid #d7dee8;
}

.ab-profile-stats button:hover,
.ab-profile-stats button:focus-visible {
  background: #f8fafc;
}

.ab-profile-sections {
  padding: 8px 24px 24px;
}

.ab-profile-section {
  padding: 18px 0;
  border-bottom: 1px solid #edf0f5;
}

.ab-profile-section:last-child {
  border-bottom: 0;
}

.ab-profile-section h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 15px;
}

.ab-profile-section a,
.ab-profile-disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #445064;
  text-decoration: none;
}

.ab-profile-section a:hover {
  background: #f7f9fc;
  color: #f97316;
}

.ab-profile-section strong {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #354052;
  font-size: 12px;
  text-align: center;
}

.ab-profile-disabled {
  color: #9aa3af;
}

.ab-profile-disabled small {
  font-size: 12px;
}

.ab-profile-signout {
  color: #b42318 !important;
}

.ab-profile-link {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 520px) {
  .ab-profile-shell {
    width: calc(100% - 24px);
    padding: 14px 0 36px;
  }

  .ab-profile-card {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(32, 48, 71, 0.07);
  }

  .ab-profile-summary {
    gap: 14px;
    padding: 20px 18px;
  }

  .ab-profile-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 27px;
  }

  .ab-profile-summary h1 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.2;
  }

  .ab-profile-summary p {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .ab-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-profile-stats > span,
  .ab-profile-stats a,
  .ab-profile-stats button,
  .ab-profile-stats .ab-friends-list-trigger {
    display: flex;
    min-width: 0;
    min-height: 62px;
    padding: 12px 4px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
  }

  .ab-profile-stats strong {
    font-size: 13px;
  }

  .ab-profile-sections {
    padding: 4px 18px 18px;
  }

  .ab-profile-section {
    padding: 16px 0;
  }

  .ab-profile-section h2 {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
  }

  .ab-profile-section a,
  .ab-profile-disabled {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 15px;
  }

  .ab-profile-section strong {
    min-width: 30px;
    padding: 3px 8px;
  }
}
