/* ==========================================================
   BuddySocial v9.97
   Pimp page gets the SAME fixed background image as Home.
   Loaded last so older Pimp background rules cannot wash it out.
   ========================================================== */

/* Exact BuddySocial fixed/home background */
body[data-page="pimp_profile"],
body[data-page="admin_pimp_profile"]{
  background-color:#8fd5f3 !important;
  background-image:url("../images/buddysocial-fixed-pages-bg-v965.png") !important;
  background-repeat:no-repeat !important;
  background-position:center top !important;
  background-size:cover !important;
  background-attachment:fixed !important;
}

/* Remove older translucent full-page overlays that made the image disappear */
body[data-page="pimp_profile"]::before,
body[data-page="admin_pimp_profile"]::before,
body[data-page="pimp_profile"] main.pimp-page::before,
body[data-page="admin_pimp_profile"] main.pimp-page::before{
  content:none !important;
  display:none !important;
  background:none !important;
  background-image:none !important;
}

/* Main page shell stays transparent so the background is visible between blocks */
body[data-page="pimp_profile"] main.pimp-page,
body[data-page="admin_pimp_profile"] main.pimp-page,
body[data-page="pimp_profile"] .pimp-site-center,
body[data-page="admin_pimp_profile"] .pimp-site-center,
body[data-page="pimp_profile"] .pimp-site-rightbar,
body[data-page="admin_pimp_profile"] .pimp-site-rightbar{
  background:transparent !important;
  background-image:none !important;
}

/* Keep the classic white modules readable, but let a hint of the background through */
body[data-page="pimp_profile"] :is(
  .pimp-hero,
  .pimp-tabs-organized.pimp-site-leftnav,
  .pimp-site-center > .retro-box,
  .pimp-site-center > section,
  .pimp-site-rightbar .retro-box,
  .pimp-setting-card,
  fieldset.theme-field.block-text-studio,
  .pimp-dashboard > a
),
body[data-page="admin_pimp_profile"] :is(
  .pimp-hero,
  .pimp-tabs-organized.pimp-site-leftnav,
  .pimp-site-center > .retro-box,
  .pimp-site-center > section,
  .pimp-site-rightbar .retro-box,
  .pimp-setting-card,
  fieldset.theme-field.block-text-studio,
  .pimp-dashboard > a
){
  background:
    linear-gradient(rgba(255,255,255,.91),rgba(255,255,255,.91)),
    url("../images/buddysocial-fixed-pages-bg-v965.png") center center / cover no-repeat !important;
}

/* Right-side modules / reset strip remain clean and readable */
body[data-page="pimp_profile"] :is(.pimp-side-card,.pimp-reset-card),
body[data-page="admin_pimp_profile"] :is(.pimp-side-card,.pimp-reset-card){
  background:
    linear-gradient(rgba(255,255,255,.93),rgba(255,255,255,.93)),
    url("../images/buddysocial-fixed-pages-bg-v965.png") center center / cover no-repeat !important;
}

/* Footer is slightly transparent so the page no longer ends in a flat solid band */
body[data-page="pimp_profile"] .retro-footer,
body[data-page="admin_pimp_profile"] .retro-footer{
  background:rgba(245,250,253,.90) !important;
  border-top:1px solid rgba(173,198,215,.90) !important;
}

/* Chat explicitly remains on its own existing background */
body[data-page="pimp_profile"] #friend-chat,
body[data-page="pimp_profile"] .friend-chat-window,
body[data-page="admin_pimp_profile"] #friend-chat,
body[data-page="admin_pimp_profile"] .friend-chat-window{
  background-image:revert !important;
}

/* Mobile: same image, but scroll attachment avoids mobile rendering issues */
@media(max-width:900px){
  body[data-page="pimp_profile"],
  body[data-page="admin_pimp_profile"]{
    background-attachment:scroll !important;
    background-position:center top !important;
  }
}
