/* Mobile Instagram-like bottom navbar (mobile-only) */
:root {
      --nav-bg: rgba(6, 10, 26, 0.85);
      --nav-accent: #0b69ff;
      --nav-icon: #dbeafe;
}

/* Hidden on desktop */
@media (min-width: 769px) {
      .mobile-navbar {
            display: none !important;
      }
}

@media (max-width: 768px) {

      /* Hide desktop header navigation on small screens — show only mobile navbar */
      .header .nav,
      .header .nav-right,
      .hamburger,
      .nav-mobile {
            display: none !important;
      }

      
            /* Extra-specific selectors to override page-level CSS (dashboard, etc.)
               Ensure header navigation elements are fully hidden on mobile */
            header.header > .container .nav,
            header.header .nav,
            header.header .nav-right,
            header.header .nav .nav-link,
            header.header .nav-link,
            header.header .nav-right .login-btn,
            header.header .theme-toggle-btn,
            .header .nav-mobile,
            .header .hamburger {
                  display: none !important;
                  visibility: hidden !important;
                  opacity: 0 !important;
                  height: 0 !important;
                  padding: 0 !important;
                  margin: 0 !important;
            }

      .mobile-navbar {
            position: fixed;
            left: 50%;
            bottom: 12px;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 480px;
            height: 56px;
            background: var(--nav-bg);
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 6px 12px;
            box-shadow: 0 8px 26px rgba(2, 6, 23, 0.6);
            z-index: 9999;
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
      }

      .mobile-navbar a {
            color: var(--nav-icon);
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            font-size: 11px;
            padding: 6px 10px;
            border-radius: 10px;
            transition: transform .12s ease, background .12s ease;
            min-width: 44px;
      }

      .mobile-navbar a .m-icon {
            font-size: 18px;
      }

      /* remove any active visual indicator (user requested no 'active' state) */
      .mobile-navbar a,
      .mobile-navbar a .m-bubble {
            /* keep icons visible but do not show bubble/active marker */
            color: var(--nav-icon);
            display: inline-flex;
      }

      .mobile-navbar a .m-bubble {
            display: none !important;
      }

      .mobile-navbar a .m-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
      }

      .mobile-navbar a:hover {
            transform: translateY(-4px);
      }

      /* theme toggle button styling (matches mobile items) */
      .mobile-theme-toggle {
            background: transparent;
            border: none;
            color: var(--nav-icon);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            font-size: 11px;
            padding: 6px 10px;
            border-radius: 10px;
            cursor: pointer;
      }

      .mobile-theme-toggle .m-icon {
            font-size: 18px;
      }

      .mobile-theme-toggle:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(11, 105, 255, 0.12);
      }

      /* smaller label hidden to save space on very small screens */
      @media (max-width: 360px) {
            .mobile-navbar a span {
                  display: none;
            }
      }
}

/* Utility: hide when keyboard opens (best-effort) */

.mobile-navbar--hidden {
      display: none !important;
}