/* ================================================
   PROFILE DETAIL — /osoby/{slug}
   assets/css/pages/profile-detail.css
   ================================================ */

/* ── Hero breadcrumb ── */
.pd-breadcrumb {
  background: #FAF9FF;
  border-bottom: 1px solid #EAE8F5;
  padding: .65rem 0;
}
.pd-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: #9A9ABA;
}
.pd-breadcrumb__inner a { color: #9A9ABA; text-decoration: none; }
.pd-breadcrumb__inner a:hover { color: var(--color-primary, #7C3AED); }
.pd-breadcrumb__sep { color: #C5C5DC; }
.pd-breadcrumb__current { color: #3D3D5C; font-weight: 500; }

/* ── Main layout ── */
.pd-wrap {
  padding: 2.5rem 0 5rem;
}
.pd-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* ================================================
   LEWA KOLUMNA — sidebar
   ================================================ */
.pd-sidebar {
  position: sticky;
  top: 1.5rem;
}

/* Main photo */
.pd-photo-main {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #EDE9FE, #F3E8FF);
  position: relative;
  box-shadow: 0 8px 32px rgba(80,30,150,.15);
  margin-bottom: 1rem;
}
.pd-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-photo-main__badges {
  position: absolute;
  top: .85rem;
  left: .85rem;
  right: .85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pd-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  padding: .3rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: #065F46;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pd-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.3); }
}
.pd-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  border-radius: 20px;
  padding: .3rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Gallery thumbnails */
.pd-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.pd-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  position: relative;
  background: #EDE9FE;
}
.pd-thumb:hover {
  border-color: var(--color-primary, #7C3AED);
  transform: scale(1.04);
}
.pd-thumb--active { border-color: var(--color-primary, #7C3AED); }
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blurred thumbnail (guest gate) */
.pd-thumb--blurred img {
  filter: blur(5px);
  transform: scale(1.05);
}
.pd-thumb--blurred::after {
  content: '\1F512';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(80,30,150,.18);
  display: grid;
  place-items: center;
}

/* CTA sidebar */
.pd-cta-box {
  background: #FAF9FF;
  border: 1.5px solid #EAE8F5;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.pd-cta-box__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.pd-stat {
  text-align: center;
}
.pd-stat__num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1A1A2E;
  line-height: 1.1;
}
.pd-stat__label {
  font-size: .72rem;
  color: #9A9ABA;
}
.pd-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  border: none;
  font-family: inherit;
  margin-bottom: .6rem;
}
.pd-cta-btn:last-child { margin-bottom: 0; }
.pd-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.pd-cta-btn--primary {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  color: #fff;
}
.pd-cta-btn--secondary {
  background: #fff;
  color: #5B21B6;
  border: 1.5px solid #DDD6FE;
}
.pd-cta-btn--secondary:hover { background: #FAF5FF; }

/* Social links in sidebar */
.pd-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pd-social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  border: 1.5px solid transparent;
}
.pd-social-link:hover { opacity: .85; transform: translateY(-1px); }
.pd-social-link--instagram { background: #FCE4EC; color: #AD1457; border-color: #F8BBD9; }
.pd-social-link--tiktok    { background: #E8F5E9; color: #1B5E20; border-color: #C8E6C9; }
.pd-social-link--youtube   { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.pd-social-link--facebook  { background: #E3F2FD; color: #0D47A1; border-color: #BBDEFB; }
.pd-social-link--twitter   { background: #E1F5FE; color: #01579B; border-color: #B3E5FC; }
.pd-social-link--linkedin  { background: #E3F2FD; color: #1565C0; border-color: #BBDEFB; }
.pd-social-link--website   { background: #F3E5F5; color: #4A148C; border-color: #E1BEE7; }
.pd-social-link--other     { background: #F5F5F5; color: #424242; border-color: #E0E0E0; }
.pd-social-link__followers { font-size: .7rem; font-weight: 400; color: inherit; opacity: .75; }

/* ================================================
   PRAWA KOLUMNA — main content
   ================================================ */
.pd-main {}

/* Name header */
.pd-header {
  margin-bottom: 1.5rem;
}
.pd-name {
  font-size: 2rem;
  font-weight: 900;
  color: #1A1A2E;
  margin: 0 0 .4rem;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.pd-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.pd-badge--premium-verified { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }
.pd-badge--verified         { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.pd-badge--email-verified   { background: #E3F2FD; color: #0D47A1; border: 1px solid #90CAF9; }
.pd-badge--unverified       { background: #FAFAFA; color: #9E9E9E; border: 1px solid #E0E0E0; }
.pd-badge--available        { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.pd-badge--exclusive        { background: #F3E5F5; color: #4A148C; border: 1px solid #CE93D8; }

.pd-professions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.pd-profession-tag {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #DDD6FE;
}

.pd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #6B6B8A;
}
.pd-meta__item {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.pd-meta__item svg { flex-shrink: 0; }

/* ── Sections ── */
.pd-section {
  background: #fff;
  border: 1.5px solid #EAE8F5;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.pd-section__title {
  font-size: 1rem;
  font-weight: 800;
  color: #1A1A2E;
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 1.5px solid #EAE8F5;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pd-section__title svg { color: var(--color-primary, #7C3AED); }

/* Bio */
.pd-bio-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3D3D5C;
  font-style: italic;
  margin-bottom: .75rem;
}
.pd-bio-text {
  font-size: .9rem;
  color: #4B4B6A;
  line-height: 1.7;
  white-space: pre-line;
}

/* Model attributes grid */
.pd-attrs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.pd-attr {
  background: #FAF9FF;
  border: 1px solid #EAE8F5;
  border-radius: 10px;
  padding: .65rem .85rem;
  text-align: center;
}
.pd-attr__label {
  font-size: .7rem;
  color: #9A9ABA;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.pd-attr__value {
  font-size: .95rem;
  font-weight: 800;
  color: #1A1A2E;
}

/* Languages */
.pd-languages {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pd-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: #F0EEF8;
  color: #3D3D5C;
  border: 1px solid #DDD6FE;
}
.pd-lang-level {
  font-size: .7rem;
  font-weight: 400;
  color: #9A9ABA;
}

/* ── Portfolio gallery ── */
.pd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.pd-portfolio-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #EDE9FE;
  cursor: pointer;
}
.pd-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.pd-portfolio-item:hover img { transform: scale(1.06); }
.pd-portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.pd-portfolio-item:hover .pd-portfolio-item__overlay { opacity: 1; }
.pd-portfolio-item__title {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── GATE — blur overlay for guests ── */
.pd-gate-wrap {
  position: relative;
}
.pd-gate-wrap--blurred .pd-gate-content {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}
.pd-gate-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(245,243,255,.65);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  gap: .75rem;
}
.pd-gate-wrap--blurred .pd-gate-overlay { display: flex; }
.pd-gate-overlay__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: .25rem;
}
.pd-gate-overlay__title {
  font-size: .95rem;
  font-weight: 800;
  color: #1A1A2E;
}
.pd-gate-overlay__desc {
  font-size: .8rem;
  color: #6B6B8A;
  max-width: 260px;
  line-height: 1.4;
}
.pd-gate-overlay__btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Contact info gate */
.pd-contact-blurred {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: #F0EEF8;
  border-radius: 8px;
  font-size: .85rem;
  color: #9A9ABA;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* ── Reviews ── */
.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pd-review {
  border-bottom: 1px solid #EAE8F5;
  padding-bottom: 1rem;
}
.pd-review:last-child { border-bottom: none; padding-bottom: 0; }
.pd-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.pd-review__author { font-size: .85rem; font-weight: 700; color: #1A1A2E; }
.pd-review__date { font-size: .75rem; color: #9A9ABA; }
.pd-review__stars {
  display: flex;
  gap: .15rem;
}
.pd-star { color: #F59E0B; font-size: .9rem; }
.pd-star--empty { color: #E2E0F0; }
.pd-review__text { font-size: .85rem; color: #4B4B6A; line-height: 1.6; }

.pd-reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid #EAE8F5;
}
.pd-rating-big {
  text-align: center;
  flex-shrink: 0;
}
.pd-rating-big__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1A1A2E;
  line-height: 1;
}
.pd-rating-big__stars { display: flex; gap: .15rem; justify-content: center; margin: .3rem 0; }
.pd-rating-big__count { font-size: .75rem; color: #9A9ABA; }

/* ── Login popup (modal) ── */
.pd-login-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,10,60,.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pd-login-popup.is-open { display: flex; }
.pd-login-popup__box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(80,30,150,.2);
}
.pd-login-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9A9ABA;
  padding: .3rem;
  border-radius: 6px;
  line-height: 1;
}
.pd-login-popup__close:hover { color: #3D3D5C; background: #F0EEF8; }
.pd-login-popup__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EDE9FE, #F3E8FF);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary, #7C3AED);
}
.pd-login-popup__title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1A1A2E;
  margin: 0 0 .5rem;
}
.pd-login-popup__desc {
  font-size: .88rem;
  color: #6B6B8A;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.pd-login-popup__btns {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.pd-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .2s, transform .15s;
}
.pd-popup-btn:hover { opacity: .9; transform: translateY(-1px); }
.pd-popup-btn--primary {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  color: #fff;
}
.pd-popup-btn--secondary {
  background: #F0EEF8;
  color: #5B21B6;
}

/* ── No content placeholder ── */
.pd-empty-section {
  text-align: center;
  padding: 2rem 1rem;
  color: #C5C5DC;
  font-size: .85rem;
}

/* ── Responsive (legacy 2-col layout) ── */
@media (max-width: 1100px) {
  .pd-layout { grid-template-columns: 300px 1fr; gap: 1.75rem; }
  .pd-attrs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .pd-photo-main { max-width: 380px; margin-left: auto; margin-right: auto; }
  .pd-name { font-size: 1.65rem; }
  .pd-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pd-attrs-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================
   INSTAGRAM-STYLE LAYOUT — pd-ig-*
   ================================================ */

.pd-ig-wrap {
  padding: 2rem 0 5rem;
}

/* ── Header ── */
.pd-ig-header {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #EAE8F5;
  margin-bottom: 1.5rem;
}

/* Avatar */
.pd-ig-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.pd-ig-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #DDD6FE, 0 8px 32px rgba(124,58,237,.15);
  display: block;
}
.pd-ig-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  font-size: 3rem;
  font-weight: 900;
  color: #7C3AED;
}
.pd-ig-avail-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid #10B981;
  pointer-events: none;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Info column */
.pd-ig-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pd-ig-info__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pd-ig-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0;
  letter-spacing: -.01em;
}
.pd-ig-ctas {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pd-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  border: none;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.pd-ig-btn:hover { opacity: .85; transform: translateY(-1px); }
.pd-ig-btn--primary  { background: #7C3AED; color: #fff; }
.pd-ig-btn--secondary { background: #fff; color: #5B21B6; border: 1.5px solid #DDD6FE; }
.pd-ig-btn--secondary:hover { background: #FAF5FF; }
.pd-ig-btn--shortlisted { background: #EDE9FE; color: #5B21B6; }

/* Stats */
.pd-ig-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.pd-ig-stat {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .95rem;
  color: #3D3D5C;
}
.pd-ig-stat strong { font-weight: 700; color: #1A1A2E; }

/* Bio block */
.pd-ig-bio-block {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.pd-ig-prof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pd-ig-prof-tag {
  background: #F3F0FF;
  color: #5B21B6;
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .8rem;
  font-weight: 600;
}
.pd-ig-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  font-size: .85rem;
  color: #6B6B8A;
}
.pd-ig-meta span {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.pd-ig-tagline {
  font-style: italic;
  color: #5B21B6;
  font-size: .95rem;
  margin: 0;
}
.pd-ig-short-bio {
  font-size: .9rem;
  color: #3D3D5C;
  line-height: 1.55;
  margin: 0;
}

/* Badges */
.pd-ig-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* Social links */
.pd-ig-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ── Photo grid ── */
.pd-ig-grid-section {
  margin-bottom: 2rem;
}
.pd-ig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}
.pd-ig-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #EDE9FE, #F3E8FF);
}
.pd-ig-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.pd-ig-photo:hover img { transform: none; }
.pd-ig-photo__hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.pd-ig-photo:hover .pd-ig-photo__hover { background: rgba(0,0,0,.22); }
.pd-ig-photo--locked .pd-ig-photo__hover { background: rgba(80,30,150,.22); }
.pd-ig-photo--hidden { display: none !important; }

/* Sentinel + loader */
.pd-ig-sentinel { height: 1px; }
.pd-ig-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1.5rem;
  color: #9A9ABA;
  font-size: .85rem;
}
.pd-ig-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #DDD6FE;
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: pd-spin .7s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* Guest gate below grid */
.pd-ig-gate {
  text-align: center;
  padding: 2rem;
  background: #FAF9FF;
  border: 1.5px solid #EAE8F5;
  border-radius: 16px;
  margin-top: .75rem;
  color: #6B6B8A;
}
.pd-ig-gate p { margin: .5rem 0 1rem; font-size: .95rem; }
.pd-ig-gate__btns { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* No photos */
.pd-ig-no-photos {
  text-align: center;
  padding: 3rem;
  color: #9A9ABA;
  font-size: .9rem;
}

/* ── Details accordion ── */
.pd-ig-details {
  border-top: 1px solid #EAE8F5;
  padding-top: .75rem;
  margin-top: 0;
}
.pd-ig-details__toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A2E;
  cursor: pointer;
  padding: .5rem 0;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.pd-ig-details__toggle-arrow {
  margin-left: auto;
  transition: transform .2s;
}
.pd-ig-details--open .pd-ig-details__toggle-arrow {
  transform: rotate(180deg);
}
.pd-ig-details__body {
  padding-top: .75rem;
}

/* ── Photo modal ── */
.pd-ig-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pd-ig-modal.is-open { display: flex; }
.pd-ig-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(3px);
}
.pd-ig-modal__box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 350px;
  grid-template-rows: 90vh;
  max-width: 950px;
  width: 95vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.pd-ig-modal__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  background: rgba(0,0,0,.5);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
.pd-ig-modal__close:hover { background: rgba(0,0,0,.75); }
.pd-ig-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1A1A2E;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: opacity .2s;
}
.pd-ig-modal__nav:hover { opacity: .8; }
.pd-ig-modal__nav--prev { left: .5rem; }
.pd-ig-modal__nav--next { right: calc(350px + .5rem); }
.pd-ig-modal__img-wrap {
  background: #000;
  position: relative;
  height: 90vh;
  overflow: hidden;
}
.pd-ig-modal__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 90vh;
  display: block;
}
.pd-ig-modal__side {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #EAE8F5;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
  width: 350px;
  flex-shrink: 0;
}
.pd-ig-modal__profile-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #EAE8F5;
  flex-shrink: 0;
}
.pd-ig-modal__mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pd-ig-modal__mini-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  font-size: .75rem;
  font-weight: 800;
  color: #7C3AED;
}
.pd-ig-modal__profile-name { font-size: .9rem; color: #1A1A2E; }
.pd-ig-modal__caption-wrap {
  padding: .75rem 1rem;
  border-bottom: 1px solid #EAE8F5;
  flex-shrink: 0;
  min-height: 2rem;
}
.pd-ig-modal__caption {
  font-size: .9rem;
  color: #3D3D5C;
  line-height: 1.5;
  margin: 0;
}
.pd-ig-modal__comments {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .75rem 1rem;
}
.pd-ig-modal__no-comments {
  text-align: center;
  color: #9A9ABA;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem 0;
  margin: 0;
}
.pd-ig-modal__comment-form { flex-shrink: 0; }
.pd-ig-modal__comment-row {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid #EAE8F5;
}
.pd-ig-comment-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: inherit;
  background: transparent;
  color: #1A1A2E;
  min-width: 0;
}
.pd-ig-comment-submit {
  color: #7C3AED;
  font-weight: 700;
  font-size: .85rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.pd-ig-modal__comment-login {
  padding: .75rem 1rem;
  border-top: 1px solid #EAE8F5;
  text-align: center;
  font-size: .85rem;
}
.pd-ig-modal__comment-login a { color: #7C3AED; font-weight: 600; text-decoration: none; }

/* ── Responsive (Instagram layout) ── */
@media (max-width: 900px) {
  .pd-ig-header { gap: 2rem; }
  .pd-ig-avatar { width: 110px; height: 110px; }
  .pd-ig-name { font-size: 1.3rem; }
  .pd-ig-modal__box { grid-template-columns: 1fr; grid-template-rows: 50vh auto; max-height: 95vh; width: 98vw; }
  .pd-ig-modal__img-wrap { height: 50vh; }
  .pd-ig-modal__img { max-height: 50vh; }
  .pd-ig-modal__nav--next { right: .5rem; }
  .pd-ig-modal__side { max-height: 45vh; }
}
@media (max-width: 760px) {
  .pd-ig-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .pd-ig-header { flex-direction: column; gap: 1.25rem; padding: 1.25rem 0 1.5rem; }
  .pd-ig-avatar { width: 90px; height: 90px; }
  .pd-ig-stats { gap: 1.25rem; }
  .pd-ig-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .pd-ig-photo__stats { flex-direction: column; gap: .2rem; align-items: flex-start; padding: .35rem .4rem; font-size: .7rem; }
}

/* ── Reactions bar ── */
.pd-ig-modal__reactions {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-top: 1px solid #EAE8F5;
  border-bottom: 1px solid #EAE8F5;
}
.pd-reaction-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  font-size: .9rem;
  color: #6B7280;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.pd-reaction-btn:hover { border-color: #7C3AED; color: #7C3AED; background: #F5F3FF; }
.pd-reaction-btn--active { border-color: #7C3AED; color: #7C3AED; background: #EDE9FE; }
.pd-reaction-btn--active svg { fill: #7C3AED; stroke: #7C3AED; }
#pdReactHeart.pd-reaction-btn--active { border-color: #EF4444; color: #EF4444; background: #FEE2E2; }
#pdReactHeart.pd-reaction-btn--active svg { fill: #EF4444; stroke: #EF4444; }
#pdReactHeart:hover { border-color: #EF4444; color: #EF4444; background: #FEE2E2; }
.pd-reaction-btn svg { flex-shrink: 0; }

/* ── Comments list ── */
.pd-ig-modal__comments {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 60px;
}
.pd-ig-modal__no-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #A0A0B8;
  font-size: .85rem;
  padding: 1.5rem 0;
  margin: 0;
}
.pd-comment {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.pd-comment__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #EDE9FE;
}
.pd-comment__avatar--init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #7C3AED;
}
.pd-comment__body {
  font-size: .85rem;
  min-width: 0;
  word-break: break-word;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.pd-comment__name {
  font-weight: 700;
  color: #2D2D4A;
}
.pd-comment__text { color: #444; overflow-wrap: anywhere; }
.pd-load-more-btn {
  display: block; width: 100%; padding: .5rem; margin-bottom: .5rem;
  background: none; border: none; color: #7C3AED; font-size: .82rem;
  font-weight: 600; cursor: pointer; text-align: left; border-radius: 6px;
  font-family: inherit;
}
.pd-load-more-btn:hover { background: #F5F3FF; }
.pd-comment--highlight { border-radius: 8px; }
@keyframes pd-hl-glow { 0%,20%{ background:#FDE68A } 100%{ background:transparent } }
.pd-comment--highlight { animation: pd-hl-glow 2.5s ease-out forwards; }
.pd-comment__time {
  margin-top: .15rem;
  font-size: .72rem;
  color: #A0A0B8;
}
.pd-comment__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
}
.pd-cmt-act {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .72rem;
  color: #9A9ABA;
  padding: .15rem .3rem;
  border-radius: 4px;
  font-family: inherit;
  transition: color .12s, background .12s;
  line-height: 1;
}
.pd-cmt-act:hover { color: #7C3AED; background: #F5F3FF; }
.pd-cmt-act--active { color: #7C3AED; }
.pd-cmt-act--hrt:hover { color: #EF4444; background: #FEE2E2; }
.pd-cmt-act--heart-on { color: #EF4444; }
.pd-cmt-reply-btn { font-weight: 600; }
.pd-comment--reply {
  margin-left: 2.2rem;
  margin-top: .4rem;
}
.pd-comment--reply .pd-comment__avatar {
  width: 24px;
  height: 24px;
  font-size: .65rem;
}
.pd-comment__replies { display: flex; flex-direction: column; }
.pd-reply-form {
  display: flex;
  gap: .4rem;
  margin-top: .4rem;
  margin-left: 2.2rem;
  align-items: center;
}
.pd-reply-input {
  flex: 1;
  border: 1px solid #DDD6FE;
  border-radius: 16px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-family: inherit;
  outline: none;
  background: #F9F8FF;
}
.pd-reply-input:focus { border-color: #7C3AED; }
.pd-reply-send {
  background: none;
  border: none;
  color: #7C3AED;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  padding: .2rem .4rem;
  white-space: nowrap;
}
.pd-reply-send:hover { text-decoration: underline; }

/* ── Thumbnail stats overlay (Instagram-style) ── */
.pd-ig-photo__stats {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  pointer-events: none;
  letter-spacing: .01em;
}
.pd-ig-photo__stats span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.pd-ig-photo__stats b {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;
}
.pd-ig-photo:hover .pd-ig-photo__stats { display: flex; }

/* Override: side panel must not scroll — inner comments div handles it */
.pd-ig-modal__side { overflow: hidden; }
.pd-ig-modal__reactions { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   REVIEW & RATING SYSTEM
   ═══════════════════════════════════════════════════ */

/* ── Flash messages ── */
.pd-review-flash { padding: .75rem 1rem; border-radius: 8px; font-size: .88rem; margin-bottom: 1rem; }
.pd-review-flash--ok  { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.pd-review-flash--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Already reviewed notice ── */
.pd-review-notice { font-size: .875rem; color: #6B7280; background: #F9F7FF; border: 1.5px solid #EAE8F5; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.pd-review-notice a { color: #7C3AED; }

/* ── Review summary box ── */
.pd-rating-box { display: flex; align-items: center; gap: 2rem; padding: 1.25rem 1.5rem; background: #F8F7FF; border-radius: 12px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pd-rating-big { text-align: center; }
.pd-rating-big__num { font-size: 3rem; font-weight: 800; color: #1A1A2E; line-height: 1; }
.pd-rating-big__stars { display: flex; gap: 2px; justify-content: center; margin: .3rem 0 .25rem; }
.pd-rating-big__count { font-size: .8rem; color: #9A9ABA; }
.pd-rating-bars { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: .35rem; }
.pd-rating-bar { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.pd-rating-bar__label { width: 20px; text-align: right; color: #555; font-weight: 600; flex-shrink: 0; }
.pd-rating-bar__track { flex: 1; height: 6px; background: #E5E3F5; border-radius: 3px; overflow: hidden; }
.pd-rating-bar__fill { height: 100%; background: linear-gradient(90deg,#7C3AED,#DB2777); border-radius: 3px; transition: width .4s; }
.pd-rating-bar__n { width: 24px; color: #9A9ABA; font-size: .75rem; }

/* ── Star picker ── */
.pd-star-picker { display: flex; gap: 6px; margin: .75rem 0; }
.pd-star-pick { font-size: 2rem; color: #D1D5DB; cursor: pointer; transition: color .15s, transform .15s; line-height: 1; user-select: none; }
.pd-star-pick:hover, .pd-star-pick.active { color: #F59E0B; transform: scale(1.15); }

/* ── Review form ── */
.pd-review-form { background: #F8F7FF; border: 1.5px solid #EAE8F5; border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.pd-review-form__title { font-size: .95rem; font-weight: 700; color: #1A1A2E; margin-bottom: .75rem; }
.pd-review-form textarea { width: 100%; border: 1.5px solid #E2E0F0; border-radius: 8px; padding: .75rem 1rem; font-size: .9rem; font-family: inherit; resize: vertical; min-height: 90px; color: #333; background: #fff; box-sizing: border-box; }
.pd-review-form textarea:focus { outline: none; border-color: #7C3AED; }
.pd-review-form__hint { font-size: .78rem; color: #9A9ABA; margin: .4rem 0 .75rem; }

/* ── Review cards ── */
.pd-reviews-list { display: flex; flex-direction: column; gap: .75rem; }
.pd-review { background: #fff; border: 1.5px solid #F0EEF8; border-radius: 12px; padding: 1rem 1.25rem; }
.pd-review__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .5rem; gap: .75rem; }
.pd-review__av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#7C3AED,#DB2777); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; overflow: hidden; }
.pd-review__av img { width: 100%; height: 100%; object-fit: cover; }
.pd-review__meta { flex: 1; min-width: 0; }
.pd-review__author { font-weight: 700; font-size: .88rem; color: #1A1A2E; }
.pd-review__stars-row { display: flex; gap: 1px; margin: .15rem 0; }
.pd-review__star { font-size: .9rem; color: #F59E0B; }
.pd-review__star--empty { color: #D1D5DB; }
.pd-review__date { font-size: .75rem; color: #9A9ABA; white-space: nowrap; }
.pd-review__text { font-size: .875rem; color: #444; line-height: 1.6; margin: 0; }
.pd-review__reply { margin-top: .75rem; padding: .75rem 1rem; background: #F8F7FF; border-left: 3px solid #7C3AED; border-radius: 0 8px 8px 0; }
.pd-review__reply-label { font-size: .75rem; font-weight: 700; color: #7C3AED; margin-bottom: .25rem; }
.pd-review__reply-text { font-size: .85rem; color: #444; line-height: 1.55; }

/* Star display (read-only) */
.pd-star { color: #F59E0B; font-size: .85rem; }
.pd-star--empty { color: #D1D5DB; }

/* ── Collaboration invite box ── */
.pd-collab-box { margin: 1rem 0 1.5rem; }
.pd-collab-status { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pd-collab-badge { display: inline-flex; align-items: center; gap: .4rem; background: #EDE9FE; color: #5B21B6; font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: 20px; }
.pd-cta-btn--ghost { background: transparent; border: 1.5px solid #7C3AED; color: #7C3AED; padding: .45rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.pd-cta-btn--ghost:hover { background: #F5F3FF; }

