/* ==========================================================================
   PUSDATIN BGN SITUBONDO — SHARED DESIGN SYSTEM
   "Kaia HUD Dark" — satu bahasa desain untuk seluruh halaman.
   File ini dipakai oleh SEMUA halaman (single source of truth styling).
   ========================================================================== */

/* --- BRANDING & RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text-color, #f3f4f6); overflow-x: hidden; min-height: 100vh; position: relative; transition: background-color 0.4s ease, color 0.4s ease; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, .tech-font { font-family: 'Space Grotesk', sans-serif; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:root {
    --bg: #040612;
    --bg-alt: #02030a;
    --cyan: #00f3ff;
    --cyan-rgb: 0, 243, 255;
    --blue: #0066ff;
    --pink: #ff007c;
    --pink-rgb: 255, 0, 124;
    --red: #ff5e62;
    --green: #00ff88;
    --amber: #ffb703;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.08);
    --hud-bg: rgba(10, 15, 25, 0.85);

    /* --- PALET MAS RIO SWATCHES --- */
    --p-50: #FDF3ED;
    --p-100: #FBE1D2;
    --p-200: #F7C1A3;
    --p-300: #F4A074;
    --p-400: #F1824A;
    --p-500: #F36C21;
    --p-600: #D55B19;
    --p-700: #B04812;
    --p-800: #8C380C;
    --p-900: #692908;

    --s-50: #FEF7F2;
    --s-100: #FDF1E6;
    --s-200: #FBDCBE;
    --s-300: #F9C694;
    --s-400: #F8B179;
    --s-500: #E09B66;
    --s-600: #BF8253;
    --s-700: #996640;
    --s-800: #754D2F;
    --s-900: #52341E;

    --n-50: #F9F9F9;
    --n-100: #F2F2F2;
    --n-200: #E4E4E5;
    --n-300: #C9C9CA;
    --n-400: #919193;
    --n-500: #68686A;
    --n-600: #525254;
    --n-700: #3C3C3D;
    --n-800: #262627;
    --n-900: #141415;
}

/* --- THEME MAS RIO (SUNSET AMBER DARK SYSTEM OVERRIDES) --- */
[data-theme="mas-rio"] {
    --bg: #141415;
    --bg-alt: #1a1a1c;
    --cyan: #F36C21;
    --cyan-rgb: 243, 108, 33;
    --blue: #E09B66;
    --pink: #F1824A;
    --pink-rgb: 241, 130, 74;
    --amber: #F9C694;
    --muted: #919193;
    --line: rgba(228, 228, 229, 0.12);
    --hud-bg: rgba(38, 38, 39, 0.88);
}

/* 1. Global & Ambient Layer Overrides */
[data-theme="mas-rio"] body {
    background-color: var(--bg);
    color: var(--n-100);
}

[data-theme="mas-rio"] .cyber-grid {
    background-image: linear-gradient(rgba(243, 108, 33, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 108, 33, 0.05) 1px, transparent 1px);
}

[data-theme="mas-rio"] .blob-wrapper {
    background: radial-gradient(circle at 85% 15%, rgba(243, 108, 33, 0.22), transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(224, 155, 102, 0.18), transparent 50%);
}

/* 2. Navigation & Branding */
[data-theme="mas-rio"] nav {
    background-color: rgba(20, 20, 21, 0.85);
    border-bottom-color: rgba(243, 108, 33, 0.3);
}

[data-theme="mas-rio"] nav.scrolled {
    background-color: rgba(20, 20, 21, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

[data-theme="mas-rio"] .logo span {
    color: #F36C21;
    text-shadow: 0 0 12px rgba(243, 108, 33, 0.6);
}

[data-theme="mas-rio"] .menu a::after {
    background-color: #F36C21;
}

[data-theme="mas-rio"] .menu a:hover,
[data-theme="mas-rio"] .menu a.active {
    color: #F36C21;
    text-shadow: 0 0 8px rgba(243, 108, 33, 0.5);
}

/* 3. Typography & Text Spans */
[data-theme="mas-rio"] .hero-text-side h1 span,
[data-theme="mas-rio"] .page-hero h1 span,
[data-theme="mas-rio"] .section-title span {
    background: linear-gradient(to right, #F36C21, #E09B66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #F36C21;
}

[data-theme="mas-rio"] .hero-text-side p,
[data-theme="mas-rio"] .page-hero p,
[data-theme="mas-rio"] .card-desc,
[data-theme="mas-rio"] .text-sm {
    color: #C9C9CA;
}

[data-theme="mas-rio"] .card-title,
[data-theme="mas-rio"] .meta-value,
[data-theme="mas-rio"] .section-title {
    color: #F9F9F9;
}

[data-theme="mas-rio"] .breadcrumb a,
[data-theme="mas-rio"] .view-all,
[data-theme="mas-rio"] .card-tag,
[data-theme="mas-rio"] .card-link,
[data-theme="mas-rio"] .meta-label {
    color: #F36C21;
}

[data-theme="mas-rio"] .view-all:hover {
    color: #F4A074;
}

/* 4. Buttons */
[data-theme="mas-rio"] .btn-primary {
    background: linear-gradient(135deg, #F36C21, #D55B19);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(243, 108, 33, 0.35);
}

[data-theme="mas-rio"] .btn-primary:hover {
    box-shadow: 0 14px 32px rgba(243, 108, 33, 0.55);
}

[data-theme="mas-rio"] .btn-outline {
    border-color: rgba(243, 108, 33, 0.35);
    color: #F9F9F9;
}

[data-theme="mas-rio"] .btn-outline:hover {
    border-color: #F36C21;
    color: #F36C21;
    box-shadow: 0 8px 20px rgba(243, 108, 33, 0.25);
}

/* 5. Cards & KPI Command Center */
[data-theme="mas-rio"] .card-kaia {
    background-color: rgba(26, 26, 27, 0.85);
    border-color: rgba(228, 228, 229, 0.08);
}

[data-theme="mas-rio"] .card-kaia:hover {
    border-color: rgba(243, 108, 33, 0.5);
    background-color: rgba(38, 38, 39, 0.95);
    box-shadow: 0 10px 25px rgba(243, 108, 33, 0.2);
}

[data-theme="mas-rio"] .kpi-premium-card {
    background: #1e1e20;
    border-color: rgba(228, 228, 229, 0.1);
}

[data-theme="mas-rio"] .kpi-premium-card::before {
    background: radial-gradient(circle at top right, rgba(243, 108, 33, 0.18) 0%, transparent 60%);
}

[data-theme="mas-rio"] .kpi-premium-card:hover {
    border-color: rgba(243, 108, 33, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* 6. 3D Orbital Rings & Logo Glow */
[data-theme="mas-rio"] .orbit-ring-1 {
    border-color: rgba(243, 108, 33, 0.6);
    box-shadow: 0 0 16px rgba(243, 108, 33, 0.3), inset 0 0 10px rgba(243, 108, 33, 0.12);
}

[data-theme="mas-rio"] .orbit-ring-1::before {
    background: #F36C21;
    box-shadow: 0 0 10px 4px rgba(243, 108, 33, 0.95), 0 0 24px rgba(243, 108, 33, 0.6);
}

[data-theme="mas-rio"] .orbit-ring-2 {
    border-color: rgba(224, 155, 102, 0.6);
    box-shadow: 0 0 16px rgba(224, 155, 102, 0.3);
}

[data-theme="mas-rio"] .orbit-ring-2::before {
    background: #E09B66;
    box-shadow: 0 0 10px 4px rgba(224, 155, 102, 0.95);
}

[data-theme="mas-rio"] .orbit-ring-3 {
    border-color: rgba(243, 108, 33, 0.35);
    box-shadow: 0 0 14px rgba(243, 108, 33, 0.2);
}

[data-theme="mas-rio"] .logo-illustration {
    filter: drop-shadow(0 0 28px rgba(243, 108, 33, 0.45));
}

/* 7. Toolbar, Inputs, Chips & Pagination */
[data-theme="mas-rio"] .input-search,
[data-theme="mas-rio"] .cyber-input,
[data-theme="mas-rio"] .select-filter,
[data-theme="mas-rio"] .cyber-select {
    background: rgba(38, 38, 39, 0.6);
    border-color: rgba(228, 228, 229, 0.12);
    color: #F9F9F9;
}

[data-theme="mas-rio"] .input-search:focus,
[data-theme="mas-rio"] .cyber-input:focus,
[data-theme="mas-rio"] .select-filter:focus,
[data-theme="mas-rio"] .cyber-select:focus {
    border-color: #F36C21;
    box-shadow: 0 0 20px rgba(243, 108, 33, 0.25);
}

[data-theme="mas-rio"] .cyber-select option,
[data-theme="mas-rio"] .select-filter option {
    background: #141415;
    color: #F9F9F9;
}

[data-theme="mas-rio"] .filter-container {
    background: rgba(20, 20, 21, 0.65);
    border-color: rgba(243, 108, 33, 0.3);
    box-shadow: inset 0 0 10px rgba(243, 108, 33, 0.1);
}

[data-theme="mas-rio"] .chip {
    border-color: rgba(228, 228, 229, 0.15);
    color: #919193;
}

[data-theme="mas-rio"] .chip.active,
[data-theme="mas-rio"] .chip:hover {
    border-color: #F36C21;
    color: #F36C21;
    background: rgba(243, 108, 33, 0.12);
    box-shadow: 0 4px 14px rgba(243, 108, 33, 0.25);
}

[data-theme="mas-rio"] .pagination button.active {
    background: linear-gradient(135deg, #F36C21, #D55B19);
    color: #ffffff;
}

[data-theme="mas-rio"] .pagination button:hover:not(.active) {
    border-color: #F36C21;
    color: #F36C21;
}

/* 8. Tables, Insights & Modals */
[data-theme="mas-rio"] .neon-table th {
    background: rgba(243, 108, 33, 0.12);
    color: #F4A074;
}

[data-theme="mas-rio"] .neon-table tr:hover td {
    background: rgba(243, 108, 33, 0.08);
    color: #F9F9F9;
}

[data-theme="mas-rio"] .insight-box {
    background: rgba(243, 108, 33, 0.08);
    border-left-color: #F36C21;
}

[data-theme="mas-rio"] .tab-btn.active {
    color: #F36C21;
    border-color: #F36C21;
}

[data-theme="mas-rio"] .modal-overlay {
    background: rgba(14, 14, 15, 0.92);
}

[data-theme="mas-rio"] .modal-box {
    background: linear-gradient(135deg, #1c1c1e 0%, #141415 100%);
    border-color: rgba(243, 108, 33, 0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(243, 108, 33, 0.1);
}

[data-theme="mas-rio"] ::-webkit-scrollbar-thumb {
    background: rgba(243, 108, 33, 0.4);
}

[data-theme="mas-rio"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(243, 108, 33, 0.9);
}

/* 9. KPI Premium Command Center Overrides (Perpertahankan Warna Node Cyan/Green/Pink/Amber, Background & Efek Glow Oranye) */
[data-theme="mas-rio"] .kpi-premium-card {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.22), rgba(26, 26, 28, 0.95)) !important;
    border: 1px solid rgba(243, 108, 33, 0.4) !important;
    box-shadow: 0 8px 25px rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .kpi-premium-card:hover {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.35), rgba(38, 38, 39, 0.95)) !important;
    border-color: rgba(243, 108, 33, 0.75) !important;
    box-shadow: 0 12px 35px rgba(243, 108, 33, 0.45) !important;
}

[data-theme="mas-rio"] .bgn-photo-img,
[data-theme="mas-rio"] .bgn-marquee-container {
    border-color: rgba(243, 108, 33, 0.25) !important;
}

/* 10. Galeri Media & Notulensi Card Overrides */
[data-theme="mas-rio"] .text-gradient-cyber {
    background: linear-gradient(to right, #F36C21, #E09B66) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="mas-rio"] .bgn-sub-tag {
    color: #F36C21 !important;
    background: rgba(243, 108, 33, 0.12) !important;
    border-color: rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .bgn-btn-gallery {
    background: rgba(243, 108, 33, 0.12) !important;
    color: #F36C21 !important;
    border: 1.5px solid rgba(243, 108, 33, 0.45) !important;
    box-shadow: 0 0 15px rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .bgn-btn-gallery:hover {
    background: rgba(243, 108, 33, 0.25) !important;
    border-color: #F36C21 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(243, 108, 33, 0.5) !important;
}

[data-theme="mas-rio"] .bgn-gallery-box {
    background: rgba(26, 26, 27, 0.85) !important;
    border-color: rgba(243, 108, 33, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .bgn-fade-top {
    background: linear-gradient(180deg, rgba(20, 20, 21, 0.95) 0%, transparent 100%) !important;
}

[data-theme="mas-rio"] .bgn-fade-bottom {
    background: linear-gradient(0deg, rgba(20, 20, 21, 0.95) 0%, transparent 100%) !important;
}

[data-theme="mas-rio"] .bgn-photo-img {
    border: 1px solid rgba(243, 108, 33, 0.35) !important;
    box-shadow: 0 4px 18px rgba(243, 108, 33, 0.25) !important;
}

[data-theme="mas-rio"] .bgn-photo-img:hover {
    border-color: #F36C21 !important;
    box-shadow: 0 6px 25px rgba(243, 108, 33, 0.5) !important;
}

/* Notulensi & Inline Blue/Cyan Color Overrides (#3b82f6 / #00f3ff) */
[data-theme="mas-rio"] .card-kaia[style*="#00f3ff"],
[data-theme="mas-rio"] .card-kaia[style*="#00F3FF"],
[data-theme="mas-rio"] .card-kaia[style*="0, 243, 255"],
[data-theme="mas-rio"] .card-kaia[style*="0,243,255"],
[data-theme="mas-rio"] .card-kaia[style*="#3b82f6"],
[data-theme="mas-rio"] .card-kaia[style*="59, 130, 246"],
[data-theme="mas-rio"] .card-kaia[style*="59,130,246"] {
    border-left: 3px solid #F36C21 !important;
    background: rgba(243, 108, 33, 0.06) !important;
}

[data-theme="mas-rio"] [style*="#00f3ff"],
[data-theme="mas-rio"] [style*="#00F3FF"],
[data-theme="mas-rio"] [style*="color: #00f3ff"],
[data-theme="mas-rio"] [style*="color:#00f3ff"],
[data-theme="mas-rio"] [style*="color: #3b82f6"],
[data-theme="mas-rio"] [style*="color:#3b82f6"],
[data-theme="mas-rio"] [style*="color: #0066ff"] {
    color: #F36C21 !important;
}

[data-theme="mas-rio"] [style*="border-left: 3px solid #00f3ff"],
[data-theme="mas-rio"] [style*="border-left:3px solid #00f3ff"],
[data-theme="mas-rio"] [style*="border-left: 3px solid #3b82f6"],
[data-theme="mas-rio"] [style*="border-left:3px solid #3b82f6"] {
    border-left-color: #F36C21 !important;
}

[data-theme="mas-rio"] [style*="background: rgba(0, 243, 255"],
[data-theme="mas-rio"] [style*="background:rgba(0,243,255"],
[data-theme="mas-rio"] [style*="background: rgba(59, 130, 246"],
[data-theme="mas-rio"] [style*="background:rgba(59,130,246"] {
    background: rgba(243, 108, 33, 0.08) !important;
}

[data-theme="mas-rio"] h4[style*="00f3ff"],
[data-theme="mas-rio"] h4[style*="3b82f6"],
[data-theme="mas-rio"] p[style*="00f3ff"],
[data-theme="mas-rio"] span[style*="00f3ff"],
[data-theme="mas-rio"] i[style*="00f3ff"] {
    color: #F36C21 !important;
}

.notulensi-summary-card {
    border-left: 3px solid var(--cyan);
    background: rgba(var(--cyan-rgb), 0.02);
}
.notulensi-subhead-cyan {
    color: var(--cyan);
}

/* --- TOMBOL TRIGGER SAYA MAS RIO --- */
.hero-theme-toggle-wrap {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.btn-mas-rio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.2), rgba(224, 155, 102, 0.15));
    border: 1.5px solid rgba(243, 108, 33, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.35s var(--spring);
    box-shadow: 0 4px 18px rgba(243, 108, 33, 0.2);
}

.btn-mas-rio:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.35), rgba(224, 155, 102, 0.25));
    border-color: rgba(243, 108, 33, 0.85);
    box-shadow: 0 8px 25px rgba(243, 108, 33, 0.4);
}

.btn-mas-rio:active {
    transform: translateY(0) scale(0.97);
}

.btn-mas-rio .rio-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F36C21, #E09B66);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(243, 108, 33, 0.6);
    transition: transform 0.4s var(--spring);
}

.btn-mas-rio:hover .rio-avatar {
    transform: rotate(180deg) scale(1.15);
}

.btn-mas-rio .rio-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(243, 108, 33, 0.25);
    color: #F4A074;
    border: 1px solid rgba(243, 108, 33, 0.35);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

[data-theme="mas-rio"] .btn-mas-rio {
    background: linear-gradient(135deg, #F36C21, #D55B19);
    border-color: #F1824A;
    box-shadow: 0 6px 22px rgba(243, 108, 33, 0.45);
}

/* --- BRAND EMBLEM LOGO IN NAVBAR (Only Visible when Mas Rio Theme is Active) --- */
.logo-brand-wrap {
    display: flex;
    align-items: center;
}

.btn-mas-rio-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="mas-rio"] .btn-mas-rio-icon {
    opacity: 1;
    max-width: 50px;
    margin-right: 10px;
    pointer-events: auto;
}

.mas-rio-nav-icon {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(243, 108, 33, 0.7));
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-mas-rio-icon:hover .mas-rio-nav-icon {
    transform: rotate(180deg) scale(1.15);
    filter: drop-shadow(0 0 14px rgba(243, 108, 33, 0.95));
}

/* --- ELEGANT & SUBTLE THEME BUTTON CLICK ANIMATION --- */
@keyframes themeButtonSubtlePress {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 18px rgba(243, 108, 33, 0.2);
    }
    40% {
        transform: scale(0.96);
        box-shadow: 0 0 30px rgba(243, 108, 33, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 24px rgba(243, 108, 33, 0.45);
    }
}

@keyframes avatarSmoothRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

.btn-mas-rio.theme-clicked,
.btn-mas-rio-nav.theme-clicked {
    animation: themeButtonSubtlePress 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-mas-rio.theme-clicked .rio-avatar,
.btn-mas-rio-nav.theme-clicked i {
    animation: avatarSmoothRotate 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-mas-rio.active {
    background: linear-gradient(135deg, #F36C21, #D55B19);
    border-color: #F1824A;
    box-shadow: 0 6px 24px rgba(243, 108, 33, 0.55);
}

/* --- GALERI MEDIA LOAD MORE & MAP GLOW OVERRIDES --- */
[data-theme="mas-rio"] .btn-load-more {
    background: rgba(243, 108, 33, 0.08) !important;
    border-color: rgba(243, 108, 33, 0.45) !important;
    color: #F36C21 !important;
    box-shadow: 0 4px 20px rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .btn-load-more:hover {
    background: rgba(243, 108, 33, 0.22) !important;
    border-color: #F36C21 !important;
    box-shadow: 0 8px 32px rgba(243, 108, 33, 0.45) !important;
    color: #ffffff !important;
}

[data-theme="mas-rio"] .btn-load-more .load-badge {
    background: rgba(243, 108, 33, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(243, 108, 33, 0.5) !important;
}

[data-theme="mas-rio"] .gallery-end-badge i {
    color: #F36C21 !important;
}

[data-theme="mas-rio"] #leaflet-map,
[data-theme="mas-rio"] .map-layout {
    border-color: rgba(243, 108, 33, 0.35) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 25px rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .map-sidebar {
    background: rgba(20, 20, 21, 0.9) !important;
    border-color: rgba(243, 108, 33, 0.25) !important;
}

[data-theme="mas-rio"] .map-filter-bar {
    background: rgba(20, 20, 21, 0.75) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(243, 108, 33, 0.1) !important;
}

[data-theme="mas-rio"] .radius-state-btn {
    background: rgba(243, 108, 33, 0.1) !important;
    border-color: rgba(243, 108, 33, 0.35) !important;
    color: #F4A074 !important;
}

[data-theme="mas-rio"] .radius-state-btn.on {
    background: linear-gradient(135deg, #F36C21, #D55B19) !important;
    border-color: #F1824A !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(243, 108, 33, 0.5) !important;
}

[data-theme="mas-rio"] .leaflet-popup-content-wrapper {
    background: rgba(20, 20, 21, 0.95) !important;
    border: 1px solid rgba(243, 108, 33, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(243, 108, 33, 0.3) !important;
    color: #F9F9F9 !important;
}

[data-theme="mas-rio"] .leaflet-popup-tip {
    background: rgba(20, 20, 21, 0.95) !important;
}

/* --- FUTURISTIC FOOTER THEME OVERRIDES --- */
[data-theme="mas-rio"] .futuristic-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 28, 0.8) 20%, #141415 100%) !important;
    border-top: 1px solid rgba(243, 108, 33, 0.2) !important;
}

[data-theme="mas-rio"] .footer-grid-bg {
    background-image: linear-gradient(rgba(243, 108, 33, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 108, 33, 0.12) 1px, transparent 1px) !important;
}

[data-theme="mas-rio"] .footer-glow {
    background: radial-gradient(circle, rgba(243, 108, 33, 0.08) 0%, transparent 70%) !important;
}

[data-theme="mas-rio"] .brand-logo img {
    filter: drop-shadow(0 0 12px rgba(243, 108, 33, 0.6)) !important;
}

[data-theme="mas-rio"] .futuristic-badge {
    background: rgba(243, 108, 33, 0.1) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
    color: #F4A074 !important;
}

[data-theme="mas-rio"] .futuristic-badge:hover {
    background: rgba(243, 108, 33, 0.22) !important;
    box-shadow: 0 0 15px rgba(243, 108, 33, 0.35) !important;
}

/* --- SIKEPO PANGAN SITUBONDO THEME OVERRIDES --- */
[data-theme="mas-rio"] .kpi-sikepo-card {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.15), rgba(26, 26, 28, 0.95)) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .kpi-sikepo-card:hover {
    border-color: #F36C21 !important;
    box-shadow: 0 10px 30px rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .kpi-sikepo-icon {
    background: rgba(243, 108, 33, 0.2) !important;
    color: #F36C21 !important;
    border-color: rgba(243, 108, 33, 0.4) !important;
}

[data-theme="mas-rio"] .sikepo-toolbar {
    background: rgba(26, 26, 28, 0.95) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
    box-shadow: 0 4px 32px rgba(243, 108, 33, 0.1) !important;
}

[data-theme="mas-rio"] .sikepo-search-box i {
    color: #F36C21 !important;
}

[data-theme="mas-rio"] .sikepo-search-box input {
    background: rgba(20, 20, 21, 0.85) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .sikepo-search-box input:focus {
    border-color: #F36C21 !important;
    box-shadow: 0 0 16px rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .sikepo-select {
    background: rgba(20, 20, 21, 0.85) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .sikepo-select:hover,
[data-theme="mas-rio"] .sikepo-select:focus {
    border-color: #F36C21 !important;
    box-shadow: 0 0 16px rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .sikepo-table-card {
    background: rgba(26, 26, 28, 0.95) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .sikepo-table th {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.25) 0%, rgba(224, 155, 102, 0.15) 100%) !important;
    color: #F36C21 !important;
    border-bottom: 1px solid rgba(243, 108, 33, 0.25) !important;
}

[data-theme="mas-rio"] .sikepo-table tr:hover td {
    background: rgba(243, 108, 33, 0.08) !important;
}

[data-theme="mas-rio"] .badge-stabil {
    background: rgba(243, 108, 33, 0.18) !important;
    color: #F4A074 !important;
    border-color: rgba(243, 108, 33, 0.4) !important;
}

[data-theme="mas-rio"] .btn-action-emerald {
    background: linear-gradient(135deg, #F36C21, #D55B19) !important;
    box-shadow: 0 4px 15px rgba(243, 108, 33, 0.4) !important;
}

[data-theme="mas-rio"] .btn-action-emerald:hover {
    box-shadow: 0 8px 25px rgba(243, 108, 33, 0.6) !important;
}

[data-theme="mas-rio"] .btn-action-outline {
    background: rgba(243, 108, 33, 0.15) !important;
    border-color: rgba(243, 108, 33, 0.4) !important;
    color: #F4A074 !important;
}

[data-theme="mas-rio"] .btn-action-outline:hover {
    background: rgba(243, 108, 33, 0.3) !important;
    border-color: #F36C21 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(243, 108, 33, 0.4) !important;
}

[data-theme="mas-rio"] .modal-card-cyber {
    background: linear-gradient(145deg, rgba(26, 26, 28, 0.98), rgba(20, 20, 21, 0.99)) !important;
    border-color: rgba(243, 108, 33, 0.45) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(243, 108, 33, 0.25) !important;
}

[data-theme="mas-rio"] .spinner-outer {
    border-top-color: #F36C21 !important;
    border-bottom-color: #E09B66 !important;
}

[data-theme="mas-rio"] .spinner-icon {
    color: #F36C21 !important;
    text-shadow: 0 0 12px rgba(243, 108, 33, 0.8) !important;
}

[data-theme="mas-rio"] .progress-bar-track {
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .progress-bar-fill {
    background: linear-gradient(90deg, #F36C21, #E09B66, #F8B179) !important;
    box-shadow: 0 0 12px rgba(243, 108, 33, 0.8) !important;
}

[data-theme="mas-rio"] .sync-step-item.active {
    color: #F36C21 !important;
}

/* --- JUKNIS DOKUMEN & LINKHUB THEME OVERRIDES --- */
[data-theme="mas-rio"] .doc-stat-card,
[data-theme="mas-rio"] .doc-chart-card,
[data-theme="mas-rio"] .doc-filter-bar,
[data-theme="mas-rio"] .doc-card {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.15), rgba(26, 26, 28, 0.95)) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
    box-shadow: 0 4px 20px rgba(243, 108, 33, 0.12) !important;
}

[data-theme="mas-rio"] .doc-stat-card:hover,
[data-theme="mas-rio"] .doc-card:hover {
    border-color: #F36C21 !important;
    box-shadow: 0 10px 30px rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .doc-stat-icon {
    background: rgba(243, 108, 33, 0.2) !important;
    color: #F36C21 !important;
}

[data-theme="mas-rio"] .lh-card,
[data-theme="mas-rio"] .lh-search-input,
[data-theme="mas-rio"] .lh-action-bar {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.15), rgba(26, 26, 28, 0.95)) !important;
    border-color: rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .lh-card:hover {
    border-color: #F36C21 !important;
    box-shadow: 0 10px 30px rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .lh-card-avatar {
    border-color: #F36C21 !important;
    background: #1a1a1c !important;
}

[data-theme="mas-rio"] .lh-card-slug,
[data-theme="mas-rio"] .lh-search-icon {
    color: #F36C21 !important;
}

[data-theme="mas-rio"] .lh-search-input:focus {
    border-color: #F36C21 !important;
    box-shadow: 0 0 20px rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] [style*="15, 23, 42"],
[data-theme="mas-rio"] [style*="15,23,42"],
[data-theme="mas-rio"] [style*="0f172a"],
[data-theme="mas-rio"] [style*="1e293b"] {
    background: rgba(26, 26, 28, 0.92) !important;
}

[data-theme="mas-rio"] .card-doc-clean {
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.18), rgba(26, 26, 28, 0.95)) !important;
    border-color: rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .card-doc-clean:hover {
    border-color: #F36C21 !important;
    box-shadow: 0 12px 32px rgba(243, 108, 33, 0.35) !important;
}

[data-theme="mas-rio"] .btn-create-link {
    background: linear-gradient(135deg, #F36C21, #D55B19) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(243, 108, 33, 0.4) !important;
}

[data-theme="mas-rio"] .btn-create-link:hover {
    box-shadow: 0 8px 24px rgba(243, 108, 33, 0.6) !important;
    color: #ffffff !important;
}

[data-theme="mas-rio"] .lh-btn-open {
    background: linear-gradient(135deg, #F36C21, #D55B19) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3) !important;
}

[data-theme="mas-rio"] .lh-btn-open:hover {
    box-shadow: 0 0 16px rgba(243, 108, 33, 0.7) !important;
    color: #ffffff !important;
}

[data-theme="mas-rio"] .btn-mas-rio .rio-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-mas-rio-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(243, 108, 33, 0.25), rgba(224, 155, 102, 0.2));
    border: 1px solid rgba(243, 108, 33, 0.45);
    cursor: pointer;
    transition: all 0.25s var(--spring);
}

.btn-mas-rio-nav:hover,
.btn-mas-rio-nav.active {
    background: linear-gradient(135deg, #F36C21, #D55B19);
    border-color: #F1824A;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(243, 108, 33, 0.5);
    transform: translateY(-1px);
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 243, 255, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 243, 255, 0.8); }

/* --- OPTIMIZED AMBIENT BACKGROUND LAYER --- */
.cyber-grid {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 40px; z-index: -2; opacity: 0.5; pointer-events: none;
}
.blob-wrapper {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 85% 15%, rgba(0, 243, 255, 0.12), transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(0, 85, 255, 0.15), transparent 50%);
}

/* --- NAVIGATION (identik di semua halaman) --- */
nav {
    background-color: rgba(4, 6, 18, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15); padding: 18px 80px; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; right: 0; z-index: 500; transition: 0.4s ease-in-out;
}
nav.scrolled { padding: 13px 80px; background-color: rgba(4, 6, 18, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: 1.5px; color: #ffffff; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo span { color: var(--cyan); text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5); margin-left: 4px; }
.logo img { height: 34px; width: auto; }
.menu { display: flex; list-style: none; gap: 32px; align-items: center; }
.menu a { font-size: 0.82rem; font-weight: 600; color: #9ca3af; transition: 0.3s; letter-spacing: 0.5px; text-transform: uppercase; position: relative; }
.menu a .menu-icon { display: none; }
.menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -6px; left: 0; background-color: var(--cyan); transition: 0.3s; }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a:hover, .menu a.active { color: var(--cyan); text-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.5); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    gap: 5px;
    z-index: 600;
    transition: all 0.3s ease;
    padding: 0;
}
.burger:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.4);
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #00f3ff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #ff007c;
}
.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #ff007c;
}

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 550;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
body.nav-menu-open {
    overflow: hidden !important;
}

/* --- PAGE HERO (halaman dalam) --- */
.page-hero { max-width: 1400px; margin: 0 auto; padding: 160px 60px 50px 60px; }
.breadcrumb { font-size: 0.78rem; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--cyan); }
.page-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; color: #fff; margin-bottom: 14px; }
.page-hero h1 span { background: linear-gradient(to right, #00f3ff, #0066ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: #9ca3af; font-size: 1.05rem; max-width: 760px; line-height: 1.6; }

/* --- HERO SPLIT LAYOUT (beranda) --- */
.hero-split-container {
    max-width: 1400px; margin: 0 auto; padding: 170px 60px 70px 60px;
    display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 60px; min-height: 78vh;
}
.hero-text-side h1 { font-size: 4rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 25px; color: #ffffff; }
.hero-text-side h1 span { background: linear-gradient(to right, #00f3ff, #0066ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text-side p { font-size: 1.1rem; color: #9ca3af; line-height: 1.6; margin-bottom: 35px; max-width: 700px; }
.hero-btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
/* Spring easing global — dipakai di SEMUA elemen interaktif, sesuai gaya kalkulator */
:root {
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 30px;
    font-weight: 700; font-size: 0.9rem;
    transition:
        transform 0.3s var(--spring),
        box-shadow 0.3s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
    border: 1px solid transparent;
    will-change: transform;
}
.btn-primary { background: linear-gradient(135deg, #00f3ff, #0066ff); color: #04121f; box-shadow: 0 8px 25px rgba(0, 243, 255, 0.25); }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 32px rgba(0, 243, 255, 0.45); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-outline { border-color: rgba(255,255,255,0.15); color: #fff; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,243,255,0.15); }
.btn-outline:active { transform: translateY(0) scale(0.97); }
.hero-logo-side { display: flex; justify-content: center; align-items: center; position: relative; perspective: 1200px; }
.big-logo-wrapper {
    width: 440px; height: 440px;
    background: none;
    border: none;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: visible;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    box-shadow: none;
}

/* ===== ORBITAL RINGS 3D ===== */
/* Setiap ring adalah lingkaran yang di-tilt di ruang 3D, lalu dianimasikan rotasi */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    pointer-events: none;
    transform-origin: center center;
}

/* Ring 1 — Cyan, miring ~68°, orbit cepat */
.orbit-ring-1 {
    width: 520px; height: 520px;
    margin-top: -260px; margin-left: -260px;
    border: 1.5px solid rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.12);
    animation: orbitSpin1 9s linear infinite;
}
/* Glowing dot Ring 1 */
.orbit-ring-1::before {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #00f3ff;
    box-shadow: 0 0 10px 4px rgba(0, 243, 255, 0.95), 0 0 24px rgba(0, 243, 255, 0.6);
    top: -6px; left: 50%; margin-left: -6px;
}

/* Ring 2 — Purple/Violet, miring berbeda, orbit sedang & terbalik */
.orbit-ring-2 {
    width: 600px; height: 600px;
    margin-top: -300px; margin-left: -300px;
    border: 1.5px solid rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25), inset 0 0 10px rgba(168, 85, 247, 0.1);
    animation: orbitSpin2 15s linear infinite reverse;
}
/* Glowing dot Ring 2 */
.orbit-ring-2::before {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 10px 4px rgba(168, 85, 247, 0.95), 0 0 22px rgba(168, 85, 247, 0.6);
    bottom: -5px; left: 50%; margin-left: -5px;
}

/* Ring 3 — Cyan dashed, paling lebar, inklinasi berbeda, orbit lambat */
.orbit-ring-3 {
    width: 680px; height: 680px;
    margin-top: -340px; margin-left: -340px;
    border: 1.5px dashed rgba(0, 243, 255, 0.35);
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.15);
    animation: orbitSpin3 22s linear infinite;
}

/* === Keyframes per ring (masing-masing punya rotateX beda utk variasi inklinasi) === */
@keyframes orbitSpin1 {
    from { transform: rotateX(68deg) rotateZ(0deg); }
    to   { transform: rotateX(68deg) rotateZ(360deg); }
}
@keyframes orbitSpin2 {
    from { transform: rotateX(72deg) rotateZ(45deg); }
    to   { transform: rotateX(72deg) rotateZ(405deg); }
}
@keyframes orbitSpin3 {
    from { transform: rotateX(60deg) rotateZ(120deg); }
    to   { transform: rotateX(60deg) rotateZ(480deg); }
}

.logo-illustration {
    width: 95%; height: auto;
    filter: drop-shadow(0 0 28px rgba(0, 243, 255, 0.35));
    transition: transform 0.4s ease;
    pointer-events: none;
}


/* LENIS SMOOTH SCROLL OVERRIDES & FIXES */
html.lenis, html.lenis body { height: auto; overscroll-behavior-y: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* HARDWARE-ACCELERATED SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    will-change: opacity, transform;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    will-change: opacity, transform;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    will-change: opacity, transform;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--spring);
    will-change: opacity, transform;
}
.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}



/* --- CONTAINERS --- */
.container { 
    max-width: 1400px; 
    margin: 20px auto 60px auto; 
    padding: 0 60px; 
    scroll-margin-top: 100px; 
}
.top-section {
    padding-top: 110px;
}
.section-header { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 20px; gap: 20px; flex-wrap: wrap; 
    scroll-margin-top: 100px; 
}
.section-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
.view-all { color: var(--cyan); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; transition: 0.3s; white-space: nowrap; }
.view-all:hover { transform: translateX(5px); }

.grid-berita { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- CARDS (base "Kaia" card + hover shimmer, dipakai di semua grid) --- */
.card-kaia {
    background-color: rgba(10, 16, 28, 0.75); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px; overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    display: flex; flex-direction: column; position: relative;
    opacity: 1;
}
.card-kaia:hover { border-color: rgba(0, 243, 255, 0.4); background-color: rgba(15, 25, 45, 0.9); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0, 243, 255, 0.15); }
.card-kaia.no-lift:hover { transform: none; }
.card-kaia.clickable { cursor: pointer; }

/* Kilap cahaya saat hover (dipakai di kartu dokumen & kartu lain) */
.card-kaia.shine::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-25deg); transition: all 0.5s ease; z-index: 1; pointer-events: none;
}
.card-kaia.shine:hover::after { left: 200%; }

.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; margin-bottom: 15px; flex-wrap: wrap; gap: 6px; }
.card-tag { font-weight: 800; text-transform: uppercase; color: var(--cyan); letter-spacing: 0.5px; }
.card-date { color: #6b7280; font-weight: 600; }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: #ffffff; margin-bottom: 12px; }
.card-desc { font-size: 0.9rem; color: #9ca3af; line-height: 1.6; margin-bottom: 20px; }
.card-link { color: var(--cyan); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-top: auto; }

/* ==========================================================================
   KPI CARDS PREMIUM — "Command Center" style (dipakai di beranda & halaman data)
   ========================================================================== */
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }

.kpi-premium-card {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--card-color);
    border-radius: 12px; padding: 24px; position: relative; overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.kpi-premium-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--card-color-rgb), 0.12) 0%, transparent 60%);
    pointer-events: none; z-index: 1;
}
.kpi-premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--card-color-rgb), 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.kpi-icon-watermark {
    position: absolute; right: -15px; bottom: -20px; font-size: 8rem; opacity: 0.05;
    color: var(--card-color); transform: rotate(-10deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 0; pointer-events: none;
}
.kpi-premium-card:hover .kpi-icon-watermark { transform: rotate(0deg) scale(1.15); opacity: 0.15; text-shadow: 0 0 20px rgba(var(--card-color-rgb), 0.5); }
.kpi-content-wrap { position: relative; z-index: 2; }
.kpi-sys-label { font-family: 'Space Grotesk', sans-serif; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.kpi-sys-label .sys-tag { background: rgba(var(--card-color-rgb), 0.1); color: var(--card-color); font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(var(--card-color-rgb), 0.2); }
.kpi-sys-label .sys-dot { width: 8px; height: 8px; background: var(--card-color); border-radius: 50%; box-shadow: 0 0 8px var(--card-color); animation: pulseDot 2s infinite; }
.kpi-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: #cbd5e1; display: block; margin-bottom: 4px; text-transform: uppercase; }
.kpi-val { font-size: 2.8rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: #ffffff; line-height: 1.1; margin: 5px 0; text-shadow: 0 0 15px rgba(var(--card-color-rgb), 0.5); }
.kpi-decorative-line { width: 100%; height: 2px; background: rgba(255,255,255,0.05); margin: 15px 0 12px 0; position: relative; border-radius: 2px; }
.kpi-decorative-line::after { content: ''; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: var(--card-color); box-shadow: 0 0 10px var(--card-color); border-radius: 2px; }
.sync-label { font-size: 11px; color: rgba(148, 163, 184, 0.7); font-family: 'Space Grotesk', sans-serif; display: flex; align-items: center; gap: 6px; letter-spacing: 0.5px; }
.sync-label i { color: var(--card-color); font-size: 13px; }
@keyframes pulseDot {
    0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(var(--card-color-rgb), 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(var(--card-color-rgb), 0); }
    100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(var(--card-color-rgb), 0); }
}

/* Kartu KPI simpel (dipakai di halaman ringkasan angka biasa) */
.kpi-value { font-size: 2.8rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; margin-top: 10px; display: inline-block; }
.kpi-value.kritis { color: var(--red); text-shadow: 0 0 15px rgba(255, 94, 98, 0.3); }
.kpi-value.aman { color: var(--green); text-shadow: 0 0 15px rgba(0, 255, 136, 0.3); }
.kpi-value.warning { color: var(--amber); text-shadow: 0 0 15px rgba(255, 183, 3, 0.3); }

@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 94, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0); }
}
.status-badge-kritis { animation: alertPulse 2s infinite; background: rgba(255,94,98,0.1); border: 1px solid rgba(255,94,98,0.4); padding: 5px 12px; border-radius: 20px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-aman { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.badge-baik { background: rgba(0,243,255,0.1); color: var(--cyan); border: 1px solid rgba(0,243,255,0.3); }
.badge-warning { background: rgba(255,183,3,0.1); color: var(--amber); border: 1px solid rgba(255,183,3,0.3); }
.badge-kritis { background: rgba(255,94,98,0.1); color: var(--red); border: 1px solid rgba(255,94,98,0.3); }

.grid-2-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-bottom: 30px; }

.progress-bar-bg { background: rgba(255,255,255,0.05); border-radius: 10px; height: 10px; width: 100%; margin: 8px 0 15px 0; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.progress-bar-fill { height: 100%; border-radius: 10px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); width: 0; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-sm { font-size: 0.85rem; color: #9ca3af; line-height: 1.5; }

.list-container { max-height: 320px; overflow-y: auto; padding-right: 10px; margin-top: 15px; }
.list-item { border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 12px 0; transition: 0.3s; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(255,255,255,0.02); padding-left: 10px; border-radius: 8px; }

.insight-box { margin-top: 25px; padding: 15px; background: rgba(0, 243, 255, 0.05); border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; transition: 0.3s; }
.insight-box:hover { transform: translateX(5px); }
.insight-box.kritis { background: rgba(255,94,98,0.05); border-left-color: var(--red); }
.insight-box.warning { background: rgba(255,183,3,0.05); border-left-color: var(--amber); }

/* --- TABLE --- */
.neon-table-wrapper { width: 100%; overflow-x: auto; margin-top: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.01); }
.neon-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.neon-table th, .neon-table td { padding: 14px 15px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.neon-table th { background: rgba(0, 243, 255, 0.05); color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.75rem; cursor: pointer; user-select: none; white-space: nowrap; }
.neon-table th:hover { color: #fff; }
.neon-table tr:hover td { background: rgba(255,255,255,0.04); color: #fff; }

.agenda-list { list-style: none; padding-left: 0; }
.agenda-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; transition: 0.3s; }
.agenda-list li:hover { transform: translateX(5px); color: #fff; }
.agenda-list li i { color: var(--cyan); font-size: 1.1rem; margin-top: 2px; }

.metadata-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-label { font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.meta-value { font-size: 0.9rem; font-weight: 600; color: #fff; }

/* --- FILTER / SEARCH BAR (dipakai semua halaman: input, select, chip) --- */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.input-search, .cyber-input, .select-filter, .cyber-select {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 18px; color: #fff; font-size: 0.9rem;
    font-family: inherit; transition: 0.3s;
}
.input-search, .cyber-input { flex: 1; min-width: 220px; }
.select-filter, .cyber-select { padding: 12px 16px; font-size: 0.85rem; cursor: pointer; }
.input-search:focus, .cyber-input:focus, .select-filter:focus, .cyber-select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); }
.cyber-select option, .select-filter option { background: #0f172a; color: #fff; }
.filter-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.25); padding: 16px; border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.08); backdrop-filter: blur(5px); border-radius: 16px;
}
@media (max-width: 768px) { .filter-container { grid-template-columns: 1fr; } }

.chip-group { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: flex-start;
    align-items: center;
}
.chip-group::-webkit-scrollbar { display: none; }
.chip { 
    padding: 8px 16px; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.12); 
    font-size: 0.78rem; 
    font-weight: 700; 
    color: #9ca3af; 
    transition: all 0.25s var(--spring); 
    text-transform: uppercase; 
    letter-spacing: 0.3px; 
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.chip.active, .chip:hover { 
    border-color: var(--cyan); 
    color: var(--cyan); 
    background: rgba(0,243,255,0.08); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 14px rgba(0,243,255,0.18); 
}
.chip:active { transform: scale(0.94); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); color: #9ca3af; font-weight: 700; font-size: 0.85rem; }
.pagination button.active { background: linear-gradient(135deg, #00f3ff, #0066ff); color: #04121f; border-color: transparent; }
.pagination button:hover:not(.active) { border-color: var(--cyan); color: var(--cyan); }

/* --- NOTICE / ALERT --- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; background: rgba(255,183,3,0.06); border: 1px solid rgba(255,183,3,0.25); margin-bottom: 30px; }
.notice i { color: var(--amber); font-size: 1.2rem; margin-top: 2px; }
.notice p { font-size: 0.85rem; color: #d1d5db; line-height: 1.6; }
.notice strong { color: var(--amber); }

/* --- TABS --- */
.tabs { display: flex; gap: 6px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.tab-btn { padding: 12px 22px; font-size: 0.85rem; font-weight: 700; color: #9ca3af; border-bottom: 2px solid transparent; transition: 0.25s; text-transform: uppercase; letter-spacing: 0.4px; background: none; border-left: none; border-right: none; border-top: none; }
.tab-btn.active { color: var(--cyan); border-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: modalIn 0.4s; }

/* --- REVEAL ON SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Staggered fade-in (dipakai untuk grid dokumen/kartu yang di-filter ulang) */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* Spring pop-in — dipakai di elemen yang muncul secara dinamis (badge, toast, dll) */
@keyframes springIn {
    0%   { opacity: 0; transform: scale(0.75) translateY(12px); }
    65%  { transform: scale(1.04) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* Slide dari bawah (untuk toast & notification) */
@keyframes slideUpSpring {
    from { opacity: 0; transform: translateX(-50%) translateY(60px) scale(0.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ==========================================================================
   MODAL / POP-UP — SATU BAHASA DESAIN untuk SEMUA pop-up di situs ini
   ========================================================================== */

/* Keyframes animasi modal */
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes closeSpinIn {
    from { opacity: 0; transform: rotate(-90deg) scale(0.5); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
/* Border pulse — terus berdenyut selama modal terbuka */
@keyframes closePulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(0, 243, 255, 0),
            inset 0 0 0 0 rgba(0, 243, 255, 0);
        border-color: rgba(0, 243, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 10px rgba(0, 243, 255, 0.2),
            0 0 20px rgba(0, 243, 255, 0.08);
        border-color: rgba(0, 243, 255, 0.5);
    }
}
/* Icon wiggle — sedikit bergerak seperti sedang menunggu */
@keyframes closeWiggle {
    0%, 80%, 100% { transform: rotate(0deg); }
    85%           { transform: rotate(12deg); }
    92%           { transform: rotate(-10deg); }
    96%           { transform: rotate(6deg); }
}

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(2, 3, 10, 0.88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; transition: opacity 0.35s ease;
}
.modal-overlay.open { display: flex; animation: modalFadeIn 0.35s ease forwards; opacity: 1; }

.modal-box {
    background: linear-gradient(135deg, #080c1e 0%, #0a0f22 100%);
    border: 1px solid rgba(0,243,255,0.22); border-radius: 24px;
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 34px; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,243,255,0.06);
    animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
.modal-box.modal-wide { max-width: 780px; }

/* ==========================================================================
   TOMBOL TUTUP (×) — UNIFIED PREMIUM CLOSE BUTTON
   Berlaku di SEMUA modal, popup, viewer di seluruh situs
   ========================================================================== */
.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 243, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
    /* Muncul dengan spin, lalu border berdenyut terus-menerus */
    animation:
        closeSpinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        closePulse 3s 0.6s ease-in-out infinite;
    will-change: transform, box-shadow;
}
.modal-close:hover {
    background: rgba(255, 60, 80, 0.18);
    border-color: rgba(255, 94, 98, 0.75) !important;
    color: var(--red);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 0 18px rgba(255, 94, 98, 0.4), 0 0 35px rgba(255, 94, 98, 0.15);
    animation-play-state: paused; /* pause pulse saat hover agar tidak konflik */
}
.modal-close:active { transform: rotate(90deg) scale(0.92); }
/* Icon: wiggle kecil seperti mengundang untuk diklik */
.modal-close i {
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: closeWiggle 5s 1.5s ease-in-out infinite;
}
.modal-close:hover i { animation-play-state: paused; }

/* Header di dalam modal (judul + close berdampingan) */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,243,255,0.25);
    background: linear-gradient(90deg, rgba(0,243,255,0.08) 0%, transparent 100%);
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-header .modal-close {
    position: static;
    flex-shrink: 0;
    animation:
        closeSpinIn 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        closePulse 3s 0.7s ease-in-out infinite;
}
.modal-body-scroll { padding: 25px; overflow-y: auto; }

/* --- Modal layar penuh (viewer PDF, data personel) --- */
.modal-fullscreen {
    background: var(--hud-bg);
    border: 1px solid rgba(0, 243, 255, 0.35);
    box-shadow:
        0 0 50px rgba(0, 243, 255, 0.12),
        inset 0 0 25px rgba(0, 243, 255, 0.04),
        0 40px 80px rgba(0, 0, 0, 0.6);
    width: 90%; max-width: 900px; max-height: 85vh;
    border-radius: 18px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
.modal-fullscreen.wide { max-width: 1200px; height: 90vh; }

/* --- HUD Personnel grid (di dalam modal-fullscreen) --- */
.personnel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.personnel-card { background: rgba(255,255,255,0.03); border-left: 3px solid var(--pink); padding: 12px 15px; border-radius: 0 8px 8px 0; transition: transform 0.2s; }
.personnel-card:hover { transform: translateX(5px); background: rgba(255,255,255,0.06); }
.p-task { font-size: 10px; text-transform: uppercase; color: var(--cyan); letter-spacing: 1px; margin-bottom: 4px; }
.p-name { font-size: 14px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; }

/* --- PDF viewer iframe --- */
.pdf-iframe-container { width: 100%; flex: 1; background-color: #f5f6fa; }
#pdfIframe { width: 100%; height: 100%; border: none; }

/* --- Leaflet map popup (HUD style) --- */
.hud-popup .leaflet-popup-content-wrapper {
    background: var(--hud-bg) !important;
    border: 1px solid rgba(0, 243, 255, 0.45); border-radius: 14px !important;
    box-shadow: 0 0 24px rgba(0, 243, 255, 0.2), inset 0 0 12px rgba(0, 243, 255, 0.06), 0 15px 40px rgba(0,0,0,0.6);
    padding: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hud-popup .leaflet-popup-content { margin: 0; width: 268px !important; }
.hud-popup .leaflet-popup-tip { background: var(--cyan) !important; box-shadow: 0 0 12px var(--cyan); }

/* Tombol × di Leaflet popup — mengikuti desain .modal-close */
.hud-popup a.leaflet-popup-close-button {
    width: 30px !important; height: 30px !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center !important;
    background: rgba(0, 243, 255, 0.06) !important;
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
    color: rgba(255,255,255,0.65) !important;
    top: 10px !important; right: 10px !important;
    font-size: 14px !important; line-height: 1 !important;
    text-decoration: none !important;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease !important;
    padding: 0 !important;
}
.hud-popup a.leaflet-popup-close-button:hover {
    background: rgba(255, 60, 80, 0.18) !important;
    border-color: rgba(255, 94, 98, 0.7) !important;
    color: var(--red) !important;
    transform: rotate(90deg) scale(1.12) !important;
    box-shadow: 0 0 14px rgba(255, 94, 98, 0.35) !important;
}
.hud-header { padding: 15px 15px 10px 15px; background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, transparent 100%); border-bottom: 1px solid rgba(0, 243, 255, 0.3); }
.hud-body { padding: 12px 15px; font-family: 'Space Grotesk', sans-serif; color: #cbd5e1; }
.hud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.hud-stat { background: rgba(255,255,255,0.03); border-left: 2px solid var(--cyan); padding: 5px 8px; font-size: 11px; border-radius: 0 6px 6px 0; }
.hud-stat b { display: block; color: #fff; font-size: 14px; margin-top: 2px; }
.hud-btn {
    width: 100%; display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid currentColor;
    color: var(--pink);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; padding: 10px; cursor: pointer; text-align: center;
    border-radius: 8px; transition: all 0.3s ease;
    margin-top: 6px;
}
.hud-btn:hover { background: currentColor; color: #04121f; box-shadow: 0 0 18px rgba(255, 0, 124, 0.4); }

/* ==========================================================================
   FANCYBOX OVERRIDE — tombol × galeri mengikuti desain unified .modal-close
   ========================================================================== */
.fancybox__button--close {
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: rgba(255,255,255,0.7) !important;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease !important;
    backdrop-filter: blur(8px);
}
.fancybox__button--close:hover {
    background: rgba(255, 60, 80, 0.18) !important;
    border-color: rgba(255, 94, 98, 0.7) !important;
    color: var(--red) !important;
    transform: rotate(90deg) scale(1.12) !important;
    box-shadow: 0 0 16px rgba(255, 94, 98, 0.35) !important;
}
.fancybox__container {
    --fancybox-bg: rgba(2, 3, 10, 0.92) !important;
    backdrop-filter: blur(20px) !important;
}
.fancybox__toolbar {
    background: rgba(4, 6, 18, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1) !important;
}
.fancybox__button {
    color: rgba(255,255,255,0.7) !important;
    border-radius: 8px !important;
    transition: color 0.2s, background 0.2s !important;
}
.fancybox__button:hover {
    background: rgba(0, 243, 255, 0.08) !important;
    color: var(--cyan) !important;
}
.fancybox__thumbs-track .fancybox__thumb.is-nav-selected::after {
    border-color: var(--cyan) !important;
}

/* --- DOC REPO (juknis & dokumen) --- */
.doc-card { display: flex; gap: 16px; align-items: flex-start; }
.doc-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card-kaia:hover .doc-icon { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px currentColor); }
.doc-icon.blue { background: rgba(0,243,255,0.1); border: 1px solid rgba(0,243,255,0.25); color: var(--cyan); }
.doc-icon.red { background: rgba(255,94,98,0.1); border: 1px solid rgba(255,94,98,0.25); color: var(--red); }
.doc-icon.green { background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.25); color: var(--green); }
.doc-icon.amber { background: rgba(255,183,3,0.1); border: 1px solid rgba(255,183,3,0.25); color: var(--amber); }
.doc-icon.purple { background: rgba(165,94,234,0.1); border: 1px solid rgba(165,94,234,0.25); color: #a55eea; }
.btn-group-doc { display: flex; gap: 10px; margin-top: 15px; position: relative; z-index: 2; }
.btn-group-doc .btn { flex: 1; justify-content: center; }

/* --- GALLERY (galeri media) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 10px; padding-bottom: 20px; }
.gallery-item {
    display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); cursor: pointer; opacity: 0;
    transform: translateY(30px) scale(0.95); animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes popIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease; filter: brightness(0.85); }
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(var(--cyan-rgb), 0.35); border-color: rgba(var(--cyan-rgb), 0.5); z-index: 2; }
.gallery-item:hover img { transform: scale(1.12) rotate(2deg); filter: brightness(1.1); }
.gallery-item::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 40%, transparent 100%);
    opacity: 0; transition: opacity 0.4s ease; z-index: 1;
}
.gallery-item::after {
    content: "\F341"; font-family: "bootstrap-icons"; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, 0%); color: var(--cyan); font-size: 2.8rem;
    display: flex; align-items: center; justify-content: center; opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2;
    text-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.9), 0 0 35px rgba(var(--cyan-rgb), 0.5); pointer-events: none;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%); }

/* --- MAP (peta data) --- */
.map-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
#leaflet-map {
    height: 620px; border-radius: 16px;
    border: 1px solid rgba(0,243,255,0.3); overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,243,255,0.05);
}
.map-sidebar { max-height: 620px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 6px; }
.kec-item {
    padding: 13px 15px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.012);
    cursor: pointer; transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.kec-item:hover, .kec-item.active {
    border-color: var(--cyan); background: rgba(0,243,255,0.05);
    transform: translateX(4px); box-shadow: 0 0 12px rgba(0,243,255,0.1);
}
.kec-item .kec-name { font-weight: 700; color: #fff; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.kec-item .kec-sub { font-size: 0.78rem; color: #9ca3af; margin-top: 5px; }

/* Titik berwarna (dot) di sidebar peta — dikontrol via inline style oleh JS */
.dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
    flex-shrink: 0; transition: box-shadow 0.3s;
}
/* Palet 5 warna SPPG radius — juga dipakai oleh marker & circle di peta */
:root {
    --sppg-c0: #00f3ff; --sppg-c0-rgb: 0, 243, 255;
    --sppg-c1: #ff007c; --sppg-c1-rgb: 255, 0, 124;
    --sppg-c2: #00ff88; --sppg-c2-rgb: 0, 255, 136;
    --sppg-c3: #ffb703; --sppg-c3-rgb: 255, 183, 3;
    --sppg-c4: #a855f7; --sppg-c4-rgb: 168, 85, 247;
}
.dot-aman { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-baik { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-warning { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot-kritis { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* --- PROFESSIONAL DETAIL POP-UP (portal SPPG, dsb.) --- */
.pro-social-btn { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; color: #cbd5e1; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; }
.pro-social-btn i { font-size: 1.1rem; }
.pro-social-btn:hover { background: rgba(255,255,255,0.05); }
.pro-social-btn.fb:hover { border-color: #1877F2; color: #1877F2; background: rgba(24, 119, 242, 0.05); }
.pro-social-btn.ig:hover { border-color: #E4405F; color: #E4405F; background: rgba(228, 64, 95, 0.05); }
.pro-social-btn.tiktok:hover { border-color: #ffffff; color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.pro-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: #2563eb; color: #ffffff; border: none; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: 0.2s; margin-top: 10px; }
.pro-action-btn:hover { background: #1d4ed8; }
.sppg-mini-card { padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.015); cursor: pointer; transition: all 0.3s var(--spring); }
.sppg-mini-card:hover { border-color: rgba(0,243,255,0.4); background: rgba(0,243,255,0.03); transform: translateY(-5px) scale(1.01); box-shadow: 0 10px 30px rgba(0,243,255,0.12); }

/* ==========================================================================
   RADIUS STATE BUTTON — tombol 2-state untuk aktifkan radius kecamatan
   OFF: abu/muted • ON: cyan glow dengan label berbeda
   ========================================================================== */
.radius-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #475569;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition:
        background   0.35s ease,
        border-color 0.35s ease,
        color        0.35s ease,
        box-shadow   0.35s ease,
        transform    0.3s var(--spring);
}
.radius-state-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: #94a3b8;
    transform: translateY(-2px);
}
.radius-state-btn:active { transform: scale(0.96); }
/* Indikator dot kecil */
.radius-state-btn .rsb-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* State ON / active */
.radius-state-btn.on {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.55);
    color: var(--cyan);
    box-shadow:
        0 0 0 1px rgba(0,243,255,0.12),
        0 4px 18px rgba(0,243,255,0.2);
}
.radius-state-btn.on:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0,243,255,0.2), 0 8px 24px rgba(0,243,255,0.25);
}
.radius-state-btn.on .rsb-dot {
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0,243,255,0.9), 0 0 14px rgba(0,243,255,0.4);
    animation: rsbDotPulse 2s ease-in-out infinite;
}
@keyframes rsbDotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(0,243,255,0.7); }
    50%       { box-shadow: 0 0 10px rgba(0,243,255,1), 0 0 20px rgba(0,243,255,0.5); }
}
/* Shimmer sweep saat ON */
.radius-state-btn.on::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(0,243,255,0.07) 50%,
        transparent 70%);
    background-size: 200% 100%;
    animation: rsbShimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes rsbShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Countdown timer strip di bawah tombol saat ON */
.radius-countdown {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    transition: width 1s linear;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

/* ==========================================================================
   MAP FILTER BAR — toolbar filter di atas peta
   Responsif: 3-col desktop, 1-col mobile
   ========================================================================== */
.map-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    background: rgba(0,0,0,0.25);
    padding: 16px;
    border: 1px solid rgba(0,243,255,0.2);
    box-shadow: inset 0 0 10px rgba(0,243,255,0.08);
    backdrop-filter: blur(5px);
    border-radius: 16px;
}
.kec-group-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 18px 0; }
.kec-group-title h3 { font-size: 1.1rem; color: #fff; }
.kec-group-title .line { flex: 1; height: 1px; background: rgba(255,255,255,0.08); }

/* --- COMING SOON (kalkulator SPPG) --- */
.coming-soon-box {
    text-align: center; padding: 90px 40px; border-radius: 28px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 11, 20, 0.8), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(0, 243, 255, 0.15);
}
.coming-soon-icon {
    width: 110px; height: 110px; border-radius: 28px; margin: 0 auto 30px auto;
    display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--cyan);
    background: rgba(0, 243, 255, 0.08); border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15); animation: floatIcon 3.5s ease-in-out infinite;
}
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.coming-soon-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,183,3,0.1); border: 1px solid rgba(255,183,3,0.3); color: var(--amber); padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.coming-soon-box h2 { font-size: 2rem; color: #fff; margin-bottom: 14px; }
.coming-soon-box p { color: #9ca3af; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; text-align: left; }
.roadmap-item { padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.015); }
.roadmap-item i { color: var(--cyan); font-size: 1.4rem; margin-bottom: 10px; display: block; }
.roadmap-item h4 { color: #fff; font-size: 0.95rem; margin-bottom: 6px; }
.roadmap-item p { color: #9ca3af; font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* ==========================================================================
   FOOTER FUTURISTIK — dipakai di SEMUA halaman
   ========================================================================== */
.futuristic-footer {
    position: relative; background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 11, 0.8) 20%, #02040a 100%);
    color: #ffffff; overflow: hidden; padding: 100px 0 0 0;
    border-top: 1px solid rgba(0, 243, 255, 0.05); z-index: 1; margin-top: 100px;
}
.footer-grid-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 243, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 243, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.15; animation: gridMove 30s linear infinite; z-index: -2; pointer-events: none;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(40px); } }
.footer-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 243, 255, 0.04) 0%, transparent 70%); top: -200px; left: -200px; z-index: -1; pointer-events: none; border-radius: 50%; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr; gap: 40px; position: relative; z-index: 2; }
.footer-heading { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 24px; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.footer-heading::before { content: ''; display: block; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); }
.brand-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.brand-logo img { height: 45px; filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.4)); }
.brand-title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.5px; }
.brand-desc { color: #94a3b8; font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.badge-container { display: flex; flex-wrap: wrap; gap: 10px; }
.futuristic-badge { background: rgba(0, 243, 255, 0.05); border: 1px solid rgba(0, 243, 255, 0.2); color: var(--cyan); padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); transition: all 0.3s ease; }
.futuristic-badge:hover { background: rgba(0, 243, 255, 0.15); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.nav-grid-footer { display: flex; flex-direction: column; gap: 12px; }
.nav-link-footer { color: #94a3b8; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.nav-link-footer i { color: var(--cyan); font-size: 0.9rem; opacity: 0.7; }
.nav-link-footer:hover { color: var(--cyan); transform: translateX(5px); }
.nav-link-footer:hover i { opacity: 1; text-shadow: 0 0 8px var(--cyan); }
.contact-item { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.contact-item i { color: var(--cyan); font-size: 1.1rem; margin-top: 2px; }
.contact-text-wrap { display: flex; flex-direction: column; }
.contact-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; margin-bottom: 2px; }
.contact-value { color: #fff; font-size: 0.9rem; line-height: 1.4; }
.social-row-clean { display: flex; gap: 20px; margin-top: 20px; }
.social-row-clean a { color: #94a3b8; font-size: 1.4rem; transition: 0.3s ease; }
.social-row-clean a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); transform: scale(1.2); }
.footer-bottom { margin-top: 50px; position: relative; }
.glowing-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.3; position: relative; }
.glowing-divider::after { content: ''; position: absolute; top: -1px; left: 0; width: 150px; height: 3px; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); border-radius: 50%; animation: scanline 4s linear infinite; }
@keyframes scanline { 0% { left: -150px; } 100% { left: 100%; } }
.bottom-content { max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright p { margin: 0 0 5px 0; font-size: 0.9rem; color: #94a3b8; }
.slogan { font-size: 0.8rem; color: var(--cyan); font-weight: 600; letter-spacing: 1px; }
.bottom-links { display: flex; gap: 20px; }
.bottom-links a { color: #94a3b8; font-size: 1.4rem; transition: 0.3s; }
.bottom-links a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); transform: scale(1.2); }

/* =====================================================================
   RESPONSIVE — perbaikan menyeluruh untuk mobile di semua halaman
   ===================================================================== */
@media (max-width: 1200px) {
    .map-layout { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .hero-split-container { padding: 150px 40px 60px 40px; gap: 40px; }
    .container, .page-hero { padding: 0 40px; }
    .page-hero { padding-top: 150px; }
    nav { padding: 18px 40px; }
    nav.scrolled { padding: 13px 40px; }
    /* Peta: sidebar di bawah, peta full-width */
    #leaflet-map { height: 480px; }
    .map-sidebar { max-height: 300px; }
}
@media (max-width: 991px) {
    .hero-split-container { grid-template-columns: 1fr; text-align: center; padding-top: 150px; gap: 50px; }
    .hero-text-side { text-align: center; }
    .hero-text-side p { margin: 0 auto 35px auto; max-width: 650px; }
    .hero-btn-row { justify-content: center; }
    .hero-logo-side { margin-top: 20px; width: 100%; overflow: visible; }
    .grid-2-col, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Scaling Logo & Orbital Rings di Tablet */
    .big-logo-wrapper { width: 340px; height: 340px; }
    .orbit-ring-1 { width: 410px; height: 410px; margin-top: -205px; margin-left: -205px; }
    .orbit-ring-2 { width: 480px; height: 480px; margin-top: -240px; margin-left: -240px; }
    .orbit-ring-3 { width: 550px; height: 550px; margin-top: -275px; margin-left: -275px; }
}
@media (max-width: 768px) {
    /* Navbar mobile */
    .menu {
        position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
        background: rgba(4, 6, 18, 0.97); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: flex-start;
        gap: 26px; padding: 40px; transition: 0.4s cubic-bezier(0.16,1,0.3,1);
        border-left: 1px solid rgba(0,243,255,0.15); z-index: 505;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    .menu.open { right: 0; }
    .burger { display: flex; }
    nav { padding: 15px 20px; }
    nav.scrolled { padding: 15px 20px; }

    .container, .page-hero { padding: 0 16px; }
    .container.top-section { padding-top: 100px; }
    .toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }
    .input-search {
        width: 100%;
        min-width: 100%;
    }
    .chip-group {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: visible;
        flex-wrap: nowrap;
        padding: 4px 6px 12px 2px;
        margin-bottom: 16px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chip {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.76rem;
    }

    .hero-text-side h1 { font-size: 2.2rem; line-height: 1.25; }
    .page-hero h1 { font-size: 1.9rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .filter-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 36px; }
    .bottom-content { flex-direction: column; text-align: center; gap: 14px; }

    /* Scaling Logo & Orbital Rings di Mobile Medium */
    .hero-logo-side { margin-top: 10px; }
    .big-logo-wrapper { width: 260px; height: 260px; }
    .orbit-ring-1 { width: 310px; height: 310px; margin-top: -155px; margin-left: -155px; }
    .orbit-ring-2 { width: 365px; height: 365px; margin-top: -182.5px; margin-left: -182.5px; }
    .orbit-ring-3 { width: 420px; height: 420px; margin-top: -210px; margin-left: -210px; }

    /* Metadata Grid Notulensi di Mobile */
    .metadata-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* Peta mobile */
    #leaflet-map { height: 380px; border-radius: 12px; }
    .map-sidebar { max-height: 280px; }
    .map-layout { gap: 16px; }
    .map-filter-bar { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
    .radius-state-btn { width: 100%; justify-content: center; height: 42px; }

    /* Modal mobile */
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; padding: 26px 20px 32px 20px; }
    .modal-fullscreen { width: 100%; border-radius: 20px 20px 0 0; max-height: 95vh; }
    .modal-fullscreen.wide { height: 95vh; }
    .modal-close { width: 38px; height: 38px; font-size: 0.95rem; top: 14px; right: 14px; }
    .modal-header { padding: 16px 18px; }
    .modal-header .modal-close { width: 36px; height: 36px; }
    .modal-body-scroll { padding: 16px; }

    /* Grid layout mobile */
    .personnel-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
    .hero-split-container { padding: 130px 16px 30px 16px; gap: 35px; }
    .hero-text-side h1 { font-size: 1.85rem; }
    .hero-text-side p { font-size: 0.92rem; margin-bottom: 25px; }
    .hero-btn-row { flex-direction: column; width: 100%; gap: 12px; }
    .hero-btn-row .btn { width: 100%; justify-content: center; text-align: center; }

    /* Scaling Logo & Orbital Rings di HP Kecil (360px-480px) */
    .hero-logo-side { margin-top: 15px; }
    .big-logo-wrapper { width: 200px; height: 200px; }
    .orbit-ring-1 { width: 240px; height: 240px; margin-top: -120px; margin-left: -120px; border-width: 1px; }
    .orbit-ring-2 { width: 285px; height: 285px; margin-top: -142.5px; margin-left: -142.5px; border-width: 1px; }
    .orbit-ring-3 { width: 330px; height: 330px; margin-top: -165px; margin-left: -165px; }
    .orbit-ring-1::before { width: 8px; height: 8px; top: -4px; margin-left: -4px; }
    .orbit-ring-2::before { width: 7px; height: 7px; bottom: -3.5px; margin-left: -3.5px; }

    /* KPI Cards & Grid */
    .kpi-value, .kpi-val { font-size: 2rem; }
    .card-body { padding: 18px 16px; }
    .flex-between, .list-item.flex-between { flex-direction: column; align-items: flex-start; gap: 5px; }
    .grid-kpi { grid-template-columns: 1fr; gap: 14px; }
    .grid-berita { grid-template-columns: 1fr; gap: 16px; }
    .metadata-grid { grid-template-columns: 1fr; gap: 10px; }

    /* Peta kecil */
    #leaflet-map { height: 320px; }
    .map-sidebar { max-height: 240px; }

    /* Modal sheet kecil */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box { border-radius: 20px 20px 0 0; padding: 22px 16px 28px 16px; }
    .modal-fullscreen { border-radius: 16px 16px 0 0; }

    /* Personnel & Gallery & Portal Grid */
    .personnel-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .page-hero h1 { font-size: 1.65rem; letter-spacing: -0.5px; }
    .page-hero p { font-size: 0.9rem; }
}
/* =========================================================
   FIX GLOBAL NAVBAR (OTOMATIS TANPA EDIT HTML)
   ========================================================= */

/* 1. Dorong seluruh isi halaman ke bawah sebesar jarak navbar */
body {
    padding-top: 110px !important;
}

/* 2. Karena body sudah didorong 110px, kita kurangi padding atas 
      di class hero bawaan agar jaraknya tidak turun dobel/kebesaran */
.page-hero {
    padding-top: 50px !important; /* Total jarak: 110 + 50 = 160px (sesuai aslinya) */
}

.hero-split-container {
    padding-top: 60px !important; /* Total jarak: 110 + 60 = 170px (sesuai aslinya) */
}

/* 3. Penyesuaian hero khusus di layar mobile/tablet */
@media (max-width: 1024px) {
    .page-hero, .hero-split-container {
        padding-top: 40px !important;
    }
}

/* =========================================================
   GLOBAL ULTRA-COOL REVEAL & STAGGER ANIMATIONS
   ========================================================= */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    will-change: opacity, transform, filter;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    transform: translateY(35px) scale(0.97);
    filter: blur(4px);
}

.reveal-left {
    transform: translateX(-40px) scale(0.97);
    filter: blur(4px);
}

.reveal-right {
    transform: translateX(40px) scale(0.97);
    filter: blur(4px);
}

.reveal-scale {
    transform: scale(0.88);
    filter: blur(4px);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
    filter: blur(0) !important;
}

/* Auto Stagger Parent Containers */
.stagger-container > * {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    filter: blur(3px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.active > * {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* =========================================================
   PUSDATIN BGN SITUBONDO — UNIVERSAL MOBILE RESPONSIVE ENGINE
   High-performance GPU-accelerated styling for smartphone & tablet
   ========================================================= */

/* 1. Global Touch, Viewport & Smooth Scrolling Safeguards */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.table-responsive, .table-container, .sikepo-table-responsive, div[style*="overflow-x: auto"] {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px;
}

/* Custom Cyber Slim Scrollbar for Mobile Tables */
.table-responsive::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.sikepo-table-responsive::-webkit-scrollbar,
div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 5px !important;
}

.table-responsive::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track,
.sikepo-table-responsive::-webkit-scrollbar-track,
div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.6) !important;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb,
.sikepo-table-responsive::-webkit-scrollbar-thumb,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00f3ff, #10b981, #c084fc) !important;
    border-radius: 10px;
}

/* 2. Tablet Responsive Breakpoint (max-width: 991px) */
@media (max-width: 991px) {
    nav {
        padding: 14px 28px !important;
    }
    nav.scrolled {
        padding: 12px 28px !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .grid-2, .grid-3, .grid-4, .grid-berita {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .hero-split-container {
        padding: 130px 24px 50px !important;
        gap: 40px !important;
    }

    .hero-text-side h1 {
        font-size: 2.8rem !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* 3. Mobile Smartphone Responsive Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar & Mobile HUD Drawer */
    nav {
        padding: 12px 18px !important;
    }
    nav.scrolled {
        padding: 10px 18px !important;
    }
    .logo {
        font-size: 1.05rem !important;
    }
    .logo img {
        height: 28px !important;
    }
    .btn-mas-rio-icon {
        margin-right: 6px !important;
    }
    .mas-rio-nav-icon {
        height: 28px !important;
    }

    .burger {
        display: flex !important;
    }

    .menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(8, 14, 28, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-left: 1px solid rgba(0, 243, 255, 0.25) !important;
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85) !important;
        z-index: 580 !important;
        flex-direction: column !important;
        padding: 80px 18px 28px !important;
        gap: 8px !important;
        transform: translate3d(105%, 0, 0) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .menu.open {
        transform: translate3d(0, 0, 0) !important;
    }

    .menu li {
        width: 100% !important;
    }

    .menu a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        border-radius: 14px !important;
        font-size: 0.88rem !important;
        color: #cbd5e1 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        width: 100% !important;
        text-transform: none !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }

    .menu a .menu-icon {
        display: inline-flex !important;
        font-size: 1.15rem !important;
        color: var(--cyan) !important;
        width: 22px !important;
        justify-content: center !important;
    }

    .menu a::after {
        display: none !important;
    }

    .menu a:hover, .menu a.active {
        background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 102, 255, 0.12)) !important;
        border-color: rgba(0, 243, 255, 0.4) !important;
        color: #00f3ff !important;
        box-shadow: 0 4px 18px rgba(0, 243, 255, 0.2) !important;
        transform: translateX(4px) !important;
    }

    /* Index Hero Split & 3D Logo */
    .hero-split-container {
        grid-template-columns: 1fr !important;
        padding: 95px 16px 36px !important;
        gap: 32px !important;
        min-height: auto !important;
        text-align: center !important;
        justify-items: center !important;
    }

    .hero-text-side {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero-text-side h1 {
        font-size: 1.85rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .hero-text-side p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        margin-bottom: 22px !important;
        max-width: 100% !important;
    }

    .hero-btn-row {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .hero-btn-row .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 0.85rem !important;
    }

    .hero-theme-toggle-wrap {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 14px !important;
    }

    .hero-logo-side {
        width: 100% !important;
        height: 250px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .big-logo-wrapper {
        width: 210px !important;
        height: 210px !important;
        transform: none !important;
    }

    .orbit-ring-1 {
        width: 240px !important;
        height: 240px !important;
        margin-top: -120px !important;
        margin-left: -120px !important;
    }

    .orbit-ring-2 {
        width: 280px !important;
        height: 280px !important;
        margin-top: -140px !important;
        margin-left: -140px !important;
    }

    .orbit-ring-3 {
        width: 320px !important;
        height: 320px !important;
        margin-top: -160px !important;
        margin-left: -160px !important;
    }

    .logo-illustration {
        width: 135px !important;
        max-height: 135px !important;
    }

    /* Container & Layout */
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100% !important;
    }

    /* Page Hero Banners */
    .page-hero {
        padding: 95px 14px 20px 14px !important;
        text-align: center !important;
    }
    .page-hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
    }
    .page-hero p {
        font-size: 0.86rem !important;
        line-height: 1.55 !important;
        margin: 8px auto 16px auto !important;
    }
    .breadcrumb {
        justify-content: center !important;
        font-size: 0.75rem !important;
    }

    /* Grids & KPI Cards Layout */
    .grid-2, .grid-3, .grid-4, .grid-berita {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .grid-kpi, .kpi-grid, .kpi-grid-sikepo {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .kpi-card, .card, .sikepo-table-card, .kpi-sikepo-card, .kpi-premium-card {
        padding: 14px 12px !important;
        border-radius: 18px !important;
    }

    .kpi-title, .kpi-sikepo-title {
        font-size: 0.72rem !important;
    }

    .kpi-val, .kpi-value, .kpi-sikepo-value {
        font-size: 1.28rem !important;
    }

    .kpi-icon-watermark {
        font-size: 3.5rem !important;
        right: 4px !important;
        bottom: 4px !important;
        opacity: 0.08 !important;
    }

    /* Form Inputs, Selects, & Toolbars */
    .toolbar, .filter-bar, .sikepo-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px 12px !important;
        border-radius: 18px !important;
    }

    .input-search, .sikepo-search-box, .sikepo-select, select, input[type="text"], input[type="search"] {
        width: 100% !important;
        min-width: 100% !important;
        height: 44px !important;
        font-size: 0.88rem !important;
    }

    /* Buttons & Actions */
    .btn, button, .btn-action-emerald, .btn-action-outline {
        min-height: 44px !important;
        font-size: 0.84rem !important;
        padding: 10px 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sikepo-btn-group, .btn-group, .button-row {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .sikepo-btn-group .btn-action-emerald,
    .sikepo-btn-group .btn-action-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Tables Mobile Padding */
    table th, table td, .sikepo-table th, .sikepo-table td {
        padding: 12px 10px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Map Layout (Peta Data) Mobile */
    .map-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    #leaflet-map {
        height: 380px !important;
        width: 100% !important;
        border-radius: 14px !important;
    }
    .map-sidebar {
        max-height: 260px !important;
        width: 100% !important;
        order: 2;
    }
    .map-filter-bar {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }
    .radius-state-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
    }

    /* Modal Fullscreen & Personnel Grid */
    .modal-fullscreen.wide {
        width: 95% !important;
        max-height: 90vh !important;
        border-radius: 18px !important;
    }
    .personnel-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Gallery (Galeri Media) Grid Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .gallery-item {
        border-radius: 14px !important;
    }

    /* Juknis & Dokumen Grid */
    .doc-stat-grid, .doc-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Notulensi & Metadata Grid */
    .metadata-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Direktori LinkHub Grid */
    .lh-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Modals Responsive Sheet */
    .modal-card-cyber, .modal-box {
        width: 92% !important;
        max-width: 440px !important;
        padding: 24px 18px !important;
        border-radius: 22px !important;
    }

    /* Footer Mobile */
    .futuristic-footer {
        padding: 40px 16px 28px !important;
    }
    .footer-top-row {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center !important;
    }
    .footer-col ul {
        align-items: center !important;
    }
    .footer-bottom-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    /* Theme Mas Rio Overrides on Mobile */
    [data-theme="mas-rio"] .menu {
        background: rgba(20, 20, 21, 0.97) !important;
        border-left-color: rgba(243, 108, 33, 0.35) !important;
    }

    [data-theme="mas-rio"] .menu a:hover,
    [data-theme="mas-rio"] .menu a.active {
        background: linear-gradient(135deg, rgba(243, 108, 33, 0.2), rgba(224, 155, 102, 0.12)) !important;
        border-color: rgba(243, 108, 33, 0.5) !important;
        color: #F36C21 !important;
        box-shadow: 0 4px 15px rgba(243, 108, 33, 0.25) !important;
    }

    [data-theme="mas-rio"] .menu a .menu-icon {
        color: #F36C21 !important;
    }

    [data-theme="mas-rio"] .burger span {
        background: #F36C21 !important;
    }

    [data-theme="mas-rio"] .burger.open span:nth-child(1),
    [data-theme="mas-rio"] .burger.open span:nth-child(3) {
        background: #ff5e62 !important;
    }
}

/* 4. Small Smartphone Screens (max-width: 480px) */
@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.45rem !important;
    }

    .page-hero p {
        font-size: 0.82rem !important;
    }

    .kpi-val, .kpi-value, .kpi-sikepo-value {
        font-size: 1.15rem !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}