/* ایران موزیک — استایل مشترک همه‌ی صفحه‌ها (از index.html قبلی: baseSiteStyle + siteCfgStyle) */
/* ---- baseSiteStyle ---- */
        * {
            font-family: var(--site-font, 'Vazirmatn'), 'Vazirmatn', sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
            box-sizing: border-box;
        }
        /* اسکرول نرم فقط برای کل صفحه (لینک‌های لنگری)؛ روی چرخ موس و پنل‌ها اعمال نمی‌شود */
        html { scroll-behavior: smooth; }

        :root {
            --bg-body: #0b0608;
            --text-body: #f8fafc;
            --glass-panel: rgba(20, 10, 15, 0.78);
            --glass-card: rgba(28, 14, 21, 0.72);
            --card-border: rgb(var(--c-rose-500) / 0.22);
            --subcard-bg: rgba(14, 7, 11, 0.65);
            --subcard-border: rgb(var(--c-rose-500) / 0.18);
            --product-box-bg: rgba(22, 11, 17, 0.75);
            --product-box-border: rgb(var(--c-rose-500) / 0.25);
            --input-bg: rgba(14, 7, 11, 0.82);
            --input-border: rgb(var(--c-rose-500) / 0.32);
            --input-text: #ffffff;
            --admin-bg: #0d070a;
            --overlay-bg: rgba(0, 0, 0, 0.85);
            --gbi-bg: rgba(22, 10, 16, 0.72);
            --gfi-bg: rgba(25, 12, 18, 0.7);
            --glass-blur: 18px;
            --c-rose-50: 255 241 242; --c-rose-100: 255 228 230; --c-rose-200: 254 205 211; --c-rose-300: 253 164 175; --c-rose-400: 251 113 133; --c-rose-500: 244 63 94; --c-rose-600: 225 29 72; --c-rose-700: 190 18 60; --c-rose-800: 159 18 57; --c-rose-900: 136 19 55; --c-rose-950: 76 5 25;
            --c-red-50: 254 242 242; --c-red-100: 254 226 226; --c-red-200: 254 202 202; --c-red-300: 252 165 165; --c-red-400: 248 113 113; --c-red-500: 239 68 68; --c-red-600: 220 38 38; --c-red-700: 185 28 28; --c-red-800: 153 27 27; --c-red-900: 127 29 29; --c-red-950: 69 10 10;
        }

        html:not(.dark) {
            --bg-body: #f8fafc;
            --text-body: #0f172a;
            --glass-panel: rgba(255, 255, 255, 0.94);
            --glass-card: #ffffff;
            --card-border: rgb(var(--c-rose-600) / 0.16);
            --subcard-bg: #f8fafc;
            --subcard-border: #e2e8f0;
            --product-box-bg: #ffffff;
            --product-box-border: #e2e8f0;
            --input-bg: #ffffff;
            --input-border: #cbd5e1;
            --input-text: #0f172a;
            --admin-bg: #f1f5f9;
            --overlay-bg: rgba(15, 23, 42, 0.45);
            --gbi-bg: rgba(255, 255, 255, 0.92);
            --gfi-bg: #ffffff;
        }

        body {
            background-color: var(--bg-body) !important;
            color: var(--text-body) !important;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Glassmorphism Classes */
        .glass-panel {
            background: var(--glass-panel) !important;
            border: 1px solid var(--card-border) !important;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .glass-card {
            background: var(--glass-card) !important;
            border: 1px solid var(--card-border) !important;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .glass-card:hover {
            border-color: rgb(var(--c-rose-600) / 0.55) !important;
            box-shadow: 0 16px 36px -8px rgb(var(--c-rose-600) / 0.35) !important;
            transform: translateY(-5px);
        }

        /* کادرهای شیشه‌ای مات و نئونی اختصاصی */
        .glass-box-interactive {
            background: var(--gbi-bg) !important;
            border: 1px solid rgb(var(--c-rose-500) / 0.25) !important;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.45);
            transition: all 0.3s ease;
        }
        .glass-box-interactive:hover {
            border-color: rgb(var(--c-rose-500) / 0.55) !important;
            box-shadow: 0 10px 32px 0 rgb(var(--c-rose-600) / 0.28);
            transform: translateY(-2px);
        }
        html:not(.dark) .glass-box-interactive {
            background: var(--gbi-bg) !important;
            border: 1px solid rgb(var(--c-rose-600) / 0.16) !important;
            box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.05);
        }

        /* کادرهای شیشه‌ای داخل محصول (قیمت، گارانتی، ارسال، مهلت تست، کارکرده) */
        .glass-feature-item {
            background: var(--gfi-bg) !important;
            border: 1px solid rgb(var(--c-rose-500) / 0.22) !important;
            backdrop-filter: blur(calc(var(--glass-blur) * 0.9));
            -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.9));
            transition: all 0.25s ease;
        }
        .glass-feature-item:hover {
            border-color: rgb(var(--c-rose-500) / 0.5) !important;
            box-shadow: 0 6px 20px rgb(var(--c-rose-600) / 0.2);
        }
        html:not(.dark) .glass-feature-item {
            background: var(--gfi-bg) !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
        }

        .glass-used-badge-item {
            background: rgba(6, 78, 59, 0.2) !important;
            border: 1px solid rgba(16, 185, 129, 0.5) !important;
            backdrop-filter: blur(calc(var(--glass-blur) * 0.9));
            -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.9));
        }
        html:not(.dark) .glass-used-badge-item {
            background: rgba(236, 253, 245, 0.95) !important;
            border: 1px solid rgba(16, 185, 129, 0.6) !important;
        }

        /* کادر عکس کارکرده (قاب سبز شیشه‌ای با برچسب و قیمت روی عکس) */
        .used-photo-frame {
            position: relative;
            border-radius: 1.25rem;
            padding: 2px;
            background: linear-gradient(135deg, #10b981 0%, #6ee7b7 45%, #059669 100%);
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
        }
        .used-photo-inner {
            border-radius: calc(1.25rem - 2px);
            overflow: hidden;
            background: rgba(4, 36, 28, 0.96);
        }
        html:not(.dark) .used-photo-inner { background: #f0fdf9; }
        .used-photo-head {
            display: flex; align-items: center; justify-content: space-between; gap: .5rem;
            padding: .6rem .9rem; font-size: .75rem; font-weight: 800;
            color: #6ee7b7; border-bottom: 1px dashed rgba(16, 185, 129, 0.35);
        }
        html:not(.dark) .used-photo-head { color: #047857; }
        .used-photo-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff; font-size: 10px; font-weight: 800;
            padding: .25rem .6rem; border-radius: 999px;
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
            display: inline-flex; align-items: center; gap: .3rem;
        }
        .used-photo-caption {
            background: linear-gradient(to top, rgba(2, 20, 15, 0.92) 0%, rgba(2, 20, 15, 0.6) 60%, transparent 100%);
            color: #fff;
        }
        .used-photo-pricebox {
            background: rgba(16, 185, 129, 0.18);
            border: 1px solid rgba(110, 231, 183, 0.65);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            border-radius: .9rem;
        }
        .used-thumb { transition: all .2s ease; }
        .used-thumb.active { border-color: #10b981 !important; opacity: 1 !important; transform: scale(.94); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45); }

        .subcard-box {
            background: var(--subcard-bg) !important;
            border: 1px solid var(--subcard-border) !important;
        }

        input, select, textarea {
            background: var(--input-bg) !important;
            border: 1px solid var(--input-border) !important;
            color: var(--input-text) !important;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        html.dark input::placeholder, 
        html.dark textarea::placeholder {
            color: rgba(255, 255, 255, 0.35) !important;
        }
        html:not(.dark) input::placeholder, 
        html:not(.dark) textarea::placeholder {
            color: #94a3b8 !important;
        }
        input:focus, select:focus, textarea:focus {
            border-color: rgb(var(--c-rose-600)) !important;
            box-shadow: 0 0 10px rgb(var(--c-rose-600) / 0.35) !important;
            outline: none !important;
        }

        /* مدیریت و بارگذاری محصولات + ویرایش کامل کالا: فیلدها تا وقتی روی‌شان کلیک نشود قفل‌اند
           (موس فقط از رویشان رد می‌شود و چرخ موس به‌جای گیر کردن، صفحه را اسکرول می‌کند) */
        #productsTab :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.im-active),
        #inventoryTab :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.im-active),
        #inPlaceEditProductModal :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.im-active) {
            pointer-events: none;
        }
        #productsTab textarea, #inventoryTab textarea, #inPlaceEditProductModal textarea { overscroll-behavior: auto; }

        #adminPanelSection {
            background-color: var(--admin-bg) !important;
            height: 100vh;
            height: 100dvh;
            max-height: 100dvh;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: auto !important;      /* رفع اسکرول بیش‌ازحد با چرخ موس */
            overscroll-behavior: contain;          /* اسکرول به صفحه پشت پنل منتقل نشود */
        }
        #adminPanelSection * { scroll-behavior: auto !important; }
        html:not(.dark) #adminPanelSection th {
            color: #be123c !important;
        }
        html:not(.dark) #adminPanelSection td {
            color: #1e293b !important;
        }

        .gallery-nav-btn {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.2s ease;
        }
        .gallery-nav-btn:hover {
            transform: scale(1.1);
        }

        @media print {
            @page {
                size: A4 portrait;
                margin: 6mm;
            }
            html, body {
                height: 100% !important;
                max-height: 100% !important;
                overflow: hidden !important;
                background: #ffffff !important;
                color: #000000 !important;
                font-size: 11px !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            body * {
                visibility: hidden !important;
            }
            #printableInvoiceArea, #printableInvoiceArea * {
                visibility: visible !important;
            }
            #printableInvoiceArea {
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 8mm !important;
                background: #ffffff !important;
                color: #000000 !important;
                border: 1px solid #1e293b !important;
                box-shadow: none !important;
                z-index: 999999 !important;
                page-break-inside: avoid !important;
                page-break-after: avoid !important;
                page-break-before: avoid !important;
            }
            #printableInvoiceArea table {
                page-break-inside: avoid !important;
            }
            #printableInvoiceArea tr, #printableInvoiceArea td, #printableInvoiceArea th {
                page-break-inside: avoid !important;
            }
        }

        @media print {
            #orderPrintHost, #orderPrintHost * { visibility: visible !important; }
            #orderPrintHost {
                position: absolute !important; left: 0 !important; top: 0 !important;
                width: 100% !important; padding: 4mm !important; background: #ffffff !important;
                color: #000000 !important; z-index: 999999 !important; zoom: 0.88;
                page-break-inside: avoid !important;
            }
        }

        /* منوی کشویی دسته‌بندی هدر (نسخه بزرگ و خوانا) */
        #megaMenuPanel { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 0; border-width: 0; overflow: hidden; }
        #megaMenuPanel .mm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 14px 26px; border-bottom: 1px solid rgb(var(--c-rose-500) / 0.25); }
        #megaMenuPanel .mm-head-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; }
        #megaMenuPanel .mm-close { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; font-size: 15px; font-weight: 800; background: rgb(var(--c-rose-500) / 0.14); color: rgb(var(--c-rose-500)); transition: background .15s, color .15s; }
        #megaMenuPanel .mm-close:hover { background: rgb(var(--c-rose-500)); color: #fff; }
        #megaMenuPanel .mm-body { display: flex; flex: 1; min-height: 0; }
        #megaMenuPanel .mm-cats { width: 380px; flex-shrink: 0; overflow-y: auto; border-left: 1px solid rgb(var(--c-rose-500) / 0.18); }
        #megaMenuPanel .mm-cat { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 22px; font-size: 18px; font-weight: 800; text-align: right; border-bottom: 1px solid rgba(148, 163, 184, 0.15); transition: background .15s, color .15s; }
        #megaMenuPanel .mm-cat > i:first-child { width: 26px; font-size: 20px; text-align: center; opacity: .85; }
        #megaMenuPanel .mm-cat .mm-chev { margin-right: auto; font-size: 15px; opacity: .55; }
        #megaMenuPanel .mm-cat:hover, #megaMenuPanel .mm-cat.on { background: rgb(var(--c-rose-500) / 0.12); color: rgb(var(--c-rose-500)); }
        #megaMenuPanel .mm-subs { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 34px; }
        #megaMenuPanel .mm-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgb(var(--c-rose-500) / 0.18); }
        #megaMenuPanel .mm-sub-head > span { font-size: 21px !important; }
        #megaMenuPanel .mm-sub-head > button { font-size: 15px !important; padding: 9px 16px !important; }
        #megaMenuPanel .mm-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
        #megaMenuPanel .mm-sub { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 16.5px; font-weight: 600; text-align: right; transition: background .15s, color .15s; }
        #megaMenuPanel .mm-sub i { font-size: 13px !important; }
        #megaMenuPanel .mm-sub:hover { background: rgb(var(--c-rose-500) / 0.12); color: rgb(var(--c-rose-500)); }
        #megaMenuPanel .mm-back { display: none; font-size: 15px !important; }
        @media (max-width: 767px) {
            #megaMenuPanel .mm-head { padding: 12px 14px; }
            #megaMenuPanel .mm-head-title { font-size: 17px; }
            #megaMenuPanel .mm-close { padding: 9px 14px; font-size: 14px; }
            #megaMenuPanel .mm-cats { width: 100%; border-left: 0; }
            #megaMenuPanel .mm-cat { font-size: 15px; padding: 13px 14px; gap: 12px; }
            #megaMenuPanel .mm-cat > i:first-child { font-size: 17px; width: 22px; }
            #megaMenuPanel .mm-subs { display: none; padding: 16px 16px; }
            #megaMenuPanel.mm-drill .mm-cats { display: none; }
            #megaMenuPanel.mm-drill .mm-subs { display: block; }
            #megaMenuPanel .mm-back { display: flex; }
            #megaMenuPanel .mm-sub-grid { grid-template-columns: 1fr; }
            #megaMenuPanel .mm-sub-head > span { font-size: 16px !important; }
            #megaMenuPanel .mm-sub-head > button { font-size: 12px !important; padding: 7px 12px !important; }
            #megaMenuPanel .mm-sub { border-bottom: 1px solid rgba(148, 163, 184, 0.15); border-radius: 0; padding: 13px 8px; font-size: 14.5px; }
        }


        /* ================= موبایل: ظاهر اپلیکیشن اندرویدی ================= */
        .im-mtop, #mobileBottomNav { display: none; }
        @media (max-width: 767px) {
            html { font-size: 14px; }
            body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

            /* هدر فشرده: فقط لوگو + دو دکمه کوچک؛ بقیه دکمه‌ها به نوار پایین رفته‌اند */
            #siteTopStack { position: relative; }
            .im-hdr-col { display: none !important; }
            header .container { padding: 6px 12px !important; flex-wrap: nowrap !important; }
            #siteHeaderLogoIcon { width: 64px !important; height: 38px !important; border-radius: 10px !important; }
            #siteHeaderLogoIcon i { font-size: 18px !important; }
            .im-brand-name { font-size: 1.3rem !important; line-height: 1.15 !important; }
            .im-brand-sub { font-size: 9px !important; letter-spacing: .08em !important; margin-top: 0 !important; }
            .im-mtop { display: flex; align-items: center; gap: 8px; margin-right: auto; }
            .im-mtop button { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
            #stopSaleNotice { padding: 6px 10px !important; font-size: 10.5px !important; }
            #stopSaleNotice a { padding: 5px 10px !important; font-size: 10.5px !important; }
            header > .md\:hidden { padding: 0 12px 8px !important; }
            #mobileStoreSearchInput { height: 38px; font-size: 12.5px !important; }

            /* فاصله و اندازه بخش‌ها */
            #homeSliderSection { padding: 8px 12px 0 !important; }
            #homeFeaturedSection, #eduHomeSection { padding: 10px 12px !important; }
            #catalogSection { padding: 8px 12px 16px !important; }
            #homeFeaturedSection .glass-panel { padding: 10px 12px !important; margin-bottom: 10px !important; }
            #homeFeaturedSection h2 { font-size: 14px !important; }
            #homeFeaturedSection .glass-panel > span { display: none; }
            .edu-home-box { padding: 12px !important; gap: 14px !important; border-radius: 22px !important; }
            #categorySidebar { display: none !important; }   /* دسته‌بندی‌ها از دکمه پایین باز می‌شود */

            /* کارت محصولات: دو ستون، جمع‌وجور */
            #mainProductsGrid, #featuredOffersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
            #mainProductsGrid > div, #featuredOffersGrid > div { padding: 8px !important; border-radius: 18px !important; min-width: 0; }
            #mainProductsGrid .card-img169, #featuredOffersGrid .card-img169 { height: auto !important; aspect-ratio: 16 / 9; margin-bottom: 8px !important; border-radius: 14px !important; }
            #mainProductsGrid p.line-clamp-2, #featuredOffersGrid p.line-clamp-2 { display: none; }
            #mainProductsGrid h3, #featuredOffersGrid h4 { font-size: 11.5px !important; line-height: 1.5 !important; }
            #mainProductsGrid > div > div:first-child > div:first-child,
            #featuredOffersGrid > div > div:first-child > div:first-child { flex-wrap: wrap; gap: 4px; margin-bottom: 6px !important; }
            #mainProductsGrid > div > div:first-child > div:first-child span,
            #featuredOffersGrid > div > div:first-child > div:first-child span { font-size: 9px !important; padding: 2px 6px !important; }
            #mainProductsGrid > div > div:last-child, #featuredOffersGrid > div > div:last-child { flex-wrap: wrap; gap: 6px; padding-top: 8px !important; margin-top: 8px !important; }
            #mainProductsGrid .w-10.h-10, #featuredOffersGrid .w-10.h-10 { width: 34px !important; height: 34px !important; border-radius: 10px !important; font-size: 13px !important; }
            #mainProductsGrid .text-xs.font-black, #featuredOffersGrid .text-xs.font-black { font-size: 11px !important; }
            #productCounterBadge { font-size: 11px !important; }
            #catalogSection .glass-panel.p-4 { padding: 10px !important; margin-bottom: 12px !important; }

            /* شناورها بالاتر از نوار پایین */
            #aiAdvisorWidget { left: 10px !important; right: 10px !important; bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; width: auto !important; max-width: none !important; }
            #appToast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; right: 12px !important; left: 12px !important; justify-content: center; }
            #tehranFreeShippingCard { top: 12px !important; }

            /* نوار ناوبری پایین */
            #mobileBottomNav {
                display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
                padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
                background: rgba(14, 6, 10, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
                border-top: 1px solid rgb(var(--c-rose-500) / .35);
                box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
            }
            html:not(.dark) #mobileBottomNav { background: rgba(255, 255, 255, .94); box-shadow: 0 -6px 24px rgba(15, 23, 42, .12); }
            #mobileBottomNav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; border-radius: 14px; font-size: 10.5px; font-weight: 800; line-height: 1.2; color: inherit; position: relative; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
            #mobileBottomNav button:active { transform: scale(.94); background: rgb(var(--c-rose-500) / .16); }
            #mobileBottomNav button i { font-size: 19px; }
            #mobileBottomNav button span.mbn-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            #mobileBottomNav .mbn-rose { color: rgb(var(--c-rose-500)); }
            #mobileBottomNav .mbn-green { color: #10b981; }
            #mobileBottomNav .mbn-badge { position: absolute; top: 1px; right: 50%; margin-right: -22px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(225, 29, 72, .5); }
        }

        /* کادرهای متنی که با نوشتن بزرگ می‌شوند (توضیحات، کپشن، آدرس و ...) */
        textarea.auto-grow { resize: vertical; overflow-y: hidden; min-height: 5.5em; line-height: 1.9; white-space: pre-wrap; }
        /* متن چندخطی دقیقاً همان‌طور که نوشته شده نمایش داده شود (خط خالی، فاصله، ایموجی) */
        .im-pre { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

        /* نور نئونی قرمز ریز دور کارت محصولات تخفیف‌دار */
        @keyframes discNeon {
            0%, 100% { box-shadow: 0 0 0 1px rgba(255, 32, 56, .95), 0 0 8px 1px rgba(255, 20, 45, .75), 0 0 18px rgba(255, 20, 45, .35); }
            50% { box-shadow: 0 0 0 1px rgba(255, 60, 80, .65), 0 0 4px rgba(255, 20, 45, .45), 0 0 10px rgba(255, 20, 45, .18); }
        }
        .disc-neon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; animation: discNeon 1.9s ease-in-out infinite; }
        /* نئون سبز متحرک دور کارت کالاهایی که فقط کارکرده‌شان موجود است */
        @property --used-neon-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
        @keyframes usedNeonSpin { to { --used-neon-a: 360deg; } }
        @keyframes usedNeonGlow {
            0%, 100% { box-shadow: 0 0 10px 1px rgba(16, 185, 129, .65), 0 0 24px rgba(16, 185, 129, .35); }
            50% { box-shadow: 0 0 4px rgba(16, 185, 129, .4), 0 0 12px rgba(16, 185, 129, .18); }
        }
        .used-neon { position: relative; animation: usedNeonGlow 1.8s ease-in-out infinite; }
        .used-neon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 2px;
            background: conic-gradient(from var(--used-neon-a), #10b981, #a7f3d0, #059669 30%, transparent 45%, #34d399 60%, #ecfdf5 75%, #10b981);
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
            animation: usedNeonSpin 3s linear infinite; }
        /* صفحه محصول: کادر دسته‌بندی/کد کالا و کادر برند (هم‌فونت و درشت) */
        .pp-crumb-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
        .pp-crumb-item, .pp-crumb-code { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 900; line-height: 1.5; letter-spacing: 0; }
        .pp-crumb-item { color: rgb(var(--c-rose-700)); background: linear-gradient(135deg, rgb(var(--c-rose-600) / .16), rgb(var(--c-rose-600) / .06));
            border: 1.5px solid rgb(var(--c-rose-500) / .45); box-shadow: 0 6px 18px -10px rgb(var(--c-rose-600) / .7), inset 0 1px 0 rgba(255,255,255,.14); }
        .dark .pp-crumb-item { color: rgb(var(--c-rose-200)); }
        .pp-crumb-item i { color: rgb(var(--c-rose-500)); font-size: 15px; }
        .pp-crumb-sep { font-size: 12px; opacity: .6; color: rgb(var(--c-rose-500)); }
        .pp-crumb-code { color: #fff; background: linear-gradient(135deg, rgb(var(--c-rose-600)), rgb(var(--c-rose-800)));
            border: 1.5px solid rgba(255,255,255,.22); box-shadow: 0 8px 22px -10px rgb(var(--c-rose-600) / .9), inset 0 1px 0 rgba(255,255,255,.25); }
        .pp-crumb-code i { color: #fde68a; font-size: 15px; }
        .pp-brand-box { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 8px 20px; border-radius: 14px;
            background: linear-gradient(135deg, rgb(var(--c-rose-600) / .95), rgb(var(--c-rose-900) / .95)); color: #fff;
            box-shadow: 0 8px 20px -12px rgb(var(--c-rose-600) / .85), inset 0 1px 0 rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.2); }
        /* کارت‌های «درباره و نقد و بررسی» و «مشخصات فنی»: قاب شیشه‌ای با عنوانِ قاب‌دار که به محتوای زیرش چسبیده است */
        .pp-sec { border-radius: 18px; overflow: hidden; padding: 0 !important; }
        .pp-sec-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; font-weight: 900; color: rgb(var(--c-rose-700));
            background: linear-gradient(135deg, rgb(var(--c-rose-600) / .22), rgb(var(--c-rose-600) / .08)); border-bottom: 1.5px solid rgb(var(--c-rose-500) / .4); }
        .dark .pp-sec-head { color: rgb(var(--c-rose-200)); }
        .pp-sec-head i { color: rgb(var(--c-rose-500)); font-size: 15px; }
        .pp-sec-body { padding: 14px 16px; }
        .pp-brand-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        .pp-brand-label { font-size: 12px; font-weight: 700; opacity: .85; white-space: nowrap; }
        .pp-brand-name { font-size: 20px; font-weight: 900; letter-spacing: .02em; line-height: 1.3; overflow-wrap: anywhere; }
        @media (max-width: 639px) { .pp-crumb-item, .pp-crumb-code { font-size: 14px; padding: 7px 12px; } .pp-brand-name { font-size: 17px; } }
        /* کادر اطلاعات ویدیو که به بالای قاب تلویزیون چسبیده است */
        .edu-tv-info { padding: 14px 16px 12px; border: 1px solid #52525b; border-bottom: 0; border-radius: 18px 18px 0 0; text-align: right;
            background: linear-gradient(180deg, #161616 0%, #2b2b2b 100%); box-shadow: 0 -10px 30px rgba(0,0,0,.35); color: #fff; }
        .edu-tv-info:not(.hidden) + .edu-tv-frame { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
        .edu-tv-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 9px; }
        @media (min-width: 640px) { .edu-tv-info { padding: 18px 22px 16px; } .edu-tv-chip { font-size: 12px; } }
        /* انبار کالا: سرگروه دسته‌بندی و هشدار کالای بدون دسته */
        .inv-group { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 10px; font-weight: 900; font-size: 12px;
            background: rgb(var(--c-rose-600) / .12); color: rgb(var(--c-rose-700)); border: 1px solid rgb(var(--c-rose-500) / .3); }
        .dark .inv-group { color: rgb(var(--c-rose-300)); }
        .inv-group b { font-size: 10px; padding: 0 6px; border-radius: 6px; background: rgb(var(--c-rose-600) / .18); }
        .inv-group-bad { background: rgba(220, 38, 38, .9); color: #fff !important; border-color: #ef4444; }
        .inv-nocat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; font-size: 11px; font-weight: 900;
            background: #dc2626; color: #fff; border: 1px solid #f87171; box-shadow: 0 0 12px rgba(220, 38, 38, .55); }
        .inv-row-bad { background: rgba(220, 38, 38, .07); }
        /* مدیریت دسته‌بندی‌ها */
        .cm-card { border-radius: 20px; border: 1px solid rgb(var(--c-rose-500) / .25); background: rgb(var(--c-rose-600) / .04); overflow: hidden; }
        .cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: rgb(var(--c-rose-600) / .08); }
        .cm-body { padding: 12px; border-top: 1px solid rgb(var(--c-rose-500) / .18); }
        .cm-ico { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgb(var(--c-rose-600)); color: #fff; }
        .cm-ibtn { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: rgb(var(--c-rose-600) / .1); color: rgb(var(--c-rose-600)); flex: none; }
        .dark .cm-ibtn { color: rgb(var(--c-rose-300)); }
        .cm-ibtn:hover { background: rgb(var(--c-rose-600)); color: #fff; }
        .cm-del { background: rgba(220, 38, 38, .12); color: #dc2626 !important; }
        .cm-del:hover { background: #dc2626; color: #fff !important; }
        .cm-badge { font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 8px; }
        .cm-count { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgb(var(--c-rose-600) / .1); white-space: nowrap; }
        .cm-sub { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; border: 1px solid rgb(var(--c-rose-500) / .15); }
        .cm-hit { border-color: #f59e0b; background: rgba(245, 158, 11, .1); }
        .cm-addprod { padding: 10px; border-radius: 14px; border: 1px dashed rgb(var(--c-rose-500) / .35); }
        .cm-icon-select { max-width: 130px; }
        .disc-badge { background: linear-gradient(135deg, #ff1f3a, #b8001a); color: #fff; font-weight: 900; box-shadow: 0 4px 14px rgba(255, 20, 45, .5); }
        .disc-old { text-decoration: line-through; text-decoration-color: #ff2a3d; text-decoration-thickness: 2px; opacity: .6; }
        /* ===== شمارنده تخفیف به سبک ساعت فلیپی ===== */
        .disc-flip { display: flex; direction: ltr; align-items: flex-end; justify-content: center; gap: 12px; --fw: 22px; --fh: 32px; }
        .disc-flip .fg { display: flex; flex-direction: column; align-items: center; gap: 5px; }
        .disc-flip .fg.fg-hide { display: none; }
        .disc-flip .fl { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: #fff; text-shadow: 0 0 8px rgba(255,40,70,.7); }
        .disc-flip .fds { display: flex; gap: 3px; direction: ltr; }
        .disc-flip .fd { position: relative; width: var(--fw); height: var(--fh); perspective: 260px; font-size: calc(var(--fh) * .56); font-weight: 600; line-height: var(--fh); text-align: center; color: #fff; }
        .disc-flip .fd, .disc-flip .fd * { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; }
        .disc-flip .fd .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #d4142a; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
        .disc-flip .fd .h span { position: absolute; left: 0; right: 0; height: var(--fh); line-height: var(--fh); }
        .disc-flip .fd .t { top: 0; border-radius: 5px 5px 0 0; transform-origin: 50% 100%; }
        .disc-flip .fd .t span { top: 0; }
        .disc-flip .fd .b { bottom: 0; border-radius: 0 0 5px 5px; transform-origin: 50% 0; }
        .disc-flip .fd .b span { bottom: 0; }
        .disc-flip .fd .lf.t { z-index: 4; animation: fdTop .26s ease-in forwards; }
        .disc-flip .fd .lf.b { z-index: 5; animation: fdBot .26s ease-out .26s both; }
        .disc-flip .fd { border-radius: 6px; box-shadow: 0 0 10px rgba(255,30,60,.45); }
        .disc-flip.fd-urgent .fd { box-shadow: 0 0 16px rgba(255,60,80,.95); }
        @keyframes fdTop { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
        @keyframes fdBot { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
        @media (max-width: 420px) { .disc-flip { gap: 8px; --fw: 19px; --fh: 28px; } }

        /* اسلایدر تصاویر صفحه اول — اندازه‌ها از «تنظیمات سایت ← اسلایدر» می‌آیند */
        #homeSliderSection { --hs-h: var(--hs-hd, 340px); --hs-w: 100%; }
        #homeSliderSection .hs-frame { position: relative; width: var(--hs-w); max-width: 100%; margin-inline: auto; padding: 5px; border-radius: 1.9rem;
            background: linear-gradient(135deg, rgb(var(--c-rose-500) / .95), rgb(var(--c-rose-700) / .25) 35%, rgb(var(--c-rose-500) / .12) 65%, rgb(var(--c-rose-500) / .9));
            box-shadow: 0 18px 50px -18px rgb(var(--c-rose-600) / .65), 0 0 0 1px rgb(var(--c-rose-500) / .25); }
        #homeSliderSection .hs-frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 28px rgb(var(--c-rose-500) / .28); }
        .hs-box { position: relative; width: 100%; height: var(--hs-h); border-radius: 1.5rem; overflow: hidden; background: #0b0608; touch-action: pan-y; isolation: isolate; }
        .hs-box::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; z-index: 2; }
        .hs-box .hs-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 5.5s ease; }
        .hs-box .hs-slide.on { opacity: 1; transform: scale(1); z-index: 1; }
        .hs-box .hs-slide img { width: 100%; height: 100%; display: block; }
        .hs-box .hs-fg { position: relative; object-fit: cover; object-position: center; }
        .hs-box .hs-bg { display: none; position: absolute; inset: -24px; width: calc(100% + 48px) !important; height: calc(100% + 48px) !important; object-fit: cover; filter: blur(26px) brightness(.55) saturate(1.2); }
        .hs-box[data-fit="contain"] .hs-bg { display: block; }
        .hs-box[data-fit="contain"] .hs-fg { object-fit: contain; }
        .hs-box[data-pos="top"] .hs-fg { object-position: center top; }
        .hs-box[data-pos="bottom"] .hs-fg { object-position: center bottom; }
        .hs-box .hs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 36px; height: 36px; font-size: 13px; border-radius: 9999px; background: rgba(0,0,0,.42); color: #fff; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
        .hs-box .hs-nav:hover { background: rgb(var(--c-rose-600)); transform: translateY(-50%) scale(1.08); }
        .hs-box .hs-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 7px; }
        .hs-box .hs-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,.55); transition: all .3s; }
        .hs-box .hs-dot.on { width: 24px; background: rgb(var(--c-rose-500)); }
        @media (max-width: 640px) {
            #homeSliderSection { --hs-h: var(--hs-hm, 200px); --hs-w: 100%; }
            #homeSliderSection .hs-frame { padding: 3px; border-radius: 1.3rem; }
            .hs-box { border-radius: 1.05rem; }
            .hs-box .hs-nav { width: 28px; height: 28px; font-size: 10px; }
        }

        /* کادر قرمز شیشه‌ای «محتوای آموزشی» صفحه اول */
        .edu-home-box { background: linear-gradient(135deg, rgba(225, 20, 45, .34), rgba(120, 5, 20, .30) 55%, rgba(255, 40, 60, .22)) !important; border: 1px solid rgba(255, 80, 100, .55) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 50px -14px rgba(255, 20, 45, .55), inset 0 1px 0 rgba(255,255,255,.18); }
        html:not(.dark) .edu-home-box { background: linear-gradient(135deg, rgba(225, 20, 45, .88), rgba(150, 8, 25, .86)) !important; }
        .edu-home-track { display: flex; flex-direction: row-reverse; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
        .edu-home-item { flex: 0 0 16.6667%; padding: 0 5px; }
        @media (max-width: 1023px) { .edu-home-item { flex-basis: 33.3333%; } }
        @media (max-width: 639px) { .edu-home-item { flex-basis: 50%; } }
        /* کادر کوچک «ورود به محتوای آموزشی» که به بالای کادر آموزشی چسبیده است */
        .edu-home-wrap { display: block; transition: transform .3s; }
        .edu-home-wrap:hover { transform: translateY(-3px); }
        .edu-home-tab { display: flex; width: fit-content; max-width: 100%; margin-right: 28px; position: relative; z-index: 1; margin-bottom: -1px;
            border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid rgba(255, 80, 100, .55); border-bottom: 0;
            background: linear-gradient(135deg, rgba(225, 20, 45, .55), rgba(120, 5, 20, .5)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
        html:not(.dark) .edu-home-tab { background: linear-gradient(135deg, rgba(225, 20, 45, .92), rgba(150, 8, 25, .9)); }
        .edu-home-tab-title { display: flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 1.05rem; font-weight: 900; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
        .edu-home-tab-click { display: flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 11px; font-weight: 800; white-space: nowrap;
            background: rgba(0, 0, 0, .3); border-right: 1px solid rgba(255, 255, 255, .35); }
        .edu-home-wrap .edu-home-box { border-top-right-radius: 0 !important; }
        @media (max-width: 639px) {
            .edu-home-tab { margin-right: 14px; border-radius: 14px 14px 0 0; }
            .edu-home-tab-title { font-size: .85rem; padding: 7px 12px; }
            .edu-home-tab-click { font-size: 10px; padding: 7px 10px; }
        }

        /* صفحه محصول: پس‌زمینه‌ی تم سایت ولی محوتر و تیره‌تر */
        /* هنگام نمایش صفحه محصول، همه‌ی بخش‌های خودِ سایت (هدر، اسلایدر، کارت‌ها، فوتر، نوار پایین) کاملاً مخفی‌اند تا از پشت صفحه دیده نشوند */
        body.pp-open :is(#siteTopStack, #homeSliderSection, #homeFeaturedSection, #eduHomeSection, #catalogSection, footer, #aiAdvisorWidget, #mobileBottomNav, #tehranFreeShippingCard),
        html.pp-boot :is(#siteTopStack, #homeSliderSection, #homeFeaturedSection, #eduHomeSection, #catalogSection, footer, #aiAdvisorWidget, #mobileBottomNav, #tehranFreeShippingCard) { visibility: hidden !important; }
        /* پس‌زمینه‌ی صفحه محصول: افکت نقطه‌ای (halftone) واضح دیده شود؛ فقط یک سایه‌ی ملایم برای خوانایی، بدون بلور */
        #productDetailModal.pp-fullpage > div:first-child {
            background: radial-gradient(ellipse at 50% 0%, rgb(var(--c-rose-700) / .14), transparent 60%), rgba(4, 1, 2, .16) !important;
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        }
        html:not(.dark) #productDetailModal.pp-fullpage > div:first-child { background: radial-gradient(ellipse at 50% 0%, rgb(var(--c-rose-300) / .2), transparent 60%), rgba(255, 255, 255, .12) !important; }
        #productDetailModal.pp-fullpage > .glass-panel { background: rgba(10, 4, 7, .22) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        html:not(.dark) #productDetailModal.pp-fullpage > .glass-panel { background: rgba(255, 255, 255, .3) !important; }

        @keyframes neonPulse {
            0%, 100% {
                border-color: rgb(var(--c-rose-500) / 0.95);
                box-shadow: 0 0 16px rgb(var(--c-rose-500) / 0.45);
            }
            50% {
                border-color: rgb(var(--c-rose-600) / 0.35);
                box-shadow: 0 0 5px rgb(var(--c-rose-600) / 0.2);
            }
        }
        .neon-glow-active {
            animation: neonPulse 2.4s infinite ease-in-out;
            position: relative;
        }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(-30px, 40px) scale(1.12); }
        }
        .ambient-orb-1 { animation: orbFloat 16s ease-in-out infinite; }
        .ambient-orb-2 { animation: orbFloat 20s ease-in-out infinite reverse; }
        html:not(.dark) .ambient-orb-1,
        html:not(.dark) .ambient-orb-2 {
            opacity: 0.18;
        }

        ::-webkit-scrollbar { width: 7px; height: 7px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgb(var(--c-rose-600) / 0.45); border-radius: 9999px; }
        ::-webkit-scrollbar-thumb:hover { background: rgb(var(--c-rose-600)); }
    
/* ---- siteCfgStyle ---- */
        /* افکت‌های فصلی */
        #halftoneBgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }
        /* صفحه محصول: یک پس‌زمینه‌ی تمام‌صفحه‌ی کاملاً مات (رنگ تم) روی همه‌ی محتوای سایت می‌افتد؛ افکت نقطه‌ای بالای آن و زیر صفحه محصول می‌ماند. بدون هیچ تأخیری با باز شدن صفحه ظاهر می‌شود */
        body.pp-open::before, html.pp-boot body::before { content: ''; position: fixed; inset: 0; z-index: 48; background: var(--bg-body); pointer-events: none; }
        body.pp-open #halftoneBgCanvas, html.pp-boot #halftoneBgCanvas { z-index: 49; }
        #seasonFxCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 35; }

        /* ---------- حالت صفحه کامل محصول ---------- */
        #ppBackBtn { display: none; }
        #productDetailModal.pp-fullpage #ppBackBtn { display: inline-flex; }
        #productDetailModal.pp-fullpage { padding: 0 !important; align-items: stretch !important; justify-content: stretch !important; }
        #productDetailModal.pp-fullpage > .glass-panel {
            max-width: none !important; width: 100% !important; height: 100vh; height: 100dvh; max-height: none !important;
            border-radius: 0 !important; border: none !important; padding: 0 !important; overflow-y: auto;
        }
        #productDetailModal.pp-fullpage > .glass-panel > div:first-child {
            position: sticky; top: 0; z-index: 30; margin: 0 !important; padding: 12px 20px !important;
            background: var(--glass-panel); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
        }
        #productDetailModal.pp-fullpage #modalProductContent { max-width: 1560px; margin: 0 auto; padding: 20px 16px 56px; }
        @media (min-width: 1024px) {
            #productDetailModal.pp-fullpage #modalProductContent { padding: 28px 32px 64px; }
            #productDetailModal.pp-fullpage #modalProductContent > .grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important; gap: 2.75rem !important; }
            #productDetailModal.pp-fullpage #modalProductContent > .grid > div { grid-column: auto !important; }
            #productDetailModal.pp-fullpage #modalProductContent > .grid > div:first-child {
                position: sticky; top: 84px; max-height: calc(100dvh - 100px); overflow-y: auto; padding-left: 4px;
            }
            #productDetailModal.pp-fullpage #modalProductContent .h-80 { height: min(64vh, 720px) !important; }
            #productDetailModal.pp-fullpage #modalProductContent .thumbnail-btn { width: 76px !important; height: 76px !important; }
            #productDetailModal.pp-fullpage #modalProductContent h1 { font-size: 1.85rem !important; line-height: 1.5 !important; }
            #productDetailModal.pp-fullpage #modalProductContent p,
            #productDetailModal.pp-fullpage #modalProductContent table { font-size: .85rem !important; }
            #productDetailModal.pp-fullpage #modalProductContent video { max-height: 360px !important; }
        }
        @media (max-width: 1023px) {
            #productDetailModal.pp-fullpage #modalProductContent .h-80 { height: 58vh !important; }
        }

        /* کنترل‌های پنل تنظیمات */
        .cfg-range { width: 100%; accent-color: rgb(var(--c-rose-600)); }
        .cfg-color { width: 44px; height: 32px; padding: 2px !important; border-radius: 8px; cursor: pointer; }
        .cfg-preset { transition: all .2s ease; }
        .cfg-preset.active { outline: 3px solid rgb(var(--c-rose-500)); outline-offset: 2px; }
    

/* =====================================================================
   حالت سبک برای گوشی‌های ضعیف (کلاس html.im-lite را اسکریپت ابتدای صفحه اضافه می‌کند):
   هیچ بخشی حذف نمی‌شود؛ فقط شعاع بلور، انیمیشن‌های همیشگی پس‌زمینه و کیفیت بوم‌ها سبک‌تر می‌شوند.
   ===================================================================== */
html.im-lite .ambient-orb-1, html.im-lite .ambient-orb-2 { animation: none; }
html.im-lite .backdrop-blur-md { --tw-backdrop-blur: blur(4px); }
html.im-lite .backdrop-blur-sm { --tw-backdrop-blur: blur(2px); }
html.im-lite .backdrop-blur-xl, html.im-lite .backdrop-blur-lg, html.im-lite .backdrop-blur-2xl { --tw-backdrop-blur: blur(6px); }
@media (max-width: 767px) {
  html.im-lite #mobileBottomNav { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
html.im-lite .used-neon, html.im-lite .used-neon::after { animation-duration: 3.6s, 6s; }
html.im-lite .neon-glow-active { animation-duration: 4.8s; }
@media (prefers-reduced-motion: reduce) {
  .ambient-orb-1, .ambient-orb-2 { animation: none; }
}
/* بخش‌های پایین صفحه تا وقتی دیده نشده‌اند رندر نمی‌شوند (فقط حالت سبک؛ روی دستگاه قوی ظاهر بلور شیشه‌ای فوتر دقیقاً مثل قبل می‌ماند) */
html.im-lite footer { content-visibility: auto; contain-intrinsic-size: auto 520px; }
