/* Extracted from index.html. Keep loaded after Tailwind and external font styles. */

        body { font-family: 'Noto Kufi Arabic', sans-serif; background: #0a0a0a; color: white; -webkit-tap-highlight-color: transparent; }
        .glass-panel { background: rgba(17, 24, 39, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); }
        .glass-card { background: linear-gradient(145deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.9) 100%); border: 1px solid rgba(255,255,255,0.05); }
        /* Light Mode CSS Overrides */
        body.light-mode { background: #f0f2f5; color: #0f172a; }
        .light-mode .glass-panel { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(0,0,0,0.05); }
        .light-mode .glass-card { background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
        .light-mode .bg-gray-900, .light-mode .bg-gray-800 { background-color: #ffffff !important; }
        .light-mode .bg-black\/50, .light-mode .bg-black\/40, .light-mode .bg-black\/60, .light-mode .bg-gray-900\/50, .light-mode .bg-gray-900\/80 { background-color: rgba(255,255,255,0.8) !important; }
        .light-mode .text-white { color: #0f172a !important; }
        .light-mode .text-gray-500, .light-mode .text-gray-400, .light-mode .text-gray-300, .light-mode .text-gray-200 { color: #475569 !important; }
        .light-mode .border-gray-700, .light-mode .border-gray-600 { border-color: #e2e8f0 !important; }
        .light-mode input, .light-mode textarea, .light-mode select { background-color: #f8fafc !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
        /* Dynamic "No" Headshake Animation */
        /* Smoother, Slower "No" Headshake */
        @keyframes headshake {
            0% { transform: translateX(0) rotate(0deg); }
            15% { transform: translateX(-15px) rotate(-10deg); }
            30% { transform: translateX(15px) rotate(10deg); }
            45% { transform: translateX(-15px) rotate(-10deg); }
            60% { transform: translateX(15px) rotate(10deg); }
            75% { transform: translateX(-10px) rotate(-5deg); }
            100% { transform: translateX(0) rotate(0deg); }
        }

        /* Custom Desktop Navigation Hover & Animation */
        .desk-sub-menu { 
    display: none; 
    z-index: 100; 
}

.desk-nav-item:hover > .desk-sub-menu,
.desk-nav-item:focus-within > .desk-sub-menu { 
    display: flex !important; 
}
        .desk-nav-item:hover > button > .icon-spin { transform: rotate(180deg); transition: transform 0.2s; }

        /* THE INVISIBLE BRIDGE FIX */
        /* This creates a transparent 10px padding around the menu so your mouse doesn't fall into the gap */
        .desk-sub-menu::before {
        content: '';
        position: absolute;
        top: -12px;
        right: -12px;
        bottom: -12px;
        left: -12px;
        z-index: -1;
       }

       .animate-fade-in-up { animation: fadeInUp 0.2s ease-out; }
    @keyframes fadeInUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        


        /* --- Login Panda Styles --- */
        .panda-container { width: 120px; height: 100px; margin: 0 auto 15px auto; position: relative; }
        .panda-face { width: 100px; height: 90px; background: white; border-radius: 80px 80px 60px 60px; position: absolute; bottom: 0; left: 10px; z-index: 10; border: 2px solid #333; }
        .ear-l, .ear-r { width: 30px; height: 30px; background: #222; border-radius: 50%; position: absolute; top: 5px; }
        .ear-l { left: 0; } .ear-r { right: 0; }
        .eye-l, .eye-r { width: 25px; height: 30px; background: #222; border-radius: 50%; position: absolute; top: 20px; }
        .eye-l { left: 20px; transform: rotate(-15deg); } .eye-r { right: 20px; transform: rotate(15deg); }
        .eyeball-l, .eyeball-r { width: 8px; height: 8px; background: white; border-radius: 50%; position: absolute; top: 8px; left: 8px; transition: all 0.2s ease; }
        .nose { width: 12px; height: 8px; background: #222; border-radius: 50%; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
        .hand-l, .hand-r { width: 35px; height: 35px; background: #222; border-radius: 50%; position: absolute; bottom: -5px; z-index: 20; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .hand-l { left: 0px; } .hand-r { right: 0px; }


        /* 1. Ensure the parent container has a relative position */
/* This assumes your dropdown wrapper has the class 'group' */
.group {
    position: relative;
}


/* 2. Create the "Bridge" */
/* This creates an invisible layer that fills the gap */
.group:hover::after {
    content: '';
    position: absolute;
    top: 100%; /* Starts exactly where the button ends */
    left: 0;
    width: 100%;
    height: 20px; /* Adjust this height if the gap is larger */
    background: transparent;
    z-index: 10;
}

/* 3. Ensure the menu itself is positioned to catch the mouse */
.group-hover\:visible {
    /* If your menu is popping away, ensure it has a margin-top that stays connected to the button */
    margin-top: 0px !important; 
    padding-top: 20px; /* This padding allows the menu to "overlap" the gap area */
}

        /* Animation Classes */
        .cover-eyes-l { transform: translate(25px, -55px) scale(1.1); }
        .cover-eyes-r { transform: translate(-25px, -55px) scale(1.1); }

        /* --- MTCGame Style Horizontal Desktop Nav --- */
@media (min-width: 769px) {
    #dynamic-horizontal-nav {
        overflow: visible !important;
    }
    .desk-nav-item > button {
        position: relative;
    }
    /* Clean underline effect for main categories */
    .desk-nav-item > button::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: #f59e0b; /* Amber-500 */
        transition: width 0.3s ease;
    }
    .desk-nav-item:hover > button::after,
    .desk-nav-item > button.active-nav::after {
        width: 100%;
    }
}

        

        /* Deepen bright neon and pastel colors for contrast on light backgrounds */
        .light-mode .text-amber-400, .light-mode .text-amber-300, .light-mode .text-amber-100 { color: #b45309 !important; } /* Dark Amber */
        .light-mode .text-yellow-400, .light-mode .text-yellow-300, .light-mode .text-yellow-100 { color: #ca8a04 !important; } /* Dark Yellow */
        .light-mode .text-emerald-400, .light-mode .text-emerald-300, .light-mode .text-green-400 { color: #059669 !important; } /* Dark Emerald ("Light green") */
        .light-mode .text-pink-400, .light-mode .text-pink-500 { color: #db2777 !important; } /* Dark Pink */
        .light-mode .text-red-400 { color: #dc2626 !important; } /* Dark Red */
        .light-mode .text-purple-400 { color: #7e22ce !important; } /* Dark Purple */
        .light-mode .text-orange-400 { color: #c2410c !important; } /* Dark Orange */
        .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        @media (min-width: 640px) { .modal-enter { animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } }
        @media (max-width: 639px) { .modal-enter { animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } } }
        ::-webkit-scrollbar { width: 0px; height: 0px; } .hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
        .carousel-item { display: block; opacity: 0; pointer-events: none; transform: scale(1.01); transition: opacity .7s ease, transform .9s ease; }
        .carousel-item.active { opacity: 1; pointer-events: auto; transform: scale(1); }
        .carousel-hero-img { transform: scale(1); transition: transform 5.5s ease; }
        .carousel-item.active .carousel-hero-img { transform: scale(1.045); }
        @media (prefers-reduced-motion: reduce) {
            .carousel-item, .carousel-hero-img { transition: none; }
            .carousel-item.active .carousel-hero-img { transform: none; }
        }
    

/* --- extracted style block --- */

        /* 1. Hide the white Google Translate top banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* 2. Prevent Google Translate from pushing the page body down */
body {
    top: 0px !important;
}

/* 3. (Optional) Hide the default Google Translate widget box if you are using custom buttons */
#google_translate_element {
    display: none !important;
}

/* 4. (Optional) Disable the highlight box that appears when hovering over translated text */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* --- AGGRESSIVE GOOGLE TRANSLATE BANNER FIX --- */

/* 1. Force hide the top banner iframe */
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Prevent Google from pushing the body down (forces it to stay at the top) */
body {
    top: 0px !important;
    position: static !important;
}

/* 3. Hide the tooltip box that appears when hovering over translated text */
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
}

/* 4. Remove the background highlight from translated words */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}
        /* 1. BASE & LIGHT MODE (Kurdish RTL) */
        body { font-family: 'Noto Kufi Arabic', sans-serif; background: #0a0a0a; color: white; -webkit-tap-highlight-color: transparent; }
        .glass-panel { background: rgba(17, 24, 39, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); }
        .glass-card { background: linear-gradient(145deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.9) 100%); border: 1px solid rgba(255,255,255,0.05); }
        .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        /* Hide standard scrollbars for mobile */
::-webkit-scrollbar { width: 0px; height: 0px; } 
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* --- NEW: Sleek Desktop Scrolling Line --- */
@media (min-width: 769px) {
    /* Chrome, Edge, and Safari */
    ::-webkit-scrollbar { 
        width: 6px; /* Thickness of the vertical line */
        height: 6px; /* Thickness of horizontal line (if needed) */
    }
    ::-webkit-scrollbar-track { 
        background: #0a0a0a; /* Matches your body background */
        border-left: 1px solid rgba(255,255,255,0.05); /* Subtle separation line */
    }
    ::-webkit-scrollbar-thumb { 
        background: rgba(12, 10, 7, 0.5); /* The Techland Amber color */
        border-radius: 10px; 
        transition: background 0.3s ease;
    }
    ::-webkit-scrollbar-thumb:hover { 
        background: rgba(245, 158, 11, 0.9); /* Brightens when hovered */
    }
    
    /* Firefox Support */
    html {
        scrollbar-width: thin;
        scrollbar-color: rgba(245, 158, 11, 0.5) #0a0a0a;
    }
    
    /* Ensure the hide-scroll class still works for inner carousels/menus on desktop */
.hide-scroll::-webkit-scrollbar {
    display: none !important;
}
.hide-scroll {
    scrollbar-width: none !important;

}

/* Physically hides text from Google Translate by rendering it via CSS */
.force-no-translate::after {
    content: attr(data-text);
}



    /* Webkit (Chrome/Edge/Safari) styling for internal modal scrollbars */
    .flex-1.overflow-y-auto::-webkit-scrollbar,
    #menu-modal .overflow-y-auto::-webkit-scrollbar,
    #dashboard-modal .overflow-y-auto::-webkit-scrollbar {
        width: 6px;
    }

    .flex-1.overflow-y-auto::-webkit-scrollbar-track,
    #menu-modal .overflow-y-auto::-webkit-scrollbar-track,
    #dashboard-modal .overflow-y-auto::-webkit-scrollbar-track {
        background: #0a0a0a;
    }

    .flex-1.overflow-y-auto::-webkit-scrollbar-thumb,
    #menu-modal .overflow-y-auto::-webkit-scrollbar-thumb,
    #dashboard-modal .overflow-y-auto::-webkit-scrollbar-thumb {
        background: rgba(245, 158, 11, 0.5);
        border-radius: 10px;
    }

    .flex-1.overflow-y-auto::-webkit-scrollbar-thumb:hover,
    #menu-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
    #dashboard-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
        background: rgba(245, 158, 11, 0.9);
    }
}

        /* --- GLOBAL THUMBNAIL FIX --- */
        #products-grid img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: top !important;
        }

        /* Tutorials: fixed grid and visible scroll cue */
        .tutorial-scroll-shell {
            position: relative;
            min-height: 0;
        }

        .tutorial-grid-scroll {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 0.75rem !important;
            align-content: start;
            min-height: 0;
            padding-inline-start: 0 !important;
            padding-inline-end: 0.9rem !important;
        }

        .tutorial-grid-scroll > *,
        .tutorial-card {
            width: 100% !important;
            min-width: 0 !important;
        }

        .tutorial-scroll-line {
            position: absolute;
            inset-block: 0.25rem 1.4rem;
            inset-inline-start: auto;
            inset-inline-end: 0.15rem;
            width: 3px;
            border-radius: 999px;
            background: linear-gradient(to bottom, rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.18));
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
            pointer-events: none;
            z-index: 8;
        }

        .tutorial-scroll-line::after {
            content: '';
            position: absolute;
            inset-inline-start: 50%;
            bottom: -0.45rem;
            width: 0.45rem;
            height: 0.45rem;
            border-inline-end: 2px solid #fbbf24;
            border-block-end: 2px solid #fbbf24;
            transform: translateX(-50%) rotate(45deg);
        }

        @media (min-width: 769px) {
            .tutorial-grid-scroll {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 1rem !important;
                padding-inline-start: 0 !important;
                padding-inline-end: 1rem !important;
            }
        }

        @media (min-width: 1280px) {
            .tutorial-grid-scroll {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
        }

        /* 2. PANDA ANIMATION */

    

        /* 2. PANDA ANIMATION */
        .panda-container { width: 120px; height: 100px; margin: 0 auto 15px auto; position: relative; }
        .panda-face { width: 100px; height: 90px; background: white; border-radius: 80px 80px 60px 60px; position: absolute; bottom: 0; left: 10px; z-index: 10; border: 2px solid #333; }
        .ear-l, .ear-r { width: 30px; height: 30px; background: #222; border-radius: 50%; position: absolute; top: 5px; }
        .ear-l { left: 0; } .ear-r { right: 0; }
        .eye-l, .eye-r { width: 25px; height: 30px; background: #222; border-radius: 50%; position: absolute; top: 20px; }
        .eye-l { left: 20px; transform: rotate(-15deg); } .eye-r { right: 20px; transform: rotate(15deg); }
        .eyeball-l, .eyeball-r { width: 8px; height: 8px; background: white; border-radius: 50%; position: absolute; top: 8px; left: 8px; transition: all 0.2s ease; }
        .nose { width: 12px; height: 8px; background: #222; border-radius: 50%; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
        .hand-l, .hand-r { width: 35px; height: 35px; background: #222; border-radius: 50%; position: absolute; bottom: -5px; z-index: 20; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .hand-l { left: 0px; } .hand-r { right: 0px; }
        .cover-eyes-l { transform: translate(25px, -55px) scale(1.1); }
        .cover-eyes-r { transform: translate(-25px, -55px) scale(1.1); }

        /* --- Smooth View Transitions --- */
        @keyframes viewSlideFadeIn {
            0% { opacity: 0; transform: translateY(15px) scale(0.98); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        .view-animate {
            animation: viewSlideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0; /* Prevents flashing before animation starts */
            will-change: opacity, transform; /* Hardware acceleration */
        }

        /* 3. MOBILE ONLY (Phone Pill Layout) */
        @media (max-width: 768px) {
            #products-grid > div {
                min-height: 0 !important;
                border-radius: 1rem !important;
            }
            #products-grid > div > div:first-child {
                height: 142px !important;
                border-radius: 1rem 1rem 0 0 !important;
            }
            #products-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 0.9rem 0.75rem !important;
            }
            #products-grid > div > div:last-child {
                padding: 0.65rem !important;
            }
            #products-grid h3 {
                min-height: 2.15em;
                font-size: 0.72rem !important;
            }
            .mobile-catalog-sheet {
                padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
            }
            #categories-grid {
                gap: 0.85rem !important;
            }

            .w-full.md\:w-72.bg-gray-900\/80 {
                display: flex !important;
                flex-direction: row !important;
                overflow-x: auto !important;
                width: 100% !important;
                height: auto !important;
            }
            .w-full.md\:w-72.bg-gray-900\/80 .p-3.md\:p-5 {
                display: flex !important;
                flex-direction: row !important;
                gap: 8px !important;
            }
            button[id^="mtab-"], button[id^="dtab-"] {
                flex: 0 0 auto !important;
                border-radius: 50px !important;
                padding: 8px 16px !important;
                font-size: 11px !important;
                white-space: nowrap !important;
            }
        }

        @media (max-width: 380px) {
            #products-grid > div > div:first-child {
                height: 126px !important;
            }
        }



        /* 4. DESKTOP ONLY - "The Grid Lock" Fix */
        @media (min-width: 769px) {
            /* This targets the container that holds the Sidebar and the Content */
            #menu-modal > div, #dashboard-modal > div {
                display: grid !important;
                /* Column 1: Sidebar (288px), Column 2: Content (Remainer) */
                grid-template-columns: 288px 1fr !important;
                grid-template-rows: 100% !important;
                flex-direction: row !important; /* Safety reset */
                overflow: hidden !important;
                align-items: stretch !important;
            }

            /* Fix Sidebar (The Right Side) */
            .w-full.md\:w-72.bg-gray-900\/80 {
                grid-column: 1 / 2 !important; /* Locked to the first slot */
                width: 288px !important;
                min-width: 288px !important;
                height: 100% !important;
                border-left: 1px solid rgba(255,255,255,0.1) !important;
                display: flex !important;
                flex-direction: column !important;
            }

            /* Fix Content Area (The Left Side) */
            .flex-1.overflow-y-auto {
                grid-column: 2 / 3 !important; /* Locked to the second slot */
                width: 100% !important;
                min-width: 0 !important; /* FORCE it to stay inside the box */
                height: 100% !important;
                display: block !important;
                
                /* THE BUMPER: This pushes the text away from the left and right edges */
                padding: 60px 40px !important; 
                
                box-sizing: border-box !important;
                text-align: right !important; /* Keep Kurdish aligned right */
            }

            /* 1. Prevent English/Turkish text from scrambling with icons and punctuation */
        html[lang="en"] *, html[lang="tr"] * {
            unicode-bidi: plaintext;
        }

        /* 2. Automatically flip all directional arrows for English/Turkish so they point correctly */
        html[lang="en"] .fa-arrow-left, html[lang="tr"] .fa-arrow-left,
        html[lang="en"] .fa-arrow-right, html[lang="tr"] .fa-arrow-right,
        html[lang="en"] .fa-chevron-left, html[lang="tr"] .fa-chevron-left,
        html[lang="en"] .fa-chevron-right, html[lang="tr"] .fa-chevron-right,
        html[lang="en"] .fa-arrow-left-long, html[lang="tr"] .fa-arrow-left-long {
            transform: scaleX(-1);
        }

        /* 3. Swap the icon spacing (margins) so text doesn't crush into the icons */
        html[lang="en"] i.ml-1, html[lang="tr"] i.ml-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
        html[lang="en"] i.ml-1\.5, html[lang="tr"] i.ml-1\.5 { margin-left: 0 !important; margin-right: 0.375rem !important; }
        html[lang="en"] i.ml-2, html[lang="tr"] i.ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
        
        html[lang="en"] i.mr-1, html[lang="tr"] i.mr-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
        html[lang="en"] i.mr-1\.5, html[lang="tr"] i.mr-1\.5 { margin-right: 0 !important; margin-left: 0.375rem !important; }
        html[lang="en"] i.mr-2, html[lang="tr"] i.mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }

            /* Ensure Sidebar buttons stay vertical */
            .w-full.md\:w-72.bg-gray-900\/80 .p-3.md\:p-5 {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
            }

            button[id^="mtab-"], button[id^="dtab-"] {
                width: 100% !important;
                border-radius: 12px !important;
                text-align: right !important;
                white-space: normal !important;
            }
        }

        /* --- Crunchy Interaction Animations --- */
        
        /* 1. Make all buttons and product cards responsive to touch */
        button, 
        .glass-card, 
        #pd-btn-buy, 
        #pd-btn-cart,
        .cursor-pointer {
            transition: transform 0.1s cubic-bezier(0.17, 0.67, 0.83, 0.67), filter 0.2s ease !important;
        }

        /* 2. The "Press Down" Effect (The Crunch) */
        button:active, 
        .glass-card:active, 
        #pd-btn-buy:active {
            transform: scale(0.96) !important; /* Shrinks slightly */
            filter: brightness(0.9); /* Gets slightly darker like a physical button */
        }

        /* 3. Special "Glow" for the Amber Buy Buttons when pressed */
        #pd-btn-buy:active, 
        #btn-submit-buy:active {
            transform: scale(0.94) !important; /* Extra crunch for the main action */
            filter: brightness(1.1) contrast(1.1);
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
        }

        /* 4. Fix for Mobile: Ensure the effect feels instant on tap */
        @media (max-width: 768px) {
            button, .glass-card {
                -webkit-tap-highlight-color: transparent;
            }

            #product-details-modal .glass-panel,
            #buy-modal .glass-panel {
                max-height: 88dvh !important;
                padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.9rem) !important;
            }

            #product-details-modal .sticky.bottom-0,
            #buy-modal .sticky.bottom-0 {
                bottom: calc(env(safe-area-inset-bottom, 0px) + 0.65rem) !important;
                border-radius: 1rem !important;
                margin-left: 0.15rem;
                margin-right: 0.15rem;
            }
        }


        /* --- Quick View Ripple & Glow --- */
        
        /* 1. Prepare the elements for the ripple */
        button[id^="mtab-"], 
        button[id^="dtab-"], 
        #categories-grid > *,
        .glass-card {
            position: relative;
            overflow: hidden; /* Keeps the ripple inside the button */
        }

        /* 2. Create the Ripple Layer */
        button[id^="mtab-"]::after, 
        button[id^="dtab-"]::after,
        #categories-grid > *::after,
        .glass-card::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 10px;
            background: rgba(245, 158, 11, 0.3); /* Amber Glow */
            opacity: 0;
            border-radius: 100%;
            transform: translate(-50%, -50%) scale(1);
            pointer-events: none;
        }

        /* 3. The Animation Trigger */
        @keyframes ripple-animation {
            0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(40); opacity: 0; }
        }

        button[id^="mtab-"]:active::after, 
        button[id^="dtab-"]:active::after,
        #categories-grid > *:active::after,
        .glass-card:active::after {
            animation: ripple-animation 0.5s ease-out;
        }

        /* 4. Subtle Hover Glow (Desktop Only) */
        @media (min-width: 769px) {
           button[id^="mtab-"]:hover, 
            button[id^="dtab-"]:hover {
                border-color: rgba(245, 158, 11, 0.5) !important;
                box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
                transition: all 0.3s ease;
            }
        }

        /* 👇 PASTE THE COIN ANIMATION HERE 👇 */
        .coin-spin {
            animation: coinSpin 4s linear infinite;
            transform-style: preserve-3d;
        }
        @keyframes coinSpin {
            0%, 100% { transform: rotateY(0deg); }
            50% { transform: rotateY(180deg); }
        }
        /* 👆 END COIN ANIMATION 👆 */

        /* 5. Mobile menu/dashboard tabs: visible grids instead of hidden side-scroll */
        @media (max-width: 768px) {
            #menu-modal .show-swipe-line,
            #dashboard-modal .show-swipe-line { 
                display: block !important;
                width: 100% !important;
                overflow: visible !important;
                padding: 0.7rem 0.75rem 0.8rem !important;
                background: linear-gradient(180deg, rgba(17,24,39,0.96), rgba(10,10,10,0.96)) !important;
                box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
            }
            
            .show-swipe-line > * {
                flex-shrink: 0 !important;
                height: max-content !important;
                animation: none !important; 
                opacity: 1 !important; 
            }

            #menu-modal .mobile-modal-tabs,
            #dashboard-modal .mobile-modal-tabs {
                width: 100% !important;
                min-width: 0 !important;
                padding: 0 !important;
                display: grid !important;
                gap: 0.45rem !important;
            }

            #menu-modal .mobile-modal-tabs {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }

            #dashboard-modal .mobile-modal-tabs {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            }

            #menu-modal .mobile-modal-tabs > button,
            #dashboard-modal .mobile-modal-tabs > button {
                width: 100% !important;
                min-width: 0 !important;
                min-height: 58px;
                border: 1px solid rgba(75,85,99,0.75);
                background: rgba(17,24,39,0.88);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 0.3rem;
                padding: 0.5rem 0.35rem !important;
                border-radius: 1rem !important;
                white-space: normal !important;
                text-align: center !important;
                line-height: 1.15 !important;
                font-size: 10px !important;
                overflow: hidden;
            }

            #menu-modal .mobile-modal-tabs > button.hidden,
            #dashboard-modal .mobile-modal-tabs > button.hidden {
                display: none !important;
            }

            #menu-modal .mobile-modal-tabs > button i,
            #dashboard-modal .mobile-modal-tabs > button i {
                width: auto !important;
                margin: 0 !important;
                font-size: 1rem !important;
            }

            #menu-modal button[id^="mtab-"].bg-amber-600,
            #dashboard-modal button[id^="dtab-"].bg-amber-600 {
                border-color: rgba(245,158,11,0.75);
                background: rgb(217,119,6);
            }

            @media (max-width: 380px) {
                #menu-modal .mobile-modal-tabs {
                    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                }
            }
        }

        /* Mobile performance: avoid expensive paint effects on weaker phone GPUs */
        @media (max-width: 768px) {
            .glass-panel,
            .glass-card,
            [class*="backdrop-blur"] {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }

            #products-grid > div,
            #categories-grid > div {
                content-visibility: auto;
                contain-intrinsic-size: 260px;
            }

            #products-grid img,
            #discounted-grid img,
            .carousel-hero-img {
                transition: none !important;
                transform: none !important;
            }

            #products-grid .group-hover\:scale-105,
            #discounted-grid .group-hover\:scale-105 {
                transform: none !important;
            }

            .animate-ping {
                animation: none !important;
                display: none !important;
            }
        }

        /* --- AGGRESSIVE GOOGLE TRANSLATE BANNER FIX (2024+ UPDATE) --- */

/* 1. Only hide the top banner, not the translation iframes */
.goog-te-banner-frame {
    display: none !important;
}

/* 2. Prevent the page from shifting down (targets both top and margin-top) */
html, body {
    top: 0px !important;
    margin-top: 0px !important;
    position: static !important;
}

/* 3. Hide the tooltip box that appears when hovering over translated text */
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
}

/* 4. Remove the background highlight from translated words */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}


 

/* --- extracted style block --- */

    
    
    html[dir="rtl"] body { direction: rtl; text-align: right; }
    html[dir="ltr"] body { direction: ltr; text-align: left; }
