/* Baazex premium mobile navigation */

/* ── Mobile header bar (layout only — preserve original theme colours) ── */
@media (max-width: 1023px) {
  .bz-mobile-header {
    position: relative;
    z-index: 51;
  }
  .bz-mobile-header > a img {
    height: 26px !important;
    width: auto !important;
  }
  .bz-mobile-header__btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease !important;
  }
  .bz-mobile-header__btn:active {
    transform: scale(0.94);
  }
}

/* ── Scroll lock ── */
body.bz-mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Overlay ── */
.bz-mnav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 22, 48, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.bz-mnav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Full-screen panel ── */
.bz-mnav {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
.bz-mnav.is-visible {
  transform: translateX(0);
  pointer-events: auto;
}

.bz-mnav__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #eef3ff 0%, #f8faff 38%, #ffffff 100%);
}
.bz-mnav__grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(34, 66, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 66, 255, 0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bz-mnav__glass {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  pointer-events: none;
}

.bz-mnav__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
}

/* ── Top bar ── */
.bz-mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}
.bz-mnav__logo img {
  height: 24px;
  width: auto;
}
.bz-mnav__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 66, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #141414;
  box-shadow: 0 2px 12px rgba(34, 66, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bz-mnav__close svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bz-mnav__close:hover,
.bz-mnav__close:focus-visible {
  border-color: rgba(34, 66, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 66, 255, 0.12);
}
.bz-mnav__close:hover svg,
.bz-mnav__close:focus-visible svg {
  transform: rotate(90deg);
}
.bz-mnav__close:active {
  transform: scale(0.94);
}

/* ── Scrollable nav ── */
.bz-mnav__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 12px;
  overscroll-behavior: contain;
}
.bz-mnav__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Nav cards (top-level) ── */
button.bz-mnav-acc__trigger {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.bz-mnav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 66, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 16px rgba(34, 66, 255, 0.06);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.bz-mnav-card:hover,
.bz-mnav-card:focus-visible {
  border-color: rgba(34, 66, 255, 0.22);
  box-shadow: 0 4px 20px rgba(34, 66, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
}
.bz-mnav-card:active {
  transform: scale(0.985);
}
.bz-mnav-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 66, 255, 0.12) 0%, rgba(34, 66, 255, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2242ff;
}
.bz-mnav-card__icon svg {
  width: 20px;
  height: 20px;
}
.bz-mnav-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bz-mnav-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #141414;
  letter-spacing: -0.01em;
}
.bz-mnav-card__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #667085;
}
.bz-mnav-card__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #98a2b3;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}
.bz-mnav-card__chevron svg {
  width: 20px;
  height: 20px;
}
.bz-mnav-card__go {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 66, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2242ff;
  transition: background 0.22s ease, transform 0.22s ease;
}
.bz-mnav-card__go svg {
  width: 14px;
  height: 14px;
}
.bz-mnav-card--link:hover .bz-mnav-card__go {
  background: rgba(34, 66, 255, 0.16);
  transform: translateX(2px);
}

/* ── Accordion ── */
.bz-mnav-acc.is-open > .bz-mnav-acc__trigger .bz-mnav-card__chevron {
  transform: rotate(180deg);
  color: #2242ff;
}
.bz-mnav-acc.is-open > .bz-mnav-acc__trigger {
  border-color: rgba(34, 66, 255, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(34, 66, 255, 0.1);
}
.bz-mnav-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.bz-mnav-acc.is-open .bz-mnav-acc__body {
  grid-template-rows: 1fr;
}
.bz-mnav-acc__inner {
  overflow: hidden;
  min-height: 0;
}
.bz-mnav-acc__content {
  padding: 6px 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Submenu items ── */
.bz-mnav-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 66, 255, 0.08);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  color: #141414;
  box-shadow: 0 1px 8px rgba(34, 66, 255, 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.bz-mnav-acc.is-open .bz-mnav-sub {
  opacity: 1;
  transform: translateY(0);
}
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(1) { transition-delay: 0.04s; }
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(2) { transition-delay: 0.08s; }
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(3) { transition-delay: 0.12s; }
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(4) { transition-delay: 0.16s; }
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(5) { transition-delay: 0.20s; }
.bz-mnav-acc.is-open .bz-mnav-sub:nth-child(6) { transition-delay: 0.24s; }
.bz-mnav-sub:hover,
.bz-mnav-sub:focus-visible {
  background: rgba(34, 66, 255, 0.06);
  border-color: rgba(34, 66, 255, 0.18);
  box-shadow: 0 2px 12px rgba(34, 66, 255, 0.1);
}
.bz-mnav-sub:active {
  transform: scale(0.985);
}
.bz-mnav-sub__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34, 66, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2242ff;
  flex-shrink: 0;
}
.bz-mnav-sub__icon svg {
  width: 18px;
  height: 18px;
}
.bz-mnav-sub__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Account section inside accordion ── */
.bz-mnav-acct-head {
  font-size: 14px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 4px 4px;
  margin-top: 4px;
}
.bz-mnav-acct {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(34, 66, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(34, 66, 255, 0.08);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.bz-mnav-acc.is-open .bz-mnav-acct {
  opacity: 1;
  transform: translateY(0);
}
.bz-mnav-acc.is-open .bz-mnav-acct:nth-of-type(2) { transition-delay: 0.22s; }
.bz-mnav-acc.is-open .bz-mnav-acct:nth-of-type(3) { transition-delay: 0.26s; }
.bz-mnav-acc.is-open .bz-mnav-acct:nth-of-type(4) { transition-delay: 0.30s; }
.bz-mnav-acc.is-open .bz-mnav-acct:nth-of-type(5) { transition-delay: 0.34s; }
.bz-mnav-acct:hover,
.bz-mnav-acct:focus-visible {
  border-color: rgba(34, 66, 255, 0.4);
  box-shadow: 0 6px 28px rgba(34, 66, 255, 0.14);
  transform: translateY(-1px) scale(1.01);
}
.bz-mnav-acct:active {
  transform: scale(0.985);
}
.bz-mnav-acct__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2242ff 0%, #4d68ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(34, 66, 255, 0.25);
}
.bz-mnav-acct__icon svg {
  width: 22px;
  height: 22px;
}
.bz-mnav-acct__info {
  flex: 1;
  min-width: 0;
}
.bz-mnav-acct__name {
  font-size: 16px;
  font-weight: 700;
  color: #141414;
  line-height: 1.35;
}
.bz-mnav-acct__deposit {
  font-size: 13px;
  color: #667085;
  line-height: 1.45;
  margin-top: 2px;
}
.bz-mnav-acct__deposit strong {
  color: #2242ff;
  font-weight: 700;
}
.bz-mnav-acct__arrow {
  flex-shrink: 0;
  color: #2242ff;
  opacity: 0.7;
}
.bz-mnav-acct__arrow svg {
  width: 18px;
  height: 18px;
}
.bz-mnav-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #141414;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bz-mnav-see-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.2);
}

/* ── Fixed bottom actions ── */
.bz-mnav__actions {
  flex-shrink: 0;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(34, 66, 255, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bz-mnav__cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2242ff 0%, #1a35cc 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(34, 66, 255, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bz-mnav__cta-primary:hover {
  box-shadow: 0 8px 28px rgba(34, 66, 255, 0.45);
  transform: translateY(-1px);
}
.bz-mnav__cta-primary:active {
  transform: scale(0.98);
}
.bz-mnav__cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1.5px solid rgba(34, 66, 255, 0.25);
  background: transparent;
  color: #2242ff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}
.bz-mnav__cta-secondary:hover {
  background: rgba(34, 66, 255, 0.06);
}
.bz-mnav__cta-secondary:active {
  transform: scale(0.98);
}

/* ── Footer section ── */
.bz-mnav__footer {
  flex-shrink: 0;
  padding: 12px 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(34, 66, 255, 0.06);
}
.bz-mnav__footer-title {
  font-size: 13px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.bz-mnav__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.bz-mnav__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(34, 66, 255, 0.1);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.bz-mnav__social a:hover {
  border-color: rgba(34, 66, 255, 0.25);
  box-shadow: 0 2px 12px rgba(34, 66, 255, 0.12);
  transform: translateY(-2px);
}
.bz-mnav__social a img,
.bz-mnav__social a svg {
  width: 18px;
  height: 18px;
}
.bz-mnav__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 66, 255, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 12px;
  cursor: default;
}
.bz-mnav__copy {
  font-size: 12px;
  line-height: 1.5;
  color: #98a2b3;
}

@media (min-width: 1024px) {
  .bz-mnav-overlay,
  .bz-mnav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bz-mnav,
  .bz-mnav-overlay,
  .bz-mnav-acc__body,
  .bz-mnav-sub,
  .bz-mnav-acct,
  .bz-mnav-card,
  .bz-mnav__close svg {
    transition: none !important;
    animation: none !important;
  }
}
