        /* Hide scrollbars globally */
        ::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
            background: transparent;
        }

        * {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Sleek Modern Scrollbar for Admin Sidebar & Main Content Viewport */
        .admin-scrollbar {
            -ms-overflow-style: auto !important;
            scrollbar-width: thin !important;
            scrollbar-color: rgba(148, 163, 184, 0.4) transparent !important;
        }

        .dark .admin-scrollbar {
            scrollbar-color: rgba(71, 85, 105, 0.4) transparent !important;
        }

        .admin-scrollbar::-webkit-scrollbar {
            display: block !important;
            width: 6px !important;
            height: 6px !important;
        }

        .admin-scrollbar::-webkit-scrollbar-track {
            background: transparent !important;
        }

        .admin-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.35) !important;
            border-radius: 9999px !important;
            transition: background-color 0.2s ease !important;
        }

        .admin-scrollbar:hover::-webkit-scrollbar-thumb {
            background: rgba(16, 185, 129, 0.6) !important;
        }

        .dark .admin-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(71, 85, 105, 0.5) !important;
        }

        .dark .admin-scrollbar:hover::-webkit-scrollbar-thumb {
            background: rgba(52, 211, 153, 0.6) !important;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        .font-arabic {
            font-family: 'Amiri', serif;
        }

        .font-mono {
            font-family: 'JetBrains Mono', monospace;
        }

        .glassmorphism {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .dark .glassmorphism {
            background: rgba(10, 23, 17, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        /* Marquee Ticker */
        .mask-fade-edges {
            mask-image: linear-gradient(to right, transparent, white 6%, white 94%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, white 6%, white 94%, transparent);
        }

        @keyframes marquee {
            0% {
                transform: translate3d(0, 0, 0);
            }

            100% {
                transform: translate3d(-100%, 0, 0);
            }
        }

        .animate-marquee {
            animation: marquee 32s linear infinite;
        }

        .animate-marquee:hover {
            animation-play-state: paused;
        }

        /* ==========================================================================
           MOTION NAVIGATION MENU ENGINE (FRAMER MOTION / RADIX EQUIVALENT)
           ========================================================================== */
        .motion-navigation-menu {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .motion-nav-list {
            position: relative;
            display: flex;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0.2rem;
            gap: 0.25rem;
            z-index: 10;
        }

        /* Magic Pill Sliding Hover Background */
        .motion-nav-highlight {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: rgba(27, 77, 62, 0.07);
            border-radius: 8px;
            pointer-events: none;
            opacity: 0;
            transform: scale(0.96);
            transition: left 280ms cubic-bezier(0.16, 1, 0.3, 1), width 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease, transform 180ms ease;
            z-index: 1;
        }

        .dark .motion-nav-highlight {
            background: rgba(200, 174, 118, 0.14);
        }

        .motion-nav-item {
            position: relative;
            z-index: 2;
        }

        .motion-nav-trigger,
        .motion-nav-link-direct {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.45rem 0.85rem;
            font-size: 0.845rem;
            font-weight: 600;
            color: #39433E;
            background: transparent;
            border: none;
            border-radius: 8px;
            text-decoration: none;
            cursor: pointer;
            outline: none;
            transition: color 150ms ease;
            white-space: nowrap;
        }

        .dark .motion-nav-trigger,
        .dark .motion-nav-link-direct {
            color: #E8E5DE;
        }

        .motion-nav-trigger:hover,
        .motion-nav-link-direct:hover,
        .motion-nav-trigger[data-state="open"] {
            color: #1B4D3E;
        }

        .dark .motion-nav-trigger:hover,
        .dark .motion-nav-link-direct:hover,
        .dark .motion-nav-trigger[data-state="open"] {
            color: #E2CFA5;
        }

        .motion-nav-chevron {
            font-size: 0.65rem;
            transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0.6;
        }

        .motion-nav-trigger[data-state="open"] .motion-nav-chevron {
            transform: rotate(180deg);
            opacity: 1;
            color: #1B4D3E;
        }

        /* Motion Navigation Viewport (Floating Morphing Card) */
        .motion-nav-viewport-wrapper {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            display: flex;
            justify-content: center;
            z-index: 1050;
            pointer-events: none;
            perspective: 1000px;
        }

        .motion-nav-viewport-wrapper.is-open {
            pointer-events: auto;
        }

        .motion-nav-viewport {
            position: relative;
            background: rgba(255, 255, 255, 0.99);
            border: 1px solid #E8E5DE;
            border-radius: 1rem;
            box-shadow: 0 18px 40px -14px rgba(19, 42, 32, 0.14), 0 1px 2px rgba(19, 42, 32, 0.04);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            overflow: hidden;
            transform-origin: top center;
            opacity: 0;
            transform: translateY(-8px) scale(0.96);
            transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1), height 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
            will-change: width, height, transform, opacity;
        }

        .dark .motion-nav-viewport {
            background: rgba(10, 23, 17, 0.98);
            border-color: rgba(197, 179, 142, 0.22);
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55);
        }

        .motion-nav-viewport-wrapper.is-open .motion-nav-viewport {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* Pointer Arrow Indicator */
        .motion-nav-arrow {
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 10px;
            height: 10px;
            background: #ffffff;
            border-left: 1px solid #E8E5DE;
            border-top: 1px solid #E8E5DE;
            z-index: 1051;
            transition: left 320ms cubic-bezier(0.16, 1, 0.3, 1);
        }

        .dark .motion-nav-arrow {
            background: #0A1711;
            border-color: rgba(197, 179, 142, 0.22);
        }

        /* Content Directional Morphing Panes */
        .motion-nav-content-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .motion-nav-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.15rem;
            box-sizing: border-box;
            opacity: 0;
            pointer-events: none;
            transform: translateX(0);
            transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
        }

        .motion-nav-content.active {
            position: relative;
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0) !important;
        }

        .motion-nav-content.from-left {
            transform: translateX(-35px);
        }

        .motion-nav-content.from-right {
            transform: translateX(35px);
        }

        /* Card subitems in dropdown */
        .nav-subitem-link {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.65rem 0.75rem;
            border-radius: 0.5rem;
            text-decoration: none;
            color: #141A17;
            transition: all 180ms ease;
            position: relative;
            cursor: pointer;
        }

        .dark .nav-subitem-link {
            color: #F6F5F0;
        }

        .nav-subitem-link:hover {
            background: #F6F5F0;
            transform: translateX(2px);
        }

        .dark .nav-subitem-link:hover {
            background: rgba(200, 174, 118, 0.1);
        }

        .nav-subitem-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #F3EFE6;
            color: #1B4D3E;
            border: 1px solid #E5DEC9;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            flex-shrink: 0;
            transition: all 180ms ease;
        }

        .dark .nav-subitem-icon {
            background: rgba(27, 77, 62, 0.45);
            color: #E2CFA5;
            border-color: rgba(200, 174, 118, 0.25);
        }

        .nav-subitem-link:hover .nav-subitem-icon {
            background: #1B4D3E !important;
            color: #E2CFA5 !important;
            border-color: #1B4D3E !important;
        }

        .nav-subitem-title {
            font-weight: 700;
            font-size: 0.835rem;
            color: #131B17;
            margin-bottom: 0.1rem;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .dark .nav-subitem-title {
            color: #F6F5F0;
        }

        .nav-subitem-link:hover .nav-subitem-title {
            color: #1B4D3E;
        }

        .dark .nav-subitem-link:hover .nav-subitem-title {
            color: #E2CFA5;
        }

        .nav-subitem-desc {
            font-size: 0.735rem;
            color: #515B56;
            margin: 0;
            line-height: 1.35;
        }

        .dark .nav-subitem-desc {
            color: #8F9893;
        }

        /* Spotlight Feature Card Inside Dropdown (Heritage Cypress & Brushed Champagne) */
        .nav-spotlight-card {
            background: linear-gradient(145deg, #215A49 0%, #143A2E 100%);
            border: 1px solid rgba(200, 174, 118, 0.4);
            color: #ffffff;
            border-radius: 0.85rem;
            padding: 1.05rem;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 20px, 0);
            }

            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        .animate-page-entry {
            animation: fadeInUp 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* ==========================================================================
           3D PERSPECTIVE PARALLAX CAROUSEL (INFINITE CIRCULAR & FLOATING SIDE ARROWS)
           ========================================================================== */
        .carousel-3d-root {
            position: relative;
            width: 100%;
            overflow: visible;
            padding: 1.5rem 0 2.5rem;
        }

        .carousel-3d-stage {
            position: relative;
            width: 100%;
            height: 480px;
            perspective: 1200px;
            transform-style: preserve-3d;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
        }

        @media (min-width: 768px) {
            .carousel-3d-stage {
                height: 520px;
            }
        }

        .carousel-3d-track {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform-style: preserve-3d;
        }

        .carousel-3d-slide {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 82vw;
            max-width: 440px;
            height: 430px;
            border-radius: 1.5rem;
            overflow: hidden;
            transform-origin: bottom center;
            transform: translate3d(calc(-50% + var(--slide-x, 0px)), -50%, var(--slide-z, 0px)) rotateY(var(--slide-ry, 0deg)) rotateX(var(--slide-rx, 0deg)) scale(var(--slide-scale, 1));
            opacity: var(--slide-opacity, 1);
            z-index: var(--slide-zindex, 10);
            transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.55s ease, filter 0.55s ease, box-shadow 0.55s ease;
            cursor: pointer;
            user-select: none;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
            will-change: transform, opacity;
        }

        @media (min-width: 768px) {
            .carousel-3d-slide {
                max-width: 480px;
                height: 470px;
            }
        }

        /* Inactive slide states */
        .carousel-3d-slide.is-prev,
        .carousel-3d-slide.is-next {
            filter: brightness(0.7) blur(0.5px);
        }

        .carousel-3d-slide.is-far {
            filter: brightness(0.5) blur(2px);
            pointer-events: none;
        }

        /* Active slide state */
        .carousel-3d-slide.is-active {
            filter: brightness(1) blur(0);
            box-shadow: 0 24px 48px -14px rgba(20, 58, 46, 0.32), 0 0 0 1px rgba(200, 174, 118, 0.38);
            cursor: pointer;
        }

        .carousel-slide-bg-container {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-color: #143A2E;
            overflow: hidden;
            transition: transform 0.15s ease-out;
        }

        .carousel-slide-img {
            position: absolute;
            inset: -8%;
            width: 116% !important;
            height: 116% !important;
            max-width: none !important;
            object-fit: cover;
            object-position: center;
            transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.5s ease;
            will-change: transform;
        }

        /* Dark Gradient Overlay: Hidden by default, fades in on hover */
        .carousel-slide-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.25) 30%, rgba(15, 23, 42, 0.94) 100%);
            opacity: 0;
            transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
        }

        .carousel-3d-slide:hover .carousel-slide-overlay,
        .carousel-3d-slide.is-active:hover .carousel-slide-overlay {
            opacity: 1;
        }

        /* Slide Content Text: Hidden by default (Slide Down + Fade Out), reveals on Hover (Slide Up + Fade In) */
        .carousel-slide-content {
            position: relative;
            z-index: 10;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 2rem;
            color: #ffffff;
            opacity: 0;
            transform: translateY(32px);
            pointer-events: none;
            transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Hover Reveal: Slide Up & Fade In */
        .carousel-3d-slide:hover .carousel-slide-content,
        .carousel-3d-slide.is-active:hover .carousel-slide-content {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* Floating Side Navigation Buttons (Hover Reveal Animation: Slide + Fade In/Out) */
        .carousel-side-nav-btn {
            position: absolute;
            top: 50%;
            z-index: 40;
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.9);
            color: #0f172a;
            border: 1px solid rgba(226, 232, 240, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            will-change: transform, opacity;
        }

        /* Initial offset state (sembunyi ke luar bingkai) */
        .carousel-side-nav-btn.btn-prev {
            transform: translateY(-50%) translateX(-28px);
        }

        .carousel-side-nav-btn.btn-next {
            transform: translateY(-50%) translateX(28px);
        }

        .dark .carousel-side-nav-btn {
            background: rgba(15, 23, 42, 0.88);
            color: #f8fafc;
            border-color: rgba(51, 65, 85, 0.85);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
        }

        /* Hover Reveal: Slide In + Fade In saat mouse berada di area carousel */
        .carousel-3d-root:hover .carousel-side-nav-btn,
        .carousel-3d-root:focus-within .carousel-side-nav-btn {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(-50%) translateX(0);
        }

        /* Hover pada tombol panah itu sendiri */
        .carousel-side-nav-btn:hover {
            transform: translateY(-50%) translateX(0) scale(1.06) !important;
            background: #1B4D3E;
            color: #E2CFA5;
            border-color: #1B4D3E;
            box-shadow: 0 10px 24px -6px rgba(27, 77, 62, 0.32);
        }

        .carousel-side-nav-btn:active {
            transform: translateY(-50%) translateX(0) scale(0.95) !important;
        }

        /* Perangkat layar sentuh murni tanpa mouse: tetap jaga foto bersih, tampilkan tombol navigasi */
        @media (hover: none) and (pointer: coarse) {
            .carousel-side-nav-btn {
                opacity: 0.9;
                pointer-events: auto;
            }

            .carousel-side-nav-btn.btn-prev,
            .carousel-side-nav-btn.btn-next {
                transform: translateY(-50%) translateX(0);
            }
        }

        /* Pagination Dot */
        .carousel-dot {
            height: 0.5rem;
            width: 0.5rem;
            border-radius: 9999px;
            background: #D9D2C2;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer;
        }

        .carousel-dot.active {
            width: 1.75rem;
            background: #1B4D3E;
            box-shadow: none;
        }

        .dark .carousel-dot {
            background: #39433E;
        }

        .dark .carousel-dot.active {
            background: #C8AE76;
        }

        /* Program Detail Gallery Showcase Hover Reveal Animation System */
        .gallery-showcase-nav-btn {
            position: absolute;
            top: 50%;
            z-index: 30;
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.92);
            color: #0f172a;
            border: 1px solid rgba(226, 232, 240, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
            cursor: pointer;
            will-change: transform, opacity;
        }

        .gallery-showcase-nav-btn.btn-prev {
            left: 1rem;
            transform: translateY(-50%) translateX(-24px);
        }

        .gallery-showcase-nav-btn.btn-next {
            right: 1rem;
            transform: translateY(-50%) translateX(24px);
        }

        .dark .gallery-showcase-nav-btn {
            background: rgba(15, 23, 42, 0.9);
            color: #f8fafc;
            border-color: rgba(51, 65, 85, 0.85);
        }

        /* Hover Reveal: Slide In + Fade In saat mouse mengarah ke container galeri */
        #detailGalleryContainer:hover .gallery-showcase-nav-btn,
        #detailGalleryContainer:focus-within .gallery-showcase-nav-btn {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(-50%) translateX(0);
        }

        .gallery-showcase-nav-btn:hover {
            transform: translateY(-50%) translateX(0) scale(1.06) !important;
            background: #1B4D3E;
            color: #E2CFA5;
            border-color: #1B4D3E;
        }

        .gallery-showcase-nav-btn:active {
            transform: translateY(-50%) translateX(0) scale(0.95) !important;
        }

        /* Caption Text & Overlay: Hidden by default, Slide Up + Fade In on hover */
        .gallery-slide-caption-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.95) 100%);
            display: flex;
            align-items: flex-end;
            padding: 1.25rem;
            opacity: 0;
            transform: translateY(24px);
            pointer-events: none;
            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: transform, opacity;
        }

        @media (min-width: 640px) {
            .gallery-slide-caption-overlay {
                padding: 1.75rem;
            }
        }

        #detailGalleryContainer:hover .gallery-slide-caption-overlay,
        #detailGalleryContainer:focus-within .gallery-slide-caption-overlay {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        @media (hover: none) {
            .gallery-showcase-nav-btn {
                opacity: 0.85;
                pointer-events: auto;
                transform: translateY(-50%) translateX(0) !important;
            }

            .gallery-slide-caption-overlay {
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }
        }

        /* Programs Catalog Filter Button Styles */
        .prog-filter-btn {
            padding: 0.5rem 1.125rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 700;
            transition: all 0.25s ease;
            cursor: pointer;
            border: 1px solid transparent;
            color: #64748b;
            white-space: nowrap;
        }

        .dark .prog-filter-btn {
            color: #94a3b8;
        }

        .prog-filter-btn:hover {
            color: #1B4D3E;
            background: rgba(27, 77, 62, 0.07);
        }

        .prog-filter-btn.active {
            background: #1B4D3E;
            color: #E2CFA5 !important;
            box-shadow: 0 3px 10px rgba(27, 77, 62, 0.2);
        }

        /* Mobile & Desktop Responsive Sidebar Rules for Portal Siswa */
        @media (max-width: 767px) {
            #ppdbSidebarRail .portal-sidebar-label {
                opacity: 1 !important;
                display: block !important;
            }
        }
        @media (min-width: 768px) {
            #ppdbSidebarRail.is-expanded {
                width: 16rem !important;
            }
            #ppdbSidebarRail.is-expanded .portal-sidebar-label {
                opacity: 1 !important;
                display: block !important;
            }
        }
    
        /* Official PPDB Exam Card Print Styles */
        @media print {
            body * {
                visibility: hidden !important;
            }
            #printablePpdbCard, #printablePpdbCard * {
                visibility: visible !important;
            }
            #printablePpdbCard {
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 24px !important;
                box-shadow: none !important;
                border: 1px solid #94a3b8 !important;
                background: #ffffff !important;
                color: #0f172a !important;
            }
            #ppdbSidebarRail, header, #mainNavbar, #mainFooter, .page-section:not(#page-portal-siswa) {
                display: none !important;
            }
        }


        #gsapScrollProgressBar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2.5px;
            background: linear-gradient(90deg, #153D31 0%, #2E6B58 55%, #C8AE76 100%);
            transform-origin: 0% 50%;
            transform: scaleX(0);
            z-index: 70;
            pointer-events: none;
            box-shadow: none;
        }
        #mainNavbar.gsap-nav-scrolled {
            box-shadow: 0 1px 2px rgba(19, 42, 32, 0.03), 0 8px 24px -14px rgba(19, 42, 32, 0.08);
        }
        .dark #mainNavbar.gsap-nav-scrolled {
            box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
        }
        .gsap-luxury-sheen {
            position: relative;
            overflow: hidden;
        }
        .gsap-luxury-sheen::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -75%;
            width: 42%;
            height: 200%;
            background: linear-gradient(90deg, transparent, rgba(223, 210, 181, 0.22), transparent);
            transform: rotate(24deg);
            transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
        }
        .gsap-luxury-sheen:hover::after {
            left: 135%;
        }

        /* ==========================================================================
           SIMAS AL-ASYRAF DESIGN SYSTEM TOKENS & ALL-DEVICE RESPONSIVE FOUNDATION
           80% Warm Alabaster & Pure Gallery White · 20% Forest Obsidian & Champagne Gold
           ========================================================================== */
        :root {
            --simas-canvas: #F6F5F0;
            --simas-surface: #FFFFFF;
            --simas-recessed: #FAF9F6;
            --simas-border-subtle: #F1EFEA;
            --simas-border: #E8E5DE;
            --green-pastel-border: #D9D2C2;
            --brand-700: #132A20;
            --brand-600: #1D4233;
            --brand-800: #0F221A;
            --champagne: #C5B38E;
            --champagne-light: #DFD2B5;
            --champagne-dark: #9A8254;
            --champagne-soft: #FAF6EC;
            --simas-ink: #141A17;
            --text-body: #3D4742;
            --simas-ink-secondary: #57615C;
            --text-muted: #6E7772;
            --simas-err-border: #B42318;
            --simas-err-bg: #FFFBFB;

            --safe-top: env(safe-area-inset-top, 0px);
            --safe-right: env(safe-area-inset-right, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
            --safe-left: env(safe-area-inset-left, 0px);
            --fluid-hero-title: clamp(1.32rem, 5.1vw, 3.75rem);
            --fluid-section-title: clamp(1.5rem, 3.2vw, 2.5rem);
            --fluid-banner-title: clamp(1.65rem, 3.8vw, 3rem);
        }

        /* Mandatory Tabular Numerals on Numbers, Prices, Dates & Clocks */
        .font-mono,
        table,
        #realtimeClock,
        #realtimeDate,
        [data-tabular] {
            font-variant-numeric: tabular-nums;
        }

        /* Whisper Shadow Architecture (Replaces flashy neon glows) */
        .simas-whisper-card,
        .program-catalog-card {
            border-color: var(--simas-border);
            box-shadow: 0 1px 2px rgba(19, 42, 32, 0.025), 0 6px 20px -14px rgba(19, 42, 32, 0.05);
        }

        /* Form Inputs: Recessed Ivory -> Pure White + Forest Obsidian Focus */
        input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
        select,
        textarea {
            transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
        }
        html:not(.dark) input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus,
        html:not(.dark) select:focus,
        html:not(.dark) textarea:focus {
            background-color: #FFFFFF !important;
            border-color: #1B4D3E !important;
            box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1) !important;
        }

        /* Quiet-Luxury Form Validation (#B42318 & Ceramic Blush #FFFBFB, icon-free) */
        .simas-field-invalid {
            border-color: #B42318 !important;
            background-color: #FFFBFB !important;
            box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09) !important;
        }
        .dark .simas-field-invalid {
            border-color: #F04438 !important;
            background-color: rgba(180, 35, 24, 0.12) !important;
            box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.14) !important;
        }
        .simas-inline-err {
            color: #B42318;
            font-size: 11px;
            line-height: 1.4;
            font-weight: 600;
            margin-top: 5px;
        }
        .dark .simas-inline-err {
            color: #FDA29B;
        }

        /* Sidebar Overscroll Containment (Rule #4) */
        #adminSidebar,
        #ppdbSidebarRail,
        #mobileMenu {
            overscroll-behavior: contain;
        }

        html, body {
            overflow-x: clip;
            max-width: 100%;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        body {
            padding-left: var(--safe-left);
            padding-right: var(--safe-right);
        }

        /* Antislop-Human: Instant keyboard focus ring across all interactive elements */
        :is(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
            outline: 2px solid #C8AE76;
            outline-offset: 2px;
        }

        .dark :is(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
            outline-color: #E2CFA5;
        }

        #mainFooter {
            padding-bottom: calc(1rem + var(--safe-bottom));
        }

        /* Fluid Auto-Scale Hero Headline (Strictly 1-Line on 320px to 4K without clipping) */
        #page-home h1 {
            font-size: var(--fluid-hero-title) !important;
            line-height: 1.14 !important;
        }

        /* Heritage Cypress Mobile Hero Scrim (Zero glare, Brushed Champagne accents) */
        .hero-mobile-split-scrim {
            background: linear-gradient(
                105deg,
                rgba(20, 58, 46, 0.88) 0%,
                rgba(27, 77, 62, 0.66) 48%,
                rgba(20, 58, 46, 0.28) 82%,
                rgba(11, 33, 26, 0.10) 100%
            );
        }
        @media (max-width: 767px) {
            #page-home #heroHeadlinePrefix {
                color: #FFFFFF !important;
                text-shadow: 0 2px 12px rgba(11, 33, 26, 0.45);
            }
            #page-home #heroTypingText {
                background-image: linear-gradient(90deg, #E2CFA5, #C8AE76, #F6F5F0) !important;
                filter: drop-shadow(0 2px 10px rgba(11, 33, 26, 0.35));
            }
            #page-home #heroSubTaglineText {
                color: #E2CFA5 !important;
                text-shadow: 0 1px 8px rgba(11, 33, 26, 0.5);
            }
            #page-home #heroDescriptionText {
                color: rgba(246, 245, 240, 0.95) !important;
                text-shadow: 0 1px 8px rgba(11, 33, 26, 0.5);
            }
        }

        /* Dynamic Viewport Height (prevents iOS Safari & Chrome Mobile bottom bar clipping) */
        #page-portal-siswa,
        #page-dashboard,
        #page-login {
            min-height: 100vh;
            min-height: 100dvh;
        }

        /* Fluid 3D Carousel Auto-Fit Across Mobile, iPad, Desktop & Ultrawide */
        .carousel-3d-stage {
            height: clamp(370px, 58vh, 520px);
        }

        .carousel-3d-slide {
            width: min(86vw, 480px);
            height: clamp(340px, 52vh, 470px);
        }

        @media (max-width: 639px) {
            .carousel-side-nav-btn {
                width: 2.35rem !important;
                height: 2.35rem !important;
                opacity: 0.92 !important;
            }
            .carousel-slide-content {
                padding: 1.15rem !important;
            }
            /* Prevent iOS Safari auto-zoom on form inputs */
            #modalPpdb input:not([type="file"]),
            #modalPpdb select,
            #modalPpdb textarea,
            #page-login input,
            #page-contact input,
            #page-contact textarea {
                font-size: 16px !important;
            }
        }

        /* Compact Desktop (1024px - 1180px) Navbar Auto-Fit */
        @media (min-width: 1024px) and (max-width: 1180px) {
            #mainNavbar .motion-nav-trigger,
            #mainNavbar .motion-nav-link-direct {
                padding-left: 0.6rem !important;
                padding-right: 0.6rem !important;
                font-size: 0.8rem !important;
            }
        }

        /* Touch Ergonomics on Coarse Pointer Devices (Phones & iPads) */
        @media (pointer: coarse) {
            #page-home button,
            #page-ppdb-info button,
            #page-ppdb-info a,
            #modalPpdb button,
            #mobileMenu button {
                min-height: 42px;
            }
        }

        /* Responsive Mega-Menu Viewport Safety */
        .motion-nav-viewport-wrapper {
            max-width: calc(100vw - 1.5rem);
        }
        .motion-nav-viewport {
            max-width: calc(100vw - 1.5rem);
        }

        /* Modals Safe Dynamic Height */
        #modalPpdb > div,
        #modalPpdbSuccess > div,
        #modalAgendaDetail > div {
            max-height: 92dvh;
            padding-bottom: calc(1.5rem + var(--safe-bottom));
        }

        /* Ultrawide Monitor Balance (1920px+) */
        @media (min-width: 1920px) {
            #page-home .min-h-\[560px\] {
                min-height: 640px;
            }
        }
