/* ============================================================
   au-profile.css  —  Profile Modern Design
   ArtsUnivers cl_modern theme
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --prf-surface:          #fcf9f4;
  --prf-surface-low:      #f6f3ee;
  --prf-surface-container:#f0ede8;
  --prf-surface-high:     #ebe8e3;
  --prf-primary:          #C05E2B;
  --prf-primary-dark:     #a85225;
  --prf-on-surface:       #1c1c19;
  --prf-on-surface-var:   #56433a;
  --prf-outline:          #897269;
  --prf-outline-var:      #dcc1b6;
  --prf-dark-nav:         #fffaf4;
  --prf-cover-height:     300px;
  --prf-avatar-size:      192px;
  --prf-avatar-border:    8px;
  --prf-header-offset:    64px; /* match _header.tpl height */
}

/* ---- Page wrapper ---- */
.prf-page {
  background: var(--prf-surface);
  min-height: 100vh;
}

/* ============================================================
   COVER SECTION
   ============================================================ */
.prf-cover {
  position: relative;
  width: 100%;
  height: var(--prf-cover-height);
  overflow: hidden;
  background: var(--prf-surface-container);
}

.prf-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  display: block;
}

.prf-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ddd5 0%, #d0c4bb 100%);
}

.prf-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--prf-surface) 0%, transparent 60%);
  pointer-events: none;
}

/* Existing Sngine cover controls — repositioned for new layout */
.prf-page .profile-cover-wrapper {
  position: relative;
  width: 100%;
  height: var(--prf-cover-height);
  overflow: hidden;
  background: var(--prf-surface-container);
}
.prf-page .profile-cover-wrapper img.js_position-cover-full { display: none; }
.prf-page .profile-cover-wrapper img.js_position-cover-cropped {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

/* ============================================================
   PROFILE INFO SECTION
   ============================================================ */
.prf-info {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
  z-index: 200; /* above sticky prf-nav (z-index:100) so action dropdowns render above it */
  margin-top: calc(-1 * var(--prf-avatar-size) / 2.5);
}

.prf-info-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .prf-info-inner {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* ---- Avatar ---- */
.prf-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.prf-avatar {
  width: var(--prf-avatar-size);
  height: var(--prf-avatar-size);
  border-radius: 50%;
  border: var(--prf-avatar-border) solid var(--prf-surface);
  overflow: hidden;
  background: var(--prf-surface-container);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.prf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Keep Sngine avatar controls functional */
.prf-avatar-wrapper .profile-avatar-change { z-index: 5; }
.prf-avatar-wrapper .profile-avatar-change-loader { border-radius: 50%; }
.prf-page .profile-avatar-wrapper {
  position: relative;
  width: var(--prf-avatar-size);
  height: var(--prf-avatar-size);
}
.prf-page .profile-avatar-wrapper img {
  width: var(--prf-avatar-size);
  height: var(--prf-avatar-size);
  border-radius: 50%;
  border: var(--prf-avatar-border) solid var(--prf-surface);
  object-fit: cover;
  display: block;
}

/* ---- Material Symbols base ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
}

/* ---- Profile Meta ---- */
.prf-meta {
  flex: 1;
  padding-bottom: 0.5rem;
  min-width: 0;
}

.prf-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.prf-name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--prf-on-surface);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* Verified icon — Material Symbols */
.prf-verified-icon {
  color: #00647c;
  font-size: 20px;
  cursor: default;
}

.prf-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.prf-username {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(86,67,58,0.4);
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.prf-dot {
  color: rgba(220,193,182,0.5);
  font-size: 0.75rem;
}

.prf-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(137,114,105,0.6);
}

.prf-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(220,193,182,0.2);
}

.prf-social-link {
  color: rgba(86,67,58,0.4);
  line-height: 1;
  transition: color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.prf-social-link:hover { color: var(--prf-primary); text-decoration: none; }

/* ---- Action buttons row ---- */
.prf-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.prf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 2rem;
  background: var(--prf-primary);
  color: #fff;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.prf-btn-primary:hover {
  background: var(--prf-primary-dark);
  color: #fff;
  text-decoration: none;
}
.prf-btn-primary:active { transform: scale(0.98); }

.prf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(220,193,182,0.3);
  color: var(--prf-on-surface);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.prf-btn-secondary:hover {
  background: var(--prf-surface-container);
  text-decoration: none;
  color: var(--prf-on-surface);
}

.prf-btn-icon {
  width: 2.875rem;
  height: 2.875rem;
  border: 1px solid rgba(220,193,182,0.3);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--prf-on-surface);
  transition: background 0.2s;
  font-size: 1rem;
}
.prf-btn-icon:hover { background: var(--prf-surface-container); }

/* ============================================================
   MAIN GRID
   ============================================================ */
.prf-grid {
  max-width: 1920px;
  margin: 0 auto;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .prf-grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.prf-sidebar {
  position: sticky;
  top: calc(var(--prf-header-offset) + 1.5rem);
  max-height: calc(100vh - var(--prf-header-offset) - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.prf-sidebar::-webkit-scrollbar { display: none; }

/* Stats container — overrides prf-sidebar-section column direction */
.prf-sidebar-stats {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 1.5rem 2rem !important;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(220,193,182,0.1);
}

/* Stat item — used as <a class="prf-stat"> */
.prf-stat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.prf-stat:hover { text-decoration: none; }

/* Keep prf-stat-item as alias */
.prf-stat-item {
  display: flex;
  flex-direction: column;
}

.prf-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--prf-primary);
  line-height: 1;
  margin: 0;
}

.prf-stat-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: rgba(86,67,58,0.5);
  margin-top: 0.375rem;
}

/* Sidebar sections */
.prf-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prf-sidebar-heading {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--prf-on-surface);
  margin: 0;
}

.prf-sidebar-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prf-sidebar-see-all {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--prf-primary);
  font-weight: 700;
  text-decoration: none;
}
.prf-sidebar-see-all:hover { text-decoration: underline; }

.prf-sidebar-heading a {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--prf-primary);
  font-weight: 700;
  text-decoration: none;
}
.prf-sidebar-heading a:hover { text-decoration: underline; }

/* Bio */
.prf-bio {
  font-size: 0.8125rem;
  color: var(--prf-on-surface-var);
  line-height: 1.7;
}

.prf-bio-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prf-bio-read-more {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--prf-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 0.25rem;
}
.prf-bio-read-more:hover { text-decoration: underline; color: var(--prf-primary-dark); }

/* About list */
.prf-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prf-about-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--prf-on-surface-var);
}

.prf-about-item i {
  color: var(--prf-primary);
  font-size: 1rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

/* Material Symbols icon in about list */
.prf-about-ms-icon {
  color: var(--prf-primary);
  font-size: 16px !important;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
  line-height: 1;
}

.prf-about-item a {
  color: var(--prf-primary);
  word-break: break-all;
}
.prf-about-item a:hover { text-decoration: underline; }

/* Following avatars */
.prf-following-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.prf-following-avatars a { display: block; }

.prf-following-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(220,193,182,0.1);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.prf-following-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.prf-following-more {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--prf-surface-container);
  border: 1px solid rgba(220,193,182,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--prf-on-surface-var);
  cursor: default;
}

/* Photos grid */
.prf-sidebar-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}

.prf-sidebar-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--prf-surface-container);
  border-radius: 0.375rem;
  display: block;
}

.prf-sidebar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.prf-sidebar-photo:hover img { transform: scale(1.05); }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.prf-content {
  min-width: 0;
}

/* ============================================================
   PROFILE NAV
   Historically a dark bar with white text (hence the variable name
   --prf-dark-nav), but that variable's value was changed to a light
   cream tone as part of the light-theme redesign without updating the
   link text color to match — result: white-on-near-white, unreadable.
   Also overflows horizontally on narrow screens (scrolls, but with no
   visual cue) so most items look "cut off" with nothing indicating
   there's more to scroll to — the fade below fixes that.
   ============================================================ */
.prf-nav {
  background: var(--prf-dark-nav);
  border-radius: 0.75rem;
  position: sticky;
  top: 90px;
  z-index: 100;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 2rem;
}
.prf-nav::-webkit-scrollbar { display: none; }

.prf-nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 0;
  padding: 0 2rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.prf-nav-inner::-webkit-scrollbar { display: none; }

.prf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 56px;
  padding: 0 16px;
  text-decoration: none !important;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--prf-on-surface-var) !important;
  transition: color 0.18s, background 0.18s;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
  white-space: nowrap;
}
.prf-nav-link:hover { color: var(--prf-on-surface) !important; background: rgba(28,28,25,.05); }
.prf-nav-link.active { color: var(--prf-primary) !important; border-bottom-color: var(--prf-primary); }
.prf-nav-link .material-symbols-outlined { font-size: 16px; }

/* ============================================================
   SUB-NAV (spec B2 — Abonnés / Créations & Boutique sub-tabs)
   ============================================================ */
.prf-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.prf-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--prf-outline-var);
  background: var(--prf-surface);
  color: var(--prf-on-surface) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.prf-subnav-link:hover {
  border-color: var(--prf-primary);
  color: var(--prf-primary) !important;
}
.prf-subnav-link.is-active {
  background: var(--prf-primary);
  border-color: var(--prf-primary);
  color: #fff !important;
}
.night-mode .prf-subnav-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8e8e8 !important;
}
.night-mode .prf-subnav-link.is-active {
  background: var(--prf-primary);
  border-color: var(--prf-primary);
  color: #fff !important;
}

/* ============================================================
   GALLERY VIEW
   ============================================================ */
.prf-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 6rem;
}

/* Subscription CTA */
.prf-sub-cta {
  background: var(--prf-dark-nav);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.prf-sub-cta-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(192,94,43,0.1);
  filter: blur(100px);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.prf-sub-cta-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--prf-outline-var);
  background: rgba(28,28,25,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prf-sub-cta-icon-inner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(192,94,43,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prf-sub-cta-icon-inner i {
  color: var(--prf-primary);
  font-size: 1.125rem;
}

.prf-sub-cta-body { flex: 1; min-width: 0; }

.prf-sub-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--prf-on-surface);
  margin: 0 0 0.25rem;
}

.prf-sub-cta-desc {
  font-size: 0.75rem;
  color: var(--prf-on-surface-var);
  line-height: 1.6;
  margin: 0;
}

.prf-sub-cta-action { flex-shrink: 0; }

.prf-sub-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--prf-primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(192,94,43,0.2);
  white-space: nowrap;
  text-decoration: none;
}
.prf-sub-cta-btn:hover {
  background: var(--prf-primary-dark);
  transform: scale(1.02);
  color: #fff;
  text-decoration: none;
}

/* Carousel section */
.prf-carousel-section {
  /* intentionally empty — children handle spacing */
}

.prf-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
}

.prf-carousel-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--prf-on-surface);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.prf-carousel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.prf-carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.prf-carousel-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(220,193,182,0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--prf-on-surface);
  font-size: 0.875rem;
  padding: 0;
  line-height: 1;
}
.prf-carousel-nav-btn:hover {
  background: var(--prf-primary);
  color: #fff;
  border-color: var(--prf-primary);
}

.prf-carousel-view-all {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--prf-on-surface);
  border-bottom: 1px solid rgba(220,193,182,0.5);
  padding-bottom: 0.125rem;
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 0.5rem;
}
.prf-carousel-view-all:hover { color: var(--prf-primary); text-decoration: none; }

/* Carousel track — horizontally scrollable */
.prf-carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.prf-carousel-track::-webkit-scrollbar { display: none; }

/* ---- Card types ---- */

/* Portrait (3:4) — blogs, paintings */
.prf-card-portrait {
  min-width: 220px;
  max-width: 220px;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.prf-card-portrait:hover { text-decoration: none; color: inherit; }

.prf-card-portrait-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--prf-surface-container);
  position: relative;
}
.prf-card-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}
.prf-card-portrait:hover .prf-card-portrait-img img { transform: scale(1.05); }

/* Landscape (16:9) — videos, illustrations */
.prf-card-landscape {
  min-width: 320px;
  max-width: 320px;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.prf-card-landscape:hover { text-decoration: none; color: inherit; }

.prf-card-landscape-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--prf-surface-container);
  position: relative;
}
.prf-card-landscape-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}
.prf-card-landscape:hover .prf-card-landscape-img img { transform: scale(1.05); }

/* Video play overlay */
.prf-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prf-play-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.prf-card-landscape:hover .prf-play-btn { transform: scale(1.1); }
.prf-play-btn i { color: #fff; font-size: 1.25rem; margin-left: 0.15rem; }

/* Square (1:1) — audio */
.prf-card-square {
  min-width: 160px;
  max-width: 160px;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.prf-card-square:hover { text-decoration: none; color: inherit; }

.prf-card-square-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--prf-surface-container);
  border-radius: 0.75rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.prf-card-square-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}
.prf-card-square:hover .prf-card-square-img img { transform: scale(1.1); }

.prf-audio-play-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--prf-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(192,94,43,0.3);
}
.prf-card-square:hover .prf-audio-play-btn { opacity: 1; }
.prf-audio-play-btn i { color: #fff; font-size: 0.875rem; margin-left: 0.1rem; }

/* Card title */
.prf-card-title {
  margin-top: 0.75rem;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--prf-on-surface-var);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product card */
.prf-card-product {
  min-width: 220px;
  max-width: 220px;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.prf-card-product:hover { text-decoration: none; color: inherit; }

.prf-card-product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--prf-surface-container);
  position: relative;
}
.prf-card-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}
.prf-card-product:hover .prf-card-product-img img { transform: scale(1.05); }

.prf-card-product-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.prf-card-product-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--prf-primary);
}

/* Thumbnail placeholder — shown when a card has no image */
.prf-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prf-surface-high);
  position: absolute;
  inset: 0;
}
.prf-thumb-placeholder i {
  font-size: 1.5rem;
  color: rgba(137,114,105,0.35);
}

/* Lock badge */
.prf-lock-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border-radius: 0.375rem;
  padding: 0.1875rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.prf-lock-badge i { color: var(--prf-primary); font-size: 0.625rem; }
.prf-lock-badge span { color: #fff; font-size: 0.625rem; font-weight: 600; white-space: nowrap; }

/* Empty / error state */
.prf-carousel-empty {
  padding: 2rem;
  color: rgba(86,67,58,0.5);
  font-size: 0.875rem;
  font-style: italic;
}

/* ============================================================
   ABOUT PAGE VIEW
   ============================================================ */
.prf-about-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prf-about-card {
  background: var(--prf-surface-container-low, #f6f3ee);
  border: 1px solid rgba(220,193,182,0.15);
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prf-about-card-heading {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--prf-on-surface);
  margin: 0 0 0.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(220,193,182,0.2);
}

.prf-about-card-bio {
  font-size: 0.9375rem;
  color: var(--prf-on-surface-var);
  line-height: 1.75;
  margin: 0;
}

.prf-about-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prf-about-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--prf-on-surface-var);
}

.prf-about-card-item strong {
  color: var(--prf-on-surface);
}

.prf-about-card-item a {
  color: var(--prf-primary);
  word-break: break-all;
  text-decoration: none;
}
.prf-about-card-item a:hover { text-decoration: underline; }

/* ---- Skeleton loader ---- */
.prf-skeleton {
  background: linear-gradient(90deg,
    var(--prf-surface-container) 25%,
    var(--prf-surface-high) 50%,
    var(--prf-surface-container) 75%
  );
  background-size: 200% 100%;
  animation: prf-shimmer 1.5s infinite;
  border-radius: 0;
}
@keyframes prf-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.prf-main {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   OTHER VIEWS (default Bootstrap cards preserved)
   ============================================================ */
.prf-view-content {
  padding: 2.5rem 0 6rem;
}

/* Minimal card restyle for a warmer feel in the new layout */
.prf-view-content .card {
  border-radius: 0.75rem;
  border-color: rgba(220,193,182,0.15);
}
.prf-view-content .card-header {
  border-bottom-color: rgba(220,193,182,0.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .prf-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
    margin-top: 2rem;
  }

  .prf-sidebar {
    position: static;
    max-height: none;
  }

  .prf-nav {
    top: calc(var(--prf-header-offset) + 0.5rem);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
  }

  .prf-gallery { gap: 2.5rem; }
}

@media (max-width: 767px) {
  :root { --prf-cover-height: 200px; --prf-avatar-size: 128px; --prf-avatar-border: 5px; }

  .prf-info {
    padding: 0 1rem;
    margin-top: calc(-1 * var(--prf-avatar-size) / 3);
  }

  .prf-name { font-size: 1.875rem; }
  .prf-stat-num { font-size: 1.5rem; }

  .prf-sub-cta { flex-wrap: wrap; }
  .prf-sub-cta-action { width: 100%; }
  .prf-sub-cta-btn { width: 100%; justify-content: center; }

  .prf-carousel-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .prf-carousel-title { font-size: 1.5rem; }

  .prf-nav-inner { gap: 1rem; padding: 0 1rem; }
}

@media (max-width: 480px) {
  .prf-info { padding: 0 0.75rem; }
  .prf-grid { padding: 0.75rem; }
  .prf-card-portrait { min-width: 160px; max-width: 160px; }
  .prf-card-landscape { min-width: 240px; max-width: 240px; }
  .prf-card-square { min-width: 130px; max-width: 130px; }
  .prf-card-product { min-width: 160px; max-width: 160px; }
}

/* ============================================================
   IDENTITY PANEL — inline stats + meta row + bio
   ============================================================ */
.prf-bio {
  font-size: 0.875rem;
  color: var(--prf-on-surface-var);
  line-height: 1.7;
  max-width: 500px;
  margin: 0.5rem 0 0.75rem;
}

.prf-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.prf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--prf-on-surface-var);
}

.prf-meta-item i { color: var(--prf-primary); font-size: 0.75rem; }
.prf-meta-item a { color: var(--prf-primary); }
.prf-meta-item a:hover { text-decoration: underline; }

.prf-stats-inline {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.prf-stat-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
  border-right: 1px solid rgba(220,193,182,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}
.prf-stat-inline:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.prf-stat-inline:hover { transform: translateY(-2px); text-decoration: none; }

.prf-stat-inline-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--prf-on-surface);
  letter-spacing: -0.02em;
  line-height: 1;
}

.prf-stat-inline-lbl {
  font-size: 0.5625rem;
  color: var(--prf-outline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Verified badge in name */
.prf-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #c9a84c, #e8c05f);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(201,168,76,.4);
  vertical-align: middle;
}

/* ============================================================
   SIDEBAR CARD COMPONENT
   ============================================================ */
.prf-sidebar-card {
  background: #fff;
  border: 1px solid rgba(220,193,182,0.35);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(28,28,25,.05);
  overflow: hidden;
  margin-bottom: 1rem;
}

.prf-sidebar-card-hd {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220,193,182,0.25);
  background: rgba(252,249,244,.7);
}

.prf-sidebar-card-hd-title {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--prf-on-surface);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prf-sidebar-card-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #c9a84c, #b8962f);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
}

.prf-sidebar-card-link {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--prf-primary);
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(192,94,43,.08);
  border: 1px solid rgba(192,94,43,.18);
  transition: background 0.2s;
  text-decoration: none;
}
.prf-sidebar-card-link:hover { background: rgba(192,94,43,.16); text-decoration: none; color: var(--prf-primary); }

.prf-sidebar-card-bd { padding: 16px 18px; }
.prf-sidebar-card-bd-tight { padding: 14px 16px; }

/* About bio inside card */
.prf-about-bio {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--prf-on-surface-var);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220,193,182,0.25);
}

/* About icon box */
.prf-about-icon {
  width: 24px;
  height: 24px;
  background: rgba(252,249,244,1);
  border: 1px solid rgba(220,193,182,0.3);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--prf-primary);
  font-size: 9px;
}

/* ============================================================
   FRIENDS GRID
   ============================================================ */
.prf-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prf-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.prf-friend-card img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(220,193,182,0.3);
  transition: transform 0.22s, box-shadow 0.22s;
}
.prf-friend-card:hover img { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(28,28,25,.12); }

.prf-friend-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--prf-on-surface-var);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  text-align: center;
}

/* ============================================================
   DARK CTA CARD (subscribe / tip / gift)
   ============================================================ */
.prf-cta-card {
  background: linear-gradient(160deg, #1a140d 0%, #2a1f10 100%);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  margin-bottom: 1rem;
}

.prf-cta-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 5px;
}

.prf-cta-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.prf-cta-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  line-height: 1.6;
}

.prf-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: filter 0.2s, transform 0.18s;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.prf-cta-btn:last-child { margin-bottom: 0; }
.prf-cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }

.prf-cta-btn-gold { background: linear-gradient(135deg, #c9a84c, #b8962f); color: #fff; box-shadow: 0 5px 18px rgba(201,168,76,.4); }
.prf-cta-btn-teal { background: linear-gradient(135deg, #2a7c6f, #1e6358); color: #fff; box-shadow: 0 5px 16px rgba(42,124,111,.32); }
.prf-cta-btn-rose { background: linear-gradient(135deg, #c15a5a, #a84040); color: #fff; box-shadow: 0 5px 16px rgba(193,90,90,.3); }

.prf-cta-divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0; }

.prf-cta-row {
  display: flex;
  gap: 8px;
}
.prf-cta-row .prf-cta-btn { flex: 1; margin-bottom: 0; }

/* ============================================================
   PAGE BUILDER OUTLINE (when editing)
   ============================================================ */
.prf-nav[data-au-block-type].au-pb-sel,
.prf-carousel-section[data-au-block-type].au-pb-sel {
  outline: 2px solid #a855f7;
  outline-offset: 4px;
}

/* About page accent text */
.prf-about-accent { color: var(--prf-primary); font-weight: 600; }

/* ============================================================
   MERITS STATS ROW
   ============================================================ */
.prf-merits-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

/* ============================================================
   PROFILE COMPLETION
   ============================================================ */
.prf-completion-bar {
  height: 6px;
  background: rgba(220,193,182,0.3);
  border-radius: 99px;
  overflow: hidden;
}
.prf-completion-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--prf-primary), var(--prf-primary-dark));
  border-radius: 99px;
  transition: width 0.4s ease;
}
.prf-completion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--prf-on-surface-var);
  padding: 2px 0;
}
.prf-completion-item .material-symbols-outlined { font-size: 15px; flex-shrink: 0; }
.prf-completion-item a { color: var(--prf-primary); text-decoration: none; }
.prf-completion-item a:hover { text-decoration: underline; }
.prf-completion-item.done { text-decoration: line-through; opacity: 0.45; }
.prf-completion-trigger { cursor: pointer; color: var(--prf-primary); }
.prf-completion-trigger:hover { text-decoration: underline; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.prf-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(252,249,244,1);
  border: 1px solid rgba(220,193,182,0.4);
  color: var(--prf-on-surface);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.prf-social-link:hover { background: var(--prf-primary); color: #fff; transform: translateY(-2px); text-decoration: none; }

/* ============================================================
   GIFT TRANSACTIONS
   ============================================================ */
.prf-gift-list { display: flex; flex-direction: column; gap: 10px; }
.prf-gift-item { display: flex; align-items: center; gap: 10px; }
.prf-gift-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.prf-gift-sender-pic { width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; margin-right: 3px; }
.prf-gift-info { flex: 1; min-width: 0; }
.prf-gift-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--prf-on-surface);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prf-gift-sender:hover { text-decoration: underline; color: var(--prf-primary); }
.prf-gift-points { font-size: 0.625rem; font-weight: 700; color: #2a7c6f; margin-top: 2px; }

/* ============================================================
   PROFILE SEARCH
   ============================================================ */
.prf-search-form { display: flex; gap: 6px; }
.prf-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(220,193,182,0.5);
  border-radius: 8px;
  font-size: 0.8125rem;
  background: rgba(252,249,244,.7);
  color: var(--prf-on-surface);
  outline: none;
  font-family: inherit;
}
.prf-search-input:focus { border-color: var(--prf-primary); box-shadow: 0 0 0 2px rgba(192,94,43,.12); }
.prf-search-btn {
  padding: 8px 14px;
  background: var(--prf-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
}
.prf-search-btn:hover { filter: brightness(1.1); }
