/* GZ fixes v1.1.1 — loaded last. Bottom nav, top bar, nav icons, 404 page, footer. */

/* 1. Bottom nav is mobile-only */
@media (min-width:761px){html body .mobile-nav{display:none!important}}

/* 2. Top bar: never let links run into the search box */
html body .topbar .top-nav{min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap}
html body .topbar .top-nav .top-link{flex:0 0 auto}
@media (min-width:761px) and (max-width:1279px){
  html body .topbar form#search-form.header-search{display:none!important;width:0!important;min-width:0!important;flex:0 0 0!important;padding:0!important;border:0!important;overflow:hidden!important}
  html body .topbar .top-actions button.quick-search:not(#_){display:inline-grid!important}
}

/* 3. Navigation icons */
html body .gz-ni{display:block;width:22px;height:22px;flex:0 0 auto;overflow:visible;fill:none;stroke-width:1.7}
html body .gz-ni .tone{fill:currentColor;stroke:none!important;opacity:0;transition:opacity .2s}
html body .icon-btn svg.gz-ni{color:#0b2a44!important;stroke:#0b2a44!important;width:21px;height:21px}
html body .icon-btn:hover svg.gz-ni{color:#0077c2!important;stroke:#0077c2!important}
html body .mobile-nav a svg.gz-ni{width:23px!important;height:23px!important;color:#64748b!important;stroke:#64748b!important;filter:none!important}
html body .mobile-nav a.active svg.gz-ni{color:#0077c2!important;stroke:#0077c2!important;transform:translateY(-1px)}
html body .mobile-nav a.active svg.gz-ni .tone{opacity:.18}
html body .mobile-nav a span{font-size:10.5px;line-height:1.1;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .mobile-nav a{-webkit-tap-highlight-color:transparent;touch-action:manipulation;pointer-events:auto}

/* 4. Custom 404 page */
.nf-page{display:grid;place-items:center;min-height:62vh;padding:24px 0}
.nf-card{width:min(560px,100%);text-align:center;padding:40px 28px 32px;border-radius:28px;background:linear-gradient(160deg,#fff,#eef9ff);border:1px solid #d5eaf6;box-shadow:0 24px 60px -24px rgba(0,110,200,.28)}
.nf-orbit{position:relative;display:grid;place-items:center;width:150px;height:150px;margin:0 auto 14px}
.nf-ring{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,#2ee8c8,#00a8d4,#0066dd,#2ee8c8);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));animation:nfSpin 6s linear infinite}
.nf-code{font-size:46px;font-weight:850;letter-spacing:-2px;background:linear-gradient(135deg,#2ee8c8,#0066dd);-webkit-background-clip:text;background-clip:text;color:transparent}
.nf-pill{display:inline-block;padding:5px 14px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.1em;color:#0077c2;background:#e0f4fc;border:1px solid #b7e8f6}
.nf-card h1{margin:14px 0 8px;font-size:28px;line-height:1.2;letter-spacing:-.6px;color:#0b2a44}
.nf-card p{margin:0 auto 22px;max-width:400px;color:#4d6b82;font-size:15px;line-height:1.6}
.nf-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.nf-links{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;margin-top:22px;font-size:13px;color:#64748b}
.nf-links a{color:#0077c2;font-weight:650;text-decoration:none}
.nf-links a:hover{text-decoration:underline}
@keyframes nfSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.nf-ring{animation:none}}
@media(max-width:480px){.nf-card{padding:30px 18px 26px}.nf-card h1{font-size:23px}.nf-actions .btn{flex:1 1 100%;justify-content:center}}

/* 5. Wallet pill in the top bar: icon was white on a white button */
html body .top-actions a.btn.secondary svg,
html body .top-actions a.btn.secondary .color-icon{color:#0077c2!important;stroke:#0077c2!important}

/* 6. Footer: full layout on desktop and mobile, nothing clipped or hidden */
html body .content .footer{
  display:grid!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
  grid-template-columns:1fr auto;
  grid-template-areas:"copy socials" "links links" "secure version";
  align-items:center;gap:14px 24px;margin-top:40px!important;padding:24px 72px 32px 0!important;
  font-size:12.5px;line-height:1.5;
}
html body .content .footer>*{min-width:0}
html body .content .footer>span:nth-child(1){grid-area:copy}
html body .content .footer>.footer-links{grid-area:links;display:flex!important;flex-wrap:wrap;gap:8px 18px}
html body .content .footer>span:nth-child(3){grid-area:secure;display:inline-flex;align-items:center;gap:6px}
html body .content .footer>.socials{grid-area:socials;justify-self:end;margin:0!important;display:flex!important;gap:10px}
html body .content .footer>.version-control{grid-area:version;justify-self:end;position:static!important;margin:0!important;white-space:nowrap}
html body .content .footer .footer-links a{color:#4d6b82!important;font-weight:600;text-decoration:none;font-size:12.5px;opacity:1}
html body .content .footer .footer-links a:hover{color:#0077c2!important}
html body .content .footer>span:nth-child(3) svg{width:15px;height:15px;color:#12b98a!important;stroke:#12b98a!important}
@media (min-width:761px){html body .content{padding-bottom:56px!important}}
@media (max-width:760px){
  html body .content .footer{
    grid-template-columns:1fr;grid-template-areas:"copy" "links" "secure" "socials" "version";
    justify-items:start;padding:22px 4px 8px!important;margin-top:28px!important;gap:12px;
  }
  html body .content .footer>.socials,html body .content .footer>.version-control{justify-self:start}
  html body .content .footer>.footer-links{gap:8px 16px}
  html body .content{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
}
html body .content .footer>.footer-links{justify-content:flex-start!important;width:100%}
html body .content .footer{background:transparent!important;box-shadow:none!important}

/* 7. Sign in / Create account: centred header, equal tabs, tidy password toggle */
html body .auth-panel .auth-header-block{display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:10px}
html body .auth-panel .auth-header-block h2,html body .auth-panel .auth-header-block p{margin:0;text-align:center}
html body .auth-panel .auth-brand-emblem{width:76px;height:76px;border-radius:50%!important;margin:0 auto!important;padding:3px;background:#fff;overflow:hidden;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,140,220,.22),0 0 0 2px rgba(46,232,200,.5)}
html body .auth-panel .auth-brand-emblem img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover}
html body .auth-panel .auth-pill-badge{margin:0 auto!important;position:static!important;transform:none!important}
html body .auth-panel .auth-trust-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
html body .auth-panel .auth-mode-switch{display:grid!important;grid-template-columns:1fr 1fr;width:100%;max-width:340px;margin:18px auto!important}
html body .auth-panel .auth-mode-pill{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-width:0;padding:10px 8px;text-align:center}
html body .auth-panel .password-wrap{position:relative}
html body .auth-panel .password-wrap input{padding-right:64px!important}
html body .auth-panel .password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);height:32px;padding:0 12px;border:0;border-radius:999px;background:#e0f4fc;color:#0077c2!important;font-size:12px;font-weight:700;cursor:pointer}
html body .auth-panel .password-toggle:hover{background:#cdeefb}

/* 8. Mobile top bar: icon buttons no longer overlap */
@media (max-width:760px){
  html body .topbar .top-actions{gap:6px!important}
  html body .topbar .top-actions .icon-btn{flex:0 0 auto}
  html body .topbar .top-actions .divider{display:none}
}
@media (max-width:760px){html body .topbar .top-actions{gap:8px!important}html body .topbar .top-actions .icon-btn{margin:0!important}}
