/* Chase Analytics navigation — premium terminal */
.chase-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.chase-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 9, 0.72) 0%,
    rgba(5, 5, 9, 0.48) 72%,
    rgba(5, 5, 9, 0.18) 100%
  );
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  pointer-events: none;
}

.chase-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  gap: 16px;
}

.chase-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #F9FAFB;
  flex-shrink: 0;
}

.chase-logo:hover { color: #fff; }

.chase-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #FFFFFF;
  font-family: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  font-size: clamp(22px, 2.1vw, 32px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(124, 77, 255, 0.38), 0 2px 12px rgba(0, 0, 0, 0.64);
  white-space: nowrap;
}

.chase-wordmark__accent {
  color: #B8B8C2;
}

.chase-brand-logo,
.ca-logo-nav,
.chase-nav-logo,
.chase-nav-logo--wordmark,
.chase-nav-logo--dark {
  height: 48px !important;
  max-height: 48px !important;
  min-width: 160px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.35));
}

.chase-nav-logo--icon {
  height: 36px !important;
  max-height: 36px !important;
  min-width: 0 !important;
  width: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
}

.chase-nav-logo--compact {
  display: none !important;
}

.chase-nav-logo-fallback {
  font-weight: 700;
  font-size: 15px;
  color: #F9FAFB;
  letter-spacing: -0.02em;
}

.chase-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.chase-nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(174, 180, 198, 0.92);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: inset 0 -2px 0 transparent;
}

.chase-nav-link:hover {
  color: #F9FAFB;
  background: rgba(255, 255, 255, 0.04);
}

.chase-nav-link.active,
.chase-dropdown.open > .chase-nav-link {
  color: #E9E6FF;
  background: transparent;
  box-shadow: inset 0 -2px 0 #7C4DFF;
  text-shadow: 0 0 18px rgba(124, 77, 255, 0.35);
}

.chase-nav-link[aria-expanded="true"] {
  color: #E9E6FF;
  background: rgba(255, 255, 255, 0.03);
}

.chase-nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.chase-nav-link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.chase-dropdown { position: relative; }

.chase-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: rgba(10, 10, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 150ms ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.chase-dropdown.open .chase-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chase-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #F9FAFB;
  text-decoration: none;
  transition: background 150ms ease;
}

.chase-dropdown-item:hover {
  background: rgba(124, 77, 255, 0.08);
}

.chase-dropdown-item.disabled {
  color: #6B7280;
  pointer-events: none;
}

.chase-dropdown-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #6B7280;
}

.chase-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.chase-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chase-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(174, 180, 198, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chase-pipeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
  animation: chase-pulse 2s ease-in-out infinite;
}

.chase-pipeline-dot.stale {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

@keyframes chase-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.chase-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}

.chase-hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.chase-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #F9FAFB;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.chase-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.chase-hamburger.open span:nth-child(2) { opacity: 0; }

.chase-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.chase-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  /* Closed overlay must never intercept taps. On mobile the media query below
     renders it (display:flex) even when closed, so without this an invisible
     full-viewport layer swallows every tap until the menu is opened+closed once. */
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chase-mobile-overlay.open { opacity: 1; pointer-events: auto; }

.chase-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #0a0a10;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.chase-mobile-menu.open { transform: translateX(0); }

.chase-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chase-mobile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #6B7280;
  cursor: pointer;
  transition: all 150ms ease;
}

.chase-mobile-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F9FAFB;
}

.chase-mobile-brand {
  display: none !important;
}

.chase-mobile-nav {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chase-mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #F9FAFB;
  text-decoration: none;
  transition: background 150ms ease;
}

.chase-mobile-link:hover { background: rgba(124, 58, 237, 0.08); }

.chase-mobile-link.active {
  background: rgba(124, 77, 255, 0.14);
  color: #C4B0FF;
}

.chase-mobile-section {
  padding: 12px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
}

.chase-mobile-status {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.chase-mobile-status .chase-timestamp {
  width: 100%;
  justify-content: center;
}

@media (min-width: 769px) {
  .chase-mobile-overlay,
  .chase-mobile-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .chase-hamburger {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .chase-nav-links,
  .chase-status .chase-timestamp {
    display: none;
  }

  .chase-hamburger,
  .chase-mobile-overlay,
  .chase-mobile-menu {
    display: flex;
  }

  .chase-mobile-menu {
    display: block;
  }

  .chase-nav {
    padding: 0 16px;
  }
}
