/* Recodet V76 — premium production header.
   Hub: locality emblem | RECODET | RC balance + chat
   Modules: back | module title | up to two contextual actions
   Loaded last so older header experiments cannot leak through. */
:root{
  --v76-topbar-h:70px;
  --v76-edge:12px;
  --v76-gold:#e8bd47;
  --v76-gold-hi:#f5d978;
  --v76-ivory:#fff7df;
  --v76-muted:#a99663;
  --v76-panel:#0b0906;
}

/* Kill legacy header-only chrome that competed with the main hierarchy. */
#launchAccessBadge{display:none!important}
.topbar.topbarTwoRow .compactHomeBtn{display:none!important}
.topbar.topbarTwoRow .teamBadgeName{display:none!important}
.topbar.topbarTwoRow .coinOpenArrow{display:none!important}

.topbar.topbarTwoRow{
  position:sticky!important;
  top:0!important;
  z-index:1450!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:var(--v76-topbar-h)!important;
  min-height:var(--v76-topbar-h)!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  isolation:isolate!important;
  border:0!important;
  border-bottom:1px solid rgba(232,189,71,.18)!important;
  background:
    radial-gradient(85% 145% at 50% -80%,rgba(232,189,71,.13),transparent 58%),
    linear-gradient(180deg,rgba(12,10,7,.985),rgba(5,5,4,.995))!important;
  box-shadow:0 9px 28px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,248,215,.025)!important;
  backdrop-filter:blur(18px) saturate(118%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(118%)!important;
}
.topbar.topbarTwoRow::after{
  content:"";
  position:absolute;
  z-index:0;
  left:12%;right:12%;bottom:-1px;height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(245,217,120,.62) 50%,transparent);
  opacity:.7;
}
.topbar.topbarTwoRow .topbarPrimaryRow,
.topbar.topbarTwoRow .topbarSecondaryRow{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
.topbar.topbarTwoRow .topbarPrimaryRow{display:block!important;pointer-events:none!important}
.topbar.topbarTwoRow .topbarSecondaryRow{display:block!important;pointer-events:none!important}
.topbar.topbarTwoRow .topbarPrimaryRow>*,
.topbar.topbarTwoRow .topbarSecondaryRow>*{pointer-events:auto}
.topbar.topbarTwoRow .topbarSecondaryActions,
.topbar.topbarTwoRow .topicons{position:static!important;display:block!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important}

/* ---------- Shared touch targets ---------- */
.topbar.topbarTwoRow .globalBackBtn,
.topbar.topbarTwoRow .topicons .iconbtn{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  border-radius:14px!important;
  border:1px solid rgba(232,189,71,.20)!important;
  color:#f1cc60!important;
  background:linear-gradient(180deg,rgba(24,20,12,.82),rgba(9,8,5,.92))!important;
  box-shadow:inset 0 1px 0 rgba(255,244,197,.055),0 5px 16px rgba(0,0,0,.22)!important;
  transition:transform .14s ease,border-color .14s ease,background .14s ease!important;
}
.topbar.topbarTwoRow .globalBackBtn:active,
.topbar.topbarTwoRow .topicons .iconbtn:active{transform:translateY(-50%) scale(.955)!important;background:rgba(35,28,14,.96)!important}
.topbar.topbarTwoRow .globalBackBtn:focus-visible,
.topbar.topbarTwoRow .topicons .iconbtn:focus-visible,
.topbar.topbarTwoRow .teamTopBadge:focus-visible,
.topbar.topbarTwoRow .premiumCoinButton:focus-visible{outline:2px solid rgba(245,217,120,.9)!important;outline-offset:2px!important}
.topbar.topbarTwoRow .globalBackBtn svg,
.topbar.topbarTwoRow .topicons .iconbtn svg{width:20px!important;height:20px!important;stroke-width:1.8!important}

/* ---------- Center title ---------- */
.topbar.topbarTwoRow #pageTitle{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  box-sizing:border-box!important;
  width:112px!important;
  max-width:112px!important;
  height:42px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  color:var(--v76-ivory)!important;
  font:800 18px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:.018em!important;
  text-transform:none!important;
  text-align:center!important;
  text-shadow:none!important;
}
.topbar.topbarTwoRow.v76Hub #pageTitle{
  width:108px!important;
  color:var(--v76-gold-hi)!important;
  letter-spacing:0!important;
}
.v76BrandWord{display:inline-flex;align-items:center;justify-content:center;gap:1.5px;white-space:nowrap}
.v76BrandLetters{
  color:#f1c95b;
  font:850 17px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.085em;
}
.v76BrandO{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:18px;height:18px;
  margin:0 1px 0 -1px;
  border:2px solid #f1c95b;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(241,201,91,.12),inset 0 0 0 2px rgba(7,6,4,.92);
}
.v76BrandO::before{
  content:"";
  width:5px;height:5px;border-radius:50%;
  background:#f5d978;
  box-shadow:0 0 7px rgba(245,217,120,.36);
}
.v76BrandO::after{
  content:"";
  position:absolute;
  width:4px;height:2px;
  right:-3px;top:3px;
  border-radius:2px;
  background:#f5d978;
  transform:rotate(-28deg);
}

/* ---------- Hub identity ---------- */
.topbar.topbarTwoRow.v76Hub .globalBackBtn,
.topbar.topbarTwoRow.v76Hub .compactHomeBtn,
.topbar.topbarTwoRow.v76Hub #btnSearch,
.topbar.topbarTwoRow.v76Hub #btnSort{display:none!important}

.topbar.topbarTwoRow.v76Hub .teamTopBadge{
  position:absolute!important;
  left:var(--v76-edge)!important;
  right:auto!important;
  top:50%!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:48px!important;height:48px!important;
  min-width:48px!important;max-width:48px!important;min-height:48px!important;
  margin:0!important;padding:5px!important;
  border-radius:16px!important;
  border:1px solid rgba(232,189,71,.30)!important;
  background:linear-gradient(145deg,rgba(27,22,13,.90),rgba(8,7,5,.96))!important;
  box-shadow:inset 0 1px 0 rgba(255,244,195,.07),0 7px 18px rgba(0,0,0,.25)!important;
}
.topbar.topbarTwoRow.v76Hub .teamTopBadge::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:12px;
  border:1px solid rgba(245,217,120,.08);
  pointer-events:none;
}
.topbar.topbarTwoRow.v76Hub .teamBadgeMark{
  display:grid!important;
  place-items:center!important;
  width:36px!important;height:36px!important;
  border-radius:11px!important;
  overflow:hidden!important;
  background:transparent!important;
  color:#f6d66e!important;
  font-size:15px!important;font-weight:850!important;
}
.topbar.topbarTwoRow.v76Hub .teamBadgeMark img{
  display:block!important;
  width:100%!important;height:100%!important;
  object-fit:contain!important;
  border-radius:8px!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.32));
}

.topbar.topbarTwoRow.v76Hub .premiumCoinButton{
  position:absolute!important;
  top:50%!important;
  right:59px!important;
  left:auto!important;
  transform:translateY(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  box-sizing:border-box!important;
  width:76px!important;height:42px!important;
  min-width:76px!important;max-width:76px!important;min-height:42px!important;
  margin:0!important;padding:4px 7px 4px 4px!important;
  border-radius:14px!important;
  border:1px solid rgba(232,189,71,.24)!important;
  background:linear-gradient(180deg,rgba(26,21,12,.84),rgba(9,8,5,.94))!important;
  color:var(--v76-ivory)!important;
  box-shadow:inset 0 1px 0 rgba(255,244,197,.055),0 5px 16px rgba(0,0,0,.22)!important;
}
.topbar.topbarTwoRow.v76Hub .premiumCoinButton .coinIcon{
  display:grid!important;place-items:center!important;
  flex:0 0 30px!important;
  width:30px!important;height:30px!important;
  border-radius:10px!important;
  color:#f5d46b!important;
  border:1px solid rgba(245,217,120,.16)!important;
  background:radial-gradient(circle at 35% 25%,rgba(245,217,120,.17),rgba(197,143,29,.05) 62%,transparent)!important;
}
.topbar.topbarTwoRow.v76Hub .premiumCoinButton .coinIcon svg{width:18px!important;height:18px!important}
.topbar.topbarTwoRow.v76Hub .coinValueWrap{display:grid!important;gap:0!important;text-align:left!important;line-height:1!important}
.topbar.topbarTwoRow.v76Hub .coinAmt{color:#fff3c8!important;font:850 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:.01em!important}
.topbar.topbarTwoRow.v76Hub .coinValueWrap small{margin-top:2px!important;color:#9b895b!important;font:750 7px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:.08em!important}

.topbar.topbarTwoRow.v76Hub #btnChat{
  display:grid!important;
  right:var(--v76-edge)!important;
  left:auto!important;
  width:42px!important;height:42px!important;
}

/* ---------- Module header ---------- */
.topbar.topbarTwoRow.v76Module .teamTopBadge,
.topbar.topbarTwoRow.v76Module .premiumCoinButton,
.topbar.topbarTwoRow.v76Module #btnChat,
.topbar.topbarTwoRow.v76Module .compactHomeBtn{display:none!important}
.topbar.topbarTwoRow.v76Module .globalBackBtn{display:grid!important;left:var(--v76-edge)!important;right:auto!important}
.topbar.topbarTwoRow.v76Module #pageTitle{
  width:min(42vw,180px)!important;
  max-width:180px!important;
  color:#fff6dc!important;
  font-size:18px!important;
  font-weight:780!important;
  letter-spacing:.005em!important;
}
.topbar.topbarTwoRow.v76Module #btnSearch{right:59px!important;left:auto!important}
.topbar.topbarTwoRow.v76Module #btnSort{right:var(--v76-edge)!important;left:auto!important}
.topbar.topbarTwoRow.v76Module.v73OneAction #btnSearch{right:var(--v76-edge)!important}
.topbar.topbarTwoRow.v76Module.v73OneAction #btnSort{display:none!important}
.topbar.topbarTwoRow.v76Module.v73NoActions #btnSearch,
.topbar.topbarTwoRow.v76Module.v73NoActions #btnSort{display:none!important}

/* Onboarding stays intentionally quieter than the signed-in product shell. */
body.onboardingActive .topbar.topbarTwoRow{
  height:58px!important;min-height:58px!important;
  background:linear-gradient(180deg,#0a0906,#050403)!important;
}
body.onboardingActive .topbar.topbarTwoRow #pageTitle{
  width:min(56vw,200px)!important;
  color:#fff4d4!important;
  font-size:16px!important;font-weight:750!important;letter-spacing:.01em!important;
}
body.onboardingActive .topbar.topbarTwoRow .globalBackBtn{
  display:grid!important;left:9px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:13px!important;
}
body.onboardingActive .topbar.topbarTwoRow .teamTopBadge,
body.onboardingActive .topbar.topbarTwoRow .premiumCoinButton,
body.onboardingActive .topbar.topbarTwoRow .topicons,
body.onboardingActive .topbar.topbarTwoRow .compactHomeBtn{display:none!important}

/* Sticky Shop surfaces must follow the final header height. */
.shopContextBar{top:var(--v76-topbar-h)!important}
.shopSearchDock{top:calc(var(--v76-topbar-h) + 58px)!important}

@media(max-width:390px){
  :root{--v76-topbar-h:66px;--v76-edge:8px}
  .topbar.topbarTwoRow.v76Hub .teamTopBadge{width:45px!important;height:45px!important;min-width:45px!important;max-width:45px!important;min-height:45px!important;padding:5px!important;border-radius:14px!important}
  .topbar.topbarTwoRow.v76Hub .teamBadgeMark{width:33px!important;height:33px!important}
  .topbar.topbarTwoRow.v76Hub #pageTitle{width:100px!important;max-width:100px!important}
  .v76BrandLetters{font-size:16px;letter-spacing:.07em}
  .v76BrandO{width:17px;height:17px}
  .topbar.topbarTwoRow .globalBackBtn,
  .topbar.topbarTwoRow .topicons .iconbtn{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;border-radius:13px!important}
  .topbar.topbarTwoRow.v76Hub .premiumCoinButton{right:53px!important;width:72px!important;min-width:72px!important;max-width:72px!important;height:39px!important;min-height:39px!important;padding-right:6px!important;gap:5px!important;border-radius:13px!important}
  .topbar.topbarTwoRow.v76Hub .premiumCoinButton .coinIcon{width:27px!important;height:27px!important;flex-basis:27px!important;border-radius:9px!important}
  .topbar.topbarTwoRow.v76Hub .coinAmt{font-size:12px!important}
  .topbar.topbarTwoRow.v76Hub #btnChat{width:39px!important;height:39px!important}
  .topbar.topbarTwoRow.v76Module #btnSearch{right:53px!important}
  .topbar.topbarTwoRow.v76Module #pageTitle{width:min(40vw,148px)!important;font-size:17px!important}
}
@media(max-width:340px){
  .topbar.topbarTwoRow.v76Hub #pageTitle{width:84px!important;max-width:84px!important}
  .v76BrandLetters{font-size:14px;letter-spacing:.045em}
  .v76BrandO{width:14px;height:14px;border-width:1.6px}
  .topbar.topbarTwoRow.v76Hub .premiumCoinButton{right:51px!important;width:62px!important;min-width:62px!important;max-width:62px!important;padding-left:3px!important;padding-right:4px!important;gap:4px!important}
  .topbar.topbarTwoRow.v76Hub .coinValueWrap small{display:none!important}
  .topbar.topbarTwoRow.v76Hub .premiumCoinButton .coinIcon{width:25px!important;height:25px!important;flex-basis:25px!important}
  .topbar.topbarTwoRow.v76Hub .coinAmt{font-size:11px!important}
}

@media(prefers-reduced-motion:reduce){
  .topbar.topbarTwoRow *{transition:none!important}
}
