/* ════════════════════════════════════════════════
   Shared mobile drawer — used across public pages
   Source of truth: imported via <link> on each page
   ════════════════════════════════════════════════ */

/* On mobile: hide the desktop nav menu + show the hamburger toggle */
@media (max-width: 751px) {
  .prime-nav { display: none !important; }
  .ham-toggle { display: inline-block !important; }
}

/* Hamburger animation (3 spans morphing to X when .active is added) */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Backdrop */
.mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998 !important;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.mob-backdrop.open { display: block; opacity: 1; }

/* Drawer panel */
.mob-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  background: #ffffff !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
}
.mob-drawer.open { transform: translateX(0); }

/* Drawer top bar */
.mob-drawer .mob-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 24px 28px 20px !important;
  background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%) !important;
  border-bottom: 1px solid rgba(109, 40, 217, 0.08) !important;
  flex-shrink: 0 !important;
}
.mob-drawer .mob-brand {
  font-family: 'Sora', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  background: linear-gradient(to right, #5b21b6, #10b981) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.mob-drawer .mob-brand em { font-style: normal !important; }

.mob-drawer .mob-close {
  width: 34px !important;
  height: 34px !important;
  background: rgba(109, 40, 217, 0.07) !important;
  border: 1px solid rgba(109, 40, 217, 0.12) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #6d28d9 !important;
  transition: background 0.2s, transform 0.2s !important;
  padding: 0 !important;
}
.mob-drawer .mob-close:hover {
  background: rgba(109, 40, 217, 0.14) !important;
  transform: rotate(90deg) !important;
}
.mob-drawer .mob-close svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
}
.mob-drawer .mob-close svg path {
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  fill: none !important;
}

/* Drawer nav links */
.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin-top: 350px;
  padding: 0;
  overflow-y: auto;
}
.mob-link {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 28px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(109, 40, 217, 0.07);
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.mob-link:hover {
  background: rgba(109, 40, 217, 0.04);
  color: #6d28d9;
}
.mob-link-icon {
  width: 44px; height: 44px;
  background: rgba(109, 40, 217, 0.07);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #6d28d9;
  flex-shrink: 0;
  transition: background 0.2s;
}
.mob-link:hover .mob-link-icon { background: rgba(109, 40, 217, 0.14); }
.mob-link-label { flex: 1; font-size: 1.08rem; }
.mob-link-arrow {
  color: #d1d5db;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.mob-link:hover .mob-link-arrow { opacity: 1; transform: translateX(3px); }

/* Drawer footer / CTA */
.mob-footer {
  padding: 20px 28px 36px;
  border-top: 1px solid rgba(109, 40, 217, 0.07);
  flex-shrink: 0;
}
.mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #6d28d9, #8B5CF6);
  color: white;
  border: none;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.3);
  margin-bottom: 10px;
}
.mob-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.42);
}
.mob-cta-note {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}
