/* Shared HazeWallet visual shell: same cosmic background + navigation polish across public pages. */
:root{--haze-shared-bg:#020817;--haze-shared-line:rgba(125,164,244,.16);--haze-shared-muted:#8ea4cd;--haze-shared-cyan:#35d0ff;--haze-shared-blue:#347fff;--haze-shared-violet:#7857ff}
html{background:var(--haze-shared-bg)}
body{background:transparent!important}
.home-bg,.site-bg,.an-bg{z-index:-1!important;background:#020817 url("cosmic-bg.svg") center center/cover no-repeat fixed!important}
.home-bg:after,.site-bg:after,.an-bg:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(800px 520px at 73% 13%,rgba(33,113,255,.10),transparent 64%),radial-gradient(680px 480px at 14% 84%,rgba(119,75,255,.10),transparent 68%),linear-gradient(180deg,rgba(2,8,23,.04),rgba(2,8,23,.30))}
.site-bg .nebula,.site-bg .aurora,.site-bg .stars{opacity:.20}
.home-brand img,.brand-mark,.an-brand img{filter:drop-shadow(0 8px 18px rgba(58,113,255,.26))}
.site-header,.an-header,.home-header{background:rgba(3,10,27,.63)!important;border-bottom:1px solid rgba(130,166,240,.085)!important;backdrop-filter:blur(18px) saturate(125%)}
.site-nav a,.studio-nav a,.an-nav nav a,.home-links a{transition:color .16s ease,background .16s ease,border-color .16s ease}
.site-nav a:hover,.studio-nav a:hover,.an-nav nav a:hover,.home-links a:hover{color:#fff}
.shared-powered{color:#7d93bb;font-size:10px;letter-spacing:.035em;white-space:nowrap}
.shared-powered strong{color:#dbe8ff;font-weight:800}
@media(max-width:720px){.home-bg,.site-bg,.an-bg{background-attachment:scroll!important;background-position:60% center!important}}
.footer,.an-footer{background:rgba(2,8,23,.64)!important;backdrop-filter:blur(14px)}


/* Static cross-page navigation -------------------------------------------------
   Every public page uses the same menu geometry so the header never appears
   to jump when moving between Wallet, Add Widget, Analytics, and Docs. */
.hz-header{
  height:72px!important;
  min-height:72px!important;
  position:sticky!important;
  top:0;
  z-index:60!important;
  border-bottom:1px solid rgba(130,166,240,.085)!important;
  background:rgba(3,10,27,.72)!important;
  backdrop-filter:blur(18px) saturate(125%)!important;
}
.hz-nav-shell{
  width:min(1500px,calc(100% - 44px))!important;
  height:72px!important;
  min-height:72px!important;
  margin-inline:auto!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:220px 1fr 168px!important;
  align-items:center!important;
  gap:24px!important;
}
.hz-brand{
  width:220px!important;
  min-width:220px!important;
  display:flex!important;
  align-items:center!important;
  justify-self:start!important;
  gap:10px!important;
}
.hz-brand img,.hz-brand .brand-mark{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  object-fit:contain!important;
}
.hz-brand .brand-name,.hz-brand>span,.hz-brand strong{
  font-size:20px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.04em!important;
  white-space:nowrap!important;
}
.hz-nav{
  margin:0!important;
  justify-self:end!important;
  display:grid!important;
  grid-template-columns:74px 108px 92px 66px!important;
  align-items:center!important;
  gap:4px!important;
}
.hz-nav a{
  box-sizing:border-box!important;
  width:100%!important;
  height:40px!important;
  padding:0 8px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  color:#9eb1d5!important;
  background:transparent!important;
  box-shadow:inset 0 -2px transparent!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:760!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  transition:color .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
.hz-nav a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.04)!important;
}
.hz-nav a.is-active{
  color:#fff!important;
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(107,151,245,.08)!important;
  box-shadow:inset 0 -2px #347fff!important;
}
.hz-actions{
  width:168px!important;
  min-width:168px!important;
  margin:0!important;
  justify-self:end!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
}
.hz-cta{
  box-sizing:border-box!important;
  width:156px!important;
  min-width:156px!important;
  height:42px!important;
  margin:0!important;
  padding:0 14px!important;
  display:inline-grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:12px!important;
  color:#fff!important;
  background:linear-gradient(115deg,#7857ff,#347fff 55%,#35d0ff)!important;
  box-shadow:0 10px 28px rgba(50,103,255,.24),inset 0 1px rgba(255,255,255,.22)!important;
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:820!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.hz-cta:hover{filter:brightness(1.06)}

@media(max-width:900px){
  .hz-nav-shell{
    width:min(100% - 24px,1500px)!important;
    grid-template-columns:52px 1fr 142px!important;
    gap:12px!important;
  }
  .hz-brand{width:52px!important;min-width:52px!important}
  .hz-brand .brand-name,.hz-brand>span,.hz-brand strong{display:none!important}
  .hz-nav{grid-template-columns:64px 96px 82px 58px!important;gap:2px!important}
  .hz-nav a{font-size:11px!important;padding-inline:5px!important}
  .hz-actions{width:142px!important;min-width:142px!important}
  .hz-cta{width:138px!important;min-width:138px!important;font-size:10.5px!important}
}
@media(max-width:700px){
  .hz-header{height:62px!important;min-height:62px!important}
  .hz-nav-shell{
    width:calc(100% - 16px)!important;
    height:62px!important;
    min-height:62px!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    gap:8px!important;
  }
  .hz-brand{width:42px!important;min-width:42px!important}
  .hz-brand img,.hz-brand .brand-mark{width:34px!important;height:34px!important;flex-basis:34px!important}
  .hz-nav{justify-self:stretch!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important}
  .hz-nav a{height:36px!important;font-size:10px!important;padding-inline:2px!important}
  .hz-actions{display:none!important}
}
@media(max-width:410px){
  .hz-nav-shell{grid-template-columns:38px minmax(0,1fr)!important;gap:4px!important}
  .hz-brand{width:38px!important;min-width:38px!important}
  .hz-brand img,.hz-brand .brand-mark{width:31px!important;height:31px!important;flex-basis:31px!important}
  .hz-nav a{font-size:9.4px!important}
}

/* Keep layout calculations synchronized with the shared header height. */
.studio-body{--studio-header-h:72px}
@media(max-width:700px){.studio-body{--studio-header-h:62px}}
