/* Grouped public navigation and the admin-only edge launcher.
   Loaded last so the CTA and fixed launcher stay consistent across the
   desktop density and mobile navigation override layers. */

.nav .nav-item.nav-item-cta {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.92), rgba(139, 93, 255, 0.9));
  box-shadow:
    0 10px 26px rgba(139, 93, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav .nav-item.nav-item-cta::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(77, 163, 255, 0.18));
}

.nav .nav-item.nav-item-cta:hover,
.nav .nav-item.nav-item-cta:focus-visible,
.nav .nav-item.nav-item-cta.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #ff4fd8, #7657ff);
  box-shadow:
    0 12px 30px rgba(139, 93, 255, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav .nav-item.nav-item-cta > span {
  color: #fff;
  opacity: 1;
}

.nav .nav-item.nav-item-cta::after {
  display: none;
}

.admin-edge-launcher {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 900;
  min-width: 48px;
  min-height: 48px;
  padding: 11px 13px 11px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.2), rgba(77, 163, 255, 0.18)),
    rgba(8, 10, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    padding 0.2s ease;
}

.admin-edge-launcher:hover,
.admin-edge-launcher:focus-visible,
.admin-edge-launcher.is-active {
  color: #fff;
  padding-left: 14px;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.34), rgba(77, 163, 255, 0.3)),
    rgba(11, 13, 26, 0.98);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(139, 93, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-edge-launcher:focus-visible {
  outline: 3px solid rgba(92, 225, 255, 0.92);
  outline-offset: 3px;
}

.admin-edge-launcher__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.admin-edge-launcher__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

@media (max-width: 1024px) {
  .nav .nav-item.nav-item-cta {
    justify-content: center !important;
    margin-top: 4px;
  }

  .admin-edge-launcher {
    z-index: 9800;
  }
}

@media (max-width: 520px) {
  .admin-edge-launcher {
    min-width: 44px;
    min-height: 60px;
    padding: 9px 8px 9px 6px;
    flex-direction: column;
    gap: 4px;
    border-radius: 0 14px 14px 0;
  }

  .admin-edge-launcher:hover,
  .admin-edge-launcher:focus-visible,
  .admin-edge-launcher.is-active {
    padding-left: 8px;
  }

  .admin-edge-launcher__label {
    font-size: 9px;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-edge-launcher {
    transition: none;
  }
}
