#global-loader { position: fixed; inset: 0; background: #f9fafb; z-index: 9999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
        .spinner-loader { border: 4px solid #e5e7eb; border-top: 4px solid #1e40af; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 15px; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        body { font-family: 'Inter', sans-serif; background-color: #f9fafb; overflow-x: hidden; }
        .video-scroll-container, .thumbnail-container { scroll-behavior: smooth; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
        .video-scroll-container::-webkit-scrollbar, .thumbnail-container::-webkit-scrollbar { display: none; }
        .sidebar-link { transition: all 0.2s; border-left: 3px solid transparent; }
        .sidebar-link:hover, .sidebar-link.active { background-color: rgba(255,255,255,0.1); border-left-color: #fbbf24; }
        @keyframes modalPop { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
        .modal-animate { animation: modalPop 0.3s ease-out forwards; }

        .rich-content h1 { font-size: 2em; font-weight: bold; margin-bottom: 0.5em; }
        .rich-content h2 { font-size: 1.5em; font-weight: bold; margin-bottom: 0.5em; }
        .rich-content h3 { font-size: 1.17em; font-weight: bold; margin-bottom: 0.5em; }
        .rich-content ul { list-style-type: disc; padding-left: 2em; margin-bottom: 1em; }
        .rich-content ol { list-style-type: decimal; padding-left: 2em; margin-bottom: 1em; }
        .rich-content p { margin-bottom: 1em; }
        
        /* PERBAIKAN 1 & 2: Gambar bisa ditarik, tidak terpotong (max-width), proporsional (height auto), bisa digeser (cursor move) */
        .rich-content:not(.note-editable) img { max-width: 100%; height: auto !important; display: inline-block; margin: 0.5em 0; } 
        .note-editable img { max-width: 100%; height: auto !important; display: inline-block; margin: 0.5em 0; cursor: move; }
        
        .rich-content iframe, .rich-content video { max-width: 100%; height: auto; display: inline-block; margin: 0.5em 0; }
        .rich-content a { color: #2563eb; text-decoration: underline; }
        .rich-content table { width: 100%; border-collapse: collapse; margin-bottom: 1em; overflow-x: auto; display: block; }
        .rich-content th, .rich-content td { border: 1px solid #d1d5db; padding: 0.5em; }
        .rich-content .profil-card .img-wrapper img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top !important; display: inline-block !important; margin: 0 !important; }
        
        .edit-mode-active .editable-area { outline: 3px dashed #f59e0b; outline-offset: -3px; position: relative; animation: pulseOutline 2s infinite; }
        @keyframes pulseOutline { 0% { outline-color: #f59e0b; } 50% { outline-color: #ef4444; } 100% { outline-color: #f59e0b; } }
        .inline-edit-badge { display: none; position: absolute; top: 0; right: 0; background: #ef4444; color: white; padding: 6px 12px; font-size: 11px; font-weight: bold; cursor: pointer; z-index: 50; border-bottom-left-radius: 8px; border-bottom-right-radius: 0px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: background 0.2s; }
        .inline-edit-badge:hover { background: #dc2626; }
        .edit-mode-active .inline-edit-badge { display: flex; align-items: center; gap: 6px; }
        .edit-mode-active .local-badge { background: #059669; } 
        .edit-mode-active .local-badge:hover { background: #047857; }
        
        .edit-mode-active #footer-logo-wrapper { resize: both; overflow: hidden; outline: 3px dashed #f59e0b; outline-offset: 4px; min-height: 50px; min-width: 50px; max-width: 100%; background-color: rgba(255,255,255,0.05); cursor: pointer; z-index: 40; }
        .edit-mode-active #footer-logo-wrapper::after { content: '\f31e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; bottom: 0; right: 0; background: #f59e0b; color: white; font-size: 12px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; border-top-left-radius: 8px; box-shadow: -2px -2px 5px rgba(0,0,0,0.2); }
        .edit-mode-active #reset-logo-size-btn { display: flex !important; }
        
        .admin-tab { display: none; }
        .admin-tab.active { display: flex; }
        
        #modal-frontend-config, #modal-page, #modal-berita, #modal-tim { z-index: 99995 !important; } 
        .note-modal-backdrop { z-index: 99998 !important; display: none !important; } 
        .note-modal { z-index: 99999 !important; } 
        .note-editor.note-frame.fullscreen { z-index: 99990 !important; background: white; }

        .swiper-container { width: 100%; padding-top: 30px; padding-bottom: 30px; overflow: hidden; }
        .swiper-slide {
            background-position: center; background-size: cover;
            width: 280px; height: 380px; border-radius: 16px; overflow: hidden;
            transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease !important;
            will-change: transform; position: relative;
            filter: grayscale(100%) brightness(0.6); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        @media (min-width: 768px) { .swiper-slide { width: 320px; height: 420px; } }
        .swiper-slide-active { filter: grayscale(0%) brightness(1); z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
        .slide-overlay {
            position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
            padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
            color: white; opacity: 0.5; transition: opacity 0.4s ease;
        }
        .swiper-slide-active .slide-overlay { opacity: 1; }
        .custom-navigation-wrapper { display: flex; flex-direction: column; align-items: center; margin-top: 20px; gap: 15px; }
        .fraction-pagination { font-weight: 600; font-size: 0.9rem; color: #6b7280; letter-spacing: 2px; }
        .fraction-pagination .current { color: #047857; }
        .controls-row { display: flex; align-items: center; gap: 15px; }
        .btn-nav { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; background-color: transparent; border: 1px solid #d1d5db; color: #374151; }
        @media (min-width: 768px) { .btn-nav { width: 50px; height: 50px; } .controls-row { gap: 20px; } }
        .btn-nav:hover { background-color: #1f2937; color: white; border-color: #1f2937; }
        .btn-nav.swiper-button-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
        .custom-pagination { display: flex; gap: 6px; align-items: center; }
        .custom-bullet { width: 20px; height: 3px; background-color: #d1d5db; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
        @media (min-width: 768px) { .custom-bullet { width: 25px; gap: 8px;} }
        .custom-bullet.active { background-color: #047857; }
        .swiper-button-next::after, .swiper-button-prev::after { display: none; }

        /* =================== PERBAIKAN CSS =================== */
        /* Menghilangkan scroll ganda di modal, membiarkan konten turun ke bawah */
        .note-editor { position: relative; border: 1px solid #d1d5db !important; }
        .note-editing-area { overflow: visible !important; }
        .note-editable { transition: transform 0.3s ease; transform-origin: top left; min-height: 350px !important; padding: 15px !important; }

        /* Mencegah halaman utama rusak jika ada tabel/gambar lebar */
        #page-isi-full, #subportal-profile-content, #read-isi {
            overflow: visible !important; 
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Float Fix untuk Tailwind vs Summernote */
        .rich-content img[style*="float: left"] { margin-right: 15px; margin-bottom: 15px; }
        .rich-content img[style*="float: right"] { margin-left: 15px; margin-bottom: 15px; }
        .rich-content img.float-left { float: left; margin-right: 15px; margin-bottom: 15px; }
        .rich-content img.float-right { float: right; margin-left: 15px; margin-bottom: 15px; }
        .rich-content img.mx-auto.block { display: block; margin-left: auto; margin-right: auto; clear: both; }


        /* Posisi tombol zoom di dalam area editing */
        .zoom-controls-summernote { position: absolute; top: 45px; right: 20px; z-index: 1050; background: rgba(255,255,255,0.95); border: 1px solid #ccc; border-radius: 4px; padding: 2px; display: none; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .note-editor:hover .zoom-controls-summernote { display: flex !important; }
        .zoom-btn { background: none; border: none; padding: 6px 10px; cursor: pointer; font-size: 14px; color: #333; border-radius: 3px; }
        .zoom-btn:hover { background-color: #e5e7eb; }

        /* KEMBALIKAN EFEK PROFIL HOVER (Persis seperti gambar 2 di request sebelumnya) */
        .profile-card-container { position: relative; display: inline-block; margin: 20px auto; }
        .profile-image-wrap { position: relative; background: #fff; z-index: 10; transition: all 0.5s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 50%; overflow: hidden;}
        .profile-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: all 0.5s ease; display: block; }
        
        .profile-hover-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -40%);
            opacity: 0;
            visibility: hidden;
            z-index: 30;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 350px;
            text-align: center;
            text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,1);
        }

        /* --- MODE ADMIN (EDIT) --- */
        .note-editable .profile-image-wrap {
            resize: both !important;
            overflow: auto !important;
            outline: 2px dashed #3b82f6;
            cursor: se-resize;
            border-bottom-right-radius: 10px !important; 
        }
        .note-editable .profile-image-wrap img { width: 100% !important; height: 100% !important; opacity: 0.3 !important; }
        .note-editable .admin-camera-icon { display: flex !important; }
        .note-editable .profile-hover-content { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, -50%) !important; }

        /* --- MODE PUBLIK (PENGUNJUNG) --- */
        .rich-content:not(.note-editable) .profile-image-wrap { resize: none !important; outline: none !important; border-bottom-right-radius: 50% !important; }
        .rich-content:not(.note-editable) .profile-image-wrap::-webkit-resizer { display: none !important; -webkit-appearance: none; }
        .rich-content:not(.note-editable) .profile-image-wrap label { pointer-events: none !important; cursor: default; }
        .rich-content:not(.note-editable) .admin-camera-icon { display: none !important; }

        .rich-content:not(.note-editable) .profile-card-container:hover .profile-hover-content {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%);
        }

        .rich-content:not(.note-editable) .profile-card-container:hover .profile-image-wrap img {
            opacity: 0.15;
            filter: blur(4px) brightness(1.2) grayscale(20%);
            transform: scale(1.05);
        }

        .swiper-slide img { object-fit: cover !important; object-position: center 15% !important; }
        /* ===================================================== */