/* PokéLocke v15.96 — unified glass navigation */
.pl1596-topbar{position:relative;z-index:60;padding:14px 18px 0}
.pl1596-topbar-inner{width:min(1460px,calc(100% - 6px));min-height:76px;margin:0 auto;padding:10px 12px 10px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;border:1px solid rgba(190,235,255,.52);border-radius:28px;background:linear-gradient(180deg,rgba(75,169,225,.25),rgba(36,125,193,.16));box-shadow:0 18px 42px rgba(2,28,50,.14),inset 0 1px 0 rgba(255,255,255,.26);backdrop-filter:blur(18px) saturate(126%);-webkit-backdrop-filter:blur(18px) saturate(126%)}
.pl1596-mainnav{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
.pl1596-mainnav a{position:relative;min-height:48px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(206,241,255,.20);border-radius:17px;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.14);color:#f7fbff;text-decoration:none;font-size:13px;font-weight:900;white-space:nowrap;transition:.16s ease}
.pl1596-mainnav a:hover{transform:translateY(-1px);background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));border-color:rgba(218,245,255,.34)}
.pl1596-mainnav a img{width:19px;height:19px;object-fit:contain;filter:brightness(0) invert(1);opacity:.96}
.pl1596-mainnav a.is-active{color:#163b5d;border-color:rgba(255,226,111,.82);background:linear-gradient(180deg,#ffe777,#ffd43b);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)}
.pl1596-mainnav a.is-active img{filter:none}
.pl1596-account-slot{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.pl1596-topbar .v11-account-link,.pl1596-profile{min-height:48px;padding:0 16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;border:1px solid rgba(187,233,255,.42)!important;border-radius:17px!important;background:linear-gradient(180deg,rgba(55,158,221,.30),rgba(20,100,162,.26))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px rgba(2,29,52,.09)!important;color:#fff!important;text-decoration:none!important;font-weight:900!important}
.pl1596-topbar .v11-account-link>img{width:20px!important;height:20px!important;filter:brightness(0) invert(1)!important}
.pl1596-topbar .v149-account-cluster{display:flex!important;align-items:center!important;gap:8px!important}
.pl1596-topbar .v149-profile-link{min-height:48px!important;padding:0 15px!important;border-radius:17px!important;background:linear-gradient(180deg,rgba(57,160,224,.34),rgba(19,96,158,.30))!important;border:1px solid rgba(183,233,255,.44)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px rgba(2,29,52,.09)!important;color:#fff!important}
.pl1596-topbar .v149-profile-link small{display:block!important;font-size:8px!important;opacity:.78!important}
.pl1596-topbar .v149-nav-user-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border-radius:11px!important;background:rgba(255,255,255,.12)!important}
.pl1596-topbar .v149-session-actions{display:flex!important;gap:8px!important}
.pl1596-topbar .v149-nav-action{min-height:48px!important;padding:0 13px!important;border-radius:17px!important;border:1px solid rgba(255,255,255,.20)!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}
.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}
.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}
@media(max-width:900px){
  .pl1596-topbar{padding:8px 8px 0}
  .pl1596-topbar-inner{width:100%;min-height:0;padding:8px;grid-template-columns:1fr;border-radius:22px;gap:8px}
  .pl1596-mainnav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
  .pl1596-mainnav a{min-width:0;min-height:48px;padding:0 8px;border-radius:14px;font-size:10px;gap:6px;overflow:hidden}
  .pl1596-mainnav a img{width:16px;height:16px;flex:0 0 auto}
  .pl1596-account-slot{justify-content:center}
  .pl1596-topbar .v149-account-cluster{width:100%!important;justify-content:center!important;gap:6px!important}
  .pl1596-topbar .v149-profile-link{flex:1 1 auto!important;min-width:0!important;max-width:170px!important;min-height:40px!important;padding:0 10px!important;border-radius:13px!important}
  .pl1596-topbar .v149-nav-user-icon{width:25px!important;height:25px!important;border-radius:9px!important}
  .pl1596-topbar .v149-session-actions{gap:6px!important}
  .pl1596-topbar .v149-nav-action{min-height:40px!important;padding:0 10px!important;border-radius:13px!important}
}
@media(max-width:430px){
  .pl1596-topbar-inner{padding:7px;border-radius:20px}
  .pl1596-mainnav{gap:4px}
  .pl1596-mainnav a{min-height:44px;padding:0 5px;font-size:8.8px;gap:4px;border-radius:12px;letter-spacing:-.01em}
  .pl1596-mainnav a img{width:14px;height:14px}
  .pl1596-topbar .v149-profile-link b{max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pl1596-topbar .v149-nav-action b{display:none}
  .pl1596-topbar .v149-nav-action{width:40px!important;padding:0!important}
}
@media(max-width:360px){.pl1596-mainnav a span{font-size:0}.pl1596-mainnav a img{width:18px;height:18px}.pl1596-mainnav a{min-height:42px}}

/* ========================================================================== 
   v15.97 — premium trainer profile button
   ========================================================================== */
.pl1596-topbar .v11-account-link.pl1596-profile,
.pl1596-topbar .v149-profile-link{
  position:relative!important;
  min-width:176px!important;
  min-height:54px!important;
  height:54px!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;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.pl1596-topbar .v11-account-link.pl1596-profile::before,
.pl1596-topbar .v149-profile-link::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.12),transparent 35% 70%,rgba(132,220,255,.06));
}
.pl1596-topbar .v11-account-link.pl1596-profile:hover,
.pl1596-topbar .v149-profile-link:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(210,247,255,.78)!important;
  background:
    radial-gradient(circle at 14% 18%,rgba(255,255,255,.20),transparent 30%),
    linear-gradient(180deg,rgba(83,190,242,.43),rgba(22,113,177,.37))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 12px 26px rgba(2,31,55,.14),0 0 18px rgba(109,214,255,.10)!important;
}
.pl1596-topbar .v149-profile-link.is-active{
  border-color:rgba(255,225,103,.62)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 0 0 2px rgba(255,214,55,.08),0 10px 22px rgba(2,29,52,.11)!important;
}

.pl1596-topbar .pl1597-profile-avatar,
.pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar{
  position:relative!important;
  z-index:1!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border-radius:50%!important;
  border:1px solid rgba(205,244,255,.62)!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;
  color:#123c62!important;
}
.pl1596-topbar .pl1597-profile-avatar img,
.pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar img{
  width:23px!important;
  height:23px!important;
  object-fit:contain!important;
  opacity:.92!important;
  filter:brightness(0) saturate(100%) invert(21%) sepia(18%) saturate(1814%) hue-rotate(167deg) brightness(88%) contrast(90%)!important;
}

.pl1596-topbar .pl1597-profile-copy{
  position:relative!important;
  z-index:1!important;
  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;
}
.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;
  letter-spacing:-.01em!important;
  text-shadow:0 2px 8px rgba(3,35,59,.18)!important;
}
.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;
}
.pl1596-topbar .pl1597-profile-chevron{
  position:relative!important;
  z-index:1!important;
  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;
  text-shadow:0 2px 8px rgba(0,40,69,.22)!important;
}

/* Keep admin/logout visually balanced next to the larger profile control. */
.pl1596-topbar .v149-nav-action{
  min-height:54px!important;
  height:54px!important;
  border-radius:17px!important;
}

@media(max-width:900px){
  .pl1596-topbar .v11-account-link.pl1596-profile,
  .pl1596-topbar .v149-profile-link{
    flex:0 1 154px!important;
    width:154px!important;
    min-width:130px!important;
    max-width:154px!important;
    min-height:46px!important;
    height:46px!important;
    padding:5px 8px 5px 5px!important;
    grid-template-columns:34px minmax(48px,1fr) 15px!important;
    column-gap:7px!important;
    border-radius:15px!important;
  }
  .pl1596-topbar .pl1597-profile-avatar,
  .pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar{
    width:34px!important;height:34px!important;min-width:34px!important;
  }
  .pl1596-topbar .pl1597-profile-avatar img,
  .pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar img{width:19px!important;height:19px!important}
  .pl1596-topbar .pl1597-profile-copy b{font-size:11px!important}
  .pl1596-topbar .pl1597-profile-copy small{font-size:6.3px!important;letter-spacing:.12em!important}
  .pl1596-topbar .pl1597-profile-chevron{width:15px!important;height:26px!important;font-size:17px!important}
  .pl1596-topbar .v149-nav-action{min-height:46px!important;height:46px!important}
}

@media(max-width:430px){
  .pl1596-topbar .v149-account-cluster{align-items:center!important;justify-content:center!important;gap:5px!important}
  .pl1596-topbar .v11-account-link.pl1596-profile,
  .pl1596-topbar .v149-profile-link{
    flex:1 1 132px!important;
    width:auto!important;
    min-width:118px!important;
    max-width:148px!important;
    grid-template-columns:32px minmax(44px,1fr) 13px!important;
    column-gap:6px!important;
  }
  .pl1596-topbar .pl1597-profile-avatar,
  .pl1596-topbar .v149-nav-user-icon.pl1597-profile-avatar{width:32px!important;height:32px!important;min-width:32px!important}
  .pl1596-topbar .pl1597-profile-copy b{font-size:10.5px!important;max-width:64px!important}
  .pl1596-topbar .pl1597-profile-copy small{font-size:5.8px!important}
  .pl1596-topbar .pl1597-profile-chevron{font-size:15px!important;width:13px!important;border-left-color:rgba(185,233,255,.18)!important}
  .pl1596-topbar .v149-session-actions{gap:5px!important}
  .pl1596-topbar .v149-nav-action{width:44px!important;min-width:44px!important;padding:0!important}
}

/* ========================================================================== 
   v15.99 — profile navigation sync
   Keep profile.php on exactly the same global header system as the other
   application pages and neutralize any page-specific header drift.
   ========================================================================== */
body.v14-profile-page > .pl1596-topbar{
  position:relative!important;
  z-index:100!important;
  width:100%!important;
}
body.v14-profile-page > .pl1596-topbar .pl1596-topbar-inner{
  box-sizing:border-box!important;
}
body.v14-profile-page > .pl1596-topbar .pl1596-mainnav,
body.v14-profile-page > .pl1596-topbar .pl1596-account-slot{
  box-sizing:border-box!important;
}
body.v14-profile-page > .pl1596-topbar .pl1596-profile.is-active,
body.v14-profile-page > .pl1596-topbar .v149-profile-link.is-active{
  border-color:rgba(255,225,103,.66)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 0 0 2px rgba(255,214,55,.08),0 10px 22px rgba(2,29,52,.11)!important;
}

@media(max-width:900px){
  body.v14-profile-page > .pl1596-topbar{
    padding:8px 8px 0!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-topbar-inner{
    width:100%!important;
    min-height:0!important;
    padding:8px!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    border-radius:22px!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav a{
    min-width:0!important;
    min-height:48px!important;
    padding:0 8px!important;
    border-radius:14px!important;
    font-size:10px!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav a img{
    width:16px!important;
    height:16px!important;
    flex:0 0 auto!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-account-slot{
    width:100%!important;
    justify-content:center!important;
  }
}

@media(max-width:430px){
  body.v14-profile-page > .pl1596-topbar .pl1596-topbar-inner{
    padding:7px!important;
    border-radius:20px!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav{gap:4px!important}
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav a{
    min-height:44px!important;
    padding:0 5px!important;
    font-size:8.8px!important;
    gap:4px!important;
    border-radius:12px!important;
    letter-spacing:-.01em!important;
  }
  body.v14-profile-page > .pl1596-topbar .pl1596-mainnav a img{
    width:14px!important;
    height:14px!important;
  }
}
