:root {
  --profile-blue: #1a56db;
  --profile-blue-dark: #1e429f;
  --profile-green: #057a55;
  --profile-green-dark: #046c4e;
  --profile-ink: #111827;
  --profile-copy: #374151;
  --profile-muted: #6b7280;
  --profile-line: #e5e7eb;
  --profile-soft: #f9fafb;
  --profile-page: #f3f4f6;
  --profile-shadow: 0 2px 8px rgb(17 24 39 / 10%);
}

#main-content:has(.legacy-profile) {
  background: var(--profile-page);
}

.legacy-profile,
.legacy-profile * {
  box-sizing: border-box;
}

.legacy-profile {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 5rem;
  color: var(--profile-ink);
}

.legacy-profile svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.legacy-profile__shell {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--profile-shadow);
}

.legacy-profile__top-grid {
  display: grid;
  grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr);
  gap: 1.5rem;
  padding: 1.25rem 1rem 0;
}

.legacy-profile__identity-card,
.legacy-profile__general-card {
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--profile-shadow);
}

.legacy-profile__identity-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.legacy-profile__specialty {
  min-height: 1.5rem;
  margin: 0 0 1.75rem;
  color: var(--profile-ink);
  font-size: 1rem;
  font-weight: 700;
}

.legacy-profile__avatar-frame {
  width: 8rem;
  height: 8rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #d1d5db;
}

.legacy-profile__avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legacy-profile__avatar-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: inherit;
  cursor: zoom-in;
}

.legacy-profile__avatar-media:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: -4px;
}

.legacy-profile__recommended {
  margin: -0.2rem 0 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
}

.legacy-profile__identity-card h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  line-height: 1.45;
}

.legacy-profile__license {
  margin: 0.3rem 0 0;
  color: var(--profile-copy);
  font-size: 0.95rem;
}

.legacy-profile__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.75rem;
}

.legacy-profile__rating > span,
.legacy-profile__stars,
.legacy-profile__rating-summary > span {
  color: #e3a008;
}

.legacy-profile__rating small,
.legacy-profile__rating-summary small {
  color: var(--profile-muted);
}

.legacy-profile__identity-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.legacy-profile__audio {
  display: grid;
  width: 100%;
  gap: 0.35rem;
  color: var(--profile-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.legacy-profile__audio audio {
  width: 100%;
  height: 2.5rem;
}

.legacy-profile__contact-note {
  color: var(--profile-muted);
  font-size: 0.86rem;
}

.legacy-profile__button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.legacy-profile__button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgb(17 24 39 / 15%);
}

.legacy-profile__button:focus-visible,
.legacy-profile__socials a:focus-visible,
.legacy-profile__accordion summary:focus-visible,
.legacy-profile__permalink a:focus-visible {
  outline: 3px solid rgb(26 86 219 / 25%);
  outline-offset: 3px;
}

.legacy-profile__button--phone {
  background: linear-gradient(120deg, #0e9f6e, #1a56db);
}

.legacy-profile__button--phone:hover {
  background: linear-gradient(120deg, #057a55, #1e429f);
}

.legacy-profile__button--whatsapp {
  background: #166534;
  font-size: 1.1rem;
}

.legacy-profile__button--whatsapp:hover {
  background: #14532d;
}

.legacy-profile__button--call {
  background: linear-gradient(120deg, #7e3af2, #1a56db);
}

.legacy-profile__button--call:hover {
  background: linear-gradient(120deg, #6c2bd9, #1e429f);
}

.legacy-profile__button--dark {
  background: #374151;
}

.legacy-profile__button--dark:hover {
  background: #1f2937;
}

.legacy-profile__general-card {
  padding: 1.5rem;
}

.legacy-profile__general-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.legacy-profile__general-card h3 {
  margin: 1rem 0 0.75rem;
  text-align: center;
  font-size: 1rem;
}

.legacy-profile__biography {
  color: var(--profile-copy);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  white-space: pre-line;
}

.legacy-profile__biography p {
  margin: 0;
}

.legacy-profile__general-card hr,
.legacy-profile__listing hr {
  margin: 1.4rem 0;
  border: 0;
  border-top: 1px solid var(--profile-line);
}

.legacy-profile__place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--profile-copy);
}

.legacy-profile__place svg {
  color: #e02424;
}

.legacy-profile__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin-top: 1.25rem;
}

.legacy-profile__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--profile-copy);
  font-size: 0.82rem;
  font-weight: 600;
}

.legacy-profile__socials a:hover {
  background: var(--profile-soft);
  color: #047857;
}

.legacy-profile__socials .is-facebook:hover {
  color: #1c64f2;
}

.legacy-profile__socials .is-instagram:hover {
  color: #d61f69;
}

.legacy-profile__socials .is-email:hover {
  color: #1a56db;
}

.legacy-profile__socials .is-location:hover {
  color: #e02424;
}

.legacy-profile__accordions {
  margin: 2rem 1rem 0;
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 0.5rem;
}

.legacy-profile__accordion + .legacy-profile__accordion {
  border-top: 1px solid var(--profile-line);
}

.legacy-profile__accordion summary {
  display: flex;
  min-height: 4rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  color: var(--profile-ink);
  font-size: 1.05rem;
  font-weight: 500;
}

.legacy-profile__accordion summary::-webkit-details-marker {
  display: none;
}

.legacy-profile__accordion summary::after {
  width: 0.62rem;
  height: 0.62rem;
  margin-left: auto;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  content: "";
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.legacy-profile__accordion[open] summary {
  background: var(--profile-soft);
}

.legacy-profile__accordion[open] summary::after {
  transform: rotate(225deg);
}

.legacy-profile__accordion-content {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--profile-line);
  background: #fff;
}

.legacy-profile__empty {
  margin: 0;
  color: var(--profile-muted);
}

.legacy-profile__schedule {
  width: min(100%, 760px);
  margin: 0 auto;
}

.legacy-profile__schedule-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--profile-line);
}

.legacy-profile__schedule-row:last-child {
  border-bottom: 0;
}

.legacy-profile__schedule-row span {
  color: var(--profile-muted);
}

.legacy-profile__schedule-row small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
}

.legacy-profile__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  padding: 1rem 0;
}

.legacy-profile__consultation-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0;
  color: var(--profile-muted);
}

.legacy-profile__consultation-price strong {
  color: var(--profile-blue);
  font-size: 1.35rem;
}

.legacy-profile__consultation-price span {
  font-size: 0.72rem;
}

.legacy-profile__service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--profile-shadow);
  text-align: center;
}

.legacy-profile__service-card h3 {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.legacy-profile__service-card p {
  flex: 1;
  margin: 0 0 1rem;
  color: var(--profile-muted);
}

.legacy-profile__service-card small {
  margin-bottom: 0.5rem;
  color: var(--profile-muted);
}

.legacy-profile__service-card > strong {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 1.5rem;
}

.legacy-profile__service-card > strong span {
  color: var(--profile-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.legacy-profile__map-card {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.legacy-profile__map-art {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 0.65rem;
  background:
    linear-gradient(32deg, transparent 44%, rgb(255 255 255 / 90%) 45% 51%, transparent 52%),
    linear-gradient(142deg, transparent 42%, rgb(255 255 255 / 90%) 43% 49%, transparent 50%),
    linear-gradient(90deg, rgb(167 243 208 / 65%), rgb(191 219 254 / 70%));
}

.legacy-profile__map-art::before,
.legacy-profile__map-art::after {
  position: absolute;
  background: rgb(255 255 255 / 85%);
  content: "";
}

.legacy-profile__map-art::before {
  inset: 42% -10% auto;
  height: 14px;
  transform: rotate(-12deg);
}

.legacy-profile__map-art::after {
  inset: -10% auto -10% 58%;
  width: 12px;
  transform: rotate(17deg);
}

.legacy-profile__map-art span {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 52%;
  width: 2.2rem;
  height: 2.2rem;
  border: 0.55rem solid #e02424;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: 0 4px 8px rgb(17 24 39 / 20%);
  transform: translate(-50%, -70%) rotate(-45deg);
}

.legacy-profile__map-card p {
  margin-top: 0;
}

.legacy-profile__listing {
  padding: 3rem 1rem 1rem;
}

.legacy-profile__listing h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.legacy-profile__listing-location {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.legacy-profile__listing-location svg {
  color: var(--profile-copy);
}

.legacy-profile__listing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.legacy-profile__published-phone {
  color: var(--profile-copy);
  font-weight: 600;
}

.legacy-profile__listing-copy {
  margin: 2rem 0;
  color: var(--profile-copy);
  white-space: pre-line;
}

.legacy-profile__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}

.legacy-profile__gallery figure {
  display: flex;
  min-height: 230px;
  margin: 0 0 1.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
}

.legacy-profile__gallery figure:last-child:nth-child(odd) {
  width: calc(50% - 0.5rem);
  min-width: min(100%, 340px);
  grid-column: 1 / -1;
  justify-self: center;
}

.legacy-profile__gallery img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.legacy-profile__gallery-media {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  color: inherit;
  cursor: zoom-in;
}

.legacy-profile__gallery-media:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: -4px;
}

.profile-media-dialog {
  width: min(94vw, 1080px);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  color: #1d1d1f;
  box-shadow: 0 28px 80px rgb(0 0 0 / 34%);
}

.profile-media-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(12px);
}

.profile-media-dialog__surface {
  display: grid;
  max-height: 94dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgb(250 250 252 / 98%);
}

.profile-media-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgb(17 24 39 / 8%);
}

.profile-media-dialog__eyebrow {
  margin: 0 0 0.15rem;
  color: #6e6e73;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-media-dialog__header h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.profile-media-dialog__close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  color: #1d1d1f;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.profile-media-dialog__figure {
  display: grid;
  min-height: 0;
  margin: 0;
  place-items: center;
  overflow: auto;
  background: #111;
}

.profile-media-dialog__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94dvh - 10.5rem);
  object-fit: contain;
}

.profile-media-dialog__figure figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.profile-media-dialog__navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgb(17 24 39 / 8%);
}

.profile-media-dialog__navigation[hidden] {
  display: none;
}

.profile-media-dialog__navigation button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  color: #1d1d1f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-media-dialog__navigation button:last-child {
  justify-self: end;
}

.profile-media-dialog__navigation p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.profile-media-dialog button:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .profile-media-dialog {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .profile-media-dialog__surface {
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .profile-media-dialog__figure img {
    max-height: calc(100dvh - 10.5rem);
  }

  .profile-media-dialog__navigation button span:not([aria-hidden="true"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.legacy-profile__gallery-empty {
  display: grid;
  min-height: 240px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 2rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.6rem;
  background: var(--profile-soft);
  color: var(--profile-muted);
  text-align: center;
}

.legacy-profile__gallery-empty svg {
  width: 3rem;
  height: 3rem;
  color: #9ca3af;
}

.legacy-profile__gallery-empty p {
  margin: 0;
}

.legacy-profile__divider {
  margin: 1rem;
  border: 0;
  border-top: 1px solid var(--profile-line);
}

.legacy-profile__reviews {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 3rem 1rem 1rem;
}

.legacy-profile__reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legacy-profile__reviews-heading p {
  margin: 0 0 0.25rem;
  color: var(--profile-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legacy-profile__reviews-heading h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.legacy-profile__rating-summary {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  white-space: nowrap;
}

.legacy-profile__rating-summary > span {
  font-size: 1.4rem;
}

.legacy-profile__rating-summary strong {
  font-size: 1.3rem;
}

.legacy-profile__review-list {
  display: grid;
}

.legacy-profile__review {
  padding: 1.5rem;
  border-top: 1px solid var(--profile-line);
  background: #fff;
}

.legacy-profile__review header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legacy-profile__review-avatar {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;
}

.legacy-profile__review-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.legacy-profile__review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-top: 0.1rem;
  font-size: 0.82rem;
}

.legacy-profile__review-meta time {
  color: var(--profile-muted);
}

.legacy-profile__review > p {
  margin: 0.85rem 0 0;
  color: var(--profile-copy);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.legacy-profile__reviews-empty {
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-muted);
  text-align: center;
}

.legacy-profile__reviews-empty > span {
  color: #e3a008;
  font-size: 2.25rem;
}

.legacy-profile__reviews-empty h3 {
  margin: 0.45rem 0 0.25rem;
  color: var(--profile-ink);
  text-transform: capitalize;
}

.legacy-profile__reviews-empty p {
  margin: 0;
}

.legacy-profile__permalink {
  padding-top: 2rem;
  text-align: center;
}

.legacy-profile__permalink a {
  color: var(--profile-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .legacy-profile__top-grid {
    grid-template-columns: 1fr;
  }

  .legacy-profile__identity-card {
    width: min(100%, 520px);
    justify-self: center;
  }

  .legacy-profile__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legacy-profile {
    width: 100%;
    padding-top: 0;
  }

  .legacy-profile__shell {
    padding: 0.85rem;
    border-radius: 0;
    box-shadow: none;
  }

  .legacy-profile__top-grid {
    gap: 1rem;
    padding: 0;
  }

  .legacy-profile__identity-card,
  .legacy-profile__general-card {
    padding: 1.15rem;
  }

  .legacy-profile__socials a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .legacy-profile__socials a {
    padding: 0.55rem;
  }

  .legacy-profile__accordions {
    margin: 1rem 0 0;
  }

  .legacy-profile__accordion summary {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .legacy-profile__accordion-content {
    padding: 1rem;
  }

  .legacy-profile__schedule-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .legacy-profile__services,
  .legacy-profile__map-card,
  .legacy-profile__gallery {
    grid-template-columns: 1fr;
  }

  .legacy-profile__map-art {
    min-height: 170px;
  }

  .legacy-profile__listing {
    padding: 2rem 0.25rem 0.5rem;
  }

  .legacy-profile__listing-actions .legacy-profile__button {
    width: 100%;
  }

  .legacy-profile__published-phone {
    width: 100%;
    text-align: center;
  }

  .legacy-profile__gallery figure,
  .legacy-profile__gallery figure:last-child:nth-child(odd) {
    width: 100%;
    min-width: 0;
    min-height: 180px;
    grid-column: auto;
    margin-bottom: 0.75rem;
  }

  .legacy-profile__reviews {
    padding: 2rem 0.25rem 0.5rem;
  }

  .legacy-profile__reviews-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .legacy-profile__review {
    padding: 1.25rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-profile__button,
  .legacy-profile__accordion summary::after {
    transition: none;
  }
}

.legacy-profile__review-notice,
.legacy-profile__review-access,
.legacy-profile__review-form {
  margin-bottom: 1.25rem;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #f8fafc;
}

.legacy-profile__review-notice {
  padding: .9rem 1rem;
  color: #334155;
  font-size: .9rem;
  font-weight: 650;
}

.legacy-profile__review-notice--success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.legacy-profile__review-notice--error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.legacy-profile__review-access {
  padding: 1.15rem;
}

.legacy-profile__review-access strong {
  color: var(--profile-ink);
}

.legacy-profile__review-access p {
  margin: .35rem 0 0;
  color: var(--profile-muted);
  font-size: .9rem;
}

.legacy-profile__review-access a {
  display: inline-flex;
  margin-top: .85rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--profile-blue);
  color: #fff;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}

.legacy-profile__review-form {
  display: grid;
  gap: .85rem;
  padding: 1.2rem;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 14px 36px rgb(15 23 42 / .06);
}

.legacy-profile__review-form h3,
.legacy-profile__review-form-eyebrow {
  margin: 0;
}

.legacy-profile__review-form h3 {
  font-size: 1.05rem;
}

.legacy-profile__review-form-eyebrow {
  margin-bottom: .2rem;
  color: var(--profile-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legacy-profile__review-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.legacy-profile__review-form legend,
.legacy-profile__review-form > label {
  margin-bottom: .35rem;
  color: #334155;
  font-size: .82rem;
  font-weight: 750;
}

.legacy-profile__rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .16rem;
}

.legacy-profile__rating-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.legacy-profile__rating-input label {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 1.75rem;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

.legacy-profile__rating-input input:checked ~ label,
.legacy-profile__rating-input label:hover,
.legacy-profile__rating-input label:hover ~ label {
  color: #f59e0b;
}

.legacy-profile__rating-input input:focus-visible + label {
  border-radius: .25rem;
  outline: 3px solid rgb(37 99 235 / .3);
  outline-offset: 2px;
}

.legacy-profile__rating-input label:hover {
  transform: translateY(-1px);
}

.legacy-profile__review-form textarea {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  padding: .8rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background: #fff;
  color: var(--profile-ink);
  font: inherit;
  line-height: 1.5;
}

.legacy-profile__review-form textarea:focus {
  border-color: var(--profile-blue);
  outline: 3px solid rgb(37 99 235 / .14);
}

.legacy-profile__review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legacy-profile__review-form-footer small {
  max-width: 28rem;
  color: var(--profile-muted);
  line-height: 1.45;
}

.legacy-profile__review-form-footer button {
  flex: 0 0 auto;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--profile-blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  box-shadow: 0 8px 18px rgb(37 99 235 / .2);
}

.legacy-profile__review-form-footer button:hover {
  filter: brightness(.94);
}

@media (max-width: 640px) {
  .legacy-profile__review-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .legacy-profile__review-form-footer button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-profile__rating-input label {
    transition: none;
  }
}

/* Compact shareable profile card, matching the original /card presentation. */
.profile-card-page {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  padding: 2.5rem 1rem 4rem;
  background:
    radial-gradient(circle at 8% 6%, rgb(253 224 71 / 24%), transparent 35%),
    radial-gradient(circle at 95% 22%, rgb(56 189 248 / 28%), transparent 42%),
    radial-gradient(circle at 90% 88%, rgb(45 212 191 / 22%), transparent 42%),
    linear-gradient(180deg, #fffdf7 0%, #fff 46%, #f8fafc 100%);
}

.profile-card-wrap {
  width: min(100%, 1152px);
  margin-inline: auto;
}

.profile-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(165 243 252 / 80%);
  border-radius: 2.25rem;
  background: #fff;
  box-shadow: 0 28px 80px rgb(15 23 42 / 14%);
}

.profile-card__identity {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid #cffafe;
  background: linear-gradient(160deg, #fff7d1 0%, #fef3c7 16%, #e0f2fe 54%, #ccfbf1 100%);
}

.profile-card__identity::before,
.profile-card__identity::after {
  position: absolute;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  content: "";
  filter: blur(30px);
}

.profile-card__identity::before {
  top: -3rem;
  right: -3rem;
  background: rgb(125 211 252 / 35%);
}

.profile-card__identity::after {
  bottom: 1rem;
  left: -2rem;
  background: rgb(94 234 212 / 30%);
}

.profile-card__identity-inner {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 1.9rem;
  background: rgb(255 255 255 / 58%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 14px 30px rgb(14 116 144 / 14%);
  backdrop-filter: blur(3px);
}

.profile-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.profile-card__badges span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .7rem;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #155e75;
  font-size: .69rem;
  font-weight: 650;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.profile-card__badges svg {
  width: .9rem;
  height: .9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.profile-card__photo-frame {
  width: 154px;
  height: 190px;
  margin: 1rem auto 0;
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 90%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px rgb(14 165 233 / 20%);
}

.profile-card__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__identity h1 {
  margin: 1rem 0 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.profile-card__specialty {
  margin: .3rem 0 0;
  color: #475569;
  font-size: .88rem;
  font-weight: 650;
  text-align: center;
}

.profile-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}

.profile-card__facts > div {
  min-width: 0;
  padding: .55rem .7rem;
  border: 1px solid #cffafe;
  border-radius: .75rem;
  background: rgb(255 255 255 / 90%);
}

.profile-card__facts span,
.profile-card__contact-grid span,
.profile-card__reviews-heading span {
  display: block;
  color: #64748b;
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.profile-card__facts strong {
  display: block;
  margin-top: .25rem;
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: .82rem;
}

.profile-card__actions {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
}

.profile-card__actions a,
.profile-card__actions button,
.profile-card__unavailable {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  border: 0;
  border-radius: .75rem;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

.profile-card__actions .is-whatsapp {
  background: linear-gradient(120deg, #22c55e, #14b8a6);
  color: #fff;
  box-shadow: 0 10px 18px rgb(16 185 129 / 30%);
}

.profile-card__actions .is-phone {
  background: linear-gradient(120deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 10px 18px rgb(14 165 233 / 26%);
}

.profile-card__actions .profile-card__full-link,
.profile-card__share {
  border: 1px solid #a5f3fc;
  background: rgb(255 255 255 / 90%);
  color: #334155;
}

.profile-card__share {
  cursor: pointer;
}

.profile-card__unavailable {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}

.profile-card__caption {
  position: relative;
  z-index: 1;
  margin: .8rem 0 0;
  color: #475569;
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.profile-card__details {
  padding: 2rem 2.25rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.profile-card__section,
.profile-card__contact-grid section,
.profile-card__social-section,
.profile-card__reviews {
  padding: 1.25rem;
  border: 1px solid #cffafe;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 25px rgb(14 165 233 / 8%);
}

.profile-card__section h2,
.profile-card__social-section h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 850;
}

.profile-card__section p {
  margin: .7rem 0 0;
  color: #334155;
  line-height: 1.7;
  white-space: pre-line;
}

.profile-card__contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.profile-card__contact-grid section {
  min-width: 0;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
}

.profile-card__contact-grid .profile-card__address {
  grid-column: 1 / -1;
}

.profile-card__contact-grid a,
.profile-card__contact-grid p {
  display: block;
  margin: .45rem 0 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: .9rem;
}

.profile-card__social-section {
  margin-top: 1rem;
}

.profile-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}

.profile-card__socials a {
  padding: .45rem .7rem;
  border: 1px solid #cbd5e1;
  border-radius: .65rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 650;
}

.profile-card__socials a:hover {
  border-color: #22d3ee;
  color: #0e7490;
}

.profile-card__reviews {
  margin-top: 1rem;
}

.profile-card__reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-card__reviews-heading strong {
  display: block;
  margin-top: .2rem;
  color: #0f172a;
  font-size: 1.25rem;
}

.profile-card__reviews-heading small {
  color: #64748b;
}

.profile-card__review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.profile-card__review-list article {
  padding: .8rem;
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
  background: #f8fafc;
}

.profile-card__review-list span {
  color: #f59e0b;
  letter-spacing: .08em;
}

.profile-card__review-list p,
.profile-card__reviews-empty {
  margin: .45rem 0 0;
  color: #475569;
  font-size: .83rem;
}

@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card__identity {
    border-right: 0;
    border-bottom: 1px solid #cffafe;
  }

  .profile-card__identity-inner {
    width: min(100%, 460px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .profile-card-page {
    padding: 1rem .65rem 2.5rem;
  }

  .profile-card {
    border-radius: 1.5rem;
  }

  .profile-card__identity,
  .profile-card__details {
    padding: 1rem;
  }

  .profile-card__identity-inner {
    padding: 1rem;
  }

  .profile-card__contact-grid,
  .profile-card__review-list {
    grid-template-columns: 1fr;
  }

  .profile-card__contact-grid .profile-card__address {
    grid-column: auto;
  }
}

/*
 * Refined profile experience.
 *
 * Kept deliberately component-scoped: the public profile gains calmer
 * surfaces, stronger hierarchy and touch-friendly controls without altering
 * the site navigation or authenticated screens.
 */
#main-content:has(.legacy-profile) {
  background:
    radial-gradient(circle at 8% 0%, rgb(14 165 233 / 6%), transparent 28rem),
    #f5f5f7;
}

.legacy-profile {
  width: min(1320px, calc(100% - 2.5rem));
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 8vw, 8rem);
  color: #1d1d1f;
}

.legacy-profile__shell {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgb(17 24 39 / 7%);
  border-radius: 2rem;
  background: rgb(255 255 255 / 88%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 90%) inset,
    0 24px 70px rgb(15 23 42 / 9%);
}

.legacy-profile__top-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1.25rem;
  padding: 0;
}

.legacy-profile__identity-card,
.legacy-profile__general-card {
  min-width: 0;
  border: 1px solid rgb(17 24 39 / 7%);
  border-radius: 1.5rem;
  box-shadow: 0 12px 34px rgb(15 23 42 / 6%);
}

.legacy-profile__identity-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 50% -20%, rgb(14 165 233 / 13%), transparent 13rem),
    #fff;
}

.legacy-profile__specialty {
  margin-bottom: 1.35rem;
  color: #515154;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.legacy-profile__avatar-frame {
  width: clamp(8rem, 15vw, 9.5rem);
  height: clamp(8rem, 15vw, 9.5rem);
  margin-bottom: 1.15rem;
  border: 5px solid #fff;
  background: #e8e8ed;
  box-shadow:
    0 0 0 1px rgb(17 24 39 / 8%),
    0 14px 30px rgb(15 23 42 / 13%);
}

.legacy-profile__avatar {
  object-fit: cover;
}

.legacy-profile__recommended {
  margin-bottom: .8rem;
  padding: .32rem .72rem;
  border: 1px solid rgb(245 158 11 / 18%);
  background: #fff7d6;
  color: #895700;
  font-size: .68rem;
  letter-spacing: .02em;
}

.legacy-profile__identity-card h1 {
  color: #1d1d1f;
  font-size: clamp(1.28rem, 2.3vw, 1.6rem);
  font-weight: 740;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.legacy-profile__license,
.legacy-profile__rating small,
.legacy-profile__rating-summary small {
  color: #6e6e73;
}

.legacy-profile__identity-actions {
  width: 100%;
  max-width: 250px;
  margin-top: 1.25rem;
}

.legacy-profile__button {
  min-height: 46px;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgb(15 23 42 / 12%);
  font-weight: 680;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.legacy-profile__button:hover {
  box-shadow: 0 14px 28px rgb(15 23 42 / 16%);
  filter: saturate(108%);
  transform: translateY(-1px);
}

.legacy-profile__general-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.legacy-profile__general-card h2 {
  color: #1d1d1f;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 730;
  letter-spacing: -.03em;
}

.legacy-profile__general-card h3 {
  color: #1d1d1f;
}

.legacy-profile__biography {
  color: #424245;
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height: 1.62;
}

.legacy-profile__general-card hr,
.legacy-profile__listing hr {
  border-top-color: rgb(17 24 39 / 9%);
}

.legacy-profile__place {
  color: #515154;
}

.legacy-profile__socials {
  gap: .55rem;
}

.legacy-profile__socials a {
  min-height: 42px;
  padding: .55rem .75rem;
  border: 1px solid rgb(17 24 39 / 8%);
  border-radius: 999px;
  background: #f5f5f7;
  color: #515154;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.legacy-profile__socials a:hover {
  border-color: rgb(5 122 85 / 20%);
  background: #fff;
}

.legacy-profile__accordions {
  margin: 1.25rem 0 0;
  border-color: rgb(17 24 39 / 8%);
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px rgb(15 23 42 / 5%);
}

.legacy-profile__accordion + .legacy-profile__accordion {
  border-top-color: rgb(17 24 39 / 8%);
}

.legacy-profile__accordion summary {
  min-height: 4.25rem;
  padding: 1rem 1.25rem;
  color: #1d1d1f;
  font-weight: 650;
}

.legacy-profile__accordion summary:hover,
.legacy-profile__accordion[open] summary {
  background: #f5f5f7;
}

.legacy-profile__accordion-content {
  border-top-color: rgb(17 24 39 / 8%);
}

.legacy-profile__schedule-row {
  border-bottom-color: rgb(17 24 39 / 8%);
}

.legacy-profile__services {
  gap: 1rem;
}

.legacy-profile__service-card {
  padding: 1.5rem;
  border-color: rgb(17 24 39 / 7%);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgb(15 23 42 / 6%);
}

.legacy-profile__service-card h3 {
  color: #1d1d1f;
  font-weight: 700;
  letter-spacing: -.02em;
}

.legacy-profile__service-card p,
.legacy-profile__service-card small {
  color: #6e6e73;
  line-height: 1.55;
}

.legacy-profile__map-art {
  border: 1px solid rgb(17 24 39 / 6%);
  border-radius: 1.2rem;
}

.legacy-profile__listing {
  padding: clamp(2.5rem, 5vw, 4.5rem) .25rem 1rem;
}

.legacy-profile__listing h2 {
  color: #1d1d1f;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 730;
  letter-spacing: -.035em;
}

.legacy-profile__listing-location {
  color: #1d1d1f;
}

.legacy-profile__listing-copy {
  color: #424245;
  font-size: 1rem;
  line-height: 1.65;
}

.legacy-profile__gallery {
  gap: 1rem;
}

.legacy-profile__gallery figure {
  border: 1px solid rgb(17 24 39 / 6%);
  border-radius: 1.35rem;
  background: #f5f5f7;
  box-shadow: 0 12px 32px rgb(15 23 42 / 7%);
}

.legacy-profile__gallery img {
  border-radius: inherit;
}

.legacy-profile__gallery-empty {
  border-color: rgb(17 24 39 / 13%);
  border-radius: 1.35rem;
  background: #f5f5f7;
}

.legacy-profile__divider {
  border-top-color: rgb(17 24 39 / 8%);
}

.legacy-profile__reviews {
  width: min(100%, 780px);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.legacy-profile__reviews-heading p {
  color: #0066cc;
}

.legacy-profile__reviews-heading h2 {
  color: #1d1d1f;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 730;
  letter-spacing: -.03em;
}

.legacy-profile__review {
  margin-top: .75rem;
  border: 1px solid rgb(17 24 39 / 7%);
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgb(15 23 42 / 5%);
}

.legacy-profile__review:first-child {
  margin-top: 0;
}

.legacy-profile__reviews-empty {
  border: 1px solid rgb(17 24 39 / 7%);
  border-radius: 1.2rem;
  background: #fff;
}

.legacy-profile__permalink a {
  color: #0066cc;
}

.profile-card-page {
  padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 5% 8%, rgb(255 214 10 / 15%), transparent 30rem),
    radial-gradient(circle at 96% 12%, rgb(10 132 255 / 16%), transparent 34rem),
    radial-gradient(circle at 88% 95%, rgb(48 209 88 / 12%), transparent 34rem),
    #f5f5f7;
}

.profile-card-wrap {
  width: min(100%, 1180px);
}

.profile-card {
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  min-width: 0;
  border-color: rgb(17 24 39 / 8%);
  border-radius: 2rem;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 90%) inset,
    0 30px 80px rgb(15 23 42 / 13%);
}

.profile-card__identity {
  min-width: 0;
  border-right-color: rgb(17 24 39 / 7%);
  background:
    radial-gradient(circle at 90% 0%, rgb(10 132 255 / 12%), transparent 15rem),
    radial-gradient(circle at 10% 95%, rgb(48 209 88 / 11%), transparent 16rem),
    linear-gradient(160deg, #fff9dd 0%, #f3fbff 54%, #edfffa 100%);
}

.profile-card__identity::before {
  background: rgb(10 132 255 / 16%);
}

.profile-card__identity::after {
  background: rgb(48 209 88 / 14%);
}

.profile-card__identity-inner {
  min-width: 0;
  border-color: rgb(255 255 255 / 82%);
  border-radius: 1.6rem;
  background: rgb(255 255 255 / 68%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 92%) inset,
    0 18px 45px rgb(15 82 97 / 11%);
  backdrop-filter: blur(20px) saturate(125%);
}

.profile-card__badges span {
  border-color: rgb(14 165 233 / 18%);
  background: rgb(255 255 255 / 84%);
  color: #17647a;
}

.profile-card__photo-frame {
  border-color: rgb(255 255 255 / 92%);
  border-radius: 1.25rem;
  box-shadow: 0 16px 34px rgb(15 82 97 / 17%);
}

.profile-card__identity h1 {
  color: #1d1d1f;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.profile-card__specialty {
  color: #515154;
}

.profile-card__facts > div {
  border-color: rgb(17 24 39 / 7%);
  border-radius: .9rem;
  background: rgb(255 255 255 / 75%);
}

.profile-card__facts span,
.profile-card__contact-grid span,
.profile-card__reviews-heading span {
  color: #6e6e73;
}

.profile-card__facts strong {
  color: #1d1d1f;
}

.profile-card__actions a,
.profile-card__actions button,
.profile-card__unavailable {
  min-height: 44px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.profile-card__actions .is-whatsapp {
  background: linear-gradient(120deg, #20b95c, #0c9d8b);
}

.profile-card__actions .is-phone {
  background: linear-gradient(120deg, #1597e5, #2764e7);
}

.profile-card__actions .profile-card__full-link,
.profile-card__share {
  border-color: rgb(17 24 39 / 11%);
  background: rgb(255 255 255 / 80%);
  color: #424245;
}

.profile-card__actions a:hover,
.profile-card__actions button:hover {
  filter: saturate(108%);
  transform: translateY(-1px);
}

.profile-card__details {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #fff, #fbfbfd);
}

.profile-card__section,
.profile-card__contact-grid section,
.profile-card__social-section,
.profile-card__reviews {
  border-color: rgb(17 24 39 / 7%);
  border-radius: 1.4rem;
  box-shadow: 0 12px 30px rgb(15 23 42 / 5%);
}

.profile-card__section h2,
.profile-card__social-section h2 {
  color: #1d1d1f;
  font-weight: 730;
  letter-spacing: -.025em;
}

.profile-card__section p,
.profile-card__contact-grid a,
.profile-card__contact-grid p {
  color: #424245;
  overflow-wrap: anywhere;
}

.profile-card__contact-grid {
  gap: .8rem;
}

.profile-card__contact-grid section {
  border-radius: 1.1rem;
}

.profile-card__socials a {
  min-height: 40px;
  padding: .55rem .8rem;
  border-color: rgb(17 24 39 / 10%);
  border-radius: 999px;
  color: #424245;
}

.profile-card__review-list article {
  border-color: rgb(17 24 39 / 7%);
  border-radius: 1rem;
  background: #f5f5f7;
}

.profile-card__actions a:focus-visible,
.profile-card__actions button:focus-visible,
.profile-card__socials a:focus-visible,
.legacy-profile__button:focus-visible,
.legacy-profile__socials a:focus-visible,
.legacy-profile__accordion summary:focus-visible,
.legacy-profile__permalink a:focus-visible {
  outline: 3px solid rgb(0 122 255 / 38%);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .legacy-profile__top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legacy-profile__identity-card {
    width: 100%;
  }

  .legacy-profile__identity-actions {
    max-width: 310px;
  }

  .profile-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-card__identity {
    border-right: 0;
    border-bottom-color: rgb(17 24 39 / 7%);
  }
}

@media (max-width: 640px) {
  #main-content:has(.legacy-profile) {
    background: #f5f5f7;
  }

  .legacy-profile {
    width: 100%;
    padding: .75rem 0 4rem;
  }

  .legacy-profile__shell {
    padding: .75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .legacy-profile__identity-card,
  .legacy-profile__general-card {
    border-radius: 1.35rem;
  }

  .legacy-profile__identity-card {
    padding: 1.5rem 1rem;
  }

  .legacy-profile__general-card {
    padding: 1.3rem 1rem;
  }

  .legacy-profile__avatar-frame {
    width: 8.5rem;
    height: 8.5rem;
  }

  .legacy-profile__socials a {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .legacy-profile__accordions {
    border-radius: 1.15rem;
  }

  .legacy-profile__services {
    grid-template-columns: 1fr;
  }

  .legacy-profile__service-card {
    border-radius: 1.1rem;
  }

  .legacy-profile__listing {
    padding-inline: .25rem;
  }

  .legacy-profile__listing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legacy-profile__gallery figure {
    border-radius: 1.1rem;
  }

  .legacy-profile__review {
    border-radius: 1rem;
  }

  .profile-card-page {
    padding: .75rem .55rem 3rem;
  }

  .profile-card {
    border-radius: 1.45rem;
  }

  .profile-card__identity,
  .profile-card__details {
    padding: .85rem;
  }

  .profile-card__identity-inner {
    border-radius: 1.25rem;
  }

  .profile-card__contact-grid,
  .profile-card__review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-card__section,
  .profile-card__contact-grid section,
  .profile-card__social-section,
  .profile-card__reviews {
    padding: 1rem;
    border-radius: 1.15rem;
  }
}

@media (max-width: 390px) {
  .legacy-profile__shell {
    padding-inline: .5rem;
  }

  .legacy-profile__identity-card h1 {
    font-size: 1.35rem;
  }

  .legacy-profile__accordion summary {
    gap: .55rem;
    padding-inline: .85rem;
    font-size: .9rem;
  }

  .legacy-profile__listing h2 {
    font-size: 1.45rem;
  }

  .profile-card-page {
    padding-inline: .35rem;
  }

  .profile-card__identity,
  .profile-card__details {
    padding-inline: .65rem;
  }

  .profile-card__identity-inner {
    padding: .9rem;
  }

  .profile-card__facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-profile__button,
  .legacy-profile__socials a,
  .profile-card__actions a,
  .profile-card__actions button,
  .profile-card__socials a {
    transition: none;
  }

  .legacy-profile__button:hover,
  .profile-card__actions a:hover,
  .profile-card__actions button:hover {
    transform: none;
  }
}
