  /* NutriWorld Theme Colors */
        :root {
            --nw-primary: #4CAF50; /* Brand Green */
            --nw-border: #388E3C;  /* Darker Green for border */
            --nw-accent: #ffffff;
            --bg-gray: #f9fafb;
            --text-main: #374151;
            --text-muted: #6b7280;
            --text-brand: #15803d;
            --red-badge: #ef4444;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        .footer-shadow {
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
        }

        /* Prevent content from being hidden behind footer */
        body {
            /* Increased padding to account for taller footer */
             padding-bottom: calc(90px + env(safe-area-inset-bottom));
        }

    /* STICKY MOBILE FOOTER BAR */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background-color: var(--nw-primary);
            border-top: 1px solid var(--nw-border);
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
            padding-bottom: env(safe-area-inset-bottom);
            transform: translate3d(0,0,0); /* Hardware acceleration */
        }

        .nav-inner {
            display: flex;
            align-items: center;
            justify-content: space-around;
            height: 80px; /* Equivalent to h-20 */
            max-width: 448px; /* max-w-md */
            margin: 0 auto;
        }

        .nav-item2 {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            color: white;
            text-decoration: none;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .nav-item2:active {
            background-color: rgba(255, 255, 255, 0.2);
            transform: scale(0.95);
        }

        .icon-box {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .nav-label {
            font-size: 12px;
            margin-top: 4px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        /* Badges & Animations */
        .badge-red {
            position: absolute;
            top: -8px;
            right: -12px;
            background-color: var(--red-badge);
            color: white;
            font-size: 10px;
            font-weight: 900;
            padding: 2px 8px;
            border-radius: 9999px;
            border: 2px solid white;
            min-width: 20px;
            text-align: center;
        }

        .refer-indicator {
            position: absolute;
            top: -4px;
            right: -4px;
            display: flex;
            height: 10px;
            width: 10px;
        }

        .ping-circle {
            position: absolute;
            display: inline-flex;
            height: 100%;
            width: 100%;
            border-radius: 9999px;
            background-color: white;
            opacity: 0.75;
            animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
        }

        .dot-circle {
            position: relative;
            display: inline-flex;
            border-radius: 9999px;
            height: 10px;
            width: 10px;
            background-color: white;
        }

        @keyframes ping {
            75%, 100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        /* Desktop Hiding Logic */
        @media (min-width: 768px) {
            .mobile-bottom-nav {
                display: none !important;
            }
            body {
                padding-bottom: 0;
            }
        }