.page-profile--unavailable {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.profile-unavailable {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
  text-align: center;
}

.profile-unavailable__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #f7fdff;
}

.profile-unavailable__icon {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.profile-unavailable__title {
  max-width: 360px;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.profile-unavailable__text {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Profile page — layout & details */

.page-profile {
  flex: 1;
  background: #fff;
}

.profile-toolbar__report {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #f7fdff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-toolbar__report:hover {
  background: rgba(52, 120, 155, 0.08);
  color: var(--color-primary);
}

.profile-toolbar__report-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.profile-detail {
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .page-profile .profile-detail .col-lg-4,
  .page-profile .profile-detail .col-lg-8 {
    padding-top: 16px;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .page-profile .profile-detail .row > .col-12.col-lg-4,
  .page-profile .profile-detail .row > .col-12.col-lg-8 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-top: 16px;
  }

  .page-profile .profile-detail .col-lg-8 > .profile-detail {
    width: 100%;
  }

  .page-profile .profile-detail .profile-detail__columns > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-profile .profile-detail .profile-detail__tags-row > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.profile-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-detail__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-detail__name {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #122a32;
  letter-spacing: -0.02em;
}

.profile-detail__job {
  margin: 0.35rem 0 0;
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
}

.profile-express-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 169px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.profile-express-btn:hover {
  background: #e01a6d;
  transform: translateY(-1px);
}

.profile-express-btn.is-sent {
  background: #1a6b7c;
}

.profile-express-btn--cancel {
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.profile-express-btn--cancel:hover {
  background: rgba(255, 32, 122, 0.06);
  color: var(--color-primary);
}

.profile-detail__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.profile-detail__actions .profile-express-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0px 10px;
}

.profile-detail__actions--full {
  width: 100%;
}

.profile-detail__actions--full .profile-express-btn {
  flex: 1;
  width: auto;
  min-width: 0;
}

a.profile-express-btn.profile-edit-btn {
  text-decoration: none;
}

.page-profile--own .page-profile__report,
.page-profile--own .profile-toolbar__report {
  display: none;
}

.page-profile__express-bar {
  display: none;
}

.profile-detail__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 16px;
  border: 0.5px solid #195c93;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  background: #f7fdff;
}

.profile-info-pill img {
  flex-shrink: 0;
}

.profile-detail__languages {
  margin: 0 0 20px;
  font-size: var(--font-size-14);
  line-height: var(--line-height-14);
  color: var(--color-text);
}

.profile-detail__languages-label,
.profile-detail__languages-value {
  display: block;
}

.profile-detail__languages strong,
.profile-detail__languages-label {
  font-weight: 600;
}

.profile-detail__languages-value {
  margin-top: 0.35rem;
  font-weight: 400;
}

.profile-detail__columns {
  margin-bottom: 1.75rem;
}

.profile-block__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.profile-block__text {
  margin: 0;
  font-size: var(--font-size-14);
  line-height: 1.65;
  color: #1b1b1b;
}

.profile-detail__tags-row {
  margin-bottom: 0.5rem;
}

.profile-tags-section {
  margin-bottom: 0;
  height: 100%;
}

.profile-tags-section__title {
  margin: 0 0 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: var(--font-size-14);
  font-weight: 500;
  color: var(--color-text);
}

.profile-tag__icon {
  font-size: 1rem;
  line-height: 1;
}

.profile-tag--peach {
  background: #ffe6b8;
}

.profile-tag--blue {
  background: #cfddfe;
}

.profile-tag--pink {
  background: #fcddd5;
}

.profile-tag--green {
  background: #d7fde1;
}

.profile-tag--purple {
  background: #e4d2fe;
}

.profile-tag--yellow {
  background: #fcddd5;
}

.profile-tag--mint {
  background: #e0f5f0;
}

.profile-tag--lavender {
  background: #f0e8ff;
}

.profile-tag--sky {
  background: #e3f2fd;
}

/* View profile — mobile story layout (≤599.98px) */

@media (max-width: 599.98px) {
  .page-shell:has(.page-profile--mobile) > header {
    display: none;
  }

  .page-shell:has(.page-profile--mobile) {
    padding-bottom: 0;
  }

  .page-shell:has(.page-profile--mobile) .mobile-bottom-nav {
    display: none;
  }

  .page-profile--mobile {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
  }

  .page-profile__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .page-profile__media {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
  }

  .page-profile--mobile .profile-photo-slider {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .page-profile--mobile .profile-photo-slider__frame {
    height: 100%;
    border-radius: 0;
    background: #111;
  }

  .page-profile--mobile .profile-photo-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-profile--mobile .profile-photo-slider--story .profile-photo-slider__segments {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 5px;
  }

  .page-profile--mobile .profile-photo-slider--story .profile-photo-slider__segment {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
  }

  .page-profile--mobile .profile-photo-slider--story .profile-photo-slider__segment.is-active {
    background: #ff8a3d;
  }

  .page-profile__media-actions {
    position: absolute;
    top: 65px;
    right: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .page-profile__back,
  .page-profile__report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #f7fdff;
    cursor: pointer;
    pointer-events: auto;
  }

  .page-profile__back img,
  .page-profile__report img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .page-profile__express-bar {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(27, 27, 27, 0.08);
  }

  .page-profile__express-bar .profile-detail__actions {
    width: 100%;
  }

  .page-profile__express-bar .page-profile__express-btn {
    width: 100%;
    margin: 0;
  }

  .page-profile--own.page-profile--mobile .profile-photo-slider--story .profile-photo-slider__segment.is-active {
    background: #ff8a3d;
  }

  .page-profile--mobile .profile-detail__languages {
    margin-bottom: 20px;
  }
}

/* Profile card gallery (explore grid) */

.profile-card {
  cursor: pointer;
}

.profile-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.profile-gallery--card {
  height: 100%;
}

.profile-gallery__frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.profile-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.profile-gallery__slide-wrap {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
}

.profile-gallery__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.profile-gallery__dots-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
}

.profile-gallery__dots {
  display: flex;
  gap: 5px;
  align-items: center;
  pointer-events: auto;
}

.profile-gallery__dot {
  display: block;
  flex-shrink: 0;
  height: 6px;
  width: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.profile-gallery__dot.is-active {
  width: 20px;
  background: #f2ccb3;
}

/* Report user dialogs */

.report-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.report-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.report-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  padding: 20px 20px 13px 20px;
  border-radius: 16px;
  background: #fff;
}

.report-dialog__panel--success {
  max-width: 600px;
  padding: 32px 28px 0;
  text-align: center;
}

.report-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -20px;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(25, 92, 147, 0.12);
}

.report-dialog__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.report-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #F7FDFF;
  cursor: pointer;
  transition: background 0.2s ease;
}

.report-dialog__close:hover:not(:disabled) {
  background: #ecf6f9;
}

.report-dialog__close img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.report-dialog__reasons {
  display: flex;
  flex-direction: column;
}

.report-dialog__reason {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 21px 20px;
  border: none;
  border-bottom: 1px solid rgba(25, 92, 147, 0.12);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.report-dialog__reason:last-child {
  border-bottom: none;
}

.report-dialog__reason-label {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

.report-dialog__reason.is-selected .report-dialog__reason-label {
  font-weight: 600;
  color: var(--color-text);
}

.report-dialog__reason-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.report-dialog__reason-check img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.report-dialog__error {
  margin: 12px 0 0;
}

.report-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 -20px 0;
  padding: 13px 20px 0;
  border-top: 1px solid rgba(25, 92, 147, 0.12);
}

.report-dialog__actions--success {
  margin: 40px -28px 0;
  padding: 13px 20px 13px;
  border-top: 1px solid rgba(25, 92, 147, 0.12);
}

.report-dialog__btn {
  min-width: 130px;
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.report-dialog__btn--primary {
  border: none;
  background: var(--color-primary);
  color: #fff;
}

.report-dialog__btn--primary:hover:not(:disabled) {
  background: #e01a6d;
}

.report-dialog__btn--primary.report-dialog__btn--no-selection {
  opacity: 0.75;
  cursor: not-allowed;
}

.report-dialog__btn--primary:disabled {
  cursor: not-allowed;
}

.report-dialog__success-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f7fdff;
}

.report-dialog__success-icon {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.report-dialog__success-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.report-dialog__success-text,
.report-dialog__success-note {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
}

.report-dialog__success-text {
  margin-bottom: 12px;
}

.report-dialog__success-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
}

.report-dialog__success-link:hover {
  color: #e01a6d;
}

@media (max-width: 599.98px) {
  .report-dialog {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .report-dialog__panel,
  .report-dialog__panel--success {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }

  .report-dialog__actions,
  .report-dialog__actions--success {
    justify-content: stretch;
  }

  .report-dialog__btn {
    width: 100%;
    min-width: 0;
  }
}
