/*
 * G&C REV10W FIX52 — Path of the Wolf V12.
 * Profile floating-nav avatar/icon authority hotfix.
 *
 * FIX51 corrected slot geometry, but legacy Path V5 intentionally hid all real
 * nav-icon children and replaced them with a masked ::after sigil. That was
 * still affecting Profile, causing the substitute sigil to occupy the label
 * lane. V12 makes Profile the explicit exception: render the real synced avatar
 * (or real fallback SVG) inside the same compact icon slot/ring.
 */

html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(.gcAppNavIcon,.gcAdminFloatIcon){
  position:relative!important;
  grid-row:1!important;
  grid-column:1!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
  margin:0!important;
  padding:2px!important;
  line-height:0!important;
  overflow:visible!important;
  transform:none!important;
  translate:none!important;
}

/* Kill the old Path V5 replacement sigil for Profile only. */
html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(.gcAppNavIcon,.gcAdminFloatIcon)::after{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  opacity:0!important;
}

/* Restore the actual Profile visual hidden by Path V5. */
html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(.gcAppNavIcon,.gcAdminFloatIcon)>*{
  opacity:1!important;
  visibility:visible!important;
}

html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(.gcNavProfileAvatarWrap,.gcAdminProfileAvatarWrap){
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  clip-path:none!important;
  isolation:isolate!important;
  transform:none!important;
  translate:none!important;
  overflow:hidden!important;
  background:rgba(10,10,8,.78)!important;
  box-shadow:inset 0 0 0 1px rgba(226,196,132,.22)!important;
}

html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(.gcNavProfileAvatar,.gcAdminProfileAvatar){
  position:relative!important;
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  transform:none!important;
  translate:none!important;
}

/* Real fallback icons / direct SVGs stay inside the icon lane. */
html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(
  .gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback
){
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  place-items:center!important;
}

html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"] :is(
  .gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback,.gcAppNavIcon
) svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

html[data-gc-theme="path-of-the-wolf"] :is(.gcNavProfileAvatarWrap,.gcAdminProfileAvatarWrap):not(.isFallback) :is(
  .gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback
){
  display:none!important;
}
html[data-gc-theme="path-of-the-wolf"] :is(.gcNavProfileAvatarWrap,.gcAdminProfileAvatarWrap).isFallback :is(
  .gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback
){
  display:grid!important;
}

/* Label authority: Profile uses exactly the same dedicated second row. */
html[data-gc-theme="path-of-the-wolf"] :is(
  #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
  .gcGoldBottomNav,.gcAwardsBottomNav
) [data-app-nav-page="profile"]>span:last-child{
  grid-row:2!important;
  grid-column:1!important;
  position:static!important;
  display:block!important;
  align-self:center!important;
  justify-self:center!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:13px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:none!important;
  translate:none!important;
}

@media(max-width:700px){
  html[data-gc-theme="path-of-the-wolf"] :is(
    #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
    .gcGoldBottomNav,.gcAwardsBottomNav
  ) [data-app-nav-page="profile"] :is(.gcAppNavIcon,.gcAdminFloatIcon){
    width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;padding:2px!important;
  }
  html[data-gc-theme="path-of-the-wolf"] :is(
    #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
    .gcGoldBottomNav,.gcAwardsBottomNav
  ) [data-app-nav-page="profile"] :is(.gcNavProfileAvatarWrap,.gcAdminProfileAvatarWrap){
    width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;
  }
  html[data-gc-theme="path-of-the-wolf"] :is(
    #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
    .gcGoldBottomNav,.gcAwardsBottomNav
  ) [data-app-nav-page="profile"] :is(
    .gcNavProfileAvatar,.gcAdminProfileAvatar,
    .gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback
  ),
  html[data-gc-theme="path-of-the-wolf"] :is(
    #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
    .gcGoldBottomNav,.gcAwardsBottomNav
  ) [data-app-nav-page="profile"] :is(.gcNavProfileAvatarFallback,.gcAdminProfileAvatarFallback,.gcAppNavIcon) svg{
    width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
  }
  html[data-gc-theme="path-of-the-wolf"] :is(
    #profileBottomNav,#gcAdminUnifiedNav,#gcGoldSimpleNav,.gcGoldSimpleNav,
    .gcGoldBottomNav,.gcAwardsBottomNav
  ) [data-app-nav-page="profile"]>span:last-child{
    line-height:11px!important;
  }
}
