/* Mobile bottom nav — reference 1:1, single clean line, #151516 */

.jojo-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  z-index: 11000 !important;
  background: #151516 !important;
  background-color: #151516 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 4px 0 max(6px, env(safe-area-inset-bottom, 0px)) !important;
  min-height: 56px;
  height: auto !important;
  border-top: 1px solid #222 !important;
  box-shadow: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  inset: auto 0 0 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  will-change: auto !important;
  filter: none !important;
  perspective: none !important;
  display: block !important;
}

.jojo-bottom-nav-inner {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  min-height: 52px;
  height: 52px !important;
  gap: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.jojo-bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit;
  line-height: 1 !important;
  -webkit-tap-highlight-color: transparent;
  float: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.jojo-bottom-nav-item .jojo-nav-icon {
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 26px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jojo-bottom-nav-item img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: none !important;
}

/* Merkez 4’lü menü — referans gibi güçlü */
.jojo-bottom-nav-item.is-menu {
  justify-content: center !important;
}

.jojo-bottom-nav-item.is-menu .jojo-nav-icon {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

.jojo-bottom-nav-item.is-menu img {
  width: 40px !important;
  height: 40px !important;
  filter: drop-shadow(0 0 6px rgba(249, 196, 8, 0.35)) !important;
}

/* Reference: gold icons, WHITE labels */
#JojoBottomNav.jojo-bottom-nav .jojo-bottom-nav-item > span:not(.jojo-nav-icon),
.jojo-bottom-nav .jojo-bottom-nav-item > span:not(.jojo-nav-icon) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 12px;
  height: 12px !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
  text-align: center;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jojo-bottom-nav-item.is-menu > span:not(.jojo-nav-icon) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  visibility: hidden !important;
}

#JojoBottomNav.jojo-bottom-nav,
.jojo-bottom-nav,
footer .jojo-bottom-nav,
.footer-wrapper .jojo-bottom-nav {
  background: #151516 !important;
  background-color: #151516 !important;
}

@media (max-width: 1099px) {
  html {
    background-color: #000 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  body {
    background-color: #000 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    height: auto !important;
    min-height: 100% !important;
    touch-action: pan-y !important;
  }

  #AppContainer,
  .AppContainer,
  .RootContent,
  .SectionContent {
    background-color: #000 !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100% !important;
    touch-action: pan-y !important;
  }

  .footer-wrapper {
    position: relative;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background: #000 !important;
    width: 100% !important;
  }

  /* Spacer under seal: keep tiny so content clears fixed nav without a gray band */
  .footer-wrapper::after {
    content: "";
    display: block;
    height: 4px !important;
    background: #000 !important;
  }

  .footer-wrapper .footer-secondary-col,
  .footer-wrapper .footer-secondary-col-1 {
    padding-bottom: 0 !important;
  }

  .footer-wrapper .footer-externalLicence {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .AppVersion,
  .MobileBottomNavigationWrapper,
  mobile-bottom-navigation,
  .MobileBottomNavigation,
  .NavigationWrapper {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.jojo-cat-backdrop {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 68px;
  z-index: 11010;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.jojo-cat-backdrop.is-open {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.jojo-cat-panel {
  display: none !important;
  position: fixed;
  left: 50%;
  bottom: 68px;
  transform: translate(-50%, 18px);
  width: calc(100% - 16px);
  max-width: 520px;
  max-height: min(62vh, 480px);
  z-index: 11020;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 14px 12px 20px;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.jojo-cat-panel.is-open {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.jojo-cat-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.jojo-cat-title {
  margin: 2px 8px 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.jojo-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jojo-cat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  cursor: pointer;
  padding: 4px 2px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.jojo-cat-img-wrap {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 56px !important;
}

.jojo-cat-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.jojo-cat-label {
  font-size: 11px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  color: #fff !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.jojo-cat-open {
  overflow: hidden;
}

@media (min-width: 1100px) {
  .jojo-bottom-nav,
  .jojo-cat-backdrop,
  .jojo-cat-panel {
    display: none !important;
  }
}
