
/* =========================================================
   FINAL CLEAN MOBILE NAVBAR
   Purpose: make the bottom navigation compact, aligned,
   and prevent the center Masuk button from covering content.
   ========================================================= */
@media (max-width: 767.98px){

  html, body {
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: 78px !important;
  }

  #main-route.home-fixed-v2 {
    padding-bottom: 84px !important;
  }

  .footer-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    margin: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom) !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;

    background: #050609 !important;
    border-top: 1px solid rgba(139,92,246,.42) !important;
    box-shadow: 0 -4px 14px rgba(0,0,0,.55) !important;

    z-index: 2147483000 !important;
    overflow: visible !important;
  }

  .footer-mobile .footer-item,
  .footer-mobile .footer-item:link,
  .footer-mobile .footer-item:visited {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 6px 2px 4px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;

    color: #fff !important;
    background: transparent !important;
    text-decoration: none !important;
    overflow: visible !important;
  }

  .footer-mobile .footer-item .footer-icon,
  .footer-mobile .footer-item.footer-login .footer-icon {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    box-shadow: none !important;
  }

  .footer-mobile .footer-item .footer-icon i,
  .footer-mobile .footer-item.footer-login .footer-icon i {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .footer-mobile .footer-item .footer-title,
  .footer-mobile .footer-item.footer-login .footer-title {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
    font-size: 9px !important;
    line-height: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .footer-mobile .footer-item.active,
  .footer-mobile .footer-item.active .footer-title,
  .footer-mobile .footer-item.active .footer-icon i {
    color: #a78bfa !important;
  }

  /* CENTER LOGIN: small raised circle, no overlap */
  .footer-mobile .footer-item.footer-login {
    position: relative !important;
    z-index: 3 !important;
    padding-top: 6px !important;
    overflow: visible !important;
  }

  .footer-mobile .footer-item.footer-login .footer-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;

    margin-top: -10px !important;
    margin-bottom: 0 !important;

    border: 2px solid #8b5cf6 !important;
    border-radius: 50% !important;

    background: linear-gradient(145deg,#8b5cf6,#6d28d9) !important;
    box-shadow:
      0 0 0 3px #050609,
      0 4px 12px rgba(109,40,217,.38) !important;
  }

  .footer-mobile .footer-item.footer-login .footer-icon i {
    color: #fff !important;
    font-size: 20px !important;
  }

  .footer-mobile .footer-item.footer-login .footer-title {
    margin-top: 0 !important;
    color: #fff !important;
  }

  /* Promosi has two icons: keep them on one clean line */
  .footer-mobile .footer-item:nth-child(4) .footer-icon {
    gap: 2px !important;
  }

  .footer-mobile .footer-item:nth-child(4) .footer-icon i {
    font-size: 18px !important;
  }
}

/* Desktop/tablet: leave existing layout untouched */
@media (min-width: 768px){
  .footer-mobile{
    position: static !important;
  }
}
