/* ── 1. Palet Warna (Pixel / Retro Dark Mode - Default) ── */
        :root {
            --primary: #FACC15;
            /* Pixel Golden Yellow */
            --primary-dark: #F59E0B;
            --primary-light: rgba(250, 204, 21, 0.15);
            --danger: #EF4444;
            --danger-light: rgba(239, 68, 68, 0.15);
            --text-main: #F8FAFC;
            --text-muted: #94A3B8;
            --border: #334155;
            /* Slate 700 agar border tetap terlihat menonjol */
            --surface: #1E293B;
            /* Slate 800 - Deep Slate Blue untuk Card */
            --bg: #020617;
            /* Slate 950 - Hampir Hitam Pekat untuk latar utama */
            --alt-bg: #0F172A;
            /* Slate 900 - Navy Gelap untuk area selang-seling */
            --invert-text: #020617;
            --pixel-font: 'Press Start 2P', monospace;
            --pixel-font-alt: 'VT323', monospace;

            /* Bootstrap Color Bridge */
            --bs-body-color: var(--text-main);
            --bs-body-bg: var(--bg);
            --bs-secondary-color: var(--text-muted);
        }

        /* ── Dark Mode Starfield Background ── */
        body[data-theme="dark"]::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: -1;
            background-image:
                radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 4px),
                radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
                radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
            background-size: 550px 550px, 350px 350px, 250px 250px;
            background-position: 0 0, 40px 60px, 130px 270px;
            animation: starfield 60s linear infinite;
        }

        @keyframes starfield {
            0% {
                background-position: 0 0, 40px 60px, 130px 270px;
            }

            100% {
                background-position: 550px 550px, 390px 410px, 380px 520px;
            }
        }

        /* ── Palet Warna (Light Mode) ── */
        [data-theme="light"] {
            --primary: #F59E0B;
            /* Golden Amber */
            --primary-dark: #D97706;
            --primary-light: rgba(245, 158, 11, 0.15);
            --danger: #EF4444;
            --text-main: #0F172A;
            /* Charcoal / Dark Navy */
            --text-muted: #475569;
            --border: #1E293B;
            /* Dark Slate Blue Borders */
            --surface: #FFFFFF;
            /* Pure White Cards */
            --bg: #E0F7FA;
            /* Cyan Terang agar kontras dengan putih */
            --alt-bg: #B2EBF2;
            /* Cyan sedikit lebih gelap untuk selang-seling */
            --invert-text: #FFFFFF;

            /* Bootstrap Color Bridge (Light) */
            --bs-body-color: var(--text-main);
            --bs-body-bg: var(--bg);
            --bs-secondary-color: var(--text-muted);
        }

        /* ── 2. Tipografi & Background Global ── */
        body {
            font-family: var(--pixel-font-alt);
            font-size: 1.2rem;
            background: var(--bg);
            min-height: 100vh;
            color: var(--text-main);
            margin: 0;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* Override Bootstrap text-muted agar selalu kontras di dark & light mode */
        .text-muted,
        .text-secondary {
            color: var(--text-muted) !important;
        }

        /* ── Efek CRT Scanline ── */
        body::after {
            content: " ";
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
            z-index: 9999;
            background-size: 100% 4px;
            pointer-events: none;
            opacity: 0.6;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .pixel-text {
            font-family: var(--pixel-font);
            text-transform: uppercase;
        }

        /* ── 3. Navbar ── */
        .public-navbar {
            background: var(--surface);
            border-bottom: 4px solid var(--border);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
        }

        .public-navbar.scrolled {
            border-bottom-color: var(--primary);
        }

        .navbar-brand-custom {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            text-decoration: none;
        }

        .navbar-brand-icon {
            width: 38px;
            height: 38px;
            background: #000;
            border: 2px solid var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }

        .navbar-brand-label {
            font-family: var(--pixel-font);
            font-size: 0.8rem;
            color: #0F6CA4;
            text-transform: uppercase;
            transition: opacity 0.2s ease;
        }

        .navbar-brand-custom:hover .navbar-brand-label {
            color: #0F6CA4;
            opacity: 0.85;
        }

        /* Mobile Header Controls */
        .mobile-hamburger-btn {
            width: 42px;
            height: 42px;
            border-radius: 0.75rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1.5px solid rgba(255, 255, 255, 0.16);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            padding: 0;
            line-height: 1;
            transition: all 0.2s ease;
        }

        .mobile-hamburger-btn:hover,
        .mobile-hamburger-btn:focus {
            background: rgba(255, 255, 255, 0.16);
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        .mobile-header-icon-btn {
            width: 42px;
            height: 42px;
            border-radius: 0.75rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1.5px solid rgba(255, 255, 255, 0.16);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            padding: 0;
            line-height: 1;
            transition: all 0.2s ease;
        }

        .mobile-header-icon-btn:hover,
        .mobile-header-icon-btn:focus {
            background: rgba(255, 255, 255, 0.16);
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        /* Desktop Nav Link Default */
        .public-navbar .nav-link {
            color: var(--text-muted);
            font-family: var(--pixel-font-alt);
            font-size: 1.25rem;
            padding: 0.45rem 0.9rem !important;
            transition: all 0.2s ease;
        }

        .public-navbar .nav-link:hover,
        .public-navbar .nav-link.active {
            color: var(--primary);
            background: transparent;
            text-shadow: 2px 2px 0px #000;
        }

        .nav-item-icon {
            display: none;
        }

        /* ── Mobile Layout Dropdown Card (Sesuai Referensi Foto Pengguna) ── */
        @media (max-width: 991.98px) {
            .public-navbar {
                padding: 0.65rem 0;
            }

            .public-navbar .container {
                flex-wrap: wrap !important;
            }

            .public-navbar .navbar-collapse {
                width: 100% !important;
                background: rgba(15, 23, 42, 0.96);
                backdrop-filter: blur(24px);
                -webkit-backdrop-filter: blur(24px);
                border: 1.5px solid rgba(255, 255, 255, 0.14);
                border-radius: 1.5rem;
                box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 4px 20px rgba(0, 0, 0, 0.4);
                padding: 1.25rem 1.1rem;
                margin-top: 0.85rem;
                animation: mobileDropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            }

            @keyframes mobileDropdownSlide {
                from {
                    opacity: 0;
                    transform: translateY(-12px) scale(0.98);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            .mobile-nav-menu {
                gap: 0.4rem !important;
            }

            .mobile-nav-menu .nav-link {
                display: flex !important;
                align-items: center;
                gap: 0.9rem;
                padding: 0.8rem 1.1rem !important;
                border-radius: 0.9rem;
                font-size: 1.05rem !important;
                color: #cbd5e1 !important;
                font-family: 'Inter', sans-serif !important;
                text-shadow: none !important;
                font-weight: 500;
                transition: all 0.2s ease;
            }

            .mobile-nav-menu .nav-link:hover {
                background: rgba(255, 255, 255, 0.06);
                color: #ffffff !important;
                transform: translateX(4px);
            }

            /* Active Nav item: soft rounded pill background like in screenshot */
            .mobile-nav-menu .nav-link.active {
                background: rgba(37, 99, 235, 0.25) !important;
                border: 1px solid rgba(59, 130, 246, 0.35);
                color: #60a5fa !important;
                font-weight: 600;
            }

            .nav-item-icon {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
                width: 26px;
                flex-shrink: 0;
                color: #94a3b8;
                transition: color 0.2s ease;
            }

            .mobile-nav-menu .nav-link.active .nav-item-icon {
                color: #60a5fa;
            }

            /* Tombol Pendaftaran Biru Menonjol (Seperti di Gambar) */
            .mobile-pendaftaran-btn {
                background: linear-gradient(135deg, #2563eb, #1d4ed8);
                color: #ffffff !important;
                border: none;
                border-radius: 1rem;
                padding: 0.85rem 1.25rem;
                font-family: 'Inter', sans-serif;
                font-size: 1.05rem;
                font-weight: 600;
                letter-spacing: 0.2px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
                transition: all 0.2s ease;
                text-decoration: none;
            }

            .mobile-pendaftaran-btn:hover,
            .mobile-pendaftaran-btn:active {
                background: linear-gradient(135deg, #1d4ed8, #1e40af);
                transform: translateY(-2px);
                box-shadow: 0 8px 26px rgba(37, 99, 235, 0.65);
                color: #ffffff !important;
            }
        }

        @media (min-width: 992px) {
            .public-navbar .navbar-collapse {
                flex-grow: 0 !important;
            }
        }

        /* ── 4. Card (Container) ── */
        .card {
            background: var(--surface);
            border: 4px solid var(--border);
            border-radius: 0;
            padding: 2rem;
            box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
            color: var(--text-main);
        }

        /* ── 5. Primary Button (Pixel Style) ── */
        .btn-primary {
            background: var(--primary-dark);
            color: #000;
            border: 4px solid #000;
            border-radius: 0;
            font-family: var(--pixel-font);
            font-size: 0.7rem;
            text-transform: uppercase;
            box-shadow: 4px 4px 0px #000;
            transition: all 0.1s;
            padding: 0.8rem 1.2rem;
            cursor: pointer;
        }

        .btn-primary:hover {
            background: var(--primary);
            color: #000;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px #000;
        }

        .btn-primary:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0px #000;
        }

        /* Outline variant */
        .btn-outline-primary {
            border: 4px solid var(--primary);
            color: var(--primary);
            border-radius: 0;
            font-family: var(--pixel-font);
            font-size: 0.7rem;
            text-transform: uppercase;
            background: #000;
            box-shadow: 4px 4px 0px var(--primary-dark);
            padding: 0.8rem 1.2rem;
            transition: all 0.1s;
        }

        .btn-outline-primary:hover {
            background: var(--primary);
            color: #000;
            box-shadow: 4px 4px 0px #000;
        }

        /* ── 6. Forms ── */
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="number"],
        select,
        textarea,
        .form-control,
        .form-select {
            width: 100%;
            padding: 0.65rem 0.9rem;
            border: 4px solid var(--border);
            border-radius: 0;
            background: var(--surface);
            color: var(--text-main) !important;
            font-family: var(--pixel-font-alt);
            font-size: 1.2rem;
            outline: none;
        }

        input::placeholder,
        textarea::placeholder {
            color: var(--text-muted) !important;
            opacity: 0.8;
        }

        input:not([type="radio"]):not([type="checkbox"]):focus,
        .form-control:focus,
        .form-select:focus,
        textarea:focus {
            border-color: var(--primary);
            background-color: var(--bg);
            color: var(--text-main) !important;
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        /* ── Radio & Checkbox Styling ── */
        .form-check-input {
            width: 1.35em;
            height: 1.35em;
            margin-top: 0.15em;
            border: 2.5px solid var(--border) !important;
            background-color: var(--surface) !important;
            cursor: pointer;
            transition: none !important;
        }

        .form-check-input:hover {
            border-color: var(--primary) !important;
        }

        .form-check-input:focus {
            box-shadow: 0 0 0 3px var(--primary-light) !important;
            border-color: var(--primary) !important;
            outline: none !important;
        }

        .form-check-input:checked {
            background-color: var(--primary) !important;
            border-color: var(--primary) !important;
        }

        [data-theme="light"] .form-check-input {
            border: 2.5px solid #0f172a !important;
            background-color: #f1f5f9 !important;
        }

        [data-theme="light"] .form-check-input:hover {
            border-color: #d97706 !important;
        }

        [data-theme="light"] .form-check-input:checked {
            background-color: #f59e0b !important;
            border-color: #0f172a !important;
        }

        /* ── 7. Slide Up Animation ── */
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }

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

        /* ── 8. Footer ── */
        .public-footer {
            background: var(--surface);
            border-top: 4px solid var(--border);
            padding: 2rem 0;
            margin-top: auto;
            text-align: center;
            color: var(--text-muted);
            font-size: 1.1rem;
            font-family: var(--pixel-font-alt);
        }

        /* ── 9. Responsive & Mobile ── */
        @media (max-width: 768px) {
            h1 {
                font-size: 1.5rem !important;
            }

            h2 {
                font-size: 1.3rem !important;
            }

            h3 {
                font-size: 1.1rem !important;
            }

            h4,
            h5,
            h6 {
                font-size: 0.9rem !important;
            }

            .navbar-brand-label {
                font-size: 0.65rem !important;
            }

            .card {
                padding: 1.5rem;
            }
        }

        /* ── 10. Pixel Hover Link ── */
        .pixel-hover {
            transition: all 0.1s;
        }

        .pixel-hover:hover {
            color: var(--primary) !important;
            text-shadow: 2px 2px 0px var(--border);
        }

        /* ── 11. Wandering Mascot System ── */
        #mascot-container {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100vw;
            height: 10px;
            pointer-events: none;
            z-index: 95;
            overflow: visible;
        }

        body.modal-open #mascot-container {
            display: none !important;
        }

        .mascot-character {
            position: absolute;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.1s linear;
            --flip: 1;
        }

        .mascot-walk-left {
            --flip: -1;
        }

        .mascot-walk-right {
            --flip: 1;
        }

        .mascot-sprite {
            width: 48px;
            height: 48px;
            background: var(--primary);
            border: 4px solid var(--border);
            image-rendering: pixelated;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-family: var(--pixel-font);
            color: #000;
            background-size: cover;
            background-position: center;
            transform: scaleX(var(--flip));
        }

        .mascot-name {
            background: var(--surface);
            color: var(--text-main);
            border: 4px solid var(--border);
            font-family: var(--pixel-font);
            font-size: 0.5rem;
            padding: 0.3rem 0.5rem;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            text-shadow: none;
        }

        .mascot-bubble {
            background: var(--text-main);
            color: var(--invert-text);
            border: 4px solid var(--border);
            font-family: var(--pixel-font);
            font-size: 0.55rem;
            padding: 0.5rem 0.7rem;
            margin-bottom: 0.4rem;
            border-radius: 0;
            position: relative;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s, transform 0.3s;
            max-width: 180px;
            text-align: center;
            line-height: 1.4;
        }

        .mascot-bubble::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px 8px 0;
            border-style: solid;
            border-color: var(--border) transparent transparent transparent;
        }

        .mascot-bubble.show {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes walkBob {
            0% {
                transform: scaleX(var(--flip)) translateY(0);
            }

            50% {
                transform: scaleX(var(--flip)) translateY(-4px);
            }

            100% {
                transform: scaleX(var(--flip)) translateY(0);
            }
        }

        .is-walking .mascot-sprite {
            animation: walkBob 0.3s infinite;
        }

        /* ── 12. Micro-interactions & Idle ── */
        .typewriter-text {
            border-right: .5em solid var(--primary);
            white-space: nowrap;
            overflow: hidden;
            display: inline-block;
            animation: blink-caret .75s step-end infinite;
        }

        @keyframes blink-caret {

            from,
            to {
                border-color: transparent
            }

            50% {
                border-color: var(--primary);
            }
        }

        .glitch-hover {
            position: relative;
            display: inline-block;
        }

        .glitch-hover:hover {
            animation: glitch-anim 0.2s linear infinite;
        }

        @keyframes glitch-anim {
            0% {
                transform: translate(0)
            }

            20% {
                transform: translate(-2px, 2px)
            }

            40% {
                transform: translate(-2px, -2px)
            }

            60% {
                transform: translate(2px, 2px)
            }

            80% {
                transform: translate(2px, -2px)
            }

            100% {
                transform: translate(0)
            }
        }

        .pixel-bobbing {
            animation: bobbing 2s infinite ease-in-out;
        }

        @keyframes bobbing {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        /* ── 13. Page Entrance & Scroll Reveal ── */
        .page-content-transition {
            animation: pageFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes pageFadeInUp {
            0% {
                opacity: 0;
                transform: translateY(16px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* HUD Scanner Sweep Line */
        .hud-scanner-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary), #60a5fa, var(--primary), transparent);
            box-shadow: 0 0 14px var(--primary), 0 0 28px rgba(96, 165, 250, 0.6);
            z-index: 99998;
            pointer-events: none;
            animation: hudScanSweep 1.1s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
        }

        @keyframes hudScanSweep {
            0% {
                opacity: 1;
                transform: translateY(-5px);
            }
            70% {
                opacity: 0.85;
            }
            100% {
                opacity: 0;
                transform: translateY(100vh);
            }
        }

        /* Staggered Scroll Reveal (Enter & Exit) */
        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(28px) scale(0.97);
            transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: opacity, transform;
        }

        .reveal-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .reveal-on-scroll.is-visible:hover {
            transform: translateY(-6px) scale(1.01) !important;
        }

        /* ── 14. Advanced Laser Shimmer & HUD Scanner Micro-Interaction ── */
        .prestasi-card,
        .produk-card,
        .pengurus-card,
        .divisi-image-card,
        .pixel-news-featured,
        .pixel-news-list,
        .pixel-proker-card,
        .pixel-class-card,
        .pixel-stat {
            position: relative;
            overflow: hidden;
            transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                        border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        /* Hover Border Glow */
        .prestasi-card:hover,
        .produk-card:hover,
        .pengurus-card:hover,
        .divisi-image-card:hover,
        .pixel-news-featured:hover,
        .pixel-news-list:hover,
        .pixel-proker-card:hover,
        .pixel-class-card:hover,
        .pixel-stat:hover {
            border-color: var(--primary) !important;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5),
                        0 0 18px rgba(250, 204, 21, 0.45) !important;
        }

        /* Layer 1: Diagonal Cyber Laser Beam */
        .prestasi-card::before,
        .produk-card::before,
        .pengurus-card::before,
        .divisi-image-card::before,
        .pixel-news-featured::before,
        .pixel-news-list::before,
        .pixel-proker-card::before,
        .pixel-class-card::before,
        .pixel-stat::before {
            content: '';
            position: absolute;
            top: -60%;
            left: -160%;
            width: 50%;
            height: 220%;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(250, 204, 21, 0.05) 15%,
                rgba(250, 204, 21, 0.5) 45%,
                #ffffff 50%,
                rgba(56, 189, 248, 0.55) 55%,
                rgba(56, 189, 248, 0.05) 85%,
                transparent 100%
            );
            transform: rotate(26deg);
            pointer-events: none;
            z-index: 10;
            opacity: 0;
            box-shadow: 0 0 20px rgba(250, 204, 21, 0.65), 0 0 35px rgba(56, 189, 248, 0.45);
        }

        .prestasi-card:hover::before,
        .produk-card:hover::before,
        .pengurus-card:hover::before,
        .divisi-image-card:hover::before,
        .pixel-news-featured:hover::before,
        .pixel-news-list:hover::before,
        .pixel-proker-card:hover::before,
        .pixel-class-card:hover::before,
        .pixel-stat:hover::before {
            opacity: 1;
            animation: laserShimmerSweep 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes laserShimmerSweep {
            0% {
                left: -160%;
            }
            100% {
                left: 220%;
            }
        }

        /* Layer 2: Horizontal HUD Laser Scanner Line */
        .prestasi-card::after,
        .produk-card::after,
        .pengurus-card::after,
        .divisi-image-card::after,
        .pixel-news-featured::after,
        .pixel-proker-card::after,
        .pixel-class-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2.5px;
            background: linear-gradient(90deg, transparent 0%, #38bdf8 30%, #facc15 50%, #38bdf8 70%, transparent 100%);
            box-shadow: 0 0 10px #facc15, 0 0 20px #38bdf8;
            opacity: 0;
            pointer-events: none;
            z-index: 11;
        }

        .prestasi-card:hover::after,
        .produk-card:hover::after,
        .pengurus-card:hover::after,
        .divisi-image-card:hover::after,
        .pixel-news-featured:hover::after,
        .pixel-proker-card:hover::after,
        .pixel-class-card:hover::after {
            opacity: 1;
            animation: cardLaserScanDown 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        @keyframes cardLaserScanDown {
            0% {
                top: 0%;
                opacity: 0.95;
            }
            85% {
                opacity: 0.85;
            }
            100% {
                top: 100%;
                opacity: 0;
            }
        }

/* ── 15. Floating WhatsApp Chat Widget ── */
.floating-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-tooltip {
    background-color: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}
.floating-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Animasi Pulse (denyut) */
.floating-chat-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulseWhatsApp 2s infinite;
    opacity: 0;
}

@keyframes pulseWhatsApp {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-chat-container:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .floating-chat-container {
        bottom: 20px;
        right: 20px;
    }
    .floating-chat-btn {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .chat-tooltip {
        display: none;
    }
}

/* ==========================================
   RETRO CYBERPUNK POPUP MODAL
   ========================================== */
.retro-popup-modal .modal-dialog {
    max-width: min(92vw, 560px);
    margin: 1.5rem auto;
}

.retro-popup-modal .pixel-modal-content {
    background: #0d121f;
    border: 3px solid var(--primary, #ffd000);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 208, 0, 0.28), 0 20px 50px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    color: var(--text-main, #e2e8f0);
}

.retro-popup-modal .pixel-modal-header {
    background: #151d2f;
    border-bottom: 2px solid var(--primary, #ffd000);
    padding: 0.65rem 1rem;
}

.retro-popup-modal .pixel-status-blinker {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
    animation: pixelBlinker 1.2s infinite alternate ease-in-out;
}

@keyframes pixelBlinker {
    0% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
}

.retro-popup-modal .pixel-modal-tag {
    font-family: var(--pixel-font, monospace);
    font-size: 0.8rem;
    color: var(--primary, #ffd000);
    letter-spacing: 1px;
}

.retro-popup-modal .pixel-btn-close {
    background: transparent;
    border: 2px solid var(--primary, #ffd000);
    color: var(--primary, #ffd000);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.retro-popup-modal .pixel-btn-close:hover {
    background: var(--primary, #ffd000);
    color: #000;
    box-shadow: 0 0 10px var(--primary, #ffd000);
}

.retro-popup-modal .pixel-modal-title {
    color: #ffffff;
    font-family: var(--pixel-font, monospace);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    word-break: break-word;
}

.retro-popup-modal .pixel-modal-img-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #050811;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.retro-popup-modal .pixel-modal-img {
    max-height: 52vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

.retro-popup-modal .pixel-modal-img-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.retro-popup-modal .pixel-modal-img-link:hover .pixel-modal-img {
    transform: scale(1.02);
}

.retro-popup-modal .pixel-modal-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--primary, #ffd000);
    color: var(--primary, #ffd000);
    font-family: var(--pixel-font, monospace);
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    letter-spacing: 0.5px;
}

.retro-popup-modal .pixel-modal-footer {
    background: #111726;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
}

.retro-popup-modal .pixel-modal-hint {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Light Theme Overrides for Retro Popup */
[data-theme="light"] .retro-popup-modal .pixel-modal-content {
    background: #ffffff;
    border-color: #0F6CA4;
    box-shadow: 0 0 25px rgba(15, 108, 164, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

[data-theme="light"] .retro-popup-modal .pixel-modal-header {
    background: #f1f5f9;
    border-bottom-color: #0F6CA4;
}

[data-theme="light"] .retro-popup-modal .pixel-modal-tag {
    color: #0F6CA4;
}

[data-theme="light"] .retro-popup-modal .pixel-btn-close {
    border-color: #0F6CA4;
    color: #0F6CA4;
}

[data-theme="light"] .retro-popup-modal .pixel-btn-close:hover {
    background: #0F6CA4;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(15, 108, 164, 0.5);
}

[data-theme="light"] .retro-popup-modal .pixel-modal-title {
    color: #0f172a;
}

[data-theme="light"] .retro-popup-modal .pixel-modal-img-wrapper {
    background: #f8fafc;
    border-color: #cbd5e1;
}

[data-theme="light"] .retro-popup-modal .pixel-modal-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0F6CA4;
    color: #0F6CA4;
}

[data-theme="light"] .retro-popup-modal .pixel-modal-footer {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

@media (max-width: 576px) {
    .retro-popup-modal .modal-dialog {
        max-width: 94vw;
        margin: 0.75rem auto;
    }
    .retro-popup-modal .pixel-modal-title {
        font-size: 0.95rem;
    }
    .retro-popup-modal .pixel-modal-img {
        max-height: 46vh;
    }
    .retro-popup-modal .pixel-modal-tag {
        font-size: 0.7rem;
    }
}


