/* PokéLocke v16.13 — targeted profile cleanup.
   Keeps the existing profile design, background and global navigation styling. */

/* "Über mich": keep the profile icon in its own column instead of overlapping text. */
.v1543-profile-page .v1543-bio-card{
  position:relative!important;
  padding-left:54px!important;
}
.v1543-profile-page .v1543-bio-card::before{
  left:12px!important;
  top:11px!important;
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
  z-index:0!important;
}
.v1543-profile-page .v1543-bio-card .v149-bio-head,
.v1543-profile-page .v1543-bio-card .v14-profile-bio,
.v1543-profile-page .v1543-bio-card .v149-bio-editor{
  position:relative!important;
  z-index:1!important;
}

/* Real rank badge: never replace the rank-medal artwork with emoji/text. */
.v1543-profile-page .v1543-rank-medal{
  font-size:0!important;
}
.v1543-profile-page .v1543-rank-medal img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:0!important;
}
.v1543-profile-page .v1466-rank-summary-icon{
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  font-size:0!important;
}
.v1543-profile-page .v1466-rank-summary-icon img{
  display:block!important;
  width:74px!important;
  height:74px!important;
  max-width:none!important;
  object-fit:contain!important;
  filter:drop-shadow(0 7px 12px rgba(15,55,88,.18))!important;
}

/* Profile traits were intentionally removed from the markup. This also hides
   stale injected/cached copies if an old browser document is restored. */
.v1543-profile-page .v1543-tags,
.v1543-profile-page .v1543-tag-row{
  display:none!important;
}

@media(max-width:760px){
  .v1543-profile-page .v1543-bio-card{
    padding-left:50px!important;
  }
  .v1543-profile-page .v1543-bio-card::before{
    left:11px!important;
    top:11px!important;
    width:28px!important;
    height:28px!important;
  }
  .v1543-profile-page .v1466-rank-summary-icon img{
    width:62px!important;
    height:62px!important;
  }
}

/* ========================================================================== 
   v16.14 — desktop profile navigation hard sync
   profile.php now uses the exact same desktop geometry and glass styling as
   every other page. Mobile navigation remains untouched.
   ========================================================================== */
@media (min-width:901px){
  body.v1543-profile-page > .pl1596-topbar{
    position:relative!important;
    z-index:60!important;
    width:100%!important;
    padding:14px 18px 0!important;
    margin:0!important;
    transform:none!important;
    filter:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar > .pl1596-topbar-inner{
    box-sizing:border-box!important;
    width:min(1460px,calc(100% - 6px))!important;
    min-height:76px!important;
    height:auto!important;
    margin:0 auto!important;
    padding:10px 12px 10px 16px!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    align-items:center!important;
    gap:14px!important;
    border:1px solid rgba(190,235,255,.52)!important;
    border-radius:28px!important;
    background:linear-gradient(180deg,rgba(75,169,225,.25),rgba(36,125,193,.16))!important;
    box-shadow:0 18px 42px rgba(2,28,50,.14),inset 0 1px 0 rgba(255,255,255,.26)!important;
    backdrop-filter:blur(18px) saturate(126%)!important;
    -webkit-backdrop-filter:blur(18px) saturate(126%)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav{
    min-width:0!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a{
    position:relative!important;
    min-width:0!important;
    min-height:48px!important;
    height:auto!important;
    margin:0!important;
    padding:0 20px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    border:1px solid rgba(206,241,255,.20)!important;
    border-radius:17px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14)!important;
    color:#f7fbff!important;
    text-decoration:none!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
    white-space:nowrap!important;
    transform:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a:hover{
    transform:translateY(-1px)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06))!important;
    border-color:rgba(218,245,255,.34)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a img{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    margin:0!important;
    object-fit:contain!important;
    filter:brightness(0) invert(1)!important;
    opacity:.96!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a.is-active,
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a[aria-current="page"]{
    color:#163b5d!important;
    border-color:rgba(255,226,111,.82)!important;
    background:linear-gradient(180deg,#ffe777,#ffd43b)!important;
    box-shadow:0 6px 0 rgba(181,132,0,.56),0 11px 20px rgba(123,88,0,.13),inset 0 1px 0 rgba(255,255,255,.62)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a.is-active img,
  body.v1543-profile-page > .pl1596-topbar .pl1596-mainnav a[aria-current="page"] img{
    filter:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1596-account-slot{
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v149-account-cluster{
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v11-account-link.pl1596-profile,
  body.v1543-profile-page > .pl1596-topbar .v149-profile-link{
    position:relative!important;
    min-width:176px!important;
    width:auto!important;
    min-height:54px!important;
    height:54px!important;
    margin:0!important;
    padding:6px 12px 6px 7px!important;
    display:grid!important;
    grid-template-columns:42px minmax(58px,1fr) 19px!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:10px!important;
    overflow:hidden!important;
    border:1px solid rgba(185,238,255,.56)!important;
    border-radius:19px!important;
    background:radial-gradient(circle at 14% 18%,rgba(255,255,255,.16),transparent 28%),linear-gradient(180deg,rgba(72,179,235,.35),rgba(18,103,164,.31))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(3,57,96,.15),0 10px 22px rgba(2,29,52,.11)!important;
    color:#fff!important;
    text-decoration:none!important;
    transform:none!important;
  }
  /* Being on profile.php must not swap in a different desktop button design. */
  body.v1543-profile-page > .pl1596-topbar .pl1596-profile.is-active,
  body.v1543-profile-page > .pl1596-topbar .v149-profile-link.is-active{
    border-color:rgba(185,238,255,.56)!important;
    background:radial-gradient(circle at 14% 18%,rgba(255,255,255,.16),transparent 28%),linear-gradient(180deg,rgba(72,179,235,.35),rgba(18,103,164,.31))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(3,57,96,.15),0 10px 22px rgba(2,29,52,.11)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-avatar,
  body.v1543-profile-page > .pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid rgba(205,244,255,.62)!important;
    border-radius:50%!important;
    background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.48),rgba(157,224,255,.26) 42%,rgba(47,132,190,.20) 70%)!important;
    box-shadow:0 0 0 4px rgba(100,202,251,.08),inset 0 1px 0 rgba(255,255,255,.44)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-avatar img,
  body.v1543-profile-page > .pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar img{
    width:23px!important;
    height:23px!important;
    object-fit:contain!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-copy{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:1px!important;
    line-height:1!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-copy b{
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#fff!important;
    font-size:14px!important;
    line-height:1.15!important;
    font-weight:950!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-copy small{
    display:block!important;
    margin:2px 0 0!important;
    color:#bfe5f7!important;
    font-size:7.5px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.16em!important;
    text-transform:uppercase!important;
    opacity:.94!important;
  }
  body.v1543-profile-page > .pl1596-topbar .pl1597-profile-chevron{
    width:19px!important;
    height:30px!important;
    display:grid!important;
    place-items:center!important;
    justify-self:end!important;
    border-left:1px solid rgba(185,233,255,.25)!important;
    color:#eaf9ff!important;
    font-size:21px!important;
    line-height:1!important;
    font-weight:800!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v149-session-actions{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v149-nav-action{
    min-width:0!important;
    min-height:54px!important;
    height:54px!important;
    margin:0!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border:1px solid rgba(255,255,255,.20)!important;
    border-radius:17px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 16px rgba(2,27,47,.08)!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:900!important;
    transform:none!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v149-nav-action.is-admin{
    background:linear-gradient(180deg,rgba(207,157,24,.88),rgba(165,116,3,.90))!important;
    border-color:rgba(255,213,83,.58)!important;
  }
  body.v1543-profile-page > .pl1596-topbar .v149-nav-action.is-logout{
    background:linear-gradient(180deg,rgba(230,65,79,.92),rgba(181,38,53,.92))!important;
    border-color:rgba(255,128,140,.50)!important;
  }
}
