/* Header and mobile drawer final layer */

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(420px, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1600px) / 2 + 24px));
  background:
    radial-gradient(circle at 50% 0%, rgba(146, 255, 43, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(3, 13, 14, 0.94), rgba(1, 7, 10, 0.86));
  border-bottom: 1px solid rgba(150, 255, 50, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36), 0 0 32px rgba(118, 255, 43, 0.06);
  backdrop-filter: blur(20px);
}

.top-nav a::after {
  display: none !important;
}

.top-nav a:hover::before,
.top-nav a.is-active::before {
  left: 0 !important;
  right: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  background: linear-gradient(90deg, transparent, #20ff55 20%, #b6ff36 80%, transparent);
  box-shadow: 0 0 14px rgba(32, 255, 85, 0.62);
}

.brand .zeus-logo-image {
  filter: drop-shadow(0 0 8px rgba(144, 255, 49, 0.22)) !important;
}

.brand:hover,
.footer-logo:hover {
  transform: translateY(-1px) scale(1.015) !important;
  filter: drop-shadow(0 0 10px rgba(144, 255, 49, 0.28)) !important;
}

.brand:hover .zeus-logo-image,
.footer-logo:hover .zeus-logo-image {
  transform: translateY(-1px) scale(1.01) !important;
  filter: drop-shadow(0 0 10px rgba(144, 255, 49, 0.30)) !important;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(170px, 210px) minmax(360px, 1fr) auto;
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 10px !important;
  }

  .top-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-grid !important;
    place-items: center;
  }

  .topbar .brand {
    justify-self: center !important;
  }

  .social-actions {
    grid-column: auto !important;
    justify-self: end !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .social-actions .social-button:not(:first-child) {
    display: none !important;
  }

  .social-actions .social-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 0 !important;
  }
}

@media (max-width: 768px) {
  .topbar {
    width: 100%;
    min-height: 62px !important;
    padding: 8px 12px !important;
  }

  .topbar .brand .zeus-logo-image {
    height: 38px !important;
    max-width: 128px !important;
  }

  .topbar .brand span:last-child {
    font-size: 23px !important;
  }

  .topbar .brand-bolt {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
  }

  .sidebar {
    left: 10px !important;
    top: 74px !important;
    width: min(318px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 94px) !important;
    min-height: 0 !important;
    padding: 16px 16px 96px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    border-radius: 22px !important;
  }

  .sidebar::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
  }

  .side-nav {
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* Header matte graphite refinement */
.topbar {
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 255, 143, 0.055), transparent 30%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.97), rgba(11, 15, 20, 0.94)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38) !important;
}

.topbar::before,
.topbar::after {
  opacity: 0.22 !important;
}

.topbar .brand .zeus-logo-image {
  filter: drop-shadow(0 0 6px rgba(101, 255, 143, 0.14)) !important;
}

.topbar .brand:hover .zeus-logo-image {
  filter: drop-shadow(0 0 8px rgba(101, 255, 143, 0.20)) !important;
}

.top-nav a {
  color: #d5dbe3 !important;
  text-shadow: none !important;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: #65ff8f !important;
}

.top-nav a::before {
  background: linear-gradient(90deg, transparent, #65ff8f, transparent) !important;
  box-shadow: 0 0 10px rgba(101, 255, 143, 0.26) !important;
}

.menu-toggle,
.social-actions a {
  background: rgba(17, 22, 29, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
}

.menu-toggle:hover,
.social-actions a:hover {
  border-color: rgba(101, 255, 143, 0.30) !important;
  box-shadow: 0 0 18px rgba(101, 255, 143, 0.09) !important;
}

@media (max-width: 768px) {
  .topbar {
    min-height: 62px !important;
    background: linear-gradient(180deg, rgba(7, 9, 13, 0.98), rgba(11, 15, 20, 0.94)) !important;
  }

  .sidebar {
    background:
      radial-gradient(circle at 24% 8%, rgba(101, 255, 143, 0.07), transparent 28%),
      linear-gradient(160deg, rgba(17, 22, 29, 0.98), rgba(7, 9, 13, 0.98)) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52) !important;
  }
}

/* Calm logo/header override */
.brand,
.brand:hover,
.footer-logo,
.footer-logo:hover {
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

.brand::before,
.brand::after,
.footer-logo::before,
.footer-logo::after {
  display: none !important;
}

.brand .zeus-logo-image,
.brand:hover .zeus-logo-image,
.footer-logo .zeus-logo-image,
.footer-logo:hover .zeus-logo-image {
  transform: none !important;
  animation: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 5px rgba(101, 255, 143, 0.10)) !important;
}

.brand:hover .zeus-logo-image,
.footer-logo:hover .zeus-logo-image {
  filter: drop-shadow(0 0 7px rgba(101, 255, 143, 0.15)) !important;
}

.topbar {
  min-height: 74px !important;
  padding-block: 10px !important;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.985), rgba(11, 15, 20, 0.955)) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

.topbar::before,
.topbar::after {
  opacity: 0.10 !important;
  filter: none !important;
}

.top-nav a::before {
  box-shadow: 0 0 7px rgba(101, 255, 143, 0.14) !important;
  opacity: 0.72 !important;
}

.social-actions a,
.menu-toggle {
  background: rgba(17, 22, 29, 0.58) !important;
  border-color: rgba(255, 255, 255, 0.095) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.social-actions a:hover,
.menu-toggle:hover {
  border-color: rgba(101, 255, 143, 0.22) !important;
  box-shadow: 0 0 12px rgba(101, 255, 143, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

@media (max-width: 768px) {
  .topbar {
    min-height: 60px !important;
    padding: 7px 12px !important;
  }

  .topbar .brand .zeus-logo-image {
    height: 34px !important;
    max-width: 120px !important;
  }

  .sidebar {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.99), rgba(7, 9, 13, 0.99)) !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.50) !important;
  }
}
