/* Shared signed-in nav tools (messages / notifications) — Mohamy brand */
.nav-tools {
  display: none;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

body.is-signed-in .nav-tools {
  display: flex;
}

.nav-icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #1a365d;
}

.dark .nav-icon-btn {
  color: #93c5fd;
  background: #0f172a;
  border-color: #334155;
}

.nav-icon-btn:hover {
  background: #f1f5f9;
}

.dark .nav-icon-btn:hover {
  background: #1e293b;
}

.wise-badge-dot,
.nfz-badge-dot {
  position: absolute;
  top: -0.15rem;
  inset-inline-end: -0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #d32f2f;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 0.22rem;
  font-family: Inter, 'Baloo Bhaijaan 2', system-ui, sans-serif;
  line-height: 1;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  z-index: 60;
  overflow: hidden;
  font-family: Inter, 'Baloo Bhaijaan 2', system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.dark .nav-dropdown {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

.nav-dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 800;
}

.dark .nav-dropdown-head {
  border-bottom-color: #334155;
}

.nav-dropdown-head a {
  color: #1a365d;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.dark .nav-dropdown-head a {
  color: #93c5fd;
}

.nav-dropdown-item {
  display: block;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
}

.dark .nav-dropdown-item {
  border-bottom-color: #334155;
}

.nav-dropdown-item:hover {
  background: #f1f5f9;
}

.dark .nav-dropdown-item:hover {
  background: #1e293b;
}

.nav-dropdown-item strong {
  display: block;
  font-size: 0.88rem;
}

.nav-dropdown-item span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* Keep marketing footer visible when signed in on brief */
body.is-signed-in .brief-footer {
  display: block !important;
}
