        :root {
            --bg-dark: #0f172a;
            --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
            --sidebar-border: rgba(255, 255, 255, 0.08);
            --sidebar-width: 280px;
            --bg-light: #f8fafc;
            --surface: #ffffff;
            --border-color: #e2e8f0;
            --border-medium: #cbd5e1;
            --text-dark: #1e293b;
            --text-medium: #64748b;
            --text-light: #94a3b8;
            --accent: #0d9488;
            --accent-hover: #0f766e;
            --accent-glow: rgba(20, 184, 166, 0.25);
            --accent-light-bg: #f0fdfa;
            --accent-text: #0f766e;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            -webkit-font-smoothing: antialiased;
        }

        /* ================================= */
        /* IDUL FITRI THEME - MODERN DESIGN  */
        /* ================================= */
        body.ramadhan-bg {
            background: linear-gradient(175deg, #ffffff 0%, #f8fdf8 24%, #f0f9f0 50%, #e8f5e8 72%, #dff0df 100%);
            position: relative;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Soft Lebaran ambient light overlay */
        body.ramadhan-bg::before {
            content: '';
            position: fixed;
            inset: -15%;
            background:
                radial-gradient(ellipse 60% 50% at 80% 15%, rgba(34, 139, 34, 0.06), transparent 60%),
                radial-gradient(ellipse 50% 40% at 15% 30%, rgba(184, 157, 80, 0.05), transparent 60%),
                radial-gradient(ellipse 70% 50% at 50% 80%, rgba(34, 139, 34, 0.04), transparent 60%);
            opacity: 0.9;
            z-index: -3;
            pointer-events: none;
        }

        /* Sky container */
        .ramadhan-sky {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        /* Modern Sidebar Toggle Button */
        .ramadhan-sidebar-toggle {
            background: rgba(15, 23, 42, 0.85); /* Matches --bg-dark / --sidebar-bg base */
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-left: none;
            box-shadow: 
                4px 0 24px rgba(0, 0, 0, 0.25),
                inset -1px 0 2px rgba(255, 255, 255, 0.1);
            position: fixed;
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0 14px 14px 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            overflow: hidden;
            padding: 18px 4px;
        }

        .ramadhan-sidebar-toggle:hover {
            background: rgba(30, 41, 59, 0.95); /* Matches slate-800 */
            box-shadow: 
                6px 0 28px rgba(0, 0, 0, 0.3),
                inset -1px 0 2px rgba(255, 255, 255, 0.15);
            transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, -50%));
        }

        .ramadhan-sidebar-toggle:active {
            transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, -50%)) scale(0.95);
        }

        .ramadhan-sidebar-toggle::before,
        .ramadhan-sidebar-toggle::after {
            display: none;
        }

        .ramadhan-toggle-bar {
            background: rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }

        .ramadhan-sidebar-toggle:hover .ramadhan-toggle-bar {
            background: #2dd4bf; /* Teal-400 */
            box-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
        }

        .ramadhan-toggle-icon {
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
            filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
        }

        .ramadhan-sidebar-toggle:hover .ramadhan-toggle-icon {
            color: #2dd4bf; /* Teal 400 */
            filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.4));
            transform: scale(1.1);
        }
.spinner {
    width: 24px ;
    height: 24px ;
    position: relative ;
    display: inline-block ;
    background: transparent ;
    border: none ;
    padding: 0 ;
    box-shadow: none ;
    text-shadow: none ;
    animation: none ;
    vertical-align: middle ;
}

.spinner::before {
    content: "" ;
    position: absolute ;
    top: 50% ;
    left: 50% ;
    transform: translate(-50%, -50%) ;
    width: 14px ;
    height: 14px ;
    background-image: url('https://sulapfoto.com/sflogo.png') ;
    background-size: contain ;
    background-repeat: no-repeat ;
    background-position: center ;
    z-index: 1 ;
}

.spinner::after {
    content: "" ;
    display: block ;
    position: absolute ;
    inset: 0 ;
    border-radius: 50% ;
    border: 2px solid transparent ;
    border-top-color: #2dd4bf ;
    border-right-color: #0d9488 ;
    animation: spin 0.8s linear infinite ;
    z-index: 2 ;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* user hemat gerakan */
@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none ; }
}

/* default: pause dulu, nanti JS yang aktifkan saat terlihat */
.spinner.paused { animation-play-state: paused ; }




        /* Decorative dots layer - Lebaran */
        .ramadhan-stars {
            position: absolute;
            inset: 0;
        }

        /* Large soft green/gold dots */
        .ramadhan-stars::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            box-shadow:
                8vw 8vh 0 3px rgba(34, 139, 34, 0.15),
                16vw 22vh 0 2px rgba(184, 157, 80, 0.14),
                24vw 6vh 0 2.5px rgba(34, 139, 34, 0.13),
                32vw 30vh 0 2px rgba(184, 157, 80, 0.12),
                40vw 12vh 0 3px rgba(34, 139, 34, 0.15),
                48vw 26vh 0 2px rgba(184, 157, 80, 0.14),
                56vw 8vh 0 2.5px rgba(34, 139, 34, 0.13),
                64vw 20vh 0 2px rgba(184, 157, 80, 0.12),
                72vw 5vh 0 3px rgba(34, 139, 34, 0.15),
                80vw 18vh 0 2px rgba(184, 157, 80, 0.14),
                88vw 28vh 0 2.5px rgba(34, 139, 34, 0.13),
                94vw 10vh 0 2px rgba(184, 157, 80, 0.10),
                12vw 38vh 0 2px rgba(34, 139, 34, 0.12),
                28vw 45vh 0 3px rgba(184, 157, 80, 0.14),
                44vw 42vh 0 2px rgba(34, 139, 34, 0.10),
                60vw 38vh 0 2.5px rgba(184, 157, 80, 0.13),
                76vw 44vh 0 2px rgba(34, 139, 34, 0.12),
                92vw 40vh 0 3px rgba(184, 157, 80, 0.14),
                4vw 50vh 0 2px rgba(34, 139, 34, 0.10),
                36vw 55vh 0 2.5px rgba(184, 157, 80, 0.12),
                68vw 52vh 0 2px rgba(34, 139, 34, 0.14),
                84vw 58vh 0 3px rgba(184, 157, 80, 0.10);
            border-radius: 50%;
        }

        /* Smaller accent dots */
        .ramadhan-stars::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            box-shadow:
                5vw 15vh 0 1.5px rgba(34, 139, 34, 0.12),
                13vw 32vh 0 1px rgba(184, 157, 80, 0.10),
                20vw 18vh 0 1.5px rgba(34, 139, 34, 0.12),
                35vw 10vh 0 1px rgba(184, 157, 80, 0.10),
                42vw 36vh 0 1.5px rgba(34, 139, 34, 0.12),
                52vw 22vh 0 1px rgba(184, 157, 80, 0.10),
                58vw 46vh 0 1.5px rgba(34, 139, 34, 0.12),
                66vw 28vh 0 1px rgba(184, 157, 80, 0.10),
                74vw 40vh 0 1.5px rgba(34, 139, 34, 0.12),
                82vw 14vh 0 1px rgba(184, 157, 80, 0.10),
                90vw 36vh 0 1.5px rgba(34, 139, 34, 0.12),
                96vw 22vh 0 1px rgba(184, 157, 80, 0.08);
            border-radius: 50%;
        }

        /* Decorative Ketupat Element */
        .ramadhan-moon {
            position: absolute;
            top: 5%;
            right: 8%;
            width: 80px;
            height: 80px;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }

        .ramadhan-moon::before {
            content: '✦';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            font-size: 48px;
            color: rgba(34, 139, 34, 0.18);
            text-shadow: none;
        }

        .ramadhan-moon::after {
            content: '✦';
            position: absolute;
            top: 20px;
            left: -30px;
            font-size: 24px;
            color: rgba(184, 157, 80, 0.2);
            text-shadow: none;
        }

        /* Idul Fitri Festive Decorations - Ketupat & Lanterns */
        .ramadhan-mosque {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 180px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180'%3E%3Cdefs%3E%3ClinearGradient id='kg' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2310b981;stop-opacity:0.35'/%3E%3Cstop offset='100%25' style='stop-color:%23059669;stop-opacity:0.45'/%3E%3C/linearGradient%3E%3ClinearGradient id='kg2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23fbbf24;stop-opacity:0.35'/%3E%3Cstop offset='100%25' style='stop-color:%23f59e0b;stop-opacity:0.45'/%3E%3C/linearGradient%3E%3C/defs%3E%3C!-- Hanging String --%3E%3Cpath d='M0,15 Q180,22 360,15 Q540,22 720,15 Q900,22 1080,15 Q1260,22 1440,15' stroke='%2310b981' stroke-width='2' fill='none' opacity='0.3'/%3E%3C!-- Ketupat 1 (Left) --%3E%3Cg transform='translate(180,20)'%3E%3Cline x1='0' y1='0' x2='0' y2='12' stroke='%2310b981' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M0,12 L16,28 L0,44 L-16,28 Z' fill='url(%23kg)' stroke='%2310b981' stroke-width='2'/%3E%3Cline x1='-16' y1='28' x2='16' y2='28' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='0' y1='12' x2='0' y2='44' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='-10' y1='18' x2='10' y2='38' stroke='%2310b981' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='10' y1='18' x2='-10' y2='38' stroke='%2310b981' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='0' y1='44' x2='0' y2='52' stroke='%2310b981' stroke-width='2' opacity='0.35'/%3E%3C/g%3E%3C!-- Round Lantern 1 --%3E%3Cg transform='translate(380,18)'%3E%3Cline x1='0' y1='0' x2='0' y2='15' stroke='%23f59e0b' stroke-width='1.2' opacity='0.4'/%3E%3Ccircle cx='0' cy='35' r='20' fill='url(%23kg2)' stroke='%23f59e0b' stroke-width='2'/%3E%3Cpath d='M-15,35 Q0,30 15,35' stroke='%23fbbf24' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Cpath d='M-15,35 Q0,40 15,35' stroke='%23fbbf24' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Cpath d='M0,55 L-5,63 L5,63 Z' fill='%23fbbf24' opacity='0.5'/%3E%3C/g%3E%3C!-- Ketupat 2 (Center-Left) --%3E%3Cg transform='translate(560,25)'%3E%3Cline x1='0' y1='0' x2='0' y2='10' stroke='%23f59e0b' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M0,10 L14,24 L0,38 L-14,24 Z' fill='url(%23kg2)' stroke='%23f59e0b' stroke-width='1.8'/%3E%3Cline x1='-14' y1='24' x2='14' y2='24' stroke='%23f59e0b' stroke-width='1' opacity='0.3'/%3E%3Cline x1='0' y1='10' x2='0' y2='38' stroke='%23f59e0b' stroke-width='1' opacity='0.3'/%3E%3Cline x1='-9' y1='15' x2='9' y2='33' stroke='%23f59e0b' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='9' y1='15' x2='-9' y2='33' stroke='%23f59e0b' stroke-width='0.8' opacity='0.25'/%3E%3C/g%3E%3C!-- Large Ketupat Center --%3E%3Cg transform='translate(720,12)'%3E%3Cline x1='0' y1='0' x2='0' y2='18' stroke='%2310b981' stroke-width='2' opacity='0.4'/%3E%3Cpath d='M0,18 L22,40 L0,62 L-22,40 Z' fill='url(%23kg)' stroke='%2310b981' stroke-width='2.5'/%3E%3Cline x1='-22' y1='40' x2='22' y2='40' stroke='%2310b981' stroke-width='1.5' opacity='0.35'/%3E%3Cline x1='0' y1='18' x2='0' y2='62' stroke='%2310b981' stroke-width='1.5' opacity='0.35'/%3E%3Cline x1='-15' y1='25' x2='15' y2='55' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='15' y1='25' x2='-15' y2='55' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='-11' y1='40' x2='11' y2='40' stroke='%23fbbf24' stroke-width='1' opacity='0.4'/%3E%3Cline x1='0' y1='29' x2='0' y2='51' stroke='%23fbbf24' stroke-width='1' opacity='0.4'/%3E%3Cline x1='0' y1='62' x2='0' y2='72' stroke='%2310b981' stroke-width='2.5' opacity='0.4'/%3E%3C/g%3E%3C!-- Round Lantern 2 --%3E%3Cg transform='translate(880,18)'%3E%3Cline x1='0' y1='0' x2='0' y2='15' stroke='%2310b981' stroke-width='1.2' opacity='0.4'/%3E%3Ccircle cx='0' cy='35' r='20' fill='url(%23kg)' stroke='%2310b981' stroke-width='2'/%3E%3Cpath d='M-15,35 Q0,30 15,35' stroke='%23fbbf24' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Cpath d='M-15,35 Q0,40 15,35' stroke='%23fbbf24' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Cpath d='M0,55 L-5,63 L5,63 Z' fill='%23fbbf24' opacity='0.5'/%3E%3C/g%3E%3C!-- Ketupat 3 (Center-Right) --%3E%3Cg transform='translate(1060,25)'%3E%3Cline x1='0' y1='0' x2='0' y2='10' stroke='%23f59e0b' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M0,10 L14,24 L0,38 L-14,24 Z' fill='url(%23kg2)' stroke='%23f59e0b' stroke-width='1.8'/%3E%3Cline x1='-14' y1='24' x2='14' y2='24' stroke='%23f59e0b' stroke-width='1' opacity='0.3'/%3E%3Cline x1='0' y1='10' x2='0' y2='38' stroke='%23f59e0b' stroke-width='1' opacity='0.3'/%3E%3Cline x1='-9' y1='15' x2='9' y2='33' stroke='%23f59e0b' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='9' y1='15' x2='-9' y2='33' stroke='%23f59e0b' stroke-width='0.8' opacity='0.25'/%3E%3C/g%3E%3C!-- Ketupat 4 (Right) --%3E%3Cg transform='translate(1260,20)'%3E%3Cline x1='0' y1='0' x2='0' y2='12' stroke='%2310b981' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M0,12 L16,28 L0,44 L-16,28 Z' fill='url(%23kg)' stroke='%2310b981' stroke-width='2'/%3E%3Cline x1='-16' y1='28' x2='16' y2='28' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='0' y1='12' x2='0' y2='44' stroke='%2310b981' stroke-width='1' opacity='0.3'/%3E%3Cline x1='-10' y1='18' x2='10' y2='38' stroke='%2310b981' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='10' y1='18' x2='-10' y2='38' stroke='%2310b981' stroke-width='0.8' opacity='0.25'/%3E%3Cline x1='0' y1='44' x2='0' y2='52' stroke='%2310b981' stroke-width='2' opacity='0.35'/%3E%3C/g%3E%3C!-- Stars --%3E%3Ctext x='280' y='75' font-size='22' fill='%23fbbf24' opacity='0.4'%3E%E2%9C%A6%3C/text%3E%3Ctext x='480' y='85' font-size='18' fill='%2310b981' opacity='0.35'%3E%E2%9C%A6%3C/text%3E%3Ctext x='650' y='92' font-size='16' fill='%23fbbf24' opacity='0.3'%3E%E2%9C%A6%3C/text%3E%3Ctext x='790' y='92' font-size='16' fill='%23fbbf24' opacity='0.3'%3E%E2%9C%A6%3C/text%3E%3Ctext x='960' y='85' font-size='18' fill='%2310b981' opacity='0.35'%3E%E2%9C%A6%3C/text%3E%3Ctext x='1160' y='75' font-size='22' fill='%23fbbf24' opacity='0.4'%3E%E2%9C%A6%3C/text%3E%3C!-- Decorative Ribbons --%3E%3Cpath d='M50,110 Q100,100 150,110 Q200,120 250,110' stroke='%2310b981' stroke-width='2.5' fill='none' opacity='0.25'/%3E%3Cpath d='M1190,110 Q1240,100 1290,110 Q1340,120 1390,110' stroke='%2310b981' stroke-width='2.5' fill='none' opacity='0.25'/%3E%3C!-- Confetti Dots --%3E%3Ccircle cx='320' cy='95' r='3' fill='%23fbbf24' opacity='0.3'/%3E%3Ccircle cx='600' cy='100' r='2.5' fill='%2310b981' opacity='0.3'/%3E%3Ccircle cx='840' cy='100' r='2.5' fill='%2310b981' opacity='0.3'/%3E%3Ccircle cx='1120' cy='95' r='3' fill='%23fbbf24' opacity='0.3'/%3E%3C!-- Ground Wave --%3E%3Cpath d='M0,150 Q120,140 240,150 Q360,160 480,150 Q600,140 720,150 Q840,160 960,150 Q1080,140 1200,150 Q1320,160 1440,150 L1440,180 L0,180 Z' fill='%2310b981' opacity='0.18'/%3E%3C/svg%3E") no-repeat bottom center/1440px 180px;
            z-index: -1;
            pointer-events: none;
        }

        /* Lanterns container for JS-generated SVG lanterns */
        .ramadhan-lanterns {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }

        .ramadhan-squares {
            position: absolute;
            top: -100%;
            left: 0;
            width: 100%;
            height: 200%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Ccircle cx='36' cy='40' r='4' fill='rgba(34,139,34,0.1)'/%3E%3Ccircle cx='160' cy='96' r='5' fill='rgba(184,157,80,0.08)'/%3E%3Ccircle cx='248' cy='56' r='3.5' fill='rgba(34,139,34,0.09)'/%3E%3Ccircle cx='90' cy='220' r='4' fill='rgba(184,157,80,0.08)'/%3E%3Ccircle cx='230' cy='250' r='5' fill='rgba(34,139,34,0.1)'/%3E%3C/svg%3E");
            background-size: 320px 320px;
            background-repeat: repeat;
            opacity: 0.22;
            filter: blur(0.2px);
        }

        /* Falling sparkle particles layer - REMOVED as per request */
        /* .ramadhan-sky::after {
            content: '';
            position: absolute;
            top: -100%;
            left: 0;
            width: 100%;
            height: 200%;
            background-image:
                radial-gradient(circle 1.5px, rgba(218, 165, 32, 0.25) 0%, transparent 100%),
                radial-gradient(circle 1px, rgba(218, 165, 32, 0.2) 0%, transparent 100%),
                radial-gradient(circle 2px, rgba(218, 165, 32, 0.22) 0%, transparent 100%);
            background-size: 150px 280px, 100px 220px, 180px 320px;
            background-position: 0 0, 50px 40px, 100px 80px;
            animation: ramadhan-falling-stars 25s linear infinite;
            opacity: 0.7;
        } */

        /* ========= Responsive Idul Fitri ========= */
        @media (max-width: 640px) {
            .ramadhan-moon {
                width: 60px;
                height: 60px;
                top: 4%;
                right: 5%;
                box-shadow: none;
            }

            .ramadhan-moon::before {
                font-size: 36px;
            }

            .ramadhan-moon::after {
                font-size: 18px;
                top: 14px;
                left: -20px;
            }

            .ramadhan-mosque {
                height: 130px;
                background-size: 1200px 130px;
            }
        }

        aside {
            background: var(--sidebar-bg);
            border-right: 1px solid var(--sidebar-border);
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        }

        aside .sidebar-header {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--sidebar-border);
        }

        aside nav {
            overflow-x: hidden;
        }

        aside nav::-webkit-scrollbar {
            width: 4px;
        }

        aside nav::-webkit-scrollbar-track {
            background: transparent;
        }

        aside nav::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        aside nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .sidebar-btn {
            display: flex;
            align-items: center;
            width: 100%;
            margin: 0;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            color: #94a3b8;
            border-radius: 12px;
            border: 1px solid transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .sidebar-btn:hover:not(.active) {
            background: linear-gradient(90deg, rgba(15, 23, 42, 0.25) 0%, rgba(20, 184, 166, 0.1) 100%);
            color: #f1f5f9;
            transform: translateX(3px);
            border-color: rgba(148, 163, 184, 0.25);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
        }

        .sidebar-btn.active {
            background: linear-gradient(90deg, rgba(20, 184, 166, 0.25) 0%, rgba(20, 184, 166, 0.08) 100%);
            color: #2dd4bf;
            font-weight: 600;
            border: 1px solid rgba(45, 212, 191, 0.35);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35), inset 0 0 12px rgba(20, 184, 166, 0.08);
        }

        .sidebar-btn.active i {
            filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.6));
            transform: scale(1.1);
            transition: transform 0.3s;
        }

        .toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            z-index: 9999;
            pointer-events: none;
        }

        .server-toast {
            background: rgba(15, 23, 42, 0.9);
            color: #f8fafc;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(4px);
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
            max-width: 300px;
        }

        .server-toast.show {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .server-toast i {
            color: #2dd4bf;
        }

        .sidebar-sub-btn {
            display: flex;
            align-items: center;
            width: calc(100% - 32px);
            margin: 2px 0 2px 32px;
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
            color: #64748b;
            border-radius: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
        }

        .sidebar-sub-btn::before {
            content: '';
            position: absolute;
            left: -14px;
            top: 50%;
            height: 1px;
            width: 8px;
            background: #334155;
        }

        .sidebar-sub-btn:hover {
            color: #f8fafc;
            background: rgba(15, 23, 42, 0.2);
            transform: translateX(2px);
        }

        .sidebar-sub-btn.active {
            color: #2dd4bf;
            background: rgba(20, 184, 166, 0.16);
            font-weight: 600;
        }

        .sidebar-sub-btn:active {
            transform: translateX(1px) scale(0.98);
        }

        .sidebar-group-label {
            padding: 1.5rem 1.5rem 0.5rem;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #475569;
        }

        .card {
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .card:hover {
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            transform: translateY(-2px);
        }

        .systeminfo-compact .systeminfo-header {
            padding-top: 0.65rem;
            padding-bottom: 0.55rem;
        }

        .systeminfo-compact .systeminfo-body {
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
        }

        .systeminfo-compact h2 {
            font-size: 0.85rem;
        }

        .systeminfo-compact #systeminfo-total-label {
            font-size: 0.6rem;
            margin-top: 2px;
            display: block;
        }

        .systeminfo-compact #systeminfo-grid {
            gap: 0.5rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
        }

        .systeminfo-compact #systeminfo-grid::-webkit-scrollbar {
            height: 6px;
        }

        .systeminfo-compact #systeminfo-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .systeminfo-compact #systeminfo-grid::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.6);
            border-radius: 999px;
        }

        @media (max-width: 640px) {
            .systeminfo-compact #systeminfo-grid::-webkit-scrollbar {
                height: 4px;
            }
        }

        /* Default theme: angka total berwarna hitam */
        .systeminfo-total-number {
            color: #1e293b;
        }

        @keyframes breathing-glow {
            0% {
                box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.02);
            }

            50% {
                box-shadow: 0 0 20px 3px rgba(20, 184, 166, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.02);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.02);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(-15px);
            }
        }

        .tab-content-pane.is-active {
            animation: fadeIn 0.4s ease-out forwards;
        }

        .tab-content-pane.is-exiting {
            animation: fadeOut 0.3s ease-in forwards;
        }

        .animated-title {
            background-image: linear-gradient(to right, var(--accent-text), var(--accent), var(--accent-text));
            background-size: 200% auto;
            color: transparent;
            -webkit-background-clip: text;
            background-clip: text;
        }

        .animated-wand-icon {
            transition: transform 0.3s ease;
        }

        .animated-wand-icon:hover {
            transform: scale(1.2) rotate(5deg) ;
        }

        .loader-icon,
        .lucide-loader-2,
        [data-lucide="loader-2"] {
            display: none ;
        }

        .loader-icon {
            display: none ;
            width: 1.5rem;
            height: 1.5rem;
            background-image: url('https://sulapfoto.com/sflogo.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            border: none;
            animation: spin 1.2s linear infinite;
            opacity: 0.5;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes modern-spin {
            0% {
                transform: rotate(0deg) scale(1);
                opacity: 1;
            }

            50% {
                transform: rotate(180deg) scale(0.9);
                opacity: 0.85;
            }

            100% {
                transform: rotate(360deg) scale(1);
                opacity: 1;
            }
        }

        @keyframes vip-pulse-spin {
            0% {
                transform: scale(1) rotate(0deg);
                filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.5));
            }

            50% {
                transform: scale(1.15) rotate(180deg);
                filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
            }

            100% {
                transform: scale(1) rotate(360deg);
                filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.5));
            }
        }

        .vip-loading-icon {
            color: #eab308;
            animation: vip-pulse-spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }

        .modern-loader {
            position: relative;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }

        .modern-loader-core {
            position: absolute;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--accent) 0%, #2dd4bf 100%);
            border-radius: 50%;
            box-shadow: 0 0 20px var(--accent-glow);
            animation: pulse-core 2s infinite ease-in-out;
            z-index: 10;
        }

        .modern-loader-core::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            background-image: url('https://sulapfoto.com/sflogo.png');
            background-size: contain;
            background-repeat: no-repeat;
            opacity: 0.9;
        }

        .modern-loader-ring {
            position: absolute;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: var(--accent);
            border-bottom-color: #2dd4bf;
            opacity: 0.7;
        }

        .modern-loader-ring:nth-child(1) {
            width: 100%;
            height: 100%;
            animation: modern-spin 3s linear infinite;
        }

        .modern-loader-ring:nth-child(2) {
            width: 70%;
            height: 70%;
            animation: modern-spin 2s linear infinite reverse;
            border-left-color: #fcd34d;
            border-right-color: #fcd34d;
        }

        @keyframes pulse-core {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 20px rgba(20, 184, 166, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
            }
        }

        .modern-loading-text {
            background: linear-gradient(90deg, var(--text-dark), var(--accent), var(--text-dark));
            background-size: 200% auto;
            color: transparent;
            -webkit-background-clip: text;
            background-clip: text;
            font-weight: 700;
            letter-spacing: 0.5px;
            margin-top: 1.5rem;
            text-align: center;
        }

        .file-input-label {
            cursor: pointer;
            border: 2px dashed var(--border-medium);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: border-color 0.3s, background-color 0.3s;
            height: 100%;
            color: var(--text-medium);
            background-color: transparent;
        }

        .file-input-label:hover {
            border-color: var(--accent);
            background-color: var(--accent-light-bg);
        }

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 50;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal-backdrop.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background-color: var(--bg-dark);
            border: 1px solid var(--sidebar-border);
            padding: 2rem;
            border-radius: 0.75rem;
            width: 90%;
            max-width: 500px;
            transform: scale(0.95);
            transition: transform 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
            color: #e2e8f0;
        }

        .modal-backdrop.visible .modal-content {
            transform: scale(1);
        }

        .sf-popup-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            z-index: 10000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .sf-popup-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .sf-popup-card {
            background: #ffffff;
            border-radius: 18px;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
            transform: translateY(12px) scale(0.98);
            transition: transform 0.2s ease;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
        }

        .sf-popup-backdrop.active .sf-popup-card {
            transform: translateY(0) scale(1);
        }

        .sf-popup-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px;
            background: linear-gradient(135deg, #ecfeff, #f0fdf4);
            border-bottom: 1px solid #e2e8f0;
        }

        .sf-popup-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 800;
            color: #0f172a;
            font-size: 1rem;
        }

        .sf-popup-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(13, 148, 136, 0.12);
            color: #0d9488;
        }

        .sf-popup-close {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 6px;
            border-radius: 10px;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .sf-popup-close:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        .sf-popup-body {
            padding: 16px 18px 8px;
            color: #475569;
            font-size: 0.9rem;
            line-height: 1.5;
            overflow-y: auto;
            flex: 1;
        }

        .sf-popup-actions {
            padding: 12px 18px 18px;
            display: flex;
            justify-content: flex-end;
        }

        .sf-popup-btn {
            background: linear-gradient(135deg, #14b8a6, #2dd4bf);
            color: #ffffff;
            border: none;
            padding: 10px 18px;
            border-radius: 999px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 10px 18px rgba(20, 184, 166, 0.25);
        }

        .sf-popup-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 24px rgba(20, 184, 166, 0.3);
        }

        /* Dark Mode Support for Popups */
        body.theme-dark .sf-popup-card {
            background: #1e293b !important;
            border-color: #334155 !important;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
        }

        body.theme-dark .sf-popup-header {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
            border-bottom-color: #334155 !important;
        }

        body.theme-dark .sf-popup-title {
            color: #f1f5f9 !important;
        }

        body.theme-dark .sf-popup-icon {
            background: rgba(20, 184, 166, 0.2) !important;
            color: #5eead4 !important;
        }

        body.theme-dark .sf-popup-close {
            color: #94a3b8 !important;
        }

        body.theme-dark .sf-popup-close:hover {
            background: #334155 !important;
            color: #f1f5f9 !important;
        }

        body.theme-dark .sf-popup-body {
            color: #cbd5e1 !important;
            background: #1e293b !important;
        }

        body.theme-dark .sf-popup-btn {
            background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
            box-shadow: 0 10px 18px rgba(20, 184, 166, 0.3) !important;
        }

        body.theme-dark .sf-popup-btn:hover {
            box-shadow: 0 14px 24px rgba(20, 184, 166, 0.4) !important;
        }

        /* Custom styling for Private Server Model Popup */
        .sf-popup-header.ps-model-popup-header {
            background: #1e293b !important;
            border-bottom: 1px solid #0f172a !important;
            color: #ffffff !important;
        }

        body.theme-dark .sf-popup-header.ps-model-popup-header {
            background: #0f172a !important;
            border-bottom-color: #1e293b !important;
            color: #ffffff !important;
        }

        .sf-popup-close.ps-model-popup-header {
            background: #0f172a !important;
            color: #ffffff !important;
        }

        .sf-popup-close.ps-model-popup-header:hover {
            background: #000000 !important;
            color: #ffffff !important;
        }

        body.theme-dark .sf-popup-close.ps-model-popup-header {
            background: #0f172a !important;
            color: #ffffff !important;
        }

        body.theme-dark .sf-popup-close.ps-model-popup-header:hover {
            background: #000000 !important;
            color: #ffffff !important;
        }

        .sf-popup-btn.ps-model-popup-btn {
            background: #1e293b !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }

        .sf-popup-btn.ps-model-popup-btn:hover {
            background: #0f172a !important;
            transform: none !important;
            box-shadow: none !important;
        }

        body.theme-dark .sf-popup-btn.ps-model-popup-btn {
            background: #1e293b !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }

        body.theme-dark .sf-popup-btn.ps-model-popup-btn:hover {
            background: #0f172a !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }

        .sidebar-btn {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 0.75rem 1rem;
            font-weight: 500;
            border-radius: 0.5rem;
            transition: all 0.25s ease-in-out;
            position: relative;
            overflow: hidden;
            color: #94a3b8;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: transparent;
        }

        .sidebar-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--sidebar-hover);
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 0;
        }

        .sidebar-btn {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 0.75rem 1rem;
            font-weight: 500;
            border-radius: 0.5rem;
            transition: all 0.25s ease-in-out;
            position: relative;
            color: #94a3b8;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: transparent;
        }

        .sidebar-btn.active,
        .sidebar-btn:not(.active):hover {
            background-image: linear-gradient(to right, rgba(20, 184, 166, 0.22), rgba(15, 23, 42, 0.1));
            color: #f8fafc;
            font-weight: 600;
            border-left-color: var(--accent);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
        }

        .sidebar-btn:active {
            transform: translateX(2px) scale(0.98);
        }

        .affiliate-card {
            margin: 6px 0 2px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #e2e8f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .affiliate-card-body {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .affiliate-card-title {
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1.2;
            color: #e2e8f0;
        }

        .affiliate-card-subtitle {
            font-size: 0.62rem;
            color: rgba(148, 163, 184, 0.85);
            margin-top: 2px;
        }

        .affiliate-card-btn {
            width: 100%;
            background: linear-gradient(135deg, #22d3ee, #14b8a6);
            color: #0f172a;
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.4px;
            padding: 6px 10px;
            border-radius: 999px;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 6px 14px rgba(20, 184, 166, 0.25);
            white-space: nowrap;
        }

        .affiliate-card-btn:hover {
            transform: translateY(-1px);
        }

        .sidebar-sub-btn {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 3rem;
            font-size: 0.85rem;
            color: #94a3b8;
            transition: all 0.2s;
            cursor: pointer;
            border-left: 3px solid transparent;
        }

        .sidebar-sub-btn:hover,
        .sidebar-sub-btn.active {
            color: #f8fafc;
            background-color: rgba(255, 255, 255, 0.05);
        }

        .sidebar-sub-btn.active {
            color: #ffffff;
            font-weight: 600;
        }

        .upload-box {
            border: 2px dashed var(--border-medium);
            transition: all 0.3s ease;
        }

        .upload-box.prewedding-upload-box {
            border: none;
        }

        .upload-box.prewedding-upload-box.dragging {
            background-color: transparent;
        }

        .upload-box.prewedding-upload-box.dragging .prewedding-upload-surface {
            border-color: var(--accent);
            background-color: var(--accent-light-bg);
        }

        .upload-box.dragging {
            border-color: var(--accent);
            background-color: var(--accent-light-bg);
        }

        .upload-box img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
        }

        textarea,
        input[type="text"],
        select {
            background-color: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            border: 1px solid var(--border-medium);
            color: var(--text-dark);
        }

        textarea:focus,
        input[type="text"]:focus,
        select:focus {
            --tw-ring-color: var(--accent);
            border-color: var(--accent);
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

        #ef-draw-canvas {
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08"/><path d="M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z"/></svg>') 12 12, crosshair;
            touch-action: none;
        }

        .option-btn,
        .checkbox-btn {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border-medium);
            background-color: white;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
        }

        .option-btn.selected,
        .checkbox-btn.selected {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            border-color: transparent;
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 15px var(--accent-glow);
            transform: translateY(-1px);
        }

        .option-btn.selected i,
        .checkbox-btn.selected i {
            color: white ;
            opacity: 1 ;
        }

        .option-btn.selected span,
        .checkbox-btn.selected span {
            color: white ;
        }

        .animate-shimmer {
        }

        .validation-status {
            font-size: 0.75rem;
            margin-top: 0.5rem;
            height: 1rem;
        }

        .result-action-btn {
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(5px);
            color: var(--text-dark);
            padding: 0.5rem;
            border-radius: 9999px;
            transition: background-color 0.2s;
        }

        .result-action-btn:hover {
            background-color: white;
        }

        .result-action-btn.download-btn {
            background-color: var(--accent);
            color: white;
        }

        .result-action-btn.download-btn:hover {
            background-color: var(--accent-hover);
        }

        .magic-tooltip {
            position: absolute;
            bottom: 100%;
            right: 2px;
            margin-bottom: 0.5rem;
            background-image: linear-gradient(to top right, #1e293b, #0f172a);
            border: 1px solid var(--sidebar-border);
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            padding: 0.75rem;
            width: 240px;
            font-weight: 500;
            font-size: 0.8rem;
            line-height: 1.4;
            border-radius: 0.5rem;
            transform: translateY(10px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            z-index: 10;
        }

        .magic-tooltip.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .magic-tooltip .arrow {
            position: absolute;
            bottom: -5px;
            right: 20px;
            width: 10px;
            height: 10px;
            background-color: #1e293b;
            border-bottom: 1px solid var(--sidebar-border);
            border-right: 1px solid var(--sidebar-border);
            transform: rotate(45deg);
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 28px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 28px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: var(--accent);
        }

        input:checked+.slider:before {
            transform: translateX(22px);
        }

        .toggle-switch.vertical {
            width: 28px;
            height: 50px;
        }

        .toggle-switch.vertical .slider:before {
            left: 4px;
            top: 4px;
            bottom: auto;
        }

        .toggle-switch.vertical input:checked+.slider:before {
            transform: translateY(22px);
        }


        .carousel-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem;
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-slide {
            flex: 0 0 100%;
            width: 100%;
            position: relative;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.4);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s;
            z-index: 10;
        }

        .carousel-nav:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

        .carousel-nav.prev {
            left: 8px;
        }

        .carousel-nav.next {
            right: 8px;
        }

        .carousel-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
        }

        .carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            transition: background-color 0.3s;
        }

        .carousel-dot.active {
            background-color: white;
        }

        .crsl-tooltip {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--bg-dark);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.8rem;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            transform-origin: bottom center;
            scale: 0.9;
        }

        .crsl-tooltip.visible {
            opacity: 1;
            pointer-events: auto;
            scale: 1;
        }

        .crsl-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--bg-dark) transparent transparent transparent;
        }


        .chat-bubble {
            position: relative;
            max-width: 80%;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            line-height: 1.5;
            word-wrap: break-word;
            box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.6);
            animation: pop-in 0.3s ease-out;
            backdrop-filter: blur(6px);
        }

        @keyframes pop-in {
            from {
                transform: scale(0.9);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .chat-bubble::after {
            content: "";
            position: absolute;
            top: 10px;
            border-width: 8px;
            border-style: solid;
        }

        .chat-bubble.sufo {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.25);
            color: var(--text-dark);
            border-top-left-radius: 0;
            align-self: flex-start;
            margin-left: 10px;
        }

        .chat-bubble.sufo.notice {
            background-color: #fef3c7;
            border-left: 4px solid #f59e0b;
        }

        .chat-bubble.sufo.notice::after {
            border-color: transparent #fef3c7 transparent transparent;
        }

        .chat-bubble.sufo::after {
            left: -16px;
            border-color: transparent white transparent transparent;
        }

        .chat-bubble.user {
            background: linear-gradient(135deg, #14b8a6, #0ea5e9);
            color: white;
            border-top-right-radius: 0;
            align-self: flex-end;
            margin-right: 10px;
        }

        .chat-bubble.user::after {
            right: -16px;
            border-color: transparent transparent transparent var(--accent);
        }

        #chat-input {
            background-color: white;
            border: 1px solid var(--border-medium);
        }

        #chat-input:focus {
            --tw-ring-color: var(--accent);
            border-color: var(--accent);
        }

        .chat-upload-label {
            cursor: pointer;
            border: 2px dashed var(--accent-text);
            padding: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            gap: 0.5rem;
            border-radius: 0.5rem;
            background-color: rgba(255, 255, 255, 0.5);
            color: var(--accent-text);
        }

        .chat-upload-label:hover {
            background-color: white;
            border-color: var(--accent);
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .typing-indicator span {
            width: 8px;
            height: 8px;
            background-color: var(--text-medium);
            border-radius: 50%;
            animation: bounce 1.2s infinite ease-in-out;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: -0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: -0.4s;
        }

        @keyframes bounce {

            0%,
            80%,
            100% {
                transform: scale(0);
            }

            40% {
                transform: scale(1.0);
            }
        }

        aside nav::-webkit-scrollbar {
            width: 6px;
        }

        aside nav::-webkit-scrollbar-track {
            background: transparent;
        }

        aside nav::-webkit-scrollbar-thumb {
            background: var(--sidebar-border);
            border-radius: 10px;
        }

        aside nav::-webkit-scrollbar-thumb:hover {
            background: #475569;
        }

        aside nav::-webkit-scrollbar-corner {
            background: transparent;
        }

        @media (min-width: 1024px) {
            .desktop-carousel-frame {
                max-width: 400px;
                margin: 1rem auto;
                padding: 0.75rem;
                background-color: white;
                border-radius: 1.5rem;
                border: 1px solid var(--border-medium);
                box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
                overflow: hidden;
            }

            .desktop-carousel-frame .carousel-container {
                border-radius: 1rem;
            }
        }

        .vto-tab-btn,
        .mg-tab-btn,
        .sf-tab-btn,
        .ef-tab-btn,
        .dr-tab-btn {
            padding: 0.625rem 1rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 0.875rem;
            color: #475569;
            transition: all 0.25s ease-in-out;
            border: none;
            background-color: transparent;
            cursor: pointer;
        }

        .vto-tab-btn:hover:not(.active),
        .mg-tab-btn:hover:not(.active),
        .sf-tab-btn:hover:not(.active),
        .ef-tab-btn:hover:not(.active),
        .dr-tab-btn:hover:not(.active) {
            background-color: #e2e8f0;
        }

        .beranda-tab-btn {
            padding: 0.625rem 1rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 0.875rem;
            color: #475569;
            transition: all 0.25s ease-in-out;
            border: none;
            background-color: transparent;
            cursor: pointer;
        }

        .beranda-tab-btn:hover:not(.active) {
            background-color: #e2e8f0;
        }

        .beranda-tab-btn.active {
            background-color: #ffffff;
            color: var(--accent-text);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        .beranda-tab-wrapper {
            display: flex;
        }

        .beranda-tab-wrapper.beranda-tab-attached {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            margin-bottom: 0;
        }

        .beranda-dual-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        #beranda-content-assistant #assistant-chat-card,
        #beranda-content-group #group-chat-card {
            max-width: none;
            width: 100%;
        }

        .assistant-card-modern,
        .group-chat-card-modern {
            border-radius: 1.5rem;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
            box-shadow: 0 20px 45px -30px rgba(15, 23, 42, 0.45);
            overflow: hidden;
        }

        @media (max-width: 1023px) {
            .assistant-card-modern.beranda-card-attached,
            .group-chat-card-modern.beranda-card-attached {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
            }

            .beranda-card-attached .assistant-header,
            .beranda-card-attached .group-chat-header {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
            }
        }

        .assistant-header,
        .group-chat-header {
            background: linear-gradient(135deg, rgba(241, 245, 249, 0.85), rgba(226, 232, 240, 0.6));
            backdrop-filter: blur(10px);
        }

        .assistant-status-badge,
        .group-chat-status-badge {
            font-size: 0.65rem;
            font-weight: 700;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #0ea5e9, #22d3ee);
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
        }

        .assistant-history,
        .group-chat-history-modern {
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.7) 100%);
        }

        .assistant-footer,
        .group-chat-footer {
            background: rgba(248, 250, 252, 0.9);
            backdrop-filter: blur(10px);
        }

        .assistant-input,
        .group-chat-input {
            background: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.35);
            box-shadow: 0 10px 25px -20px rgba(15, 23, 42, 0.35);
        }

        .assistant-input:focus,
        .group-chat-input:focus {
            border-color: rgba(14, 165, 233, 0.5);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
        }

        .assistant-send-btn,
        .group-chat-send-btn {
            box-shadow: 0 10px 20px -12px rgba(20, 184, 166, 0.7);
        }

        .boost-toggle-tooltip {
            position: absolute;
            bottom: 100%;
            right: 0;
            transform: translateY(-8px);
            background: #0f172a;
            color: #ffffff;
            font-size: 10px;
            font-weight: 600;
            padding: 6px 8px;
            border-radius: 8px;
            white-space: nowrap;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
            opacity: 0;
            pointer-events: none;
            z-index: 20;
        }

        .boost-toggle-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 10px;
            border-width: 6px;
            border-style: solid;
            border-color: #0f172a transparent transparent transparent;
        }

        .boost-toggle-tooltip.active {
            opacity: 1;
        }

        .vto-tab-btn.active,
        .mg-tab-btn.active,
        .sf-tab-btn.active,
        .ef-tab-btn.active,
        .dr-tab-btn.active {
            background-color: #ffffff;
            color: var(--accent-text);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        .dr-tab-btn.active {
            background-color: #ffffff;
            color: var(--accent-text);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        #equalizer-icon .eq-bar {
            transform-origin: bottom;
            transition: transform 0.2s ease-out;
            transform: scaleY(0.1);
        }

        .group-chat-bubble {
            position: relative;
            max-width: 80%;
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            word-wrap: break-word;
            animation: pop-in 0.3s ease-out;
            border: 1px solid rgba(148, 163, 184, 0.15);
            backdrop-filter: blur(4px);
        }

        .group-chat-bubble.other {
            background-color: rgba(255, 255, 255, 0.9);
            color: var(--text-dark);
            border-bottom-left-radius: 0.25rem;
            align-self: flex-start;
        }

        .group-chat-bubble.me {
            background: linear-gradient(135deg, #14b8a6, #0ea5e9);
            color: white;
            border-bottom-right-radius: 0.25rem;
            align-self: flex-end;
        }

        .group-chat-bubble .username {
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 0.125rem;
            display: block;
        }

        .group-chat-bubble.other .username {
            color: var(--accent-text);
        }

        .group-chat-bubble.me .username {
            color: #f0fdfa;
        }

        @media (max-width: 640px) {
            #group-chat-name-entry {
                padding: 0.75rem;
            }

            #group-chat-name-entry .w-16.h-16 {
                width: 2.5rem;
                height: 2.5rem;
            }

            #group-chat-name-entry h3 {
                font-size: 1rem;
            }

            #group-chat-name-entry p {
                font-size: 0.8rem;
            }

            #group-chat-name-form {
                max-width: 18rem;
                gap: 0.6rem;
            }

            #group-chat-name-input,
            #group-chat-province-input {
                padding: 0.6rem 0.9rem;
                font-size: 1rem;
            }

            #group-chat-name-form button {
                padding: 0.6rem 0.9rem;
                font-size: 0.85rem;
            }

            #beranda-content-assistant #assistant-chat-card>.flex-shrink-0 {
                padding: 0.5rem;
            }

            #beranda-content-assistant #assistant-chat-card .w-12.h-12 {
                width: 2.25rem;
                height: 2.25rem;
            }

            #beranda-content-assistant #assistant-chat-card h3 {
                font-size: 0.95rem;
            }

            #datetime-display {
                font-size: 0.7rem;
            }

            #music-toggle-btn {
                padding: 0.4rem;
            }

            #chat-history {
                padding: 0.5rem;
                gap: 0.5rem;
            }

            #chat-form {
                gap: 0.4rem;
            }

            #chat-input {
                padding: 0.6rem 0.9rem;
                font-size: 0.85rem;
            }

            #chat-send-btn {
                width: 2.5rem;
                height: 2.5rem;
                padding: 0.5rem;
            }

            #group-chat-interface>.flex-shrink-0 {
                padding: 0.5rem;
            }

            #group-chat-interface .w-12.h-12 {
                width: 2.25rem;
                height: 2.25rem;
            }

            #group-chat-interface h3 {
                font-size: 0.95rem;
            }

            #group-chat-welcome-user {
                font-size: 0.7rem;
            }

            #group-chat-history {
                padding: 0.5rem;
                gap: 0.5rem;
            }

            .group-chat-bubble {
                padding: 0.4rem 0.7rem;
                font-size: 0.8rem;
                max-width: 100%;
            }

            .group-chat-bubble .username {
                font-size: 0.65rem;
            }

            #group-chat-form {
                gap: 0.4rem;
            }

            #group-chat-input {
                padding: 0.6rem 0.9rem;
                font-size: 1rem;
            }

            #group-chat-send-btn {
                width: 2.5rem;
                height: 2.5rem;
                padding: 0.5rem;
            }

            #group-chat-join-btn {
                padding: 0.6rem 0.9rem;
                font-size: 0.8rem;
            }

            .reply-preview-container {
                padding: 6px 10px;
                margin-bottom: 6px;
            }
        }

        #group-chat-history {
            transition: filter 0.2s ease, opacity 0.2s ease;
        }

        .group-chat-history-blurred {
            filter: blur(2px);
            opacity: 0.7;
        }

        .reply-btn-modern {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 9999px;
            font-size: 0.65rem;
            font-weight: 500;
            line-height: 1;
            background-color: rgba(255, 255, 255, 0.15);
            color: rgba(240, 253, 250, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.2s ease;
            opacity: 0.7;
        }

        .reply-btn-modern:hover {
            transform: translateY(-1px);
            opacity: 1;
            background-color: rgba(255, 255, 255, 0.25);
        }

        .online-users-modal .reply-btn-modern {
            background-color: #e2e8f0;
            color: #0f172a;
            border-color: #cbd5f5;
            opacity: 1;
        }

        .online-users-modal .reply-btn-modern:hover {
            background-color: #cbd5e1;
            color: #0f172a;
        }

        .group-chat-bubble.other .reply-btn-modern {
            background-color: rgba(100, 116, 139, 0.08);
            color: rgba(71, 85, 105, 0.7);
            border-color: rgba(100, 116, 139, 0.12);
        }

        .group-chat-bubble.other .reply-btn-modern:hover {
            background-color: rgba(100, 116, 139, 0.15);
            color: rgba(71, 85, 105, 0.9);
        }

        .reply-preview-container {
            display: none;
            background-color: #f8fafc;
            border-left: 3px solid var(--accent);
            padding: 8px 12px;
            margin-bottom: 8px;
            border-radius: 0 8px 8px 0;
            position: relative;
        }

        #group-chat-name-entry {
            display: flex;
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(6px);
            z-index: 5;
        }

        #group-chat-name-entry.hidden {
            display: none ;
        }

        #group-chat-card {
            position: relative;
        }

        @media (min-width: 1024px) {
            .beranda-tab-wrapper {
                display: none ;
            }

            .beranda-dual-grid {
                grid-template-columns: 1fr 1fr;
                align-items: stretch;
            }
        }

        .reply-preview-container.active {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .reply-preview-content {
            flex: 1;
            min-width: 0;
        }

        .reply-preview-user {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--accent);
        }

        .reply-preview-text {
            font-size: 0.8rem;
            color: #64748b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 250px;
        }

        .reply-preview-close {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .reply-preview-close:hover {
            background-color: #e2e8f0;
            color: #475569;
        }

        .reply-quote {
            background-color: rgba(0, 0, 0, 0.1);
            border-left: 2px solid rgba(255, 255, 255, 0.5);
            padding: 4px 8px;
            margin-bottom: 6px;
            border-radius: 0 4px 4px 0;
            font-size: 0.75rem;
            cursor: pointer;
        }

        .group-chat-bubble.other .reply-quote {
            background-color: rgba(0, 0, 0, 0.05);
            border-left-color: var(--accent);
        }


        .online-users-container {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 2px;
        }

        .online-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #10b981, #059669);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.65rem;
            font-weight: 600;
            color: white;
            box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
        }

        .online-indicator .online-dot {
            width: 6px;
            height: 6px;
            background-color: #fff;
            border-radius: 50%;
        }

        @keyframes pulse-online {

            0%,
            100% {
                box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
            }

            50% {
                box-shadow: 0 1px 8px rgba(16, 185, 129, 0.5);
            }
        }

        @keyframes blink-dot {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        .online-users-list-btn {
            background: transparent;
            border: 1px solid #e2e8f0;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 0.6rem;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .online-users-list-btn:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }


        .online-users-modal {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(8px);
            z-index: 1200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .online-users-modal.active {
            display: flex;
        }

        .online-users-modal-content {
            background: white;
            border-radius: 16px;
            width: 100%;
            max-width: 360px;
            max-height: 75vh;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            animation: modal-pop 0.3s ease-out;
        }

        @keyframes modal-pop {
            from {
                transform: scale(0.9);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .online-users-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            border-bottom: 1px solid #e2e8f0;
            background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
        }

        .online-users-modal-header h4 {
            font-size: 1rem;
            font-weight: 700;
            color: #065f46;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .online-users-modal-close {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 4px;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .online-users-modal-close:hover {
            background: #e2e8f0;
        }

        .online-users-list {
            padding: 0.5rem;
            max-height: 50vh;
            overflow-y: auto;
        }

        .online-user-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            transition: background 0.2s;
        }

        .online-user-item:hover {
            background: #f8fafc;
        }

        .online-user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981, #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
        }

        .online-user-info {
            flex: 1;
            min-width: 0;
        }

        .online-user-name {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .online-user-name-text {
            flex: 1;
            min-width: 0;
            font-size: 0.78rem;
            font-weight: 500;
            color: #334155;
            font-family: 'Courier New', monospace;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .online-user-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 2px;
        }

        .online-user-tag {
            display: inline-flex;
            align-items: center;
            padding: 0;
            border-radius: 0;
            font-size: 0.72rem;
            font-weight: 500;
            color: #475569;
            background: transparent;
            border: 0;
            letter-spacing: 0;
        }

        .online-user-tag.secondary {
            color: #94a3b8;
        }

        .online-user-tag+.online-user-tag {
            margin-left: 10px;
        }

        .online-user-tag+.online-user-tag::before {
            content: '•';
            margin-right: 8px;
            color: #cbd5f1;
        }

        .online-user-status {
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            flex-shrink: 0;
            box-shadow: 0 0 0 2px #d1fae5;
        }

        .online-user-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 6px;
            border-radius: 999px;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            margin-left: 6px;
        }

        .online-user-badge.vip {
            background: linear-gradient(135deg, #f59e0b, #fde047);
            color: #78350f;
            border: 1px solid rgba(245, 158, 11, 0.4);
        }


        .sidebar-online-badge {
            display: flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #10b981, #059669);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .sidebar-online-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
        }

        .sidebar-online-dot {
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
        }


        .sidebar-online-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 1001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .sidebar-online-modal.active {
            display: flex;
        }

        .sidebar-online-modal-content {
            background: white;
            border-radius: 16px;
            width: 100%;
            max-width: 360px;
            max-height: 75vh;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
            animation: modal-pop 0.3s ease-out;
        }

        .sidebar-online-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
        }

        .sidebar-online-modal-header h4 {
            font-size: 1rem;
            font-weight: 700;
            color: #047857;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sidebar-online-modal-close {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-online-modal-close:hover {
            background: #e2e8f0;
            color: #334155;
        }

        .sidebar-online-list {
            padding: 0.5rem;
            max-height: 55vh;
            overflow-y: auto;
        }

        .sidebar-online-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            border-radius: 10px;
            transition: background 0.2s;
            border-bottom: 1px solid #f1f5f9;
        }

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

        .sidebar-online-item:hover {
            background: #f8fafc;
        }

        .sidebar-online-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981, #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: white;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .sidebar-online-avatar i {
            color: white;
        }

        .sidebar-online-email {
            flex: 1;
            font-size: 0.78rem;
            font-weight: 500;
            color: #334155;
            font-family: 'Courier New', monospace;
            letter-spacing: 0.3px;
        }

        .sidebar-online-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .sidebar-online-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 2px;
        }

        .sidebar-online-tag {
            display: inline-flex;
            align-items: center;
            padding: 0;
            border-radius: 0;
            font-size: 0.72rem;
            font-weight: 500;
            color: #475569;
            background: transparent;
            border: 0;
            letter-spacing: 0;
        }

        .sidebar-online-tag.secondary {
            color: #94a3b8;
        }

        .sidebar-online-tag+.sidebar-online-tag {
            margin-left: 10px;
        }

        .sidebar-online-tag+.sidebar-online-tag::before {
            content: '•';
            margin-right: 8px;
            color: #cbd5f1;
        }

        .sidebar-online-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .sidebar-online-badge {
            font-size: 0.62rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 999px;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            border: 1px solid transparent;
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
        }

        .sidebar-online-badge.vip {
            background: linear-gradient(135deg, #f59e0b, #fde047);
            color: #78350f;
            border-color: rgba(245, 158, 11, 0.5);
        }

        .sidebar-online-status-dot {
            width: 10px;
            height: 10px;
            background: #10b981;
            border-radius: 50%;
            flex-shrink: 0;
            box-shadow: 0 0 0 3px #d1fae5;
        }

        .reply-quote-user {
            font-weight: 600;
            margin-bottom: 2px;
        }

        .reply-quote-text {
            opacity: 0.9;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
            display: block;
        }

        .custom-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            background-color: var(--border-color);
            border-radius: 8px;
            outline: none;
            cursor: pointer;
            position: relative;
        }

        .custom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background-color: var(--accent);
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            margin-top: -6px;
        }

        .custom-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background-color: var(--accent);
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        .custom-slider::-moz-range-track {
            background-color: var(--border-color);
            height: 8px;
            border-radius: 8px;
        }

        #sidebar-tooltip {
            opacity: 0;
            transform: translateY(-50%) translateX(-15px);
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
        }

        #sidebar-tooltip.visible {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        #sidebar-tooltip .arrow {
            position: absolute;
            top: 50%;
            left: -5px;
            width: 10px;
            height: 10px;
            background-color: #0f172a;
            transform: translateY(-50%) rotate(45deg);
        }

        #ep-canvas-container {
            touch-action: none;
        }

        .ep-handle {
            position: absolute;
            width: 14px;
            height: 14px;
            background-color: white;
            border: 2px solid var(--accent);
            border-radius: 50%;
            z-index: 10;
            pointer-events: auto;
        }

        #ep-resize-frame {
            pointer-events: auto;
            cursor: move;
        }

        #ep-handle-nw {
            top: -7px;
            left: -7px;
            cursor: nwse-resize;
        }

        #ep-handle-n {
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
            cursor: ns-resize;
        }

        #ep-handle-ne {
            top: -7px;
            right: -7px;
            cursor: nesw-resize;
        }

        #ep-handle-w {
            top: 50%;
            left: -7px;
            transform: translateY(-50%);
            cursor: ew-resize;
        }

        #ep-handle-e {
            top: 50%;
            right: -7px;
            transform: translateY(-50%);
            cursor: ew-resize;
        }

        #ep-handle-sw {
            bottom: -7px;
            left: -7px;
            cursor: nesw-resize;
        }

        #ep-handle-s {
            bottom: -7px;
            left: 50%;
            transform: translateX(-50%);
            cursor: ns-resize;
        }

        #ep-handle-se {
            bottom: -7px;
            right: -7px;
            cursor: nwse-resize;
        }

        .ep-zoom-slider {
            -webkit-appearance: none;
            appearance: none;
            height: 8px;
            background-color: var(--border-color);
            border-radius: 8px;
            outline: none;
            cursor: pointer;
            background-image: linear-gradient(to right, var(--accent), var(--accent));
            background-size: 0% 100%;
            background-repeat: no-repeat;
        }

        .ep-zoom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background-color: var(--accent);
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        .ep-zoom-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background-color: var(--accent);
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        #ep-workspace {
            background-color: #f8fafc;
            background-image:
                linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%),
                linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%);
            background-size: 20px 20px;
            background-position: 0 0, 10px 10px;
        }

        #cf-canvas-container {
            touch-action: none;
        }

        .cf-handle {
            position: absolute;
            width: 14px;
            height: 14px;
            background-color: white;
            border: 2px solid var(--accent);
            border-radius: 50%;
            z-index: 10;
            pointer-events: auto;
        }

        #cf-crop-frame {
            pointer-events: auto;
            cursor: move;
        }

        #cf-handle-nw {
            top: -7px;
            left: -7px;
            cursor: nwse-resize;
        }

        #cf-handle-n {
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
            cursor: ns-resize;
        }

        #cf-handle-ne {
            top: -7px;
            right: -7px;
            cursor: nesw-resize;
        }

        #cf-handle-w {
            top: 50%;
            left: -7px;
            transform: translateY(-50%);
            cursor: ew-resize;
        }

        #cf-handle-e {
            top: 50%;
            right: -7px;
            transform: translateY(-50%);
            cursor: ew-resize;
        }

        #cf-handle-sw {
            bottom: -7px;
            left: -7px;
            cursor: nesw-resize;
        }

        #cf-handle-s {
            bottom: -7px;
            left: 50%;
            transform: translateX(-50%);
            cursor: ns-resize;
        }

        #cf-handle-se {
            bottom: -7px;
            right: -7px;
            cursor: nwse-resize;
        }

        .ba-slider-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            user-select: none;
            cursor: ew-resize;
        }

        .ba-image-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
        }

        .ba-slider-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: white;
            cursor: ew-resize;
            z-index: 10;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        }

        .ba-slider-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 32px;
            height: 32px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        @property --angle {
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }

        /* #gg-ratio-options styles removed to match foto-miniatur default style */

        .upgrade-vip-modal {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.7);
            backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 1005;
        }

        .upgrade-vip-modal.active {
            display: flex;
        }

        .upgrade-vip-modal-content {
            background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 14px;
            width: 100%;
            max-width: 420px;
            padding: 16px;
            color: #e2e8f0;
            box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
        }

        .upgrade-vip-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .upgrade-vip-modal-title {
            font-size: 1.05rem;
            font-weight: 800;
            color: #fef3c7;
            text-align: center;
        }

        .upgrade-vip-modal-close {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
        }

        .upgrade-vip-modal-close:hover {
            background: rgba(148, 163, 184, 0.12);
            color: #e2e8f0;
        }

        .upgrade-vip-modal-body {
            font-size: 0.85rem;
            color: rgba(226, 232, 240, 0.9);
            line-height: 1.5;
        }

        .upgrade-vip-hero {
            display: flex;
            justify-content: center;
            margin: 6px 0 10px;
        }

        .vip-badge-pulse {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
            color: #78350f;
            box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
            font-weight: 800;
            font-size: 0.85rem;
        }

        .upgrade-vip-list {
            margin: 10px 0 0;
            display: grid;
            gap: 8px;
        }

        .upgrade-vip-item {
            display: flex;
            gap: 8px;
            align-items: flex-start;
            font-size: 0.85rem;
            color: rgba(226, 232, 240, 0.92);
        }

        .upgrade-vip-icon {
            width: 18px;
            height: 18px;
            border-radius: 6px;
            background: rgba(245, 158, 11, 0.16);
            color: #f59e0b;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .upgrade-vip-modal-actions {
            margin-top: 12px;
        }

        .upgrade-vip-btn {
            width: 100%;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #ffffff;
            font-weight: 700;
            padding: 10px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3), 0 2px 4px -1px rgba(245, 158, 11, 0.1);
        }

        .upgrade-vip-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
        }

        .ramadhan-music-player {
            width: 100%;
            padding: 12px 14px;
            border-radius: 12px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 10px;
            touch-action: none;
            margin-bottom: 0;
            height: 100%;
            justify-content: center;
        }

        .rmp-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .rmp-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .rmp-title {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
            max-width: none;
        }

        .rmp-track-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: #1e293b;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            word-break: break-word;
            line-height: 1.2;
        }

        .rmp-track-subtitle {
            font-size: 0.7rem;
            color: #64748b;
            letter-spacing: 0.3px;
            font-weight: 500;
        }

        .rmp-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rmp-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 5px 8px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #475569;
            transition: all 0.2s ease;
        }

        .rmp-btn:hover {
            transform: translateY(-1px);
            background: #f1f5f9;
            color: #0f172a;
            border-color: #cbd5e1;
        }

        .rmp-btn:active {
            transform: translateY(0);
        }

        .rmp-icon {
            width: 14px;
            height: 14px;
        }

        .rmp-volume {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rmp-volume-icon {
            width: 14px;
            height: 14px;
            color: #94a3b8;
        }

        .rmp-volume input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            border-radius: 999px;
            background: #e2e8f0;
            outline: none;
        }

        .rmp-volume input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #0d9488;
            border: 2px solid #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .rmp-volume input[type="range"]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #0d9488;
            border: 2px solid #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        @media (max-width: 640px) {
            /* Ramadhan Music Player Mobile Styles - Reset to match Sidebar */
            .ramadhan-music-player {
                position: static;
                transform: none;
                width: 100%;
                max-width: none;
                border-radius: 12px;
                margin-bottom: 8px;
            }

            .ramadhan-music-player .rmp-title {
                display: flex;
                width: 100%;
            }

            .ramadhan-music-player .rmp-header {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .ramadhan-music-player .rmp-controls {
                width: 100%;
            }

            .ramadhan-music-player .rmp-volume {
                flex: 1;
            }

            .ramadhan-music-player:not(.minimized) {
                min-width: unset;
            }
        }


/* ============================== */
/* MODERN SPLASH SCREEN           */
/* ============================== */
:root {
    --accent: #14b8a6;
    --accent-glow: rgba(20, 184, 166, 0.4);
}

.splash-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f0f9ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.modern-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.modern-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-bottom-color: #2dd4bf;
    animation: spin 2.6s linear infinite;
}

.modern-ring:nth-child(2) {
    inset: 18%;
    animation: spin 1.8s linear infinite reverse;
    border-left-color: #fcd34d;
    border-right-color: #fcd34d;
}

.modern-core {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #2dd4bf);
    box-shadow: 0 0 16px var(--accent-glow);
    animation: pulse 2s infinite;
}

.modern-core::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: url('https://sulapfoto.com/sflogo.png') center/contain no-repeat;
}

.splash-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #0f172a, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback color */
    text-fill-color: transparent;
}

.splash-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.splash-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.splash-dots span {
    width: 4px;
    height: 4px;
    background-color: #2dd4bf;
    border-radius: 50%;
    display: inline-block;
    animation: splash-bounce 1.4s infinite ease-in-out both;
}

.splash-dots span:nth-child(1) { animation-delay: -0.32s; }
.splash-dots span:nth-child(2) { animation-delay: -0.16s; }


@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1); }
    100% { transform: scale(0.95); }
}

@keyframes pan {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

@keyframes splash-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
/* Custom Scrollbar for Bulk Preview Grid */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(203, 213, 225, 0.8); /* slate-300 */
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.8); /* slate-400 */
}
/* ============================== */
/* THEMES */
/* ============================== */

/* ===== THEME PAGE CARDS ===== */
.theme-page .theme-title { color: #1e293b; }
.theme-page .theme-subtitle { color: #64748b; }
.theme-page .theme-card-title { color: #1e293b; }
.theme-page .theme-card-desc { color: #64748b; }
.theme-card-default { background: #fff; }
.theme-card-dark { background: linear-gradient(145deg, #1e293b, #0f172a); }
.theme-card-glass { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); }
.theme-card-custom { background: #fff; }

/* =========================================== */
/* DARK MODE - Comprehensive                    */
/* =========================================== */
body.theme-dark {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 50%, #111827 100%);
    background-attachment: fixed;
    color: #e2e8f0;
}

/* --- Dark: Core Background Overrides --- */
body.theme-dark .bg-white,
body.theme-dark .bg-white\/80,
body.theme-dark .bg-white\/60,
body.theme-dark .bg-white\/90,
body.theme-dark .bg-white\/50,
body.theme-dark .bg-white\/95 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .bg-slate-50,
body.theme-dark .bg-slate-100,
body.theme-dark .bg-gray-50,
body.theme-dark .bg-gray-100 {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.theme-dark .bg-gradient-to-br.from-white,
body.theme-dark .bg-gradient-to-br.from-white.via-white {
    background: #1e293b !important;
}

/* --- Dark: Text Color Overrides --- */
body.theme-dark .text-slate-800,
body.theme-dark .text-gray-800,
body.theme-dark .text-slate-900,
body.theme-dark .text-gray-900,
body.theme-dark .text-slate-700,
body.theme-dark .text-gray-700 {
    color: #f1f5f9 !important;
}

body.theme-dark .text-slate-500,
body.theme-dark .text-gray-500,
body.theme-dark .text-slate-600,
body.theme-dark .text-gray-600 {
    color: #94a3b8 !important;
}

body.theme-dark .text-slate-400,
body.theme-dark .text-gray-400 {
    color: #64748b !important;
}

body.theme-dark label,
body.theme-dark h1:not(.text-slate-100):not(.text-white),
body.theme-dark h2:not(.text-white),
body.theme-dark h3:not(.text-white),
body.theme-dark h4 {
    color: #f1f5f9 !important;
}

body.theme-dark p {
    color: #cbd5e1;
}

/* --- Dark: Border Overrides --- */
body.theme-dark .border-slate-200,
body.theme-dark .border-gray-200,
body.theme-dark .border-slate-100,
body.theme-dark .border-gray-100,
body.theme-dark .border-slate-300 {
    border-color: #334155 !important;
}

body.theme-dark .border-white\/50,
body.theme-dark .border-white\/20 {
    border-color: rgba(255,255,255,0.08) !important;
}

/* --- Dark: Inputs, Textareas, Selects --- */
body.theme-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-dark textarea,
body.theme-dark select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #64748b !important;
}

body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.2) !important;
}

/* --- Dark: Sidebar --- */
body.theme-dark aside {
    background: linear-gradient(180deg, #0b1120 0%, #111827 100%) !important;
    border-right-color: rgba(255,255,255,0.06) !important;
}

body.theme-dark aside .bg-white\/5 {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}

body.theme-dark aside .bg-slate-800\/80 {
    background-color: rgba(15,23,42,0.8) !important;
    border-color: #1e293b !important;
}

body.theme-dark aside .border-slate-700\/50 {
    border-color: #1e293b !important;
}

body.theme-dark aside .hover\:bg-slate-800:hover {
    background-color: #1e293b !important;
}

body.theme-dark aside #boost-server-select {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #94a3b8 !important;
}

body.theme-dark aside .border-\[var\(--sidebar-border\)\] {
    border-color: rgba(255,255,255,0.06) !important;
}

/* --- Dark: Affiliate Card --- */
body.theme-dark aside .affiliate-card {
    background: rgba(15,23,42,0.6) !important;
    border-color: #1e293b !important;
}

body.theme-dark aside .affiliate-card-title {
    color: #f1f5f9 !important;
}

body.theme-dark aside .affiliate-card-subtitle {
    color: #94a3b8 !important;
}

body.theme-dark aside .affiliate-card-btn {
    color: #e2e8f0 !important;
}

/* --- Dark: System Info Card --- */
body.theme-dark #systeminfo-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark #systeminfo-card .systeminfo-header {
    background: linear-gradient(145deg, rgba(30,41,59,0.98) 0%, rgba(15,23,42,0.98) 100%) !important;
}

body.theme-dark #systeminfo-card .systeminfo-body {
    background: #1e293b !important;
}

body.theme-dark #systeminfo-card .systeminfo-total-number {
    color: #ffffff !important;
}

/* --- Dark: Music Player --- */
body.theme-dark .ramadhan-music-player {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark .rmp-track-title {
    color: #f1f5f9 !important;
}

body.theme-dark .rmp-track-subtitle {
    color: #94a3b8 !important;
}

body.theme-dark .rmp-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.theme-dark .rmp-btn:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark .rmp-volume-icon {
    color: #64748b !important;
}

/* --- Dark: Mobile Header --- */
body.theme-dark header .bg-gradient-to-r,
body.theme-dark .md\:hidden header {
    background: linear-gradient(145deg, rgba(15,23,42,0.98) 0%, rgba(30,41,59,0.98) 100%) !important;
}

/* --- Dark: Mobile Sidebar Toggle --- */
body.theme-dark .ramadhan-sidebar-toggle {
    background: rgba(15,23,42,0.95) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

/* --- Dark: Cards & Content Containers --- */
body.theme-dark .rounded-2xl.border,
body.theme-dark .rounded-xl.border,
body.theme-dark .rounded-3xl.border {
    border-color: #334155 !important;
}

body.theme-dark .shadow-sm,
body.theme-dark .shadow-md,
body.theme-dark .shadow-lg {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* --- Dark: Buttons (non-gradient) --- */
body.theme-dark .bg-slate-200 {
    background-color: #334155 !important;
}

body.theme-dark .hover\:bg-slate-100:hover {
    background-color: #1e293b !important;
}

body.theme-dark .bg-yellow-50 {
    background-color: rgba(234,179,8,0.1) !important;
}

body.theme-dark .bg-teal-50 {
    background-color: rgba(20,184,166,0.1) !important;
}

/* --- Dark: Modals / Overlays --- */
body.theme-dark .bg-white.rounded-2xl,
body.theme-dark .bg-white.rounded-3xl,
body.theme-dark .bg-white\/95 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .bg-slate-900\/70 {
    background-color: rgba(0,0,0,0.7) !important;
}

/* --- Dark: Online Users Modal --- */
body.theme-dark .sidebar-online-modal-content {
    background: #1e293b !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
}

body.theme-dark .sidebar-online-modal-header {
    background: linear-gradient(135deg, #064e3b, #065f46) !important;
    border-bottom-color: #334155 !important;
}

body.theme-dark .sidebar-online-modal-header h4 {
    color: #d1fae5 !important;
}

body.theme-dark .sidebar-online-modal-close {
    color: #94a3b8 !important;
}

body.theme-dark .sidebar-online-modal-close:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark .sidebar-online-item {
    border-bottom-color: #1e293b !important;
}

body.theme-dark .sidebar-online-item:hover {
    background: #0f172a !important;
}

body.theme-dark .sidebar-online-email {
    color: #e2e8f0 !important;
}

body.theme-dark .sidebar-online-tag {
    color: #94a3b8 !important;
}

/* --- Dark: Scrollbar --- */
body.theme-dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

body.theme-dark ::-webkit-scrollbar-thumb {
    background-color: #334155;
}

body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background-color: #475569;
}

/* --- Dark: SuFo GPT --- */
body.theme-dark #sfgpt-app {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark #sfgpt-app > div.sticky {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

body.theme-dark #sfgpt-messages {
    background: #0f172a !important;
}

body.theme-dark #sfgpt-add-image-btn,
body.theme-dark #sfgpt-browse-prompts,
body.theme-dark #sfgpt-tools-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.theme-dark #sfgpt-add-image-btn:hover,
body.theme-dark #sfgpt-browse-prompts:hover,
body.theme-dark #sfgpt-tools-btn:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark #sfgpt-tools-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark #sfgpt-tools-menu .sfgpt-tool-item {
    color: #e2e8f0 !important;
}

body.theme-dark #sfgpt-tools-menu .sfgpt-tool-item:hover {
    background: #334155 !important;
}

/* --- Dark: Theme Page Cards --- */
body.theme-dark .theme-page .theme-title { color: #f1f5f9 !important; }
body.theme-dark .theme-page .theme-subtitle { color: #94a3b8 !important; }
body.theme-dark .theme-page .theme-card-title { color: #f1f5f9 !important; }
body.theme-dark .theme-page .theme-card-desc { color: #94a3b8 !important; }
body.theme-dark .theme-card-default { background: #1e293b !important; border-color: #334155; }
body.theme-dark .theme-card-glass { background: #1e293b !important; }
body.theme-dark .theme-card-custom { background: #1e293b !important; }

/* --- Dark: Verification Overlay --- */
body.theme-dark #verification-overlay {
    background: rgba(15, 23, 42, 0.95) !important;
}

body.theme-dark #verification-overlay .bg-white {
    background-color: #1e293b !important;
    border: 1px solid #334155;
}

body.theme-dark #verification-overlay .bg-gray-50,
body.theme-dark #verification-overlay .bg-slate-50 {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

body.theme-dark #verification-overlay .text-gray-800,
body.theme-dark #verification-overlay h2 {
    color: #f1f5f9 !important;
}

body.theme-dark #verification-overlay .text-gray-500,
body.theme-dark #verification-overlay p {
    color: #94a3b8 !important;
}

body.theme-dark #verification-overlay .text-gray-700 {
    color: #e2e8f0 !important;
}

body.theme-dark #verification-overlay .text-gray-400 {
    color: #64748b !important;
}

body.theme-dark #verification-overlay .placeholder-gray-400::placeholder {
    color: #64748b !important;
}

body.theme-dark #verification-overlay input {
    color: #f1f5f9 !important;
}

body.theme-dark #verification-overlay .ring-white {
    --tw-ring-color: #334155 !important;
}

body.theme-dark #verification-overlay a {
    color: #64748b !important;
}

body.theme-dark #verification-overlay a:hover {
    color: #14b8a6 !important;
}

/* --- Dark: Boost Toggle Home --- */
body.theme-dark .boost-toggle-tooltip {
    color: #94a3b8 !important;
}

/* --- Dark: Boost Top-Up Modal --- */
body.theme-dark #boost-topup-modal {
    background: rgba(15, 23, 42, 0.9) !important;
}

body.theme-dark #boost-topup-modal .bg-white {
    background: #1e293b !important;
}

body.theme-dark #boost-topup-modal .bg-slate-50 {
    background: #0f172a !important;
}

body.theme-dark #boost-topup-modal .text-slate-800,
body.theme-dark #boost-topup-modal h3 {
    color: #f1f5f9 !important;
}

body.theme-dark #boost-topup-modal .text-slate-500,
body.theme-dark #boost-topup-modal .text-slate-600 {
    color: #94a3b8 !important;
}

body.theme-dark #boost-topup-modal .text-slate-700 {
    color: #cbd5e1 !important;
}

body.theme-dark #boost-topup-modal .border-slate-200 {
    border-color: #334155 !important;
}

body.theme-dark #boost-topup-modal .boost-tier-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.theme-dark #boost-topup-modal .boost-tier-card.selected {
    background: #1e293b !important;
    border-color: #14b8a6 !important;
}

body.theme-dark #boost-topup-modal .bg-slate-100 {
    background: #334155 !important;
}

body.theme-dark #boost-topup-modal .shadow-slate-200 {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3) !important;
}

/* --- Dark: PWA Install Modal --- */
body.theme-dark #pwa-install-modal .bg-white\/95 {
    background: #1e293b !important;
}

/* --- Dark: Misc --- */
body.theme-dark .divide-slate-200 > * + * {
    border-color: #334155 !important;
}

body.theme-dark .ring-slate-200 {
    --tw-ring-color: #334155 !important;
}

body.theme-dark [style*="background: linear-gradient(145deg, rgba(51, 65, 85"] {
    background: linear-gradient(145deg, rgba(15,23,42,0.98) 0%, rgba(11,17,32,0.98) 100%) !important;
}

/* --- Dark: CSS Variables Override --- */
body.theme-dark {
    --bg-light: #0f172a;
    --surface: #1e293b;
    --border-color: #334155;
    --border-medium: #475569;
    --text-dark: #f1f5f9;
    --text-medium: #94a3b8;
    --text-light: #64748b;
    --accent-light-bg: rgba(13,148,136,0.15);
}

/* --- Dark: Feature Pages - Option Buttons & Checkbox Buttons --- */
body.theme-dark .option-btn,
body.theme-dark .checkbox-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .option-btn:hover,
body.theme-dark .checkbox-btn:hover {
    border-color: #0d9488 !important;
    background-color: #0f172a !important;
}

body.theme-dark .option-btn i,
body.theme-dark .checkbox-btn i {
    color: #94a3b8 !important;
}

body.theme-dark .option-btn span,
body.theme-dark .checkbox-btn span {
    color: #e2e8f0 !important;
}

body.theme-dark .option-btn.selected,
body.theme-dark .checkbox-btn.selected {
    color: white !important;
}

body.theme-dark .option-btn.selected i,
body.theme-dark .checkbox-btn.selected i,
body.theme-dark .option-btn.selected span,
body.theme-dark .checkbox-btn.selected span {
    color: white !important;
}

/* --- Dark: Feature Pages - Upload Box --- */
body.theme-dark .upload-box {
    border-color: #334155 !important;
    background-color: #0f172a !important;
}

body.theme-dark .upload-box:hover {
    border-color: #475569 !important;
}

body.theme-dark .upload-box.dragging {
    border-color: #0d9488 !important;
    background-color: rgba(13,148,136,0.1) !important;
}

body.theme-dark .upload-box .text-gray-500,
body.theme-dark .upload-box .text-slate-500 {
    color: #64748b !important;
}

/* --- Dark: Feature Pages - Tutorial Button Shadow --- */
body.theme-dark .tutorial-btn {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

body.theme-dark .tutorial-btn:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}

/* --- Dark: Feature Pages - shadow-slate overrides --- */
body.theme-dark .shadow-slate-200,
body.theme-dark .shadow-slate-300\/50 {
    --tw-shadow-color: rgba(0,0,0,0.3) !important;
}

body.theme-dark [class*="shadow-slate-200"] {
    --tw-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 4px 12px rgba(0,0,0,0.3) !important;
}

body.theme-dark [class*="shadow-slate-300"] {
    --tw-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* --- Dark: Feature Pages - Custom shadow expressions --- */
body.theme-dark [class*="shadow-\[0_8px_30px"] {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
}

/* --- Dark: Feature Pages - Ring Colors --- */
body.theme-dark .ring-slate-200,
body.theme-dark .ring-1.ring-slate-200 {
    --tw-ring-color: #334155 !important;
}

body.theme-dark .focus\:ring-teal-200:focus {
    --tw-ring-color: rgba(13,148,136,0.3) !important;
}

body.theme-dark .focus\:ring-teal-500:focus {
    --tw-ring-color: rgba(13,148,136,0.4) !important;
}

/* --- Dark: Feature Pages - bg-white/70 --- */
body.theme-dark .bg-white\/70 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* --- Dark: Feature Pages - bg-slate-200/300 misc --- */
body.theme-dark .bg-slate-300 {
    background-color: #475569 !important;
}

/* --- Dark: Feature Pages - hover:bg-slate-50 --- */
body.theme-dark .hover\:bg-slate-50:hover {
    background-color: #1e293b !important;
}

/* --- Dark: Feature Pages - Gradient Placeholders --- */
body.theme-dark .bg-gradient-to-tr.from-slate-100 {
    background: #1e293b !important;
}

body.theme-dark .bg-gradient-to-br.from-slate-100 {
    background: #1e293b !important;
}

/* --- Dark: Feature Pages - Colored Icon Backgrounds (Addons etc.) --- */
body.theme-dark .bg-yellow-100 {
    background-color: rgba(234,179,8,0.15) !important;
}

body.theme-dark .bg-teal-100 {
    background-color: rgba(20,184,166,0.15) !important;
}

body.theme-dark .bg-pink-100 {
    background-color: rgba(236,72,153,0.15) !important;
}

body.theme-dark .bg-indigo-100 {
    background-color: rgba(99,102,241,0.15) !important;
}

body.theme-dark .bg-blue-100 {
    background-color: rgba(59,130,246,0.15) !important;
}

body.theme-dark .bg-violet-100 {
    background-color: rgba(139,92,246,0.15) !important;
}

body.theme-dark .bg-orange-100 {
    background-color: rgba(249,115,22,0.15) !important;
}

body.theme-dark .bg-emerald-100 {
    background-color: rgba(16,185,129,0.15) !important;
}

body.theme-dark .bg-red-100 {
    background-color: rgba(239,68,68,0.15) !important;
}

body.theme-dark .bg-cyan-100 {
    background-color: rgba(6,182,212,0.15) !important;
}

body.theme-dark .bg-rose-100 {
    background-color: rgba(244,63,94,0.15) !important;
}

body.theme-dark .bg-amber-100 {
    background-color: rgba(245,158,11,0.15) !important;
}

body.theme-dark .bg-green-100 {
    background-color: rgba(34,197,94,0.15) !important;
}

body.theme-dark .bg-purple-100 {
    background-color: rgba(168,85,247,0.15) !important;
}

/* --- Dark: Feature Pages - Status badges bg-slate-100 text-slate-500 --- */
body.theme-dark .bg-slate-100.text-slate-500 {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

/* --- Dark: Feature Pages - border-dashed --- */
body.theme-dark .border-dashed {
    border-color: #334155 !important;
}

/* --- Dark: Feature Pages - Accent bg overrides --- */
body.theme-dark .bg-teal-50 {
    background-color: rgba(20,184,166,0.1) !important;
}

body.theme-dark .bg-blue-50 {
    background-color: rgba(59,130,246,0.1) !important;
}

body.theme-dark .bg-red-50 {
    background-color: rgba(239,68,68,0.1) !important;
}

body.theme-dark .bg-green-50 {
    background-color: rgba(34,197,94,0.1) !important;
}

body.theme-dark .bg-purple-50 {
    background-color: rgba(168,85,247,0.1) !important;
}

body.theme-dark .bg-orange-50 {
    background-color: rgba(249,115,22,0.1) !important;
}

body.theme-dark .bg-pink-50 {
    background-color: rgba(236,72,153,0.1) !important;
}

body.theme-dark .bg-indigo-50 {
    background-color: rgba(99,102,241,0.1) !important;
}

body.theme-dark .bg-violet-50 {
    background-color: rgba(139,92,246,0.1) !important;
}

body.theme-dark .bg-emerald-50 {
    background-color: rgba(16,185,129,0.1) !important;
}

body.theme-dark .bg-amber-50 {
    background-color: rgba(245,158,11,0.1) !important;
}

body.theme-dark .bg-cyan-50 {
    background-color: rgba(6,182,212,0.1) !important;
}

/* --- Dark: Feature Pages - border-teal-100/200, border-white/50 in cards --- */
body.theme-dark .border-teal-100,
body.theme-dark .border-teal-200 {
    border-color: rgba(13,148,136,0.25) !important;
}

body.theme-dark .hover\:border-teal-200:hover {
    border-color: rgba(13,148,136,0.5) !important;
}

/* --- Dark: Feature Pages - Magic Prompt / AI assist buttons --- */
body.theme-dark .bg-white\/90 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .hover\:bg-teal-50:hover {
    background-color: rgba(13,148,136,0.15) !important;
}

body.theme-dark .hover\:bg-red-50:hover {
    background-color: rgba(239,68,68,0.15) !important;
}

/* --- Dark: Feature Pages - Focus states --- */
body.theme-dark .focus\:bg-white:focus {
    background-color: #1e293b !important;
}

body.theme-dark .focus\:border-teal-500:focus {
    border-color: #0d9488 !important;
}

/* --- Dark: Feature Pages - Result placeholder gradient circle --- */
body.theme-dark .bg-gradient-to-tr {
    background: #1e293b !important;
}

/* --- Dark: Feature Pages - Slider range appearance --- */
body.theme-dark input[type="range"] {
    background-color: #334155 !important;
}

body.theme-dark input[type="range"]::-webkit-slider-thumb {
    border-color: #1e293b !important;
}

/* --- Dark: Feature Pages - Generate button disabled states --- */
body.theme-dark .disabled\:\!bg-slate-200:disabled {
    background-color: #1e293b !important;
    color: #475569 !important;
}

/* --- Dark: Feature Pages - w-px dividers --- */
body.theme-dark .w-px {
    background-color: #334155 !important;
}

/* --- Dark: Feature Pages - border-slate-50 --- */
body.theme-dark .border-slate-50 {
    border-color: #1e293b !important;
}

/* --- Dark: Feature Pages - Tooltip / tooltips --- */
body.theme-dark .bg-slate-800 {
    background-color: #0f172a !important;
}

/* --- Dark: Feature Pages - focus:ring on focus --- */
body.theme-dark .focus\:ring:focus {
    --tw-ring-color: rgba(13,148,136,0.3) !important;
}

/* --- Dark: Feature Pages - border-slate-700/50 in generate buttons --- */
body.theme-dark .border-slate-700\/50 {
    border-color: #334155 !important;
}

/* --- Dark: Feature Pages - text-slate-300 in results --- */
body.theme-dark .text-slate-300 {
    color: #475569 !important;
}

/* --- Dark: Feature Pages - Addons Info Modal --- */
body.theme-dark .addons-card-info-btn {
    opacity: 0.9;
}

/* --- Dark: Feature Pages - Tab Buttons (dr-tab-btn, vto-tab-btn, etc.) --- */
body.theme-dark .vto-tab-btn,
body.theme-dark .mg-tab-btn,
body.theme-dark .sf-tab-btn,
body.theme-dark .ef-tab-btn,
body.theme-dark .dr-tab-btn,
body.theme-dark .beranda-tab-btn {
    color: #94a3b8 !important;
}

body.theme-dark .vto-tab-btn:hover:not(.active),
body.theme-dark .mg-tab-btn:hover:not(.active),
body.theme-dark .sf-tab-btn:hover:not(.active),
body.theme-dark .ef-tab-btn:hover:not(.active),
body.theme-dark .dr-tab-btn:hover:not(.active),
body.theme-dark .beranda-tab-btn:hover:not(.active) {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.theme-dark .vto-tab-btn.active,
body.theme-dark .mg-tab-btn.active,
body.theme-dark .sf-tab-btn.active,
body.theme-dark .ef-tab-btn.active,
body.theme-dark .dr-tab-btn.active,
body.theme-dark .beranda-tab-btn.active {
    background-color: #1e293b !important;
    color: #2dd4bf !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}

/* --- Dark: Feature Pages - Tab Container (bg-slate-100/80) --- */
body.theme-dark .bg-slate-100\/80 {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

/* --- Dark: Feature Pages - bg-slate-50/50 --- */
body.theme-dark .bg-slate-50\/50 {
    background-color: rgba(15,23,42,0.5) !important;
}

/* --- Dark: Feature Pages - shadow-inner (textareas) --- */
body.theme-dark .shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* --- Dark: Feature Pages - group-hover:bg-slate-50 --- */
body.theme-dark .group:hover .group-hover\:bg-slate-50 {
    background-color: #1e293b !important;
}

/* --- Dark: Feature Pages - hover:border-teal-400 --- */
body.theme-dark .hover\:border-teal-400:hover {
    border-color: #0d9488 !important;
}

/* --- Dark: Feature Pages - hover:bg-teal-50 for upload areas --- */
body.theme-dark .group:hover .group-hover\:border-teal-400 {
    border-color: #0d9488 !important;
}

body.theme-dark .group:hover .group-hover\:text-teal-600 {
    color: #2dd4bf !important;
}

/* --- Dark: Feature Pages - prewedding upload surface --- */
body.theme-dark .prewedding-upload-surface {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

body.theme-dark .group:hover .prewedding-upload-surface {
    background-color: #0f172a !important;
    border-color: #0d9488 !important;
}

/* --- Dark: Feature Pages - contenteditable divs --- */
body.theme-dark [contenteditable="true"] {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* --- Dark: Feature Pages - bg-red-500/90 remove buttons --- */
body.theme-dark .bg-red-500\/90 {
    background-color: rgba(239,68,68,0.9) !important;
}

/* --- Dark: Feature Pages - Toggle Switch bg-slate-200 in peer --- */
body.theme-dark .peer ~ div.bg-slate-200 {
    background-color: #334155 !important;
}

body.theme-dark div.bg-slate-200 {
    background-color: #334155 !important;
}

/* --- Dark: Feature Pages - Slider accent text (result count display) --- */
body.theme-dark .font-bold.text-slate-700 {
    color: #e2e8f0 !important;
}

/* --- Dark: Feature Pages - border-slate-200/50 --- */
body.theme-dark .border-slate-200\/50 {
    border-color: #1e293b !important;
}

/* --- Dark: Feature Pages - bg-slate-900/5 image previews --- */
body.theme-dark .bg-slate-900\/5 {
    background-color: rgba(0,0,0,0.15) !important;
}

/* --- Dark: Feature Pages - disabled:!bg-none disabled:!bg-slate-200 --- */
body.theme-dark .disabled\:\!bg-none:disabled {
    background-image: none !important;
}

/* --- Dark: Feature Pages - hover:bg-slate-800 buttons --- */
body.theme-dark .hover\:bg-slate-800:hover {
    background-color: #0f172a !important;
}

/* --- Dark: Feature Pages - text-slate-600 in option buttons & labels --- */
body.theme-dark .text-slate-600 {
    color: #94a3b8 !important;
}

/* --- Dark: Feature Pages - Disabled button text --- */
body.theme-dark .disabled\:text-slate-400:disabled {
    color: #475569 !important;
}

body.theme-dark .disabled\:border-slate-200:disabled {
    border-color: #1e293b !important;
}

/* --- Dark: Feature Pages - Chat Group & My Favorite bg --- */
body.theme-dark .bg-white\/95.rounded-3xl,
body.theme-dark .bg-white\/80.rounded-3xl {
    background-color: #1e293b !important;
}

/* --- Dark: Feature Pages - ring-black/5 --- */
body.theme-dark .ring-black\/5 {
    --tw-ring-color: rgba(255,255,255,0.05) !important;
}

/* --- Dark: Feature Pages - Colored rings (rose, teal, etc.) --- */
body.theme-dark .ring-rose-100 {
    --tw-ring-color: rgba(244,63,94,0.2) !important;
}

body.theme-dark .ring-teal-100 {
    --tw-ring-color: rgba(20,184,166,0.2) !important;
}

/* --- Dark: Feature Pages - hover:bg-slate-100 --- */
body.theme-dark .hover\:bg-slate-100:hover {
    background-color: #1e293b !important;
}

/* --- Dark: Feature Pages - hover:bg-slate-200 --- */
body.theme-dark .hover\:bg-slate-200:hover {
    background-color: #334155 !important;
}

/* --- Dark: Feature Pages - Colored *-50 backgrounds (rose, etc.) --- */
body.theme-dark .bg-rose-50 {
    background-color: rgba(244,63,94,0.1) !important;
}

body.theme-dark .hover\:bg-rose-100:hover {
    background-color: rgba(244,63,94,0.15) !important;
}

/* --- Dark: Feature Pages - Placeholder text in inputs --- */
body.theme-dark .placeholder\:text-slate-400::placeholder {
    color: #475569 !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #475569 !important;
}

/* --- Dark: Feature Pages - focus:outline-none focus:ring-2 focus:ring-teal-500/30 --- */
body.theme-dark .focus\:ring-teal-500\/30:focus {
    --tw-ring-color: rgba(13,148,136,0.3) !important;
}

/* --- Dark: Feature Pages - bg-white with border in inputs (nested in dark cards) --- */
body.theme-dark .bg-white.rounded-lg,
body.theme-dark .bg-white.rounded-xl {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* --- Dark: Feature Pages - hover:bg-red-700 remove buttons --- */
body.theme-dark .hover\:bg-red-700:hover {
    background-color: #b91c1c !important;
}

/* --- Dark: Feature Pages - text-gray-500 in upload placeholders --- */
body.theme-dark .text-gray-500 {
    color: #64748b !important;
}

/* --- Dark: Feature Pages - disabled:opacity-30 --- */
body.theme-dark .disabled\:opacity-30:disabled {
    opacity: 0.3 !important;
}

/* --- Dark: Feature Pages - accent-teal-600 for range sliders --- */
body.theme-dark input[type="range"]::-webkit-slider-runnable-track {
    background-color: #334155 !important;
}

/* --- Dark: Feature Pages - hover:shadow-xl --- */
body.theme-dark .hover\:shadow-xl:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

/* --- Dark: .card component --- */
body.theme-dark .card {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* --- Dark: Group Chat & Assistant Card --- */
body.theme-dark .group-chat-card-modern,
body.theme-dark .assistant-card-modern {
    background: linear-gradient(160deg, rgba(30,41,59,0.98) 0%, rgba(15,23,42,0.96) 100%) !important;
    border-color: rgba(51,65,85,0.5) !important;
}

body.theme-dark .group-chat-header,
body.theme-dark .assistant-header {
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,41,59,0.6)) !important;
    backdrop-filter: blur(10px);
    border-bottom-color: #334155 !important;
}

body.theme-dark .group-chat-footer,
body.theme-dark .assistant-footer {
    background: rgba(15,23,42,0.9) !important;
    backdrop-filter: blur(10px);
    border-top-color: #334155 !important;
}

body.theme-dark .group-chat-input,
body.theme-dark .assistant-input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark .group-chat-input:focus,
body.theme-dark .assistant-input:focus {
    border-color: rgba(14,165,233,0.5) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15) !important;
}

/* --- Dark: border-gray-200/300 --- */
body.theme-dark .border-gray-200 {
    border-color: #334155 !important;
}

body.theme-dark .border-gray-300 {
    border-color: #334155 !important;
}

/* --- Dark: hover:bg-gray-200 --- */
body.theme-dark .hover\:bg-gray-200:hover {
    background-color: #334155 !important;
}

/* --- Dark: disabled:bg-slate-300 --- */
body.theme-dark .disabled\:bg-slate-300:disabled {
    background-color: #1e293b !important;
    color: #475569 !important;
}

/* --- Dark: select elements with bg-white border-gray-300 --- */
body.theme-dark select.bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* --- Dark: Group chat history area --- */
body.theme-dark .group-chat-history-modern {
    background: #0f172a !important;
}

/* --- Dark: Reply preview container --- */
body.theme-dark .reply-preview-container {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* --- Dark: Online users modal in chat --- */
body.theme-dark .online-users-modal-content {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* --- Dark: Chat Bubbles (Assistant & Group Chat) --- */
body.theme-dark .assistant-history,
body.theme-dark .group-chat-history-modern {
    background: #0f172a !important;
}

body.theme-dark .chat-bubble.sufo {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .chat-bubble.sufo::after {
    border-color: transparent #1e293b transparent transparent;
}

body.theme-dark .chat-bubble.sufo.notice {
    background-color: rgba(245,158,11,0.15) !important;
    border-left-color: #f59e0b !important;
}

body.theme-dark .chat-bubble.sufo.notice::after {
    border-color: transparent rgba(245,158,11,0.15) transparent transparent;
}

body.theme-dark .chat-bubble.user {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.theme-dark .chat-bubble.user::after {
    border-color: transparent transparent transparent #334155;
}

body.theme-dark .group-chat-bubble.other,
body.theme-dark .group-chat-bubble.me {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.theme-dark .group-chat-bubble .username {
    color: #cbd5e1 !important;
}

body.theme-dark .group-chat-bubble .text-xs.opacity-60 {
    color: #94a3b8 !important;
}

/* --- Dark: Footer --- */
body.theme-dark footer {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

body.theme-dark footer #footer-text {
    color: #cbd5e1 !important;
}

body.theme-dark footer .text-slate-700,
body.theme-dark footer .text-slate-500 {
    color: #94a3b8 !important;
}

body.theme-dark footer img {
    opacity: 0.85;
}

/* --- Dark: VIP Badge --- */
body.theme-dark .sf-vip-badge {
    background: rgba(51,65,85,0.5) !important;
    border-color: rgba(71,85,105,0.6) !important;
    color: #f1f5f9 !important;
}

body.theme-dark .sf-vip-badge--footer {
    background: rgba(51,65,85,0.4) !important;
    border-color: rgba(71,85,105,0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.08) !important;
}


/* =========================================== */
/* GLASS MODE - Comprehensive (Light Pastel)    */
/* =========================================== */
body.theme-glass {
    background: 
        radial-gradient(ellipse at 0% 0%, hsla(253, 55%, 88%, 1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, hsla(25, 70%, 88%, 1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, hsla(210, 60%, 88%, 1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, hsla(280, 40%, 92%, 0.5) 0%, transparent 70%);
    background-color: #f0f0f5;
    background-attachment: fixed;
    background-size: cover;
    color: #334155;
}

/* --- Glass: Sidebar - Frosted Glass --- */
body.theme-glass aside {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 2px 0 32px rgba(0, 0, 0, 0.08), inset 0 0 60px rgba(255, 255, 255, 0.15);
}

body.theme-glass aside nav button.sidebar-btn {
    color: #475569 !important;
    border: 1px solid transparent;
}

body.theme-glass aside nav button.sidebar-btn i {
    color: #64748b !important;
    filter: none !important;
}

body.theme-glass aside nav button.sidebar-btn:hover,
body.theme-glass aside nav button.sidebar-btn.active {
    background: rgba(255, 255, 255, 0.7) !important;
    background-image: none !important;
    color: #334155 !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

body.theme-glass aside nav button.sidebar-btn.active {
    color: #0d9488 !important;
}

body.theme-glass aside nav button.sidebar-btn.active i {
    color: #0d9488 !important;
    filter: none !important;
}

/* --- Glass: Content Cards --- */
body.theme-glass .bg-white,
body.theme-glass .bg-white\/80,
body.theme-glass .bg-white\/60,
body.theme-glass .bg-white\/90,
body.theme-glass .bg-white\/50,
body.theme-glass .bg-white\/95 {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #1e293b;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.06);
}

/* --- Glass: Text Adjustments --- */
body.theme-glass .text-slate-800, 
body.theme-glass .text-gray-800,
body.theme-glass .text-slate-700,
body.theme-glass .text-gray-700,
body.theme-glass .text-slate-900,
body.theme-glass .text-gray-900,
body.theme-glass label,
body.theme-glass h1:not(.text-slate-100):not(.text-white), 
body.theme-glass h2:not(.text-white), 
body.theme-glass h3:not(.text-white),
body.theme-glass h4 {
    color: #334155 !important;
    text-shadow: none;
}

body.theme-glass .text-slate-500,
body.theme-glass .text-gray-500,
body.theme-glass .text-slate-600,
body.theme-glass .text-gray-600 {
    color: #64748b !important;
}

body.theme-glass .bg-slate-50,
body.theme-glass .bg-slate-100,
body.theme-glass .bg-gray-50,
body.theme-glass .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #1e293b;
}

/* --- Glass: Inputs --- */
body.theme-glass input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-glass textarea,
body.theme-glass select {
    background-color: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #334155 !important;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

body.theme-glass input::placeholder,
body.theme-glass textarea::placeholder {
    color: #64748b !important;
}

body.theme-glass input:focus,
body.theme-glass textarea:focus,
body.theme-glass select:focus {
    border-color: rgba(13,148,136,0.5) !important;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.15) !important;
}

/* --- Glass: Sidebar Components --- */
body.theme-glass aside #user-profile-section {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

body.theme-glass aside #user-profile-section .text-slate-200 {
    color: #334155 !important;
}

body.theme-glass aside #user-profile-section .text-slate-400 {
    color: #64748b !important;
}

body.theme-glass aside #user-profile-section button#toggle-email-visibility:hover {
    color: #334155 !important;
}

body.theme-glass aside .bg-slate-800\/80 {
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-glass aside .bg-slate-800\/80 .text-slate-100,
body.theme-glass aside .bg-slate-800\/80 .text-slate-300 {
    color: #334155 !important;
}

body.theme-glass aside .bg-slate-800\/80 .text-slate-400 {
    color: #64748b !important;
}

body.theme-glass aside .bg-slate-800\/80 .hover\:bg-slate-800:hover {
    background-color: rgba(255, 255, 255, 0.55) !important;
}

body.theme-glass aside .border-slate-700\/50 {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

body.theme-glass aside #boost-server-select {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #334155 !important;
}

/* --- Glass: Sidebar Header & Dividers --- */
body.theme-glass aside .bg-white\/5 {
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px -3px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-glass aside h1.text-slate-100 {
    background: linear-gradient(to right, #334155, #64748b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
}

body.theme-glass aside p.text-slate-400,
body.theme-glass aside span.text-slate-400 {
    color: #64748b !important;
    font-weight: 600;
}

body.theme-glass aside .border-\[var\(--sidebar-border\)\] {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

body.theme-glass aside h4.text-slate-500 {
    color: #475569 !important;
}

/* VIP Badge */
.sf-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 1px solid #f59e0b;
    color: #78350f;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.sf-vip-badge--mini {
    padding: 1px 6px;
    font-size: 8px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.sf-vip-badge--footer {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* --- Glass: Chat (Glass Background) --- */
body.theme-glass .assistant-history,
body.theme-glass .group-chat-history-modern {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.theme-glass .chat-bubble.sufo {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.theme-glass .chat-bubble.sufo::after {
    border-color: transparent rgba(255, 255, 255, 0.55) transparent transparent;
}

body.theme-glass .chat-bubble.user {
    background: rgba(13, 148, 136, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 148, 136, 0.3) !important;
    color: #0f766e !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

body.theme-glass .chat-bubble.user::after {
    border-color: transparent transparent transparent rgba(13, 148, 136, 0.15);
}

body.theme-glass .chat-bubble.sufo.notice {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-left: 4px solid rgba(245, 158, 11, 0.6) !important;
    color: #92400e !important;
}

body.theme-glass .group-chat-bubble.other,
body.theme-glass .group-chat-bubble.me {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #334155 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.theme-glass .group-chat-bubble .username {
    color: #0f766e !important;
    font-weight: 600;
}

body.theme-glass .group-chat-bubble .text-xs.opacity-60 {
    color: #64748b !important;
    opacity: 0.8 !important;
}

/* --- Glass: Footer (Glass) --- */
body.theme-glass footer {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

body.theme-glass footer #footer-text {
    color: #475569 !important;
}

body.theme-glass footer .text-slate-700,
body.theme-glass footer .text-slate-500 {
    color: #64748b !important;
}

body.theme-glass footer img {
    opacity: 0.85;
}

/* --- Glass: Affiliate Card --- */
body.theme-glass aside .affiliate-card {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #334155 !important;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

body.theme-glass aside .affiliate-card-title { color: #334155 !important; }
body.theme-glass aside .affiliate-card-subtitle { color: #64748b !important; }
body.theme-glass aside .affiliate-card-btn { color: #334155 !important; }

/* --- Glass: System Info Card --- */
body.theme-glass #systeminfo-card {
    background: rgba(255,255,255,0.35) !important;
    border-color: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px);
}

body.theme-glass #systeminfo-card .systeminfo-header {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
}

body.theme-glass #systeminfo-card .systeminfo-header h2,
body.theme-glass #systeminfo-card .systeminfo-header .text-white,
body.theme-glass #systeminfo-card .systeminfo-header .text-white\/80 {
    color: #334155 !important;
}

body.theme-glass #systeminfo-card .systeminfo-header .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.45) !important;
    color: #334155 !important;
}

body.theme-glass #systeminfo-card .systeminfo-header .bg-white\/10 i {
    color: #0f766e !important;
}

body.theme-glass #systeminfo-card .systeminfo-body {
    background: rgba(255,255,255,0.3) !important;
}

body.theme-glass #systeminfo-card .systeminfo-total-number {
    color: #334155 !important;
}

/* --- Glass: Music Player --- */
body.theme-glass .ramadhan-music-player {
    background: rgba(255,255,255,0.4) !important;
    border-color: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px);
}

body.theme-glass .rmp-track-title {
    color: #334155 !important;
}

body.theme-glass .rmp-btn {
    background: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.6) !important;
    color: #475569 !important;
}

body.theme-glass .rmp-btn:hover {
    background: rgba(255,255,255,0.7) !important;
    color: #1e293b !important;
}

/* --- Glass: Mobile Header --- */
body.theme-glass header [style*="background: linear-gradient(145deg"] {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass header [style*="background: linear-gradient(145deg"] .text-white {
    color: #334155 !important;
}

body.theme-glass header [style*="background: linear-gradient(145deg"] .text-white\/80 {
    color: #64748b !important;
}

/* --- Glass: Mobile Sidebar Toggle --- */
body.theme-glass .ramadhan-sidebar-toggle {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255,255,255,0.6) !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.06) !important;
}

body.theme-glass .ramadhan-sidebar-toggle:hover {
    background: rgba(255,255,255,0.7) !important;
}

body.theme-glass .ramadhan-toggle-bar {
    background: rgba(100,116,139,0.5) !important;
}

body.theme-glass .ramadhan-toggle-icon {
    color: #475569 !important;
}

body.theme-glass .ramadhan-sidebar-toggle:hover .ramadhan-toggle-bar {
    background: #0d9488 !important;
}

body.theme-glass .ramadhan-sidebar-toggle:hover .ramadhan-toggle-icon {
    color: #0d9488 !important;
}

/* --- Glass: SuFo GPT --- */
body.theme-glass #sfgpt-app {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(16px);
}

body.theme-glass #sfgpt-app > div.sticky {
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-glass #sfgpt-messages {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.04) 100%) !important;
}

body.theme-glass #sfgpt-app .bg-white\/80,
body.theme-glass #sfgpt-app .bg-white\/90,
body.theme-glass #sfgpt-app .bg-white {
    border-color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-glass #sfgpt-add-image-btn,
body.theme-glass #sfgpt-browse-prompts,
body.theme-glass #sfgpt-tools-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #334155 !important;
}

body.theme-glass #sfgpt-add-image-btn:hover,
body.theme-glass #sfgpt-browse-prompts:hover,
body.theme-glass #sfgpt-tools-btn:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

body.theme-glass #sfgpt-tools-menu {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.theme-glass #sfgpt-tools-menu .sfgpt-tool-item {
    color: #334155 !important;
}

body.theme-glass #sfgpt-tools-menu .sfgpt-tool-item:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

body.theme-glass #sfgpt-app .text-slate-500,
body.theme-glass #sfgpt-app .text-slate-700,
body.theme-glass #sfgpt-app .text-slate-800,
body.theme-glass #sfgpt-app .text-slate-900 {
    color: #475569 !important;
}

/* --- Glass: Online Users Modal --- */
body.theme-glass .sidebar-online-modal-content {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.theme-glass .sidebar-online-modal-header {
    background: linear-gradient(135deg, rgba(236,253,245,0.8), rgba(209,250,229,0.8)) !important;
    border-bottom-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .sidebar-online-item {
    border-bottom-color: rgba(255,255,255,0.4) !important;
}

body.theme-glass .sidebar-online-item:hover {
    background: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Borders --- */
body.theme-glass .border-slate-200,
body.theme-glass .border-gray-200,
body.theme-glass .border-slate-100 {
    border-color: rgba(255,255,255,0.45) !important;
}

/* --- Glass: Theme Page Cards --- */
body.theme-glass .theme-page .theme-title { color: #334155 !important; }
body.theme-glass .theme-page .theme-subtitle { color: #64748b !important; }
body.theme-glass .theme-page .theme-card-title { color: #334155 !important; }
body.theme-glass .theme-page .theme-card-desc { color: #64748b !important; }
body.theme-glass .theme-card-default { 
    background: rgba(255,255,255,0.45) !important; 
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.5) !important;
}
body.theme-glass .theme-card-glass { 
    background: rgba(255,255,255,0.35) !important; 
    backdrop-filter: blur(16px);
}
body.theme-glass .theme-card-custom { 
    background: rgba(255,255,255,0.45) !important;
    backdrop-filter: blur(16px); 
}

/* --- Glass: Feature Pages - Option Buttons & Checkbox Buttons --- */
body.theme-glass .option-btn,
body.theme-glass .checkbox-btn {
    background-color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: #334155 !important;
    backdrop-filter: blur(8px);
}

body.theme-glass .option-btn:hover,
body.theme-glass .checkbox-btn:hover {
    background-color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

body.theme-glass .option-btn i,
body.theme-glass .checkbox-btn i {
    color: #475569 !important;
}

body.theme-glass .option-btn span,
body.theme-glass .checkbox-btn span {
    color: #334155 !important;
}

body.theme-glass .option-btn.selected,
body.theme-glass .checkbox-btn.selected {
    color: white !important;
}

body.theme-glass .option-btn.selected i,
body.theme-glass .checkbox-btn.selected i,
body.theme-glass .option-btn.selected span,
body.theme-glass .checkbox-btn.selected span {
    color: white !important;
}

/* --- Glass: Feature Pages - Upload Box --- */
body.theme-glass .upload-box {
    border-color: rgba(255,255,255,0.5) !important;
    background-color: rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(12px);
}

body.theme-glass .upload-box:hover {
    background-color: rgba(255,255,255,0.45) !important;
}

body.theme-glass .upload-box.dragging {
    border-color: rgba(13,148,136,0.5) !important;
    background-color: rgba(13,148,136,0.08) !important;
}

/* --- Glass: Feature Pages - Tutorial Button --- */
body.theme-glass .tutorial-btn {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* --- Glass: Feature Pages - Shadows --- */
body.theme-glass [class*="shadow-slate-200"],
body.theme-glass [class*="shadow-slate-300"] {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

body.theme-glass [class*="shadow-\[0_8px_30px"] {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06) !important;
}

/* --- Glass: Feature Pages - Ring Colors --- */
body.theme-glass .ring-slate-200,
body.theme-glass .ring-1.ring-slate-200 {
    --tw-ring-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Feature Pages - bg-white/70 --- */
body.theme-glass .bg-white\/70 {
    background: rgba(255,255,255,0.45) !important;
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Feature Pages - border-dashed --- */
body.theme-glass .border-dashed {
    border-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Feature Pages - border-slate-300 --- */
body.theme-glass .border-slate-300 {
    border-color: rgba(255,255,255,0.45) !important;
}

/* --- Glass: Feature Pages - Slider range --- */
body.theme-glass input[type="range"] {
    background-color: rgba(255,255,255,0.4) !important;
}

/* --- Glass: Feature Pages - Tab Buttons --- */
body.theme-glass .vto-tab-btn,
body.theme-glass .mg-tab-btn,
body.theme-glass .sf-tab-btn,
body.theme-glass .ef-tab-btn,
body.theme-glass .dr-tab-btn,
body.theme-glass .beranda-tab-btn {
    color: #475569 !important;
}

body.theme-glass .vto-tab-btn:hover:not(.active),
body.theme-glass .mg-tab-btn:hover:not(.active),
body.theme-glass .sf-tab-btn:hover:not(.active),
body.theme-glass .ef-tab-btn:hover:not(.active),
body.theme-glass .dr-tab-btn:hover:not(.active),
body.theme-glass .beranda-tab-btn:hover:not(.active) {
    background-color: rgba(255,255,255,0.5) !important;
    color: #334155 !important;
}

body.theme-glass .vto-tab-btn.active,
body.theme-glass .mg-tab-btn.active,
body.theme-glass .sf-tab-btn.active,
body.theme-glass .ef-tab-btn.active,
body.theme-glass .dr-tab-btn.active,
body.theme-glass .beranda-tab-btn.active {
    background-color: rgba(255,255,255,0.7) !important;
    color: #0f766e !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06) !important;
}

/* --- Glass: Feature Pages - Tab Container (bg-slate-100/80) --- */
body.theme-glass .bg-slate-100\/80 {
    background-color: rgba(255,255,255,0.35) !important;
    border-color: rgba(255,255,255,0.45) !important;
    backdrop-filter: blur(12px);
}

/* --- Glass: Feature Pages - bg-slate-50/50 --- */
body.theme-glass .bg-slate-50\/50 {
    background-color: rgba(255,255,255,0.3) !important;
}

/* --- Glass: Feature Pages - prewedding upload surface --- */
body.theme-glass .prewedding-upload-surface {
    background-color: rgba(255,255,255,0.3) !important;
    border-color: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(8px);
}

body.theme-glass .group:hover .prewedding-upload-surface {
    background-color: rgba(255,255,255,0.45) !important;
    border-color: rgba(13,148,136,0.4) !important;
}

/* --- Glass: Feature Pages - contenteditable divs --- */
body.theme-glass [contenteditable="true"] {
    background-color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: #334155 !important;
    backdrop-filter: blur(8px);
}

/* --- Glass: Feature Pages - shadow-inner --- */
body.theme-glass .shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03) !important;
}

/* --- Glass: Feature Pages - Toggle switch --- */
body.theme-glass div.bg-slate-200 {
    background-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Feature Pages - border-slate-200/50 --- */
body.theme-glass .border-slate-200\/50 {
    border-color: rgba(255,255,255,0.4) !important;
}

/* --- Glass: .card component --- */
body.theme-glass .card {
    background-color: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Group Chat & Assistant Card --- */
body.theme-glass .group-chat-card-modern,
body.theme-glass .assistant-card-modern {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .group-chat-header,
body.theme-glass .assistant-header {
    background: rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255,255,255,0.4) !important;
}

body.theme-glass .group-chat-footer,
body.theme-glass .assistant-footer {
    background: rgba(255,255,255,0.4) !important;
    backdrop-filter: blur(12px);
    border-top-color: rgba(255,255,255,0.4) !important;
}

body.theme-glass .group-chat-input,
body.theme-glass .assistant-input {
    background: rgba(255,255,255,0.6) !important;
    border: 1.5px solid rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

/* --- Glass: Group chat history area --- */
body.theme-glass .group-chat-history-modern {
    background: rgba(255,255,255,0.15) !important;
}

/* --- Glass: border-gray-200/300 --- */
body.theme-glass .border-gray-200,
body.theme-glass .border-gray-300 {
    border-color: rgba(255,255,255,0.45) !important;
}

/* --- Glass: Verification Page --- */
body.theme-glass #verification-overlay {
    backdrop-filter: blur(8px);
}

body.theme-glass #verification-overlay > div {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
}


/* --- Glass: CSS Variables Override --- */
body.theme-glass {
    --bg-light: rgba(255,255,255,0.3);
    --surface: rgba(255,255,255,0.45);
    --border-color: rgba(255,255,255,0.45);
    --border-medium: rgba(255,255,255,0.55);
    --text-dark: #334155;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --accent-light-bg: rgba(13,148,136,0.1);
}

/* --- Glass: Paragraph --- */
body.theme-glass p {
    color: #475569;
}

/* --- Glass: text-slate-400, text-gray-400 --- */
body.theme-glass .text-slate-400,
body.theme-glass .text-gray-400 {
    color: #94a3b8 !important;
}

/* --- Glass: text-slate-300 --- */
body.theme-glass .text-slate-300 {
    color: #94a3b8 !important;
}

/* --- Glass: text-slate-600 --- */
body.theme-glass .text-slate-600 {
    color: #64748b !important;
}

/* --- Glass: text-gray-500 in upload placeholders --- */
body.theme-glass .text-gray-500 {
    color: #64748b !important;
}

/* --- Glass: text-gray-700 --- */
body.theme-glass .text-gray-700 {
    color: #475569 !important;
}

/* --- Glass: Slider accent text (font-bold.text-slate-700) --- */
body.theme-glass .font-bold.text-slate-700 {
    color: #334155 !important;
}

/* --- Glass: Scrollbar --- */
body.theme-glass ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
}

body.theme-glass ::-webkit-scrollbar-thumb {
    background-color: rgba(148,163,184,0.35);
    border-radius: 10px;
}

body.theme-glass ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100,116,139,0.5);
}

/* --- Glass: Gradient Backgrounds --- */
body.theme-glass .bg-gradient-to-br.from-white,
body.theme-glass .bg-gradient-to-br.from-white.via-white {
    background: rgba(255,255,255,0.45) !important;
    backdrop-filter: blur(16px);
}

body.theme-glass .bg-gradient-to-br.from-slate-100 {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(12px);
}

body.theme-glass .bg-gradient-to-tr.from-slate-100 {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(12px);
}

body.theme-glass .bg-gradient-to-tr {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(12px);
}

/* --- Glass: Colored Icon Backgrounds (bg-*-50) --- */
body.theme-glass .bg-yellow-50 {
    background-color: rgba(234,179,8,0.1) !important;
}

body.theme-glass .bg-teal-50 {
    background-color: rgba(20,184,166,0.1) !important;
}

body.theme-glass .bg-blue-50 {
    background-color: rgba(59,130,246,0.1) !important;
}

body.theme-glass .bg-red-50 {
    background-color: rgba(239,68,68,0.1) !important;
}

body.theme-glass .bg-green-50 {
    background-color: rgba(34,197,94,0.1) !important;
}

body.theme-glass .bg-purple-50 {
    background-color: rgba(168,85,247,0.1) !important;
}

body.theme-glass .bg-orange-50 {
    background-color: rgba(249,115,22,0.1) !important;
}

body.theme-glass .bg-pink-50 {
    background-color: rgba(236,72,153,0.1) !important;
}

body.theme-glass .bg-indigo-50 {
    background-color: rgba(99,102,241,0.1) !important;
}

body.theme-glass .bg-violet-50 {
    background-color: rgba(139,92,246,0.1) !important;
}

body.theme-glass .bg-emerald-50 {
    background-color: rgba(16,185,129,0.1) !important;
}

body.theme-glass .bg-amber-50 {
    background-color: rgba(245,158,11,0.1) !important;
}

body.theme-glass .bg-cyan-50 {
    background-color: rgba(6,182,212,0.1) !important;
}

body.theme-glass .bg-rose-50 {
    background-color: rgba(244,63,94,0.1) !important;
}

/* --- Glass: Colored Icon Backgrounds (bg-*-100) --- */
body.theme-glass .bg-yellow-100 {
    background-color: rgba(234,179,8,0.15) !important;
}

body.theme-glass .bg-teal-100 {
    background-color: rgba(20,184,166,0.15) !important;
}

body.theme-glass .bg-blue-100 {
    background-color: rgba(59,130,246,0.15) !important;
}

body.theme-glass .bg-pink-100 {
    background-color: rgba(236,72,153,0.15) !important;
}

body.theme-glass .bg-indigo-100 {
    background-color: rgba(99,102,241,0.15) !important;
}

body.theme-glass .bg-violet-100 {
    background-color: rgba(139,92,246,0.15) !important;
}

body.theme-glass .bg-orange-100 {
    background-color: rgba(249,115,22,0.15) !important;
}

body.theme-glass .bg-emerald-100 {
    background-color: rgba(16,185,129,0.15) !important;
}

body.theme-glass .bg-red-100 {
    background-color: rgba(239,68,68,0.15) !important;
}

body.theme-glass .bg-cyan-100 {
    background-color: rgba(6,182,212,0.15) !important;
}

body.theme-glass .bg-rose-100 {
    background-color: rgba(244,63,94,0.15) !important;
}

body.theme-glass .bg-amber-100 {
    background-color: rgba(245,158,11,0.15) !important;
}

body.theme-glass .bg-green-100 {
    background-color: rgba(34,197,94,0.15) !important;
}

body.theme-glass .bg-purple-100 {
    background-color: rgba(168,85,247,0.15) !important;
}

/* --- Glass: Status badges bg-slate-100 text-slate-500 --- */
body.theme-glass .bg-slate-100.text-slate-500 {
    background-color: rgba(255,255,255,0.4) !important;
    color: #64748b !important;
}

/* --- Glass: bg-slate-200 (Toggle switches, misc) --- */
body.theme-glass .bg-slate-200 {
    background-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: bg-slate-300 --- */
body.theme-glass .bg-slate-300 {
    background-color: rgba(255,255,255,0.55) !important;
}

/* --- Glass: bg-slate-800 (Tooltips) --- */
body.theme-glass .bg-slate-800 {
    background-color: rgba(30,41,59,0.85) !important;
}

/* --- Glass: bg-slate-900/5 image previews --- */
body.theme-glass .bg-slate-900\/5 {
    background-color: rgba(0,0,0,0.04) !important;
}

/* --- Glass: bg-slate-900/70 overlay --- */
body.theme-glass .bg-slate-900\/70 {
    background-color: rgba(0,0,0,0.45) !important;
    backdrop-filter: blur(4px);
}

/* --- Glass: bg-white/90 (Magic Prompt / AI assist buttons) --- */
body.theme-glass .bg-white\/90 {
    background: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.55) !important;
    color: #334155 !important;
}

/* --- Glass: bg-red-500/90 remove buttons --- */
body.theme-glass .bg-red-500\/90 {
    background-color: rgba(239,68,68,0.85) !important;
}

/* --- Glass: Border Overrides (additional) --- */
body.theme-glass .border-white\/50,
body.theme-glass .border-white\/20 {
    border-color: rgba(255,255,255,0.4) !important;
}

body.theme-glass .border-slate-50 {
    border-color: rgba(255,255,255,0.4) !important;
}

body.theme-glass .border-slate-700\/50 {
    border-color: rgba(255,255,255,0.45) !important;
}

body.theme-glass .border-teal-100,
body.theme-glass .border-teal-200 {
    border-color: rgba(13,148,136,0.25) !important;
}

/* --- Glass: Cards & Content Containers --- */
body.theme-glass .rounded-2xl.border,
body.theme-glass .rounded-xl.border,
body.theme-glass .rounded-3xl.border {
    border-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .shadow-sm,
body.theme-glass .shadow-md,
body.theme-glass .shadow-lg {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

/* --- Glass: bg-white.rounded-2xl / 3xl (Modals) --- */
body.theme-glass .bg-white.rounded-2xl,
body.theme-glass .bg-white.rounded-3xl {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass .bg-white.rounded-lg,
body.theme-glass .bg-white.rounded-xl {
    background: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .bg-white\/80.rounded-3xl,
body.theme-glass .bg-white\/95.rounded-3xl {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- Glass: Hover States --- */
body.theme-glass .hover\:bg-slate-50:hover {
    background-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .hover\:bg-slate-100:hover {
    background-color: rgba(255,255,255,0.55) !important;
}

body.theme-glass .hover\:bg-slate-200:hover {
    background-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass .hover\:bg-slate-800:hover {
    background-color: rgba(255,255,255,0.55) !important;
}

body.theme-glass .hover\:bg-teal-50:hover {
    background-color: rgba(13,148,136,0.08) !important;
}

body.theme-glass .hover\:bg-red-50:hover {
    background-color: rgba(239,68,68,0.08) !important;
}

body.theme-glass .hover\:bg-gray-200:hover {
    background-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass .hover\:bg-rose-100:hover {
    background-color: rgba(244,63,94,0.12) !important;
}

body.theme-glass .hover\:bg-red-700:hover {
    background-color: #b91c1c !important;
}

body.theme-glass .hover\:border-teal-200:hover {
    border-color: rgba(13,148,136,0.4) !important;
}

body.theme-glass .hover\:border-teal-400:hover {
    border-color: rgba(13,148,136,0.5) !important;
}

body.theme-glass .hover\:shadow-xl:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}

/* --- Glass: Group Hover States --- */
body.theme-glass .group:hover .group-hover\:bg-slate-50 {
    background-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass .group:hover .group-hover\:border-teal-400 {
    border-color: rgba(13,148,136,0.5) !important;
}

body.theme-glass .group:hover .group-hover\:text-teal-600 {
    color: #0d9488 !important;
}

/* --- Glass: Focus States --- */
body.theme-glass .focus\:bg-white:focus {
    background-color: rgba(255,255,255,0.7) !important;
}

body.theme-glass .focus\:border-teal-500:focus {
    border-color: rgba(13,148,136,0.5) !important;
}

body.theme-glass .focus\:ring:focus {
    --tw-ring-color: rgba(13,148,136,0.2) !important;
}

body.theme-glass .focus\:ring-teal-200:focus {
    --tw-ring-color: rgba(13,148,136,0.2) !important;
}

body.theme-glass .focus\:ring-teal-500:focus {
    --tw-ring-color: rgba(13,148,136,0.3) !important;
}

body.theme-glass .focus\:ring-teal-500\/30:focus {
    --tw-ring-color: rgba(13,148,136,0.2) !important;
}

/* --- Glass: Disabled States --- */
body.theme-glass .disabled\:\!bg-slate-200:disabled {
    background-color: rgba(255,255,255,0.4) !important;
    color: #94a3b8 !important;
}

body.theme-glass .disabled\:\!bg-none:disabled {
    background-image: none !important;
}

body.theme-glass .disabled\:bg-slate-300:disabled {
    background-color: rgba(255,255,255,0.4) !important;
    color: #94a3b8 !important;
}

body.theme-glass .disabled\:text-slate-400:disabled {
    color: #94a3b8 !important;
}

body.theme-glass .disabled\:border-slate-200:disabled {
    border-color: rgba(255,255,255,0.45) !important;
}

body.theme-glass .disabled\:opacity-30:disabled {
    opacity: 0.3 !important;
}

/* --- Glass: Ring Colors --- */
body.theme-glass .ring-black\/5 {
    --tw-ring-color: rgba(0,0,0,0.03) !important;
}

body.theme-glass .ring-rose-100 {
    --tw-ring-color: rgba(244,63,94,0.2) !important;
}

body.theme-glass .ring-teal-100 {
    --tw-ring-color: rgba(20,184,166,0.2) !important;
}

/* --- Glass: Shadow Overrides --- */
body.theme-glass .shadow-slate-200,
body.theme-glass .shadow-slate-300\/50 {
    --tw-shadow-color: rgba(0,0,0,0.04) !important;
}

/* --- Glass: Dividers --- */
body.theme-glass .divide-slate-200 > * + * {
    border-color: rgba(255,255,255,0.45) !important;
}

body.theme-glass .w-px {
    background-color: rgba(255,255,255,0.45) !important;
}

/* --- Glass: Peer Toggle switch --- */
body.theme-glass .peer ~ div.bg-slate-200 {
    background-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: Slider range thumb --- */
body.theme-glass input[type="range"]::-webkit-slider-thumb {
    border-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass input[type="range"]::-webkit-slider-runnable-track {
    background-color: rgba(255,255,255,0.4) !important;
}

/* --- Glass: Placeholder text in inputs --- */
body.theme-glass .placeholder\:text-slate-400::placeholder {
    color: #94a3b8 !important;
}

/* --- Glass: Select elements with bg-white --- */
body.theme-glass select.bg-white {
    background-color: rgba(255,255,255,0.55) !important;
    border-color: rgba(255,255,255,0.55) !important;
    color: #334155 !important;
    backdrop-filter: blur(10px);
}

/* --- Glass: Tutorial Button Hover --- */
body.theme-glass .tutorial-btn:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* --- Glass: Upload Box Text --- */
body.theme-glass .upload-box .text-gray-500,
body.theme-glass .upload-box .text-slate-500 {
    color: #64748b !important;
}

/* --- Glass: Addons Info Modal --- */
body.theme-glass .addons-card-info-btn {
    opacity: 0.9;
}

/* --- Glass: Boost Toggle Tooltip --- */
body.theme-glass .boost-toggle-tooltip {
    color: #64748b !important;
}

/* --- Glass: Chat Bubble Notice After --- */
body.theme-glass .chat-bubble.sufo.notice::after {
    border-color: transparent rgba(15, 23, 42, 0.78) transparent transparent;
}

/* --- Glass: Assistant/Group Chat Input Focus --- */
body.theme-glass .group-chat-input:focus,
body.theme-glass .assistant-input:focus {
    border-color: rgba(13,148,136,0.4) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1) !important;
}

/* --- Glass: Reply Preview Container --- */
body.theme-glass .reply-preview-container {
    background: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(12px);
}

/* --- Glass: Online Users Modal in Chat --- */
body.theme-glass .online-users-modal-content {
    background: rgba(255,255,255,0.75) !important;
    border-color: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(20px);
}

/* --- Glass: Sidebar Online Modal Details --- */
body.theme-glass .sidebar-online-modal-header h4 {
    color: #065f46 !important;
}

body.theme-glass .sidebar-online-modal-close {
    color: #64748b !important;
}

body.theme-glass .sidebar-online-modal-close:hover {
    background: rgba(255,255,255,0.5) !important;
    color: #334155 !important;
}

body.theme-glass .sidebar-online-email {
    color: #334155 !important;
}

body.theme-glass .sidebar-online-tag {
    color: #64748b !important;
}

/* --- Glass: VIP Badge --- */
body.theme-glass .sf-vip-badge {
    background: linear-gradient(135deg, rgba(251,191,36,0.9) 0%, rgba(245,158,11,0.9) 100%) !important;
    border-color: rgba(245,158,11,0.8) !important;
    color: #78350f !important;
    box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

body.theme-glass .sf-vip-badge--footer {
    background: linear-gradient(135deg, rgba(251,191,36,0.85) 0%, rgba(245,158,11,0.85) 100%) !important;
    border-color: rgba(245,158,11,0.7) !important;
    color: #78350f !important;
    box-shadow: 0 0 12px rgba(245,158,11,0.25);
}

/* --- Glass: Verification Overlay Details --- */
body.theme-glass #verification-overlay {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-glass #verification-overlay > div {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.6) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

body.theme-glass #verification-overlay .bg-white {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px);
}

body.theme-glass #verification-overlay .bg-gray-50,
body.theme-glass #verification-overlay .bg-slate-50 {
    background-color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-glass #verification-overlay .text-gray-800,
body.theme-glass #verification-overlay h2 {
    color: #0f766e !important;
}

body.theme-glass #verification-overlay .text-gray-500,
body.theme-glass #verification-overlay p {
    color: #475569 !important;
}

body.theme-glass #verification-overlay .text-gray-700 {
    color: #334155 !important;
}

body.theme-glass #verification-overlay .text-gray-400 {
    color: #64748b !important;
}

body.theme-glass #verification-overlay .placeholder-gray-400::placeholder {
    color: #94a3b8 !important;
}

body.theme-glass #verification-overlay input {
    color: #1e293b !important;
}

body.theme-glass #verification-overlay .ring-white {
    --tw-ring-color: rgba(255,255,255,0.6) !important;
}

body.theme-glass #verification-overlay a {
    color: #64748b !important;
}

body.theme-glass #verification-overlay a:hover {
    color: #0d9488 !important;
}

/* --- Glass: Boost Top-Up Modal --- */
body.theme-glass #boost-topup-modal {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-glass #boost-topup-modal .bg-white {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.6) !important;
}

body.theme-glass #boost-topup-modal .bg-slate-50 {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-glass #boost-topup-modal .text-slate-800,
body.theme-glass #boost-topup-modal h3 {
    color: #0f766e !important;
}

body.theme-glass #boost-topup-modal .text-slate-500,
body.theme-glass #boost-topup-modal .text-slate-600 {
    color: #475569 !important;
}

body.theme-glass #boost-topup-modal .text-slate-700 {
    color: #334155 !important;
}

body.theme-glass #boost-topup-modal .border-slate-200 {
    border-color: rgba(255,255,255,0.5) !important;
}

body.theme-glass #boost-topup-modal .boost-tier-card {
    background: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-glass #boost-topup-modal .boost-tier-card.selected {
    background: rgba(20,184,166,0.15) !important;
    border-color: #14b8a6 !important;
    box-shadow: 0 0 20px rgba(20,184,166,0.2) !important;
}

body.theme-glass #boost-topup-modal .bg-slate-100 {
    background: rgba(255,255,255,0.6) !important;
}

body.theme-glass #boost-topup-modal .shadow-slate-200 {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1) !important;
}

/* --- Glass: PWA Install Modal --- */
body.theme-glass #pwa-install-modal .bg-white\/95 {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(20px);
}

/* --- Glass: Mobile Header Gradient Override --- */
body.theme-glass [style*="background: linear-gradient(145deg, rgba(51, 65, 85"] {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255,255,255,0.6) !important;
}

/* --- Glass: Sidebar hover:bg-slate-800 --- */
body.theme-glass aside .hover\:bg-slate-800:hover {
    background-color: rgba(255,255,255,0.55) !important;
}

/* --- Glass: Music Player Subtitle & Volume Icon --- */
body.theme-glass .rmp-track-subtitle {
    color: #64748b !important;
}

body.theme-glass .rmp-volume-icon {
    color: #64748b !important;
}

/* --- Glass: Mobile Header (md:hidden) --- */
body.theme-glass .md\:hidden header {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(16px) !important;
}

/* --- Glass: ring-slate-200 --- */
body.theme-glass .ring-slate-200 {
    --tw-ring-color: rgba(255,255,255,0.5) !important;
}

/* --- Glass: shadow-slate-200 attribute --- */
body.theme-glass [class*="shadow-slate-200"] {
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
}

/* --- Glass: Misc --- */
body.theme-glass .bg-white\/80.rounded-3xl {
    background: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(20px);
}


/* =========================================== */
/* CUSTOM THEME                                 */
/* =========================================== */
body.theme-custom {
    color: #fff;
}

body.theme-custom .bg-white {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-custom .text-slate-800,
body.theme-custom .text-gray-800 {
    color: #1e293b;
}

body.theme-custom .theme-page .theme-title { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
body.theme-custom .theme-page .theme-subtitle { color: rgba(255,255,255,0.8); }
body.theme-custom .theme-card-default,
body.theme-custom .theme-card-glass,
body.theme-custom .theme-card-custom {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(8px);
}

/* --- Custom Theme: Core Text --- */
body.theme-custom .text-slate-900,
body.theme-custom .text-gray-900,
body.theme-custom .text-slate-800,
body.theme-custom .text-gray-800,
body.theme-custom .text-slate-700,
body.theme-custom .text-gray-700 {
    color: #1e293b !important;
}

body.theme-custom .text-slate-600,
body.theme-custom .text-gray-600,
body.theme-custom .text-slate-500,
body.theme-custom .text-gray-500 {
    color: #475569 !important;
}

body.theme-custom .text-slate-400,
body.theme-custom .text-gray-400 {
    color: #94a3b8 !important;
}

/* --- Custom Theme: Labels & Headings --- */
body.theme-custom label {
    color: #1e293b !important;
}

body.theme-custom h1:not(.text-white):not(.text-slate-100),
body.theme-custom h2:not(.text-white):not(.text-slate-100),
body.theme-custom h3:not(.text-white):not(.text-slate-100),
body.theme-custom h4:not(.text-white),
body.theme-custom h5:not(.text-white) {
    color: #1e293b !important;
}

body.theme-custom p:not(.text-white):not(.text-slate-100):not(.text-slate-200) {
    color: #475569 !important;
}

/* --- Custom Theme: Icons (SVG stroke) --- */
body.theme-custom [data-lucide],
body.theme-custom .lucide {
    color: inherit;
}

body.theme-custom .text-slate-300 [data-lucide],
body.theme-custom .text-slate-300 .lucide,
body.theme-custom [data-lucide].text-slate-300 {
    color: #94a3b8 !important;
}

/* --- Custom Theme: Buttons --- */
body.theme-custom .option-btn {
    background: rgba(255,255,255,0.85) !important;
    color: #334155 !important;
    border-color: rgba(148,163,184,0.3) !important;
}

body.theme-custom .option-btn:hover {
    border-color: #14b8a6 !important;
}

body.theme-custom .option-btn.selected {
    background: rgba(240,253,250,0.95) !important;
    color: #0d9488 !important;
    border-color: #14b8a6 !important;
}

body.theme-custom button.bg-slate-900,
body.theme-custom button.bg-slate-800,
body.theme-custom .tutorial-btn {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* --- Custom Theme: Inputs, Textareas, Selects --- */
body.theme-custom input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-custom textarea,
body.theme-custom select {
    background-color: rgba(255,255,255,0.9) !important;
    border-color: rgba(148,163,184,0.4) !important;
    color: #1e293b !important;
}

body.theme-custom input::placeholder,
body.theme-custom textarea::placeholder {
    color: #94a3b8 !important;
}

body.theme-custom input:focus,
body.theme-custom textarea:focus,
body.theme-custom select:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 2px rgba(20,184,166,0.2) !important;
}

/* --- Custom Theme: Borders --- */
body.theme-custom .border-slate-200,
body.theme-custom .border-slate-100,
body.theme-custom .border-slate-300,
body.theme-custom .border-gray-200 {
    border-color: rgba(148,163,184,0.3) !important;
}

body.theme-custom .border-white\/50,
body.theme-custom .border-white\/60 {
    border-color: rgba(255,255,255,0.4) !important;
}

/* --- Custom Theme: Backgrounds --- */
body.theme-custom .bg-slate-50,
body.theme-custom .bg-slate-100,
body.theme-custom .bg-gray-50 {
    background-color: rgba(255,255,255,0.6) !important;
}

body.theme-custom .bg-white\/60,
body.theme-custom .bg-white\/80,
body.theme-custom .bg-white\/90,
body.theme-custom .bg-white\/95 {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(8px);
}

/* --- Custom Theme: Ring Colors --- */
body.theme-custom .ring-slate-200,
body.theme-custom .ring-1.ring-slate-200 {
    --tw-ring-color: rgba(148,163,184,0.3) !important;
}

/* --- Custom Theme: Shadows --- */
body.theme-custom .shadow-sm,
body.theme-custom .shadow-md,
body.theme-custom .shadow-lg {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* --- Custom Theme: Cards & Containers --- */
body.theme-custom .rounded-2xl.border,
body.theme-custom .rounded-xl.border,
body.theme-custom .rounded-3xl.border {
    border-color: rgba(148,163,184,0.3) !important;
}

/* --- Custom Theme: Upload Zones --- */
body.theme-custom .border-dashed {
    border-color: rgba(148,163,184,0.4) !important;
}

body.theme-custom .border-dashed:hover {
    border-color: #14b8a6 !important;
}

/* --- Custom Theme: Tutorial Button (Remove Shadow) --- */
body.theme-custom .tutorial-btn {
    box-shadow: none !important;
}

/* --- Custom Theme: Footer --- */
body.theme-custom footer {
    border-color: rgba(148,163,184,0.2) !important;
}

/* =========================================== */
/* GLOBAL: Remove Shadow from Tutorial Buttons */
/* =========================================== */
.tutorial-btn {
    box-shadow: none !important;
}

.tutorial-btn:hover {
    box-shadow: none !important;
}

/* =========================================== */
/* TEXT TO SPEECH ADDON                        */
/* =========================================== */

/* --- TTS Header Gradient (Default Theme) --- */
.tts-header-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

/* --- TTS Mode Buttons --- */
.tts-mode-btn {
    background: rgba(255,255,255,0.7);
    color: #64748b;
    border: 1.5px solid transparent;
    backdrop-filter: blur(4px);
}
.tts-mode-btn:hover {
    background: rgba(240,253,250,0.9);
    color: #0d9488;
}
.tts-mode-btn.active {
    background: linear-gradient(135deg, rgba(240,253,250,0.95), rgba(236,254,255,0.95));
    color: #0d9488;
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20,184,166,0.2);
}

/* --- TTS Audio Player (Default Theme) --- */
.tts-player-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
}

.tts-play-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: white;
}
.tts-play-btn:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
}

.tts-time-text {
    color: #475569;
}

.tts-seek-bar {
    background: #cbd5e1;
    accent-color: #14b8a6;
}

.tts-control-btn {
    background: rgba(15,23,42,0.08);
    color: #334155;
}
.tts-control-btn:hover {
    background: rgba(15,23,42,0.15);
}

.tts-icon {
    color: #64748b;
}

.tts-volume-bar {
    background: #cbd5e1;
    accent-color: #14b8a6;
}

.tts-download-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: white;
}
.tts-download-btn:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
}

#stt-record-btn.recording {
    animation: tts-pulse 1.2s ease-in-out infinite;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
@keyframes tts-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { box-shadow: 0 0 0 16px rgba(239,68,68,0); }
}

/* =========================================== */
/* TTS DARK THEME                              */
/* =========================================== */
body.theme-dark .tts-header-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-dark .tts-mode-btn {
    background: rgba(30,41,59,0.6);
    color: #94a3b8;
}
body.theme-dark .tts-mode-btn:hover {
    background: rgba(20,184,166,0.15);
    color: #5eead4;
}
body.theme-dark .tts-mode-btn.active {
    background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(6,182,212,0.2));
    color: #5eead4;
    border-color: #14b8a6;
}

body.theme-dark .tts-player-bg {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid #1e293b;
}

body.theme-dark .tts-play-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

body.theme-dark .tts-time-text {
    color: #94a3b8;
}

body.theme-dark .tts-seek-bar {
    background: #1e293b;
}

body.theme-dark .tts-control-btn {
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
}
body.theme-dark .tts-control-btn:hover {
    background: rgba(255,255,255,0.1);
}

body.theme-dark .tts-icon {
    color: #64748b;
}

body.theme-dark .tts-volume-bar {
    background: #1e293b;
}

body.theme-dark .tts-download-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

/* =========================================== */
/* TTS GLASS THEME                             */
/* =========================================== */
body.theme-glass .tts-header-gradient {
    background: rgba(20,184,166,0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20,184,166,0.2);
}

body.theme-glass .tts-mode-btn {
    background: rgba(255,255,255,0.4);
    color: #0f766e;
}
body.theme-glass .tts-mode-btn:hover {
    background: rgba(240,253,250,0.7);
    color: #0d9488;
}
body.theme-glass .tts-mode-btn.active {
    background: rgba(240,253,250,0.9);
    color: #0d9488;
    border-color: #14b8a6;
    box-shadow: 0 2px 12px rgba(20,184,166,0.25);
}

body.theme-glass .tts-player-bg {
    background: rgba(30,41,59,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
}

body.theme-glass .tts-play-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px rgba(20,184,166,0.3);
}

body.theme-glass .tts-time-text {
    color: #e2e8f0;
}

body.theme-glass .tts-seek-bar {
    background: rgba(51,65,85,0.5);
}

body.theme-glass .tts-control-btn {
    background: rgba(255,255,255,0.15);
    color: #f1f5f9;
    backdrop-filter: blur(8px);
}
body.theme-glass .tts-control-btn:hover {
    background: rgba(255,255,255,0.25);
}

body.theme-glass .tts-icon {
    color: #cbd5e1;
}

body.theme-glass .tts-volume-bar {
    background: rgba(51,65,85,0.5);
}

body.theme-glass .tts-download-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px rgba(20,184,166,0.3);
}

/* =========================================== */
/* TTS CUSTOM THEME                            */
/* =========================================== */
body.theme-custom .tts-header-gradient {
    background: rgba(20,184,166,0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20,184,166,0.3);
}

body.theme-custom .tts-mode-btn {
    background: rgba(255,255,255,0.5);
    color: #0f766e;
}
body.theme-custom .tts-mode-btn:hover {
    background: rgba(240,253,250,0.8);
    color: #0d9488;
}
body.theme-custom .tts-mode-btn.active {
    background: rgba(240,253,250,0.95);
    color: #0d9488;
    border-color: #14b8a6;
    box-shadow: 0 2px 12px rgba(20,184,166,0.3);
}

body.theme-custom .tts-player-bg {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(203,213,225,0.5);
}

body.theme-custom .tts-play-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px rgba(20,184,166,0.3);
}

body.theme-custom .tts-time-text {
    color: #334155;
}

body.theme-custom .tts-seek-bar {
    background: rgba(203,213,225,0.6);
}

body.theme-custom .tts-control-btn {
    background: rgba(15,23,42,0.1);
    color: #334155;
    backdrop-filter: blur(8px);
}
body.theme-custom .tts-control-btn:hover {
    background: rgba(15,23,42,0.2);
}

body.theme-custom .tts-icon {
    color: #64748b;
}

body.theme-custom .tts-volume-bar {
    background: rgba(203,213,225,0.6);
}

body.theme-custom .tts-download-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px rgba(20,184,166,0.3);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

input[type="range"].accent-orange-500::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input[type="range"].accent-orange-500::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Mobile touch improvements */
@media (max-width: 640px) {
    input[type="range"].accent-orange-500::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    input[type="range"].accent-orange-500::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

/* Ensure single result item is always full width in grid results */
[id"-results-grid"] > *:only-child,
[id"-result-grid"] > *:only-child {
    grid-column: 1 / -1 !important;
}
