/* CryptoLookout shared top navigation. Scoped to avoid changing legacy pages. */
.cl-unified-header-wrap,
.cl-unified-header-wrap * {
  box-sizing: border-box;
}

[data-cl-legacy-header-hidden] {
  display: none !important;
}

.cl-unified-header-wrap {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  padding: 12px 16px 0;
  pointer-events: none;
}

.cl-unified-header {
  position: relative;
  width: min(1180px, 100%);
  min-height: 70px;
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .1);
  color: #0f2340;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .cl-unified-header {
  border-color: rgba(148, 163, 184, .2);
  background: rgba(7, 17, 31, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  color: #f5f8ff;
}

.cl-unified-brand {
  width: 132px;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.cl-unified-brand img {
  display: block;
  width: 132px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.cl-unified-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.cl-unified-nav a,
.cl-unified-nav button {
  min-height: 40px;
  margin: 0;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: 700 12px/1.2 Inter, Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cl-unified-nav a:hover,
.cl-unified-nav button:hover,
.cl-unified-nav a:focus-visible,
.cl-unified-nav button:focus-visible {
  border-color: rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .08);
  outline: none;
}

.cl-unified-nav a.is-active {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(37, 99, 235, .1);
  color: #2563eb;
}

html[data-theme="dark"] .cl-unified-nav a.is-active {
  color: #75b8ff;
}

.cl-unified-nav a.cl-unified-primary {
  padding-inline: 16px;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 9px 24px rgba(37, 99, 235, .22);
  color: #fff;
}

.cl-unified-nav a.cl-unified-primary:hover,
.cl-unified-nav a.cl-unified-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #fff;
}

.cl-unified-preferences {
  margin-left: 4px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid rgba(148, 163, 184, .24);
}

.cl-unified-nav button.cl-unified-lang,
.cl-unified-nav button.cl-unified-theme {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 16px;
}

.cl-unified-nav button.cl-unified-lang[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, .34);
  background: rgba(37, 99, 235, .11);
}

.cl-unified-theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cl-unified-theme .cl-unified-moon,
html[data-theme="dark"] .cl-unified-theme .cl-unified-sun {
  display: none;
}

html[data-theme="dark"] .cl-unified-theme .cl-unified-moon {
  display: block;
}

.cl-unified-menu-toggle {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cl-unified-menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.cl-unified-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.cl-unified-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cl-unified-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 940px) {
  .cl-unified-header-wrap {
    padding: 10px 9px 0;
  }

  .cl-unified-header {
    min-height: 62px;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
  }

  .cl-unified-brand,
  .cl-unified-brand img {
    width: 112px;
    min-width: 112px;
  }

  .cl-unified-menu-toggle {
    display: flex;
  }

  .cl-unified-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 9px);
    padding: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .18);
  }

  html[data-theme="dark"] .cl-unified-nav {
    border-color: rgba(148, 163, 184, .2);
    background: rgba(7, 17, 31, .98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  }

  .cl-unified-nav.is-open {
    display: flex;
  }

  .cl-unified-nav a {
    width: 100%;
    min-height: 43px;
    justify-content: flex-start;
    padding-inline: 13px;
  }

  .cl-unified-nav a.cl-unified-primary {
    justify-content: center;
  }

  .cl-unified-preferences {
    width: 100%;
    margin: 5px 0 0;
    padding: 10px 0 0;
    justify-content: center;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, .24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-unified-menu-toggle span {
    transition: none;
  }
}
