.navbar-mobile,
.mobile-menu-drawer,
.bottom-tab-bar {
    display: none;
}

@media (max-width: 768px) {

    /* ────────────────────────────────────────
     TOP NAVBAR
  ──────────────────────────────────────── */
    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        width: 100%;
        height: 80px;
        top: 0;
        z-index: 100;
        padding: 22px 20px;
        background: linear-gradient(135deg, #ede8fb 0%, #ddd4f7 100%);
        box-shadow: 0 2px 12px rgba(107, 72, 232, 0.08);
        font-family: 'Satoshi', sans-serif;
        border-radius: 0 0 20px 20px;
    }

    .sparkles-bg {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    @keyframes twinkle {

        0%,
        100% {
            opacity: 0.2;
            transform: scale(0.7);
        }

        50% {
            opacity: 0.9;
            transform: scale(1);
        }
    }

    /* Logo */
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 9px;
        font-weight: 700;
        font-size: 1.05rem;
        color: #6B48E8;
        text-decoration: none;
    }

    .mobile-logo .logo-icon {
        width: 75px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Right side: sparkle + hamburger */
    .mobile-nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-sparkle {
        opacity: 0.85;
        flex-shrink: 0;
    }

    /* Hamburger button */
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(107, 72, 232, 0.1);
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
        transition: background 0.2s;
    }

    .mobile-menu-btn:hover {
        background: rgba(107, 72, 232, 0.18);
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu-btn span {
        display: block;
        width: 18px;
        height: 2px;
        background: #6B48E8;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    
     /* SLIDE-DOWN DRAWER (hamburger menu) */
  
    .mobile-menu-drawer {
        display: block;
        position: sticky;
        margin-top: 8vh;
        /* sits just below the navbar */
        z-index: 99;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 20px;
        font-family: 'Satoshi', sans-serif;
        width: 100%;
        border-radius: 0 0 20px 20px;
    }

    .mobile-menu-drawer.open {
        max-height: 400px;
        padding: 8px 20px 12px;
    }

    .drawer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 4px;
        color: #1a1a2e;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
        transition: color 0.15s;
    }

    .drawer-item:last-child {
        border-bottom: none;
    }

    .drawer-item:hover {
        color: #6B48E8;
    }

    .drawer-item svg {
        color: #9ca3af;
        flex-shrink: 0;
    }

    .drawer-item:hover svg {
        color: #6B48E8;
    }

    .drawer-item-support {
        margin-top: 4px;
        color: #6b7280;
        font-size: 0.9rem;
    }

    
     /* BOTTOM TAB BAR */
  
    .bottom-tab-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 200;
        padding: 0 10px;
        border-radius: 20px 20px 0 0;
        font-family: 'Satoshi', sans-serif;
    }

   
    .tab-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        text-decoration: none;
        padding: 10px 0;
        border-radius: 12px;
        transition: color 0.2s;
        position: relative;
    }

    .tab-item svg {
        stroke: currentColor;
    }

    .tab-item.active {
        color: #6B48E8;
    }

    .tab-item.active svg {
        stroke: #6B48E8;
    }

    .tab-item.active::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #6B48E8;
    }

    .tab-search-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #500EAF, #9810FA);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 18px rgba(107, 72, 232, 0.45);
        text-decoration: none;
        flex-shrink: 0;
        margin-bottom: 10px;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .tab-search-fab:hover {
        transform: scale(1.07);
        box-shadow: 0 6px 22px rgba(107, 72, 232, 0.55);
    }

}