.dpu-menu-wrapper {
  border-radius: 18px;
  padding: 28px;
  max-width: 380px;
  margin: 25px auto;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #a7aaad;
  background: linear-gradient(135deg, #f9fafb, #f1f5f9);
  color: #334155;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* @media (prefers-color-scheme: dark), */
.dark-mode.dpu-menu-wrapper {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.dpu_auto_menu_title {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 6px;
  color: inherit;
}

/* Animated underline with gradient shimmer */
.dpu_auto_menu_title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 3px;
  animation: shimmer 4s linear infinite;
  background-size: 300% 300%;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.dpu-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dpu-menu-btn {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #f4f6f8);
  border: 1px solid #a7aaad;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-weight: 500;
  color: #334155;
  transition: all 0.35s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* @media (prefers-color-scheme: dark), */
.dark-mode.dpu-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.dpu-menu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0;
  z-index: -1;
  transform: translateX(-100%);
  transition: all 0.4s ease;
}

.dpu-menu-btn:hover::before {
  transform: translateX(0);
  opacity: 1;
}

.dpu-menu-btn:hover {
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(147, 197, 253, 0.4);
}

.current-menu-item .dpu-menu-btn {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.4);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.dpu-menu-btn:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .dpu-menu-wrapper {
    padding: 20px;
  }

  .dpu_auto_menu_title {
    font-size: 1.2rem;
  }

  .dpu-menu-btn {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
}
