/* NML Mobile Nav — v1.3.0 */

@media (min-width: 1025px) {
  #nml-mob-wrap { display: none !important; }
}

#nml-mob-wrap { display: inline-flex; align-items: center; }

/* ── Hamburger ── */
.nml-ham {
  width: 44px !important; height: 44px !important;
  border: none !important; background: transparent !important;
  box-shadow: none !important; cursor: pointer;
  display: flex !important; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; border-radius: 10px !important; padding: 8px !important;
  transition: background 150ms ease;
}
.nml-ham:hover { background: rgba(47,107,255,.07) !important; }
.nml-ham span {
  display: block; width: 22px; height: 2px;
  background: #0F172A; border-radius: 2px;
  transition: transform 280ms cubic-bezier(.32,.72,0,1), opacity 280ms ease, width 280ms ease;
  transform-origin: center;
}
body.nml-drawer-open .nml-ham span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nml-drawer-open .nml-ham span:nth-child(2) { opacity: 0; width: 0; }
body.nml-drawer-open .nml-ham span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Backdrop ── */
.nml-backdrop {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0; z-index: 999998;
  background: rgba(15,23,42,.32);
  opacity: 0; visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.nml-backdrop.open { opacity: 1; visibility: visible; }

/* ── Drawer ── */
.nml-drawer {
  position: fixed; top: 70px; right: 0; bottom: 0;
  z-index: 999999; width: 300px; max-width: 90vw;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(32px) saturate(1.9) brightness(1.04);
  -webkit-backdrop-filter: blur(32px) saturate(1.9) brightness(1.04);
  border-left: 1px solid rgba(255,255,255,0.70);
  border-radius: 16px 0 0 0;
  box-shadow: -8px 0 40px rgba(15,23,42,.14), inset 1px 0 0 rgba(255,255,255,0.90);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.32,.72,0,1);
  overflow: hidden;
}
.nml-drawer.open { transform: translateX(0); }

/* ── Header ── */
.nml-drawer__header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(226,232,240,.7);
  flex-shrink: 0;
}
.nml-profile { display: flex; align-items: center; gap: 12px; }
.nml-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,#2F6BFF,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0; letter-spacing: -.5px;
  box-shadow: 0 2px 8px rgba(47,107,255,.30);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nml-profile__name {
  font-size: 15px; font-weight: 600; color: #0F172A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nml-profile__plan {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-top: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nml-plan-free    { background: rgba(148,163,184,.15); color: #475569; }
.nml-plan-premium { background: rgba(34,197,94,.12);   color: #15803D; }

.nml-guest-header { display: flex; align-items: center; gap: 12px; }
.nml-guest-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #F8FAFC; border: 1.5px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8; flex-shrink: 0;
}
.nml-guest-header p { font-size: 13px; color: #475569; line-height: 1.5; font-family: 'Plus Jakarta Sans', sans-serif; }
.nml-guest-header strong { color: #0F172A; font-weight: 600; }

/* ── Nav ── */
.nml-drawer__nav {
  flex: 0 1 auto; overflow-y: auto; padding: 8px 12px;
  display: flex; flex-direction: column;
}
.nml-drawer__nav::-webkit-scrollbar { width: 0; }

/* Nav item */
.nml-drawer .nav-item {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important; border-radius: 10px !important;
  font-size: 14px !important; font-weight: 500 !important;
  color: #475569 !important; text-decoration: none !important;
  cursor: pointer; border: none !important;
  background: none !important; box-shadow: none !important;
  width: 100%; text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  transition: background 150ms ease, color 150ms ease;
}
.nml-drawer .nav-item:hover  { background: rgba(47,107,255,.07) !important; color: #0F172A !important; }
.nml-drawer .nav-item.open-acc { color: #0F172A !important; }
.nav-item__left { display: flex; align-items: center; gap: 10px; }
.nav-item__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-item__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-item__icon svg { width: 16px; height: 16px; }

/* Badge */
.nav-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.badge-soon { background: rgba(148,163,184,.18); color: #475569; }

/* Chevron */
.nav-chevron { width: 16px; height: 16px; color: #94A3B8; flex-shrink: 0; transition: transform 280ms ease; }
.nml-drawer .nav-item.open-acc .nav-chevron { transform: rotate(180deg); color: #2F6BFF; }

/* ── Submenu — 2-col grid, display none/block ── */
.nav-submenu { display: none; overflow: visible; }
.nav-submenu.open { display: block; }

.submenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px 4px 8px 4px;
}

.nml-drawer .submenu-grid-item {
  display: flex !important; flex-direction: column;
  gap: 6px; padding: 10px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important; font-weight: 500 !important;
  color: #475569 !important; text-decoration: none !important;
  border: 1px solid transparent !important; background: none !important;
  transition: background 150ms ease, border-color 150ms ease;
  min-height: 56px;
}
.nml-drawer .submenu-grid-item:hover {
  background: rgba(47,107,255,.06) !important;
  border-color: rgba(47,107,255,.14) !important;
}
.submenu-grid-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 150ms ease;
}
.submenu-grid-icon svg {
  width: 14px; height: 14px; stroke: #64748B;
  transition: stroke 150ms ease;
}
.nml-drawer .submenu-grid-item:hover .submenu-grid-icon {
  background: #2F6BFF !important;
}
.nml-drawer .submenu-grid-item:hover .submenu-grid-icon svg {
  stroke: #fff !important;
}
.submenu-grid-label {
  font-size: 12px; font-weight: 600; color: #0F172A; line-height: 1.35;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Footer ── */
.nml-drawer__footer {
  padding: 12px 16px 28px; border-top: 1px solid rgba(226,232,240,.7);
  flex-shrink: 0; display: flex; flex-direction: column; gap: 8px;
}
.nml-drawer__footer .btn-logout {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px; width: 100%; padding: 11px 20px !important;
  border-radius: 999px !important; font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer; text-decoration: none !important; transition: all 150ms ease;
  border: 1.5px solid #E2E8F0 !important; background: #fff !important; color: #475569 !important;
  box-shadow: none !important;
}
.nml-drawer__footer .btn-logout:hover { border-color: #CBD5E1 !important; color: #0F172A !important; }
.nml-drawer__footer .btn-logout svg { width: 16px; height: 16px; flex-shrink: 0; }

.nml-drawer__footer .btn-login {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px; width: 100%; padding: 12px 20px !important;
  border-radius: 999px !important; font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer; text-decoration: none !important; transition: all 150ms ease;
  border: none !important; background: #2F6BFF !important; color: #fff !important;
  box-shadow: 0 4px 12px rgba(47,107,255,.30) !important;
}
.nml-drawer__footer .btn-login:hover { background: #1a55f0 !important; box-shadow: 0 6px 18px rgba(47,107,255,.40) !important; transform: translateY(-1px); }
.nml-drawer__footer .btn-login svg { width: 16px; height: 16px; flex-shrink: 0; }

.nml-drawer__footer .btn-register {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100%; padding: 11px 20px !important;
  border-radius: 999px !important; font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer; text-decoration: none !important; transition: all 150ms ease;
  border: 1.5px solid #E2E8F0 !important; background: #fff !important; color: #0F172A !important;
  box-shadow: none !important;
}
.nml-drawer__footer .btn-register:hover { border-color: #2F6BFF !important; color: #2F6BFF !important; }

/* ── Profile header tappable ── */
.nml-drawer a.nml-profile {
  text-decoration: none !important;
  border-radius: 12px;
  padding: 6px;
  margin: -6px;
  transition: background 150ms ease;
}
.nml-drawer a.nml-profile:hover {
  background: rgba(47,107,255,.06) !important;
}
.nml-profile__arrow {
  width: 18px; height: 18px;
  color: #94A3B8;
  flex-shrink: 0;
}
