/* V66 — authoritative professional two-row application header. Loaded last. */
:root{
  --v66-header-h:98px;
  --v66-team-w:68px;
  --v66-edge:9px;
  --v66-gap:7px;
}

.topbar.topbarTwoRow{
  position:sticky!important;
  top:0!important;
  z-index:120!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:44px 36px!important;
  align-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-height:var(--v66-header-h)!important;
  height:var(--v66-header-h)!important;
  padding:8px calc(var(--v66-team-w) + var(--v66-edge) + 9px) 8px var(--v66-edge)!important;
  overflow:visible!important;
  background:
    radial-gradient(circle at 82% -35%,rgba(226,183,56,.085),transparent 48%),
    linear-gradient(180deg,rgba(9,8,5,.99),rgba(5,5,3,.985))!important;
  border-bottom:1px solid rgba(222,180,54,.22)!important;
  box-shadow:0 9px 26px rgba(0,0,0,.34),inset 0 -1px 0 rgba(255,226,135,.025)!important;
  backdrop-filter:blur(18px) saturate(115%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(115%)!important;
}

.topbarPrimaryRow{
  display:grid!important;
  grid-template-columns:38px 44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-height:44px!important;
  height:44px!important;
  width:100%!important;
}
.topbar.topbarTwoRow.noBack .topbarPrimaryRow{
  grid-template-columns:44px minmax(0,1fr)!important;
}
.topbarPrimaryRow .globalBackBtn{grid-column:1!important}
.topbarPrimaryRow .compactHomeBtn{grid-column:2!important}
.topbarPrimaryRow .title{grid-column:3!important}
.topbar.topbarTwoRow.noBack .topbarPrimaryRow .compactHomeBtn{grid-column:1!important}
.topbar.topbarTwoRow.noBack .topbarPrimaryRow .title{grid-column:2!important}

.topbarPrimaryRow .globalBackBtn,
.topbarPrimaryRow .compactHomeBtn,
.topbarSecondaryActions .topicons .iconbtn{
  appearance:none!important;
  -webkit-tap-highlight-color:transparent!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  color:#f2ce62!important;
  border:1px solid rgba(225,181,52,.27)!important;
  background:linear-gradient(180deg,rgba(27,23,14,.98),rgba(12,10,7,.99))!important;
  box-shadow:inset 0 1px 0 rgba(255,238,178,.065),0 5px 14px rgba(0,0,0,.22)!important;
  transition:border-color .15s ease,background .15s ease,transform .12s ease,box-shadow .15s ease!important;
}
.topbarPrimaryRow .globalBackBtn{
  width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;
}
.topbarPrimaryRow .compactHomeBtn{
  width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important;border-radius:14px!important;
  border-color:rgba(235,194,67,.38)!important;
}
.topbarPrimaryRow .globalBackBtn svg{width:20px!important;height:20px!important}
.topbarPrimaryRow .compactHomeBtn svg{width:23px!important;height:23px!important}

.topbarPrimaryRow .title,
#pageTitle{
  min-width:0!important;
  margin:0!important;
  padding:0 2px!important;
  color:#fff6d9!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:850!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-shadow:0 1px 12px rgba(0,0,0,.28)!important;
}

.topbarSecondaryRow{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  height:36px!important;
  padding:0!important;
}
.topbarSecondaryActions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.topbarSecondaryActions .topicons{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
}
.topbarSecondaryActions .topicons .iconbtn{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;
  border-radius:11px!important;
}
.topbarSecondaryActions .topicons .iconbtn svg{width:19px!important;height:19px!important}

.topbarPrimaryRow .globalBackBtn:hover,
.topbarPrimaryRow .compactHomeBtn:hover,
.topbarSecondaryActions .topicons .iconbtn:hover,
.topbarPrimaryRow .globalBackBtn:focus-visible,
.topbarPrimaryRow .compactHomeBtn:focus-visible,
.topbarSecondaryActions .topicons .iconbtn:focus-visible{
  outline:none!important;
  color:#ffe58b!important;
  border-color:rgba(247,211,101,.58)!important;
  background:linear-gradient(180deg,rgba(42,34,18,.99),rgba(15,12,8,.99))!important;
  box-shadow:inset 0 1px 0 rgba(255,240,187,.09),0 7px 17px rgba(0,0,0,.28),0 0 0 2px rgba(226,178,47,.055)!important;
}
.topbarPrimaryRow .globalBackBtn:active,
.topbarPrimaryRow .compactHomeBtn:active,
.topbarSecondaryActions .topicons .iconbtn:active{transform:scale(.96)!important}

/* RC is a consistent signed-in utility, not a page-specific decoration. */
.topbarSecondaryActions .premiumCoinButton{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  width:auto!important;
  min-width:82px!important;
  max-width:104px!important;
  height:36px!important;
  min-height:36px!important;
  padding:3px 8px 3px 4px!important;
  margin:0!important;
  border-radius:12px!important;
  border:1px solid rgba(233,192,67,.38)!important;
  background:
    radial-gradient(circle at 24% 10%,rgba(255,225,121,.13),transparent 35%),
    linear-gradient(180deg,rgba(35,27,13,.99),rgba(12,10,7,.99))!important;
  box-shadow:inset 0 1px 0 rgba(255,239,181,.08),0 6px 15px rgba(0,0,0,.24)!important;
}
.topbarSecondaryActions .premiumCoinButton::after{display:none!important}
.topbarSecondaryActions .premiumCoinButton .coinIcon{
  width:28px!important;height:28px!important;flex:0 0 28px!important;border-radius:9px!important;
  display:grid!important;place-items:center!important;
  color:#f2ca55!important;
  background:rgba(218,170,39,.08)!important;
  border:1px solid rgba(240,201,77,.14)!important;
}
.topbarSecondaryActions .premiumCoinButton .coinIcon svg{width:18px!important;height:18px!important}
.topbarSecondaryActions .coinValueWrap{gap:0!important;line-height:1!important}
.topbarSecondaryActions .coinAmt{font-size:13px!important;line-height:1!important;font-weight:900!important;color:#fff0bd!important}
.topbarSecondaryActions .coinValueWrap small{margin-top:2px!important;font-size:6px!important;letter-spacing:.12em!important;color:#ac9964!important}
.topbarSecondaryActions .coinOpenArrow{display:none!important}

/* The Team monogram is the visual anchor of the header and spans both rows. */
.topbar .teamTopBadge,
.topbarSecondaryActions .teamTopBadge{
  position:absolute!important;
  z-index:12!important;
  top:8px!important;
  right:var(--v66-edge)!important;
  bottom:8px!important;
  left:auto!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:var(--v66-team-w)!important;
  min-width:var(--v66-team-w)!important;
  max-width:var(--v66-team-w)!important;
  height:auto!important;
  min-height:0!important;
  padding:5px!important;
  margin:0!important;
  border-radius:20px!important;
  border:1px solid rgba(239,198,73,.5)!important;
  color:#1a1204!important;
  background:
    radial-gradient(circle at 50% 10%,rgba(255,232,151,.1),transparent 38%),
    linear-gradient(180deg,rgba(31,25,14,.99),rgba(10,8,6,.995))!important;
  box-shadow:inset 0 1px 0 rgba(255,243,193,.11),0 8px 22px rgba(0,0,0,.34)!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .13s ease,border-color .15s ease,box-shadow .15s ease!important;
}
.topbar .teamTopBadge.hidden{display:none!important}
.topbar .teamTopBadge .teamBadgeMark{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  border-radius:15px!important;
  color:#191104!important;
  font-size:31px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
  background:
    radial-gradient(circle at 35% 20%,#fff1ab 0%,#efc74d 35%,#d6a126 66%,#93600b 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,235,.82),inset 0 -1px 0 rgba(95,57,4,.35),0 6px 15px rgba(0,0,0,.28)!important;
}
.topbar .teamTopBadge .teamBadgeName{display:none!important}
.topbar .teamTopBadge:hover,.topbar .teamTopBadge:focus-visible{
  outline:none!important;
  border-color:rgba(255,222,116,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,244,200,.14),0 10px 25px rgba(0,0,0,.4),0 0 0 2px rgba(232,183,44,.07)!important;
}
.topbar .teamTopBadge:active{transform:scale(.97)!important}

/* Context bars start immediately below the authoritative header height. */
.shopContextBar{top:var(--v66-header-h)!important}
.shopSearchDock{top:calc(var(--v66-header-h) + 58px)!important}

/* Onboarding remains deliberately minimal: Back only. */
body.onboardingActive .topbar.topbarTwoRow{
  display:flex!important;
  align-items:center!important;
  min-height:54px!important;
  height:54px!important;
  padding:8px var(--v66-edge)!important;
  background:rgba(7,6,4,.985)!important;
}
body.onboardingActive .topbarPrimaryRow{display:flex!important;height:38px!important;min-height:38px!important}
body.onboardingActive .topbarSecondaryRow{display:none!important}
body.onboardingActive .topbarPrimaryRow>*:not(.globalBackBtn){display:none!important}
body.onboardingActive .topbarPrimaryRow>.globalBackBtn{display:grid!important}
body.onboardingActive .topbar .teamTopBadge{display:none!important}

@media(max-width:520px){
  :root{--v66-header-h:96px;--v66-team-w:64px;--v66-edge:7px}
  .topbar.topbarTwoRow{
    grid-template-rows:43px 35px!important;
    gap:5px!important;
    padding:7px calc(var(--v66-team-w) + var(--v66-edge) + 8px) 7px var(--v66-edge)!important;
  }
  .topbarPrimaryRow{grid-template-columns:36px 42px minmax(0,1fr)!important;height:43px!important;min-height:43px!important;gap:6px!important}
  .topbar.topbarTwoRow.noBack .topbarPrimaryRow{grid-template-columns:42px minmax(0,1fr)!important}
  .topbarPrimaryRow .globalBackBtn{width:36px!important;height:36px!important;min-width:36px!important;border-radius:11px!important}
  .topbarPrimaryRow .compactHomeBtn{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important;border-radius:13px!important}
  .topbarPrimaryRow .title,#pageTitle{font-size:21px!important;padding-left:1px!important}
  .topbarSecondaryRow{height:35px!important;min-height:35px!important}
  .topbarSecondaryActions,.topbarSecondaryActions .topicons{gap:5px!important}
  .topbarSecondaryActions .topicons .iconbtn{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;flex-basis:35px!important;border-radius:10px!important}
  .topbarSecondaryActions .premiumCoinButton{height:35px!important;min-height:35px!important;min-width:78px!important;max-width:92px!important;border-radius:11px!important}
  .topbar .teamTopBadge,.topbarSecondaryActions .teamTopBadge{top:7px!important;right:var(--v66-edge)!important;bottom:7px!important;border-radius:18px!important}
  .topbar .teamTopBadge .teamBadgeMark{font-size:29px!important;border-radius:13px!important}
  .shopSearchDock{top:calc(var(--v66-header-h) + 55px)!important}
}

@media(max-width:360px){
  :root{--v66-team-w:60px;--v66-edge:6px}
  .topbar.topbarTwoRow{padding-left:6px!important;padding-right:74px!important}
  .topbarPrimaryRow{grid-template-columns:34px 40px minmax(0,1fr)!important;gap:5px!important}
  .topbar.topbarTwoRow.noBack .topbarPrimaryRow{grid-template-columns:40px minmax(0,1fr)!important}
  .topbarPrimaryRow .globalBackBtn{width:34px!important;height:34px!important;min-width:34px!important}
  .topbarPrimaryRow .compactHomeBtn{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
  .topbarPrimaryRow .title,#pageTitle{font-size:19px!important}
  .topbarSecondaryActions,.topbarSecondaryActions .topicons{gap:4px!important}
  .topbarSecondaryActions .topicons .iconbtn{width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;flex-basis:33px!important}
  .topbarSecondaryActions .premiumCoinButton{min-width:72px!important;padding-right:6px!important}
  .topbarSecondaryActions .premiumCoinButton .coinIcon{width:26px!important;height:26px!important;flex-basis:26px!important}
  .topbar .teamTopBadge .teamBadgeMark{font-size:27px!important}
}
