.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 12, 14, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu {
  position: fixed;
  left: 50%;
  top: 0;
  width: min(100%, var(--max-w));
  transform: translate(-50%, -105%);
  z-index: 60;
  max-height: min(94dvh, 860px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(158, 240, 210, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #141418 0%, var(--menu-bg) 55%, #0f1f1d 100%);
  color: var(--menu-fg);
  padding: calc(var(--safe-top) + 18px) 22px calc(28px + var(--safe-bottom));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease-out);
  overflow: auto;
  overscroll-behavior: contain;
}

.dropdown-menu.is-open {
  transform: translate(-50%, 0);
}

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.menu-brand {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.menu-brand span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

.menu-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--menu-fg);
  font-size: 1.15rem;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.menu-close:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.96);
}

.menu-nav {
  display: grid;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 14px;
  border-radius: 18px;
  text-align: left;
  opacity: 0;
  transform: translateY(-14px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dropdown-menu.is-open .menu-item {
  animation: menu-item-in 0.5s var(--ease) forwards;
}

.dropdown-menu.is-open .menu-item:nth-child(1) { animation-delay: 0.08s; }
.dropdown-menu.is-open .menu-item:nth-child(2) { animation-delay: 0.14s; }
.dropdown-menu.is-open .menu-item:nth-child(3) { animation-delay: 0.2s; }
.dropdown-menu.is-open .menu-item:nth-child(4) { animation-delay: 0.26s; }
.dropdown-menu.is-open .menu-item:nth-child(5) { animation-delay: 0.32s; }

.menu-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.menu-item.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.menu-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.menu-item.is-active .menu-item-icon {
  background: rgba(158, 240, 210, 0.14);
  border-color: rgba(158, 240, 210, 0.28);
}

.menu-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item-text {
  flex: 1;
  min-width: 0;
}

.menu-item-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.menu-item-desc {
  margin-top: 3px;
  font-size: 0.78rem;
  opacity: 0.48;
}

.menu-item-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mark);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  box-shadow: 0 0 12px rgba(158, 240, 210, 0.55);
}

.menu-item.is-active .menu-item-mark {
  opacity: 1;
  transform: scale(1);
}

.menu-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  opacity: 0.42;
  letter-spacing: 0.04em;
}
