/* Tacot global nav — same links on every page */

#tacot-global-nav {
  --gn-bg: rgba(11, 13, 20, 0.92);
  --gn-text: #eef0f8;
  --gn-muted: #9aa3bb;
  --gn-border: rgba(255, 255, 255, 0.08);
  --gn-accent: #5865f2;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--gn-bg);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--gn-border);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--gn-text);
}

#tacot-global-nav *,
#tacot-global-nav *::before,
#tacot-global-nav *::after {
  box-sizing: border-box;
}

#tacot-global-nav .gn-inner {
  width: min(1200px, 96%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  min-height: 56px;
}

#tacot-global-nav .gn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gn-text) !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 0.25rem;
}
#tacot-global-nav .gn-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}

#tacot-global-nav .gn-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

#tacot-global-nav .gn-links a {
  color: var(--gn-muted) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}
#tacot-global-nav .gn-links a:hover {
  color: var(--gn-text) !important;
  background: rgba(255, 255, 255, 0.06);
}
#tacot-global-nav .gn-links a.is-active {
  color: #fff !important;
  background: rgba(88, 101, 242, 0.28);
}

#tacot-global-nav .gn-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

#tacot-global-nav .gn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid transparent;
  white-space: nowrap;
}
#tacot-global-nav .gn-btn-primary {
  background: linear-gradient(135deg, #5865f2, #6d5ef7 55%, #a855c8);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}
#tacot-global-nav .gn-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gn-text) !important;
  border-color: var(--gn-border);
}

#tacot-global-nav .gn-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gn-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 0.25rem;
}
#tacot-global-nav .gn-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gn-text);
  border-radius: 2px;
}

#tacot-global-nav .gn-mobile {
  display: none;
  border-top: 1px solid var(--gn-border);
  padding: 0.5rem 0 0.75rem;
  width: min(1200px, 96%);
  margin: 0 auto;
}
#tacot-global-nav.is-open .gn-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
}
#tacot-global-nav .gn-mobile a {
  color: var(--gn-muted) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}
#tacot-global-nav .gn-mobile a:hover,
#tacot-global-nav .gn-mobile a.is-active {
  color: #fff !important;
  background: rgba(88, 101, 242, 0.22);
}

@media (max-width: 960px) {
  #tacot-global-nav .gn-links {
    display: none;
  }
  #tacot-global-nav .gn-burger {
    display: inline-flex;
  }
  #tacot-global-nav .gn-cta .gn-btn-secondary {
    display: none;
  }
}

/* When global nav is present, hide page-local headers so links aren't scattered */
body.tacot-has-global-nav > header.nav,
body.tacot-has-global-nav > .nav,
body.tacot-has-global-nav .sp-topbar,
body.tacot-has-global-nav .sb-top,
body.tacot-has-global-nav #legacy-page-nav {
  display: none !important;
}
body.tacot-has-global-nav .mobile-menu,
body.tacot-has-global-nav #mobile-menu {
  display: none !important;
}

/* Full-height app shells under sticky global nav */
body.tacot-has-global-nav .sp-inbox {
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
}
body.tacot-has-global-nav .sp-shell {
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
}
body.tacot-has-global-nav .sb-body,
body.tacot-has-global-nav.sb-body {
  /* servers page continues fine with sticky global nav */
}
