.profile-page {
  min-height: 100svh;
  height: 100svh;
  padding: 64px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-header {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  z-index: 25;
  box-sizing: border-box;
}

.profile-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.profile-back,
.profile-edit {
  background: transparent;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}

.profile-back {
  position: absolute;
  left: 16px;
}

.profile-edit {
  position: absolute;
  right: 16px;
}

.profile-back img {
  width: 18px;
  height: 18px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex: 1;
  padding: 24px 16px 16px;
  min-height: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transition: opacity 160ms ease;
}

.profile-card--loading {
  pointer-events: none;
}

.profile-card--loading .profile-avatar,
.profile-card--loading .profile-name,
.profile-card--loading .profile-role,
.profile-card--loading .profile-row__label span,
.profile-card--loading .profile-row__value,
.profile-card--loading .profile-logout {
  background: linear-gradient(90deg, #e5eaf1 25%, #f3f6fb 50%, #e5eaf1 75%);
  background-size: 200% 100%;
  animation: profile-skeleton 1.2s ease-in-out infinite;
}

.profile-card--loading .profile-avatar {
  border-radius: 50%;
}

.profile-card--loading .profile-avatar__img,
.profile-card--loading .profile-avatar__letter,
.profile-card--loading .profile-row__label img,
.profile-card--loading .profile-logout img {
  visibility: hidden;
}

.profile-card--loading .profile-name {
  color: transparent;
  height: 20px;
  width: 160px;
  border-radius: 8px;
}

.profile-card--loading .profile-role {
  color: transparent;
  height: 12px;
  width: 90px;
  border-radius: 6px;
}

.profile-card--loading .profile-row__label span {
  color: transparent;
  height: 12px;
  width: 90px;
  border-radius: 6px;
  display: inline-block;
}

.profile-card--loading .profile-row__value {
  color: transparent;
  height: 12px;
  width: 120px;
  border-radius: 6px;
  display: inline-block;
}

.profile-card--loading .profile-logout {
  color: transparent;
  border-color: transparent;
}

@keyframes profile-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d1d5db;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar__letter {
  font-weight: 800;
  font-size: 24px;
  color: #111827;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.profile-role {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.profile-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.profile-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed #d1d5db;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #111827;
  font-weight: 400;
}

.profile-row__label img {
  width: 16px;
  height: 16px;
}

.profile-row__value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: right;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #111827;
}

.profile-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.profile-logout {
  margin-top: auto;
  margin-bottom: 16px;
  width: 100%;
  border: 1.5px solid #111827;
  border-radius: 16px;
  background: transparent;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.profile-logout img {
  width: 18px;
  height: 18px;
}
