/* ==========================================================================
   Model profile page
   Desktop: gallery + info side by side, then skills | rates, recently viewed, breadcrumbs.
   Not yet: reviews, Verified badge, favorites, report profile (their styles are left out).
   Phones: one column; key info, skills and rates become accordions.
   ========================================================================== */

.profile { padding-bottom: var(--space-12); }

/* Top bar: back + share ------------------------------------------------- */

.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: 1.0625rem;
  color: var(--color-text);
}

.back-link .icon { width: 18px; height: 18px; color: var(--color-pink); }
.back-link:hover { color: var(--color-pink-strong); }
.back-link__short { display: none; }

.profile-bar__actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 1rem;
  color: var(--color-text);
}

.pill-btn .icon { width: 22px; height: 22px; }
.pill-btn:hover { border-color: var(--color-pink); }

/* Layout --------------------------------------------------------------------
   Two columns on wide screens: photos + about | details + skills + rates.
   On phones the columns dissolve (display: contents) and blocks are
   re-ordered: photos, details, skills, rates, about. */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}

.profile-col { display: flex; flex-direction: column; gap: var(--space-8); }
.profile-col--details { gap: var(--space-6); }

/* Gallery ------------------------------------------------------------------
   The track is a native scroll-snap strip: swipe works on touch screens
   out of the box, JS adds arrows, thumbnails, keyboard and the counter. */

.gallery { min-width: 0; }

.gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.gallery__track {
  display: flex;
  aspect-ratio: 4 / 5;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--color-pink); outline-offset: -3px; }

.gallery__slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;   /* one photo per swipe */
  cursor: zoom-in;
}

.gallery__img,
.gallery__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
}

/* Portrait photos fill the frame */
.gallery__img { object-fit: cover; object-position: 50% 20%; }

/* Square and landscape photos: shown whole, the empty space is filled
   with a blurred, enlarged copy of the same photo */
.gallery__slide[data-fit="contain"] { overflow: hidden; }
.gallery__slide[data-fit="contain"] .gallery__img { object-fit: contain; object-position: center; }

.gallery__bg {
  object-fit: cover;
  filter: blur(28px) brightness(0.8) saturate(1.1);
  transform: scale(1.2);   /* hides the soft edges of the blur */
}

.gallery__counter {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 35, 44, 0.7);
  color: #FFFFFF;
  font-size: var(--fs-small);
  font-weight: 600;
  pointer-events: none;
}

.gallery__expand,
.gallery__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 35, 44, 0.7);
  color: #FFFFFF;
  transition: opacity 0.2s, background-color 0.15s;
}

.gallery__expand { right: var(--space-3); bottom: var(--space-3); }
.gallery__expand .icon { width: 20px; height: 20px; }

.gallery__nav { top: 50%; translate: 0 -50%; }
.gallery__nav--prev { left: var(--space-3); }
.gallery__nav--next { right: var(--space-3); }
.gallery__nav .icon { width: 24px; height: 24px; }
.gallery__nav:hover,
.gallery__expand:hover { background: rgba(16, 35, 44, 0.9); }
.gallery__nav:disabled { opacity: 0 !important; pointer-events: none; }

/* Mouse users see the arrows on hover; touch users swipe instead */
@media (hover: hover) {
  .gallery__nav { opacity: 0; }
  .gallery__main:hover .gallery__nav,
  .gallery__nav:focus-visible { opacity: 1; }
}

@media (hover: none) {
  .gallery__nav { display: none; }
}

/* Thumbnails: 4 visible, the rest scroll sideways */
.gallery__thumbs {
  --thumbs-visible: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--thumbs-visible) - 1) * var(--space-3)) / var(--thumbs-visible));
  gap: var(--space-3);
  margin-top: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs > li { scroll-snap-align: start; }

.gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.gallery__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.gallery__thumb:hover img,
.gallery__thumb[aria-current="true"] img { opacity: 1; }

.gallery__thumb[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-pink);
  border-radius: inherit;
}

.gallery__thumb:focus-visible { outline: 2px solid var(--color-pink); outline-offset: 2px; }

/* Full-screen gallery -------------------------------------------------------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 18, 23, 0.97);
  color: #FFFFFF;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(10, 18, 23, 0.97); }

.lightbox[open] { display: block; animation: lightbox-in 0.22s ease-out; }

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* The browser swipes between photos; pinch, double tap and the vertical swipe that closes
     the view come to profile.js (Zoom) */
  touch-action: pan-x;
}

/* Zoomed: the strip stands still, every gesture moves the photo */
.lightbox.is-zoomed .lightbox__track { overflow: hidden; touch-action: none; }

.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track:focus-visible { outline: none; }

.lightbox__slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  margin: 0;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--space-4) calc(24px + env(safe-area-inset-bottom, 0px));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* The spinner (profile.js): .is-loading — the photo is not here yet (hidden until it is);
   .is-upgrading — zoomed in, the larger file is loading (the photo stays, the spinner over it).
   It shows after a short delay, so a fast (cached) load doesn't flash it. */
.lightbox__slide::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--color-pink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox__slide.is-loading::after,
.lightbox__slide.is-upgrading::after {
  opacity: 1;
  transition-delay: 0.15s;
  animation: lightbox-spin 0.8s linear infinite;
}

.lightbox__slide.is-loading img { visibility: hidden; }

@keyframes lightbox-spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .lightbox__slide.is-loading::after,
  .lightbox__slide.is-upgrading::after { animation-duration: 1.6s; }
}

/* Never larger than the photo itself: width / height (the largest version) are its size,
   the screen only makes it smaller; object-fit keeps the proportions when one side is cut down */
.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  /* --lb-fade: the photo and the controls fade while it is swiped down to close */
  opacity: var(--lb-fade, 1);
}

/* The magnifier only where zooming in shows more (profile.js: data-zoomable) */
.lightbox__slide img[data-zoomable] { cursor: zoom-in; }
/* Zoomed: a click goes back, a drag moves the photo */
.lightbox.is-zoomed .lightbox__slide img { cursor: zoom-out; }
.lightbox.is-zoomed .lightbox__slide img:active { cursor: grabbing; }
.lightbox__bar,
.lightbox__nav { opacity: var(--lb-fade, 1); }

.lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) var(--space-3) var(--space-2) var(--space-5);
}

.lightbox__counter { font-size: 1rem; font-weight: 600; }

.lightbox__close,
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close .icon,
.lightbox__nav .icon { width: 26px; height: 26px; }

.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: var(--space-5); }
.lightbox__nav--next { right: var(--space-5); }
.lightbox__nav:disabled { opacity: 0.25; pointer-events: none; }

@media (hover: none) { .lightbox__nav { display: none; } }

html.has-lightbox { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .gallery__nav, .gallery__thumb img { transition: none; }
}

/* Info column -------------------------------------------------------------- */

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-info__name {
  overflow-wrap: anywhere;
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

/* "NEW" over the name (the badge itself: model-card.css) */
.profile-info__badges { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.badge--lg { height: 30px; padding: 0 var(--space-3); font-size: var(--fs-small); }

/* Under the name: the breadcrumbs, then the online status; a divider below */
.profile-info__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  align-self: stretch;
  margin-top: var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

/* "● Online" / "Online 2 h ago" (the dot and its animation: model-card.css) */
.profile-info__presence {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

.profile-info__presence.presence--online { font-weight: 600; color: #15803D; }

/* Home › Location under the name, in the place of the mockup's location line.
   Everything inside the list is breadcrumbs.css (the same on every page); here only this place:
   the line under it comes from .profile-info__meta, so no margin of .breadcrumbs. */
.profile-info__crumbs { margin: 0; }

/* Small square icon tiles (24 px). The clickable area is extended to 44 px
   with an invisible ::after, so they stay easy to tap. */
.icon-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-pink);
}

.icon-tile .icon { width: 14px; height: 14px; }

.icon-tile--btn::after,
.contact-row__phone::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.icon-tile--btn:hover { border-color: var(--color-pink); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-5);
}

/* Email, WhatsApp, Telegram: one group that never breaks apart */
.contact-row__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-5);
}

.contact-row__links > li { display: flex; }

.contact-row__phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.1875rem;
  color: var(--color-text);
}

.contact-row__phone:hover { color: var(--color-pink-strong); }

/* The contacts get their href from profile.js; until then (or without JS) they are not links */
.contact-row a:not([href]),
.contact-bar a:not([href]) { pointer-events: none; }

.contact-row__nojs { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--color-text-secondary); }

.booking-note { margin-top: var(--space-6); }
.booking-note__title { font-size: 1.125rem; font-weight: 700; color: var(--color-text); }
.booking-note p { margin-top: var(--space-1); font-size: 1.0625rem; line-height: 1.5; color: var(--color-text); }

/* Cards / accordions -------------------------------------------------------- */

.info-card {
  align-self: stretch;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.profile-info .info-card { margin-top: var(--space-6); background: #FAFAFA; }
.info-card--rates { background: #FAFAFA; }

.info-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  cursor: default;
}

.info-card__head::-webkit-details-marker { display: none; }
.info-card__title { flex-grow: 1; font-size: 1.1875rem; font-weight: 700; color: var(--color-text); }
.info-card__chevron { display: none; width: 20px; height: 20px; color: var(--color-text); transition: rotate 0.2s; }

/* Key facts ------------------------------------------------------------------
   No icons: the label says it all.
   Phones (accordion): rows "Label ...... value".
   Tablet and desktop: tiles — a small grey label over the value in bold, a thin soft pink line
   on the left keeps the tiles apart. As many ≥120px columns as fit: 3 on desktop, 2 on tablet,
   so 7–9 properties take 3 compact rows and every label sits right over its value. */
.facts { margin: var(--space-3) 0 0; }

.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: 9px;
  font-size: 1.0625rem;
}

/* The same hierarchy as the tiles: grey label, value in bold */
.facts dt { color: var(--color-text-secondary); white-space: nowrap; }
.facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--color-text); overflow-wrap: break-word; }

@media (min-width: 640px) {
  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-5) var(--space-6);
    margin-top: var(--space-5);
  }

  .facts__row {
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 0 0 var(--space-3);
    border-left: 2px solid var(--color-pink-soft);
  }

  .facts dt {
    font-size: var(--fs-small);
    line-height: 1.3;
    white-space: normal;
  }

  .facts dd {
    font-size: 1.0625rem;
    line-height: 1.3;
    text-align: left;
  }
}

/* Skills: pink checks, two columns */
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-4);
  font-size: 1.0625rem;
  color: var(--color-text);
}

.skills li { display: flex; align-items: center; gap: var(--space-3); }

.skills li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--color-pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Rates ----------------------------------------------------------------------
   A price list: "Label ········ price" — the dotted leader takes the eye from the service
   to its price. Groups get a small caps subheading (as the breadcrumbs) and a divider between
   them. Rows go in two columns where two fit (≥ 2 × 220px: the desktop card), read down then
   across; the tablet column and phones have one. */
.rates__group { margin-top: var(--space-4); }

.rates__group + .rates__group {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.rates__group-title {
  margin-bottom: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.rates {
  margin: 0;
  columns: 2 220px;
  column-gap: var(--space-8);
}

.rates__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: 6px;
  font-size: 1.0625rem;
  color: var(--color-text);
  break-inside: avoid;
}

.rates__row dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
}

/* The leader: an empty flex item; its bottom sits on the baseline, lifted a little */
.rates__row dt::after {
  content: "";
  flex: 1 0 var(--space-4);
  border-bottom: 2px dotted var(--color-border);
  translate: 0 -0.3em;
}

.rates__row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.rates__note { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--color-text-secondary); }

/* Small confirmation message ("Link copied") */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 35, 44, 0.25);
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.toast:empty { visibility: hidden; }
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* About ---------------------------------------------------------------------- */

.section-title { font-size: 1.5rem; font-weight: 700; color: var(--color-text); }

.about__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.about__updated { font-size: var(--fs-small); color: var(--color-text-secondary); }
.about__text { margin-top: var(--space-3); font-size: 1.0625rem; line-height: 1.6; color: var(--color-text); }

/* Folded by profile.js until "Read more" */
.about__text.is-folded {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about__more {
  min-height: 44px;
  margin-top: var(--space-1);
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-pink-strong);
}

.about__more:hover { text-decoration: underline; }
.about__more[hidden] { display: none; }

/* Recently viewed (the "Similar models" block of the mockup) ------------------------- */

.similar { margin-top: var(--space-12); }

.similar__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.similar__all { flex-shrink: 0; font-weight: 600; color: var(--color-pink-strong); }
.similar__all:hover { text-decoration: underline; }

.similar__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.similar-card { display: flex; flex-direction: column; gap: var(--space-2); color: var(--color-text); }

.similar-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.similar-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.3s;
}

.similar-card:hover .similar-card__photo img { transform: scale(1.03); }

.similar-card__name { display: flex; justify-content: space-between; gap: var(--space-2); min-width: 0; font-size: 1.125rem; font-weight: 700; }
.similar-card__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar-card__price { flex-shrink: 0; font-weight: 400; color: var(--color-text-secondary); white-space: nowrap; }
.similar-card:hover .similar-card__title { color: var(--color-pink-strong); }

/* Breadcrumbs at the bottom: Home › Location › Name -------------------------------
   Everything inside the list is breadcrumbs.css (the same on every page); here only the place. */

.profile-crumbs {
  margin: var(--space-12) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

/* One photo: nothing to browse */
.gallery--single .gallery__track { overflow: hidden; }

/* Contact bar (phones) ---------------------------------------------------------
   Fixed at the bottom while the contact row is out of view (profile.js: .is-visible).
   html.has-contact-bar: room for it at the end of the page, and the toast goes above it. */
.contact-bar { display: none; }

@media (max-width: 639px) {
  .contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(16, 35, 44, 0.08);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    visibility: hidden;
    translate: 0 110%;
    transition: translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.25s;
  }

  .contact-bar[hidden] { display: none; }

  .contact-bar.is-visible {
    visibility: visible;
    translate: 0 0;
    transition: translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  }

  .contact-bar__btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: 0;
    min-height: 48px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
  }

  .contact-bar__btn .icon { flex: none; width: 20px; height: 20px; color: var(--color-pink); }

  /* The call: the main action */
  .contact-bar__btn--call { border-color: transparent; background: var(--color-pink-strong); color: #FFFFFF; }
  .contact-bar__btn--call .icon { color: currentColor; }

  /* Three buttons: the messengers keep only their icons */
  .contact-bar:has(> :nth-child(3)) .contact-bar__btn:not(.contact-bar__btn--call) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .contact-bar:has(> :nth-child(3)) .contact-bar__btn:not(.contact-bar__btn--call) { flex: 0 0 56px; padding: 0; }

  html.has-contact-bar body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  html.has-contact-bar .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-bar, .contact-bar.is-visible { transition: none; }
}

/* Profile unavailable (410) ------------------------------------------------------ */

.gone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.gone__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; color: var(--color-text); }
.gone__text { max-width: 36em; font-size: 1.0625rem; color: var(--color-text-secondary); }
.gone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.gone__secondary { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }
.gone__secondary:hover { border-color: var(--color-pink); }

/* ---------- Tablet: photos | details, then skills | rates, then about ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  .profile-grid { gap: var(--space-6); }
  .profile-col { display: contents; }
  .gallery { grid-column: 1; grid-row: 1; }
  .profile-info { grid-column: 2; grid-row: 1; }
  .info-card--skills { grid-column: 1; grid-row: 2; align-self: stretch; }
  .info-card--rates { grid-column: 2; grid-row: 2; align-self: stretch; }
  .about { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 1023px) {
  .profile-grid { gap: var(--space-6); }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .similar__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
}

/* ---------- Phones: one column, accordions ---------- */
@media (max-width: 639px) {
  .profile-bar { padding-block: var(--space-3); }
  .back-link__long { display: none; }
  .back-link__short { display: inline; }

  /* Icon-only actions, labels kept for screen readers */
  .pill-btn { width: 44px; padding: 0; justify-content: center; border: 0; background: none; }
  .pill-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pill-btn .icon { width: 26px; height: 26px; }
  .profile-bar__actions { gap: 0; margin-right: -10px; }

  .profile-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .profile-col { display: contents; }

  .gallery { order: 1; }
  .profile-info { order: 2; }
  .info-card--skills { order: 3; }
  .info-card--rates { order: 4; }
  .about { order: 5; }

  /* a part of the 5th thumbnail peeks out to show the strip scrolls */
  .gallery__thumbs { --thumbs-visible: 4.4; gap: var(--space-2); margin-top: var(--space-2); grid-auto-columns: calc((100% - 4 * var(--space-2)) / var(--thumbs-visible)); }

  .profile-info { margin-top: var(--space-5); }
  .profile-info__meta { padding-bottom: var(--space-4); }
  .profile-info__presence { font-size: 1rem; }
  .profile-info__badges { margin-bottom: var(--space-2); }
  .contact-row { margin-top: var(--space-4); }
  .contact-row__phone { font-size: 1.125rem; }
  .booking-note { margin-top: var(--space-5); }

  /* Cards become flat accordion rows */
  .info-card,
  .profile-info .info-card,
  .info-card--rates {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: none;
  }

  .profile-info .info-card { margin-top: var(--space-5); border-top: 1px solid var(--color-border); }

  .info-card__head { min-height: 64px; cursor: pointer; }
  .info-card__chevron { display: block; }
  .info-card[open] .info-card__chevron { rotate: 180deg; }
  .info-card[open] > :not(summary) { padding-bottom: var(--space-4); }
  .info-card__title { font-size: 1.125rem; }

  .facts { margin-top: 0; }
  .skills { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: var(--space-3); }
  .rates__group { margin-top: 0; }
  /* The open accordion pads its parts at the bottom: only the last group needs it */
  .info-card[open] > .rates__group:not(:last-child) { padding-bottom: 0; }
  .rates__group + .rates__group { margin-top: var(--space-3); padding-top: var(--space-3); }
  .rates__note { margin-top: 0; }

  .about { margin-top: var(--space-6); }
  .section-title { font-size: 1.375rem; }

  .similar { margin-top: var(--space-10); }
  .similar__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
  .similar__list > li:nth-child(n + 5) { display: none; }
  .similar-card__name { font-size: 1rem; }
  .similar-card__price { display: none; }
  .profile-crumbs { margin-top: var(--space-10); }
}

@media (prefers-reduced-motion: reduce) {
  .info-card__chevron, .similar-card__photo img, .toast { transition: none; }
}
