/* 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; }
/* --- 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;
            }
        }

        /* --- Calm interaction feedback without touch bounce --- */
        button, 
        .glass-card, 
        #pd-btn-buy, 
        #pd-btn-cart,
        .cursor-pointer {
            transition: filter 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
        }

        button:active, 
        .glass-card:active, 
        #pd-btn-buy:active {
            transform: none !important;
            filter: brightness(0.92);
        }

        #pd-btn-buy:active, 
        #btn-submit-buy:active {
            transform: none !important;
            filter: brightness(1.1) contrast(1.1);
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
        }

        @media (max-width: 768px) {
            html,
            body {
                overscroll-behavior-y: none;
            }

            button,
            .glass-card,
            [data-on-click] {
                -webkit-tap-highlight-color: transparent;
                transform: none !important;
            }

            #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;
            }
        }


        /* Keep clipping and desktop hover polish without an expanding touch ripple. */
        button[id^="mtab-"], 
        button[id^="dtab-"], 
        #categories-grid > *,
        .glass-card {
            position: relative;
            overflow: hidden;
        }

        /* 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 {
                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; }

/* Techland cinematic home hero */
.techland-home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(390px, 48vw, 570px);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 1.75rem;
    background: #050806 url('/static/media/techland-hero-v2.webp') center / cover no-repeat;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}
.techland-home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    backface-visibility: hidden;
    z-index: -3;
}
.techland-home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(2, 5, 4, 0.94) 0%, rgba(2, 5, 4, 0.75) 34%, rgba(2, 5, 4, 0.16) 68%, rgba(2, 5, 4, 0.28) 100%), linear-gradient(0deg, rgba(2, 5, 4, 0.86) 0%, transparent 48%);
}
.techland-home-hero-shade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 46%, rgba(16, 185, 129, 0.08) 66%, rgba(245, 158, 11, 0.08) 79%, transparent 92%);
    opacity: 0.28;
    animation: techlandHeroLight 6s ease-in-out infinite;
}
.techland-home-hero-content {
    position: absolute;
    left: clamp(1.5rem, 5vw, 5rem);
    bottom: clamp(1.7rem, 5vw, 4.5rem);
    width: min(46rem, 58%);
    color: #fff;
    text-align: start;
}
.techland-home-hero-logo {
    display: block;
    width: clamp(82px, 9vw, 126px);
    height: auto;
    margin-bottom: 0.7rem;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
    animation: techlandHeroLogoGlow 6s ease-in-out infinite;
}
.techland-home-hero-eyebrow {
    margin: 0 0 0.25rem;
    color: #fbbf24;
    font-size: clamp(0.72rem, 1.15vw, 0.95rem);
    font-weight: 900;
}
.techland-home-hero h1 {
    margin: 0;
    font-family: Arial, sans-serif !important;
    font-size: clamp(2rem, 4.4vw, 4.6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}
.techland-home-hero-description {
    max-width: 38rem;
    margin: 0.8rem 0 0;
    color: #d1d5db;
    font-size: clamp(0.78rem, 1.25vw, 1rem);
    font-weight: 700;
    line-height: 1.8;
}
.techland-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}
.techland-home-hero-actions button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 0.8rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 900;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.techland-home-hero-actions button:active { transform: scale(0.97); }
.techland-home-hero-primary { background: #f59e0b; color: #111827; border: 1px solid #fbbf24; }
.techland-home-hero-primary:hover { background: #fbbf24; }
.techland-home-hero-secondary { background: rgba(3, 7, 18, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.techland-home-hero-secondary:hover { border-color: rgba(245, 158, 11, 0.72); background: rgba(17, 24, 39, 0.9); }
.techland-home-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    opacity: 0.58;
}
@keyframes techlandHeroLight {
    0%, 100% { opacity: 0.22; }
    50% { opacity: 0.75; }
}
@keyframes techlandHeroLogoGlow {
    0%, 100% { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
    50% { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 13px rgba(245, 158, 11, 0.38)); }
}
@media (max-width: 767px) {
    .techland-home-hero { height: clamp(340px, 53svh, 430px); border-radius: 1.15rem; }
    .techland-home-hero-video { object-position: right center; }
    .techland-home-hero-shade { background: linear-gradient(0deg, rgba(2, 5, 4, 0.96) 0%, rgba(2, 5, 4, 0.72) 43%, rgba(2, 5, 4, 0.08) 78%), linear-gradient(90deg, rgba(2, 5, 4, 0.68), transparent 68%); }
    .techland-home-hero-content { left: 1rem; right: 1rem; bottom: 1.9rem; width: auto; }
    .techland-home-hero-logo { width: 76px; margin-bottom: 0.45rem; }
    .techland-home-hero h1 { font-size: clamp(1.8rem, 10vw, 2.55rem); }
    .techland-home-hero-description { max-width: 31rem; font-size: 0.72rem; line-height: 1.65; }
    .techland-home-hero-actions { margin-top: 0.85rem; gap: 0.5rem; }
    .techland-home-hero-actions button { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0.65rem 0.55rem; font-size: 0.69rem; }
}
@media (prefers-reduced-motion: reduce) {
    .techland-home-hero-video { display: none; }
    .techland-home-hero-shade::after,
    .techland-home-hero-logo { animation: none; }
}

/* Shop-style catalog browser and filtering. */
.shop-catalog-header {
    min-height: 74px;
    padding: 0.85rem 1rem !important;
    background: #0b0b0b;
    border: 1px solid #343434 !important;
    border-radius: 8px;
}

.shop-catalog-result-count {
    padding: 0.65rem 0.85rem;
    color: #ddd;
    background: #171717;
    border: 1px solid #343434;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
}

.shop-catalog-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    color: #eee;
    background: #171717;
    border: 1px solid #343434;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 900;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.shop-catalog-filter-button i { color: #f59e0b; }
.shop-catalog-filter-button:hover { color: #fff; border-color: #f59e0b; background: #21170d; }

.shop-catalog-category-browser {
    overflow: hidden;
    background: #0b0b0b;
    border: 1px solid #343434;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .shop-catalog-workspace {
        grid-template-columns: 260px minmax(0, 1fr) !important;
    }

    .shop-catalog-category-browser {
        width: 260px;
    }
}

.shop-catalog-category-heading {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    color: #171717;
    background: #f59e0b;
}

.shop-catalog-category-heading h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
}

.shop-catalog-special-list { padding: 0.35rem 0; border-bottom: 1px solid #2a2a2a; }
.shop-catalog-category-list { max-height: min(68vh, 680px); overflow-y: auto; overscroll-behavior: contain; }

.shop-catalog-special-row,
.catalog-category-group > button {
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    color: #e8e8e8;
    background: transparent;
    border: 0;
    font-size: 0.75rem;
    font-weight: 850;
    text-align: start;
}

.shop-catalog-special-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }
.shop-catalog-special-row > span { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.shop-catalog-special-row > span,
.catalog-category-group > button > span,
.catalog-subcategory-button > span {
    overflow-wrap: anywhere;
    white-space: normal;
}
.shop-catalog-special-row i { width: 18px; color: #888; text-align: center; }
.shop-catalog-special-row small,
.catalog-category-group > button small { color: #888; font-size: 0.65rem; font-weight: 900; }
.shop-catalog-special-row:hover,
.shop-catalog-special-row.active { color: #ffb34d; background: #21170d; }
.shop-catalog-special-row.active i,
.shop-catalog-special-row.discount-row i { color: #f59e0b; }

.catalog-category-group { border-bottom: 1px solid #2a2a2a; }
.catalog-category-group:last-child { border-bottom: 0; }
.catalog-category-group > button { grid-template-columns: 20px minmax(0, 1fr) auto 14px; gap: 0.55rem; }
.catalog-category-group > button > i:first-child { color: #888; }
.catalog-category-group > button .category-chevron { color: #777; font-size: 0.62rem; transition: transform 160ms ease; }
.catalog-category-group.active > button,
.catalog-category-group > button:hover { color: #ffb34d; background: #21170d; }
.catalog-category-group.active > button > i:first-child { color: #f59e0b; }
.catalog-category-group.active > button .category-chevron { transform: rotate(-90deg); }

.catalog-subcategories { display: none; padding: 0 2.35rem 0.55rem 0.45rem; }
.catalog-category-group.active .catalog-subcategories { display: grid; }
.catalog-subcategory-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 35px;
    padding: 0.4rem 0.55rem;
    padding-inline-start: calc(0.55rem + (var(--catalog-depth, 0) * 0.75rem));
    color: #aaa;
    background: transparent;
    border: 0;
    border-inline-start: 2px solid #343434;
    font-size: 0.68rem;
    font-weight: 750;
    text-align: start;
}
.catalog-subcategory-button span { min-width: 0; overflow-wrap: anywhere; }
.catalog-subcategory-button small { flex: 0 0 auto; color: inherit; font-size: 0.62rem; }
.catalog-subcategory-button:hover,
.catalog-subcategory-button.active { color: #ffb34d; border-inline-start-color: #f59e0b; }

.shop-catalog-backdrop { background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(2px); }

.catalog-shop-filter-sheet {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(390px, calc(100vw - 18px)) !important;
    max-height: 100dvh !important;
    padding: 0 1rem 1.25rem !important;
    color: #eee;
    background: #0b0b0b !important;
    border: 0 !important;
    border-left: 1px solid #343434 !important;
    border-radius: 0 !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.42) !important;
}

.catalog-shop-filter-sheet.translate-y-full { transform: translateX(110%) !important; }
.catalog-shop-filter-sheet.translate-y-0 { transform: translateX(0) !important; }
.shop-filter-drawer-heading { margin: 0 -1rem 0.9rem; padding: 1rem; background: #0b0b0b; border-bottom: 1px solid #343434; }
.shop-filter-eyebrow { margin-bottom: 0.2rem; color: #f59e0b; font-size: 0.62rem; font-weight: 900; }
.shop-filter-close { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #ddd; background: #171717; border: 1px solid #343434; border-radius: 7px; }
.shop-filter-close:hover { color: #111; background: #f59e0b; border-color: #f59e0b; }

#catalog-mobile-filter-content > div,
#catalog-mobile-filter-content > div > div { padding: 0 !important; background: transparent !important; border: 0 !important; }
#catalog-mobile-filter-content [data-catalog-filter-fields] { display: grid !important; gap: 0.75rem !important; }
#catalog-mobile-filter-content select,
#catalog-mobile-filter-content input { min-height: 44px; background: #171717 !important; border-color: #343434 !important; border-radius: 7px !important; }

@media (max-width: 767px) {
    .catalog-products-heading {
        display: none !important;
    }

    .tl-shop-mobile-catalog {
        padding-inline: 0.25rem;
    }

    .tl-shop-mobile-catalog-card {
        padding: 0.75rem;
        overflow: hidden;
        background: #0b0b0b;
        border: 1px solid #343434;
        border-radius: 8px;
    }

    .tl-shop-mobile-catalog-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.75rem;
        min-width: 0;
        margin-bottom: 0.65rem;
    }

    .tl-shop-mobile-catalog-heading > div {
        min-width: 0;
    }

    .tl-shop-mobile-eyebrow {
        display: block;
        margin-bottom: 0.2rem;
        color: #f59e0b;
        font-size: 0.6rem;
        font-weight: 900;
    }

    .tl-shop-mobile-title {
        display: block;
        overflow: hidden;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 900;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tl-shop-mobile-count {
        flex: 0 0 auto;
        padding: 0.45rem 0.65rem;
        color: #ddd;
        background: #171717;
        border: 1px solid #343434;
        border-radius: 7px;
        font-size: 0.66rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .tl-shop-mobile-catalog-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .tl-shop-mobile-catalog-actions.single {
        grid-template-columns: 1fr;
    }

    .tl-shop-mobile-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-width: 0;
        min-height: 42px;
        padding: 0.55rem 0.7rem;
        color: #eee;
        background: #171717;
        border: 1px solid #343434;
        border-radius: 7px;
        font-size: 0.72rem;
        font-weight: 900;
        line-height: 1.15;
        text-align: center;
    }

    .tl-shop-mobile-action i {
        flex: 0 0 auto;
        color: #f59e0b;
    }

    .tl-shop-mobile-action:active {
        color: #111;
        background: #f59e0b;
    }

    .tl-shop-mobile-action:active i {
        color: #111;
    }

    .tl-shop-category-sheet {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(84vw, 320px) !important;
        max-height: 100dvh !important;
        overflow: hidden;
        background: #0b0b0b !important;
        border: 0 !important;
        border-left: 1px solid #343434 !important;
        border-radius: 0 !important;
        box-shadow: -18px 0 44px rgba(0, 0, 0, 0.52) !important;
    }

    .tl-shop-category-sheet.translate-y-full {
        transform: translateX(110%) !important;
    }

    .tl-shop-category-sheet.translate-y-0 {
        transform: translateX(0) !important;
    }

    .tl-shop-sheet-heading {
        padding: 0.9rem 1rem;
        background: #0b0b0b;
        border-bottom: 1px solid #343434;
    }

    .tl-shop-sheet-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #eee;
        background: #171717;
        border: 1px solid #343434;
        border-radius: 7px;
    }

    .tl-shop-sheet-body {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.65rem;
        overscroll-behavior: contain;
    }

    .tl-shop-category-search {
        width: 100%;
        min-height: 42px;
        padding: 0.7rem 2.5rem 0.7rem 0.75rem;
        color: #fff;
        background: #171717;
        border: 1px solid #343434;
        border-radius: 7px;
        outline: none;
        font-size: 0.75rem;
        font-weight: 700;
    }

    html[dir="ltr"] .tl-shop-category-search {
        padding-right: 0.75rem;
        padding-left: 2.5rem;
    }

    .tl-shop-special-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .tl-shop-special-category {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        min-width: 0;
        min-height: 48px;
        padding: 0.45rem 0.55rem;
        overflow: hidden;
        color: #eee;
        background: #111;
        border: 1px solid #343434;
        border-radius: 8px;
        font-size: 0.72rem;
        font-weight: 900;
        text-align: start;
    }

    .tl-shop-special-category > span:first-child,
    .tl-shop-category-group-button > span:first-child,
    .tl-shop-subcategory-row > span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }

    .tl-shop-special-category .tl-shop-category-label {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.25;
        overflow-wrap: anywhere;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tl-shop-special-category.active {
        color: #111;
        background: #f59e0b;
        border-color: #fbbf24;
    }

    .tl-shop-category-count {
        flex: 0 0 auto;
        padding: 0.15rem 0.4rem;
        color: #999;
        background: #050505;
        border-radius: 999px;
        font-size: 0.62rem;
        font-weight: 900;
    }

    .tl-shop-special-category.active .tl-shop-category-count {
        color: #111;
        background: rgba(0, 0, 0, 0.18);
    }

    .tl-shop-category-groups {
        display: grid;
        gap: 0.5rem;
    }

    .tl-shop-category-group {
        overflow: hidden;
        background: #111;
        border: 1px solid #343434;
        border-radius: 10px;
    }

    .tl-shop-category-group-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        width: 100%;
        min-height: 48px;
        padding: 0.55rem 0.7rem;
        color: #eee;
        background: #111;
        font-size: 0.78rem;
        font-weight: 900;
        text-align: start;
    }

    .tl-shop-category-group-button small {
        color: #888;
        font-size: 0.62rem;
    }

    .tl-shop-category-group-button.active {
        color: #f59e0b;
    }

    .tl-shop-subcategory-list {
        display: grid;
        gap: 0.38rem;
        padding: 0 0.65rem 0.65rem;
    }

    .tl-shop-subcategory-list.hidden {
        display: none !important;
    }

    .tl-shop-subcategory-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        min-height: 38px;
        padding: 0.45rem 0.65rem;
        color: #ddd;
        background: #171717;
        border: 1px solid #2f2f2f;
        border-inline-start: 3px solid #f59e0b;
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 800;
        text-align: start;
    }

    .tl-shop-subcategory-row small {
        flex: 0 0 auto;
        color: #888;
        font-size: 0.6rem;
    }

    .tl-shop-subcategory-row.active {
        color: #111;
        background: #f59e0b;
        border-color: #fbbf24;
    }

    .tl-shop-subcategory-row.active small {
        color: #111;
    }

    #catalog-mobile-filter-content [data-catalog-filter-fields] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem !important;
    }

    #catalog-mobile-filter-content [data-catalog-filter-fields] > div:nth-last-child(-n+3) {
        grid-column: 1 / -1;
    }

    #catalog-mobile-filter-content select,
    #catalog-mobile-filter-content input {
        min-height: 42px;
        background: #171717 !important;
        border-color: #343434 !important;
        border-radius: 7px !important;
    }
}

@media (max-width: 380px) {
    .tl-shop-category-sheet {
        width: calc(100vw - 16px) !important;
    }

    .tl-shop-special-category-grid {
        grid-template-columns: 1fr;
    }

    .tl-shop-special-category {
        min-height: 52px;
    }
}

@media (max-width: 340px) {
    .tl-shop-mobile-action {
        padding-inline: 0.45rem;
        font-size: 0.65rem;
    }
}

/* Dedicated balance-refill status screen with deterministic mobile stacking. */
.topup-status-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #070b12;
    overscroll-behavior: contain;
}

.topup-status-overlay.hidden {
    display: none !important;
}

.topup-status-panel {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow-y: auto;
    background: #111827;
    color: #fff;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.topup-status-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.8rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.7);
    background: rgba(17, 24, 39, 0.98);
}

.topup-status-header h2 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
}

.topup-status-kicker {
    margin: 0;
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 800;
}

.topup-status-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4b5563;
    border-radius: 50%;
    background: #030712;
    color: #fff;
}

.topup-status-content {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}

.topup-status-summary {
    padding: 0.35rem 0 1.1rem;
    text-align: center;
}

.topup-status-description {
    max-width: 34rem;
    margin: 0.7rem auto 0;
    color: #9ca3af;
    font-size: 0.82rem;
    line-height: 1.75;
}

.topup-status-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.topup-status-detail {
    min-width: 0;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(75, 85, 99, 0.72);
    border-radius: 0.9rem;
    background: rgba(3, 7, 18, 0.58);
}

.topup-status-detail-label {
    color: #9ca3af;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.4;
}

.topup-status-detail-value {
    min-width: 0;
    color: #f9fafb;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.topup-status-detail-value.amount {
    color: #fbbf24;
    font-size: 1.08rem;
}

.topup-status-detail-value.credit {
    color: #6ee7b7;
    font-size: 1.08rem;
}

.topup-status-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.topup-status-action,
.topup-history-status-button {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.topup-status-action.primary {
    border: 1px solid #fbbf24;
    background: #f59e0b;
    color: #111827;
}

.topup-status-action.secondary {
    border: 1px solid #4b5563;
    background: #1f2937;
    color: #fff;
}

.topup-history-status-button {
    min-height: 48px;
    margin-top: 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

@media (min-width: 360px) {
    .topup-status-details,
    .topup-status-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topup-status-detail.wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 640px) {
    .topup-status-overlay {
        align-items: center;
        padding: 1.25rem;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(10px);
    }

    .topup-status-panel {
        width: min(100%, 640px);
        height: auto;
        max-height: 92vh;
        border: 1px solid #4b5563;
        border-radius: 1.5rem;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    }

    .topup-status-header {
        padding: 1rem 1.25rem;
    }

    .topup-status-header h2 {
        font-size: 1.2rem;
    }

    .topup-status-content {
        padding: 1.25rem 1.5rem 1.75rem;
    }
}

/* Keep large catalog pages light and reserve card space before lazy images decode. */
#products-grid > article {
    content-visibility: auto;
    contain-intrinsic-size: 300px 430px;
}

#products-grid img,
.home-product-rail img {
    color: transparent;
}
