/* =============================================================
   VISHAL MOBILE MENU — GitHub se load hoti hai (jsDelivr)
   Note: colours, widths, durations jaise settings wale variables
   section ke andar (Liquid se) set hote hain — yahan nahi.
   ============================================================= */

html {
  height: 100vh;
  height: -webkit-fill-available;
}
body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  touch-action: pan-y;
}
.slider-menu * {
  font-family: 'Lexend', 'Segoe UI', sans-serif;
  font-size: 12px;
  touch-action: pan-y;
  box-sizing: border-box;
}
.slider-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: -webkit-fill-available !important;
  background: var(--menu-active-bg);
  transform: translateX(-100%);
  z-index: 10000;
  overflow: hidden;
  touch-action: pan-y;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  overscroll-behavior: contain;
}
.slider-menu.active {
  transform: translateX(0);
}
.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  height: -webkit-fill-available;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: opacity;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* Sticky Header */
.menu-sticky-header {
  position: relative !important;
  top: 0; left: 0; right: 0;
  z-index: 11000;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-height: 50px;
}
.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}
.menu-sticky-header .header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--header-text);
  margin: 0;
}
.menu-sticky-header .close-btn {
  font-size: 1.6rem;
  background: transparent;
  color: var(--header-text);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.header-logo-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.header-logo-image {
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Container (--menu-sidebar-width aur bottom section me set hote hain) */
#mobileMenuWrapper .menu-submenu-container {
  display: flex;
  position: absolute;
  top: 50px;
  left: 0; right: 0;
  width: 100%;
  overflow: hidden;
  background: var(--menu-inactive-bg);
  isolation: isolate;
}

/* ================= LEFT SIDEBAR ================= */
#mobileMenuWrapper .left-menu {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--menu-sidebar-width);
  width: var(--menu-sidebar-width);
  min-width: 0;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 22px 0 26px 0;
}
#mobileMenuWrapper .left-menu::-webkit-scrollbar { display: none; }
#mobileMenuWrapper .left-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#mobileMenuWrapper .left-menu li.menu-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 22px 0 0 22px;
  margin-left: 7px;
  margin-right: 0;
  min-width: 0;
  padding: 13px clamp(2px, 1vw, 8px) 13px clamp(2px, .8vw, 6px);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenuWrapper .left-menu .img-wrapper {
  width: 50px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eae6df;
}
#mobileMenuWrapper .left-menu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-icon.fallback {
  width: 100%;
  height: 100%;
  background: #dcd6cd;
}
#mobileMenuWrapper .left-menu p {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--menu-inactive-text);
  transition: color .2s ease;
}
/* Bold text text-shadow se, taaki item ka size na badle */
#mobileMenuWrapper .left-menu li.menu-item.active p {
  color: var(--menu-active-text);
  text-shadow: 0.35px 0 0 currentColor, -0.35px 0 0 currentColor;
}
#mobileMenuWrapper .left-menu li.menu-item:focus-visible {
  outline: 2px solid #728c70;
  outline-offset: -5px;
}

/* ===== Active background (GPU slide) ===== */
#mobileMenuWrapper .vmm-indicator {
  position: absolute;
  top: 0;
  left: 7px;
  right: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--menu-active-bg);
  border-radius: 22px 0 0 22px;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  transition:
    transform var(--vmm-slide) var(--vmm-ease),
    height var(--vmm-slide) var(--vmm-ease);
}
#mobileMenuWrapper .vmm-indicator.is-ready { opacity: 1; }
#mobileMenuWrapper .vmm-indicator.no-anim { transition: none !important; }
#mobileMenuWrapper .vmm-indicator::before,
#mobileMenuWrapper .vmm-indicator::after {
  content: "";
  position: absolute;
  right: 0;
  width: var(--vmm-neck);
  height: var(--vmm-neck);
  pointer-events: none;
}
#mobileMenuWrapper .vmm-indicator::before {
  top: calc(var(--vmm-neck) * -1);
  background: radial-gradient(circle at 0 0, transparent calc(var(--vmm-neck) - .5px), var(--menu-active-bg) var(--vmm-neck));
}
#mobileMenuWrapper .vmm-indicator::after {
  bottom: calc(var(--vmm-neck) * -1);
  background: radial-gradient(circle at 0 100%, transparent calc(var(--vmm-neck) - .5px), var(--menu-active-bg) var(--vmm-neck));
}
/* Left highlight pill */
#mobileMenuWrapper .vmm-indicator-accent {
  position: absolute;
  left: 3px;
  top: 50%;
  width: var(--vmm-accent-w);
  height: min(calc(var(--vmm-accent-len) * 1%), calc(100% - 20px));
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--menu-active-accent) 82%, #ffffff) 0%,
    var(--menu-active-accent) 50%,
    color-mix(in srgb, var(--menu-active-accent) 85%, #000000) 100%);
}
#mobileMenuWrapper .vmm-indicator.accent-glow .vmm-indicator-accent {
  box-shadow:
    0 0 6px color-mix(in srgb, var(--menu-active-accent) 55%, transparent),
    1px 1px 2px rgba(28, 58, 28, .25);
}
@media (prefers-reduced-motion: reduce) {
  #mobileMenuWrapper .vmm-indicator { transition: none; }
}

/* ================= RIGHT SUBMENU ================= */
#mobileMenuWrapper .right-submenu {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  padding: 12px 8px 8px 10px;
  background: var(--menu-active-bg);
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-left: 0;
}
#mobileMenuWrapper .right-submenu::-webkit-scrollbar { display: none; }
.submenu-panel {
  position: relative;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
}
#mobileMenuWrapper .submenu-panel:last-child {
  margin-bottom: 0;
}
.submenu-panel ul {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.submenu-panel li {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
}
.submenu-panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.sublink-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f0ece3;
}
.submenu-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.submenu-panel p {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: #222222;
  line-height: 1.2;
}

/* ================= SUBMENU BANNER ================= */
#mobileMenuWrapper .submenu-panel .submenu-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--banner-ratio, 2.4);
  margin: 0 0 12px;
  border-radius: var(--banner-radius);
  overflow: hidden;
  background: #f0ece3;
  color: var(--banner-text, #ffffff);
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
  contain: layout paint;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
#mobileMenuWrapper .submenu-panel .submenu-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--banner-lqip, none) center / cover no-repeat;
  filter: blur(10px);
  transform: scale(1.12);
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
#mobileMenuWrapper .submenu-panel .submenu-banner.is-ready::before {
  opacity: 0;
  visibility: hidden;
}
#mobileMenuWrapper .submenu-panel .submenu-banner:active { transform: scale(.985); }
#mobileMenuWrapper .submenu-panel .submenu-banner:focus-visible {
  outline: 2px solid var(--menu-active-accent);
  outline-offset: -2px;
}
#mobileMenuWrapper .submenu-panel .submenu-banner-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .2s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
#mobileMenuWrapper .submenu-panel .submenu-banner-img.is-loaded { opacity: 1; }
#mobileMenuWrapper .submenu-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, var(--banner-shade, .35)) 0%,
    rgba(0, 0, 0, calc(var(--banner-shade, .35) * .25)) 85%);
}
#mobileMenuWrapper .submenu-banner--center .submenu-banner-shade {
  background: rgba(0, 0, 0, var(--banner-shade, .35));
}
#mobileMenuWrapper .submenu-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
  color: var(--banner-text, #ffffff);
}
#mobileMenuWrapper .submenu-banner--center .submenu-banner-content {
  align-items: center;
  text-align: center;
}
#mobileMenuWrapper .submenu-banner .submenu-banner-heading {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  max-width: 85%;
}
#mobileMenuWrapper .submenu-banner .submenu-banner-sub {
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
  opacity: .92;
  max-width: 85%;
}
#mobileMenuWrapper .submenu-banner .submenu-banner-btn {
  margin-top: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #1c3a1c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
#mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .submenu-banner-img.is-loaded {
  transform: scale(1.045);
}
@media (prefers-reduced-motion: reduce) {
  #mobileMenuWrapper .submenu-panel .submenu-banner,
  #mobileMenuWrapper .submenu-panel .submenu-banner-img { transition: none; }
  #mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .submenu-banner-img.is-loaded { transform: none; }
}

/* ================= LIQUID GLASS FOCUS ================= */
.submenu-glass { display: none; }
#mobileMenuWrapper.submenu-focus-on .submenu-panel {
  margin-bottom: 14px;
  padding: 10px 8px 12px;
  border-radius: 20px;
  isolation: isolate;
}
#mobileMenuWrapper.submenu-focus-on .submenu-glass {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity .3s ease;
  background:
    radial-gradient(60% 40% at 12% 8%, color-mix(in srgb, var(--menu-active-accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 35% at 92% 96%, color-mix(in srgb, var(--menu-active-accent) 16%, transparent), transparent 70%),
    linear-gradient(150deg,
      rgba(255, 255, 255, .92) 0%,
      rgba(255, 255, 255, .55) 45%,
      color-mix(in srgb, var(--menu-active-accent) 14%, rgba(255, 255, 255, .45)) 100%);
  box-shadow:
    0 10px 28px -8px color-mix(in srgb, var(--menu-active-accent) 45%, transparent),
    0 2px 6px rgba(28, 58, 28, .06),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(28, 58, 28, .06),
    inset 0 0 0 1px color-mix(in srgb, var(--menu-active-accent) 18%, transparent);
}
#mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .submenu-glass { opacity: 1; }
#mobileMenuWrapper .submenu-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-110%);
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, .6) 45%,
    rgba(255, 255, 255, .15) 60%,
    transparent 100%);
}
#mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .submenu-sheen {
  animation: submenuGlassSheen 1s cubic-bezier(.22, 1, .36, 1) .08s both;
}
@keyframes submenuGlassSheen {
  from { transform: translateX(-110%); opacity: 1; }
  to   { transform: translateX(220%); opacity: 0; }
}
#mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .sublink-img-wrapper {
  box-shadow: 0 4px 12px -6px rgba(28, 58, 28, .35), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

/* Soft fade edges over the submenu column */
#mobileMenuWrapper .submenu-glass-edge {
  position: absolute;
  left: var(--menu-sidebar-width);
  right: 0;
  height: 30px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--menu-active-bg) 75%, transparent),
    transparent);
}
#mobileMenuWrapper .submenu-glass-edge--top { top: 0; }
#mobileMenuWrapper .submenu-glass-edge--bottom { bottom: 0; transform: scaleY(-1); }

@media (prefers-reduced-motion: reduce) {
  #mobileMenuWrapper.submenu-focus-on .submenu-glass { transition: none; }
  #mobileMenuWrapper.submenu-focus-on .submenu-panel.is-current .submenu-sheen { animation: none; opacity: 0; }
}

/* ================= BOTTOM BAR ================= */
.sticky-bottom-bar {
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 11000;
  display: flex;
  background: var(--footer-bg);
  border-top: 1.5px solid #dcd6cd;
  height: 50px;
}
.sticky-bar-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--footer-text);
  font-weight: 600;
  font-size: 13px;
}
.sticky-bar-half img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
