/* ===== DESA NGUNUT - GAYA & TEMA LENGKAP ===== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8f9fa;
}

/* Top Header untuk Jam dan Tanggal dengan Efek Cahaya */
.top-bar {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 0;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.02);
}

/* Navbar dengan Efek 3D Soft Light */
.navbar-public {
    background: linear-gradient(145deg, #ffffff 0%, #fdfdfd 100%);
    /* Kombinasi Drop Shadow dan Inner Glow (Inset) untuk efek 3D */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 2px 5px rgba(0, 0, 0, 0.02),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.01);
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    perspective: 1000px;
    /* Ruang 3D untuk logo */
}

/* ====== LOGO DESA 3D (koin tebal berputar + kilatan cahaya) ======
           Ketebalan dibuat dari tumpukan lapisan logo pada sumbu Z (tepi bersepuh emas),
           kilatan cahaya memakai mask berbentuk siluet logo sehingga hanya "menyapu"
           bagian logo, bukan kotaknya. Semua murni CSS (ringan, tanpa JavaScript). */
.logo3d {
    --t: 6px;
    /* ketebalan logo */
    position: relative;
    display: inline-block;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 9px rgba(15, 23, 42, 0.28));
}

.logo3d-glow {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.60) 0%, rgba(255, 196, 60, 0.22) 42%, rgba(255, 196, 60, 0) 70%);
    animation: l3GlowPulse 3.2s ease-in-out infinite;
}

.logo3d-persp {
    position: relative;
    display: block;
    height: 100%;
    perspective: 520px;
}

/* display:block wajib: transform/perspective tidak berlaku pada elemen inline */
.logo3d-spin {
    position: relative;
    display: block;
    height: 100%;
    transform-style: preserve-3d;
    animation: l3Spin 10s linear infinite;
    will-change: transform;
}

.logo3d-spin>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo3d-spin>.l3-front {
    position: relative;
    width: auto;
    height: 100%;
}

.l3-front,
.l3-back,
.l3-shine {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.l3-front {
    transform: translateZ(calc(var(--t) / 2));
}

.l3-back {
    transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
}

/* Sisi/tebal: warna emas metalik gelap agar tepi terlihat seperti logam */
.l3-layer {
    filter: brightness(0.62) sepia(1) saturate(3.2) hue-rotate(-12deg) contrast(1.1);
}

/* Kilatan cahaya mengikuti bentuk logo */
.l3-shine {
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 59%);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position: 150% 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    animation: l3Shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.l3-shine.f {
    transform: translateZ(calc(var(--t) / 2 + 0.5px));
}

.l3-shine.b {
    transform: rotateY(180deg) translateZ(calc(var(--t) / 2 + 0.5px));
}

/* Percikan bintang */
.l3-spark {
    position: absolute;
    width: 11px;
    height: 11px;
    pointer-events: none;
    opacity: 0;
    background: #fff7d1;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 3px #ffd34d);
    animation: l3Twinkle 3.2s ease-in-out infinite;
}

.l3-spark.s1 {
    top: -4px;
    right: -3px;
    animation-delay: .2s;
}

.l3-spark.s2 {
    bottom: 2px;
    left: -6px;
    width: 8px;
    height: 8px;
    animation-delay: 1.2s;
}

.l3-spark.s3 {
    top: 14px;
    left: -9px;
    width: 7px;
    height: 7px;
    animation-delay: 2.1s;
}

.l3-spark.s4 {
    bottom: -3px;
    right: 2px;
    width: 9px;
    height: 9px;
    animation-delay: 1.7s;
}

@keyframes l3Spin {
    0% {
        transform: rotateX(-7deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-7deg) rotateY(360deg);
    }
}

@keyframes l3Shine {

    0%,
    18% {
        background-position: 150% 0;
    }

    48%,
    100% {
        background-position: -50% 0;
    }
}

@keyframes l3GlowPulse {

    0%,
    100% {
        opacity: .45;
        transform: scale(.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes l3Twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(.2) rotate(0deg);
    }

    12% {
        opacity: 1;
        transform: scale(1.15) rotate(45deg);
    }

    28% {
        opacity: 0;
        transform: scale(.3) rotate(90deg);
    }
}

/* Berhenti sejenak saat logo di-hover (seperti perilaku sebelumnya) */
.brand-link:hover .logo3d-spin,
.brand-link:hover .l3-shine {
    animation-play-state: paused;
}

/* Hormati pengguna yang mengaktifkan "kurangi gerakan" */
@media (prefers-reduced-motion: reduce) {

    .logo3d-spin,
    .l3-shine,
    .logo3d-glow,
    .l3-spark {
        animation: none;
    }

    .logo3d-spin {
        transform: rotateX(-7deg) rotateY(-18deg);
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.village-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 3px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
    /* Cahaya pada teks */
}

.village-location {
    font-weight: 600;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

.btn-portal {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 50px;
    padding: 8px 22px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    color: white;
}

@media (max-width: 991.98px) {
    .logo3d {
        height: 38px;
        --t: 4px;
    }

    .l3-spark {
        transform-origin: center;
    }

    .village-name {
        font-size: 1rem;
    }

    .top-bar {
        text-align: center;
    }

    .navbar-collapse {
        background: linear-gradient(145deg, #ffffff 0%, #fdfdfd 100%);
        margin-top: 10px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.8);
    }
}

/* Kontainer utama preloader */
#village-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Saat di mode preview admin, batasi ukurannya agar tidak menutupi dashboard */

/* Kelas untuk menyembunyikan preloader setelah loading selesai */
#village-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Efek memutar horizontal (Y-axis 3D spin) */
.spinning-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    animation: spinHorizontal 1.5s linear infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    margin-bottom: 15px;
}

@keyframes spinHorizontal {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* Teks memuat yang berkedip halus */
.loading-text {
    font-family: 'Plus Jakarta Sans', sans-serif, Arial;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinning-logo {
        animation: none;
    }

    .loading-text {
        animation: none;
    }
}

/* ============================================
   MODERN VILLAGE PORTAL - FINAL EDITION
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --danger: #dc2626;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 70vh;
        max-height: 600px;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 32px;
    z-index: 2;
    color: #fff;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 40px 48px 56px;
        max-width: 600px;
    }
}

.hero-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.hero-content p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero-content p {
        font-size: 1rem;
    }
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

@media (min-width: 768px) {
    .slider-dots {
        bottom: 24px;
        right: 48px;
    }
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav.prev {
    left: 12px;
}

.slider-nav.next {
    right: 12px;
}

@media (max-width: 576px) {
    .slider-nav {
        display: none;
    }
}

/* Widget Countdown Hari Besar -- melayang di pojok kanan atas slider */
.countdown-hari-besar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 3px solid var(--warna-tema-hb, #dc2626);
    border-radius: 16px;
    padding: 10px 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    max-width: 260px;
}

.countdown-judul {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.countdown-item span {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-item small {
    font-size: 0.52rem;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}

.countdown-selesai {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 4px;
}

@media (max-width: 576px) {
    .countdown-hari-besar {
        top: 10px;
        right: 10px;
        padding: 7px 10px;
        max-width: 190px;
    }

    .countdown-judul {
        font-size: 0.6rem;
    }

    .countdown-item span {
        font-size: 0.85rem;
    }

    .countdown-item {
        min-width: 24px;
    }
}

/* =========================================================
   BERITA DUKA -- Tulisan Berjalan (Ticker) + Tabur Bunga Duka
   Ditampilkan di bagian BAWAH slider, memenuhi lebar slider,
   dengan animasi kelopak bunga tersebar di SELURUH area slider
   (bukan hanya di satu pojok kecil).
   ========================================================= */
.duka-ticker-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(20, 21, 32, 0.92) 0%, rgba(35, 37, 54, 0.88) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 42px;
    animation: dukaBarMasuk 0.7s ease-out;
}

@keyframes dukaBarMasuk {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

.duka-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffb4c6;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.duka-ticker-viewport {
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.duka-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-name: dukaTickerScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    padding-left: 100%;
}

.duka-ticker-track span {
    color: #f1f1f4;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.duka-ticker-track span b {
    color: #fff;
    font-weight: 700;
}

.duka-ticker-track .pemisah-duka {
    margin: 0 28px;
    color: #6f7290;
}

@keyframes dukaTickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.duka-ticker-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cfcfe0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    margin: 0 10px;
}

.duka-ticker-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 576px) {
    .duka-ticker-bar {
        height: 36px;
    }

    .duka-ticker-label {
        padding: 0 10px;
        font-size: 0.62rem;
    }

    .duka-ticker-track span {
        font-size: 0.7rem;
    }
}

/* Tabur bunga duka -- tersebar di SELURUH area slider (bukan hanya
   satu pojok), kelopak jatuh perlahan dari atas ke bawah slider,
   otomatis muncul selama widget berita duka aktif. */
.duka-flower-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.duka-kelopak {
    position: absolute;
    top: -30px;
    animation-name: dukaJatuhBunga;
    animation-timing-function: ease-in;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

@keyframes dukaJatuhBunga {
    0% {
        transform: translateY(-30px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(115%) translateX(var(--geser-x, 20px)) rotate(260deg);
        opacity: 0;
    }
}

/* === INFO BAR === */
.info-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.info-bar-label {
    background: var(--primary);
    color: #fff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.info-bar-content {
    flex: 1;
    overflow: hidden;
    padding-left: 16px;
}

.info-bar-content marquee {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.info-bar-content a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
}

.info-bar-content a:hover {
    color: var(--primary);
}

/* === SECTION === */
.section {
    padding: 32px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 48px 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    position: relative;
    padding-left: 14px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 2px;
}

.section-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--primary-dark);
}

.swipe-hint {
    font-size: 0.7rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === SAMBUTAN KADES === */
.kades-card {
    background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.kades-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.kades-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .kades-inner {
        flex-direction: row;
    }
}

.kades-photo-section {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
}

@media (min-width: 768px) {
    .kades-photo-section {
        width: 280px;
        flex-shrink: 0;
        padding: 40px 24px;
        border-right: 1px solid var(--gray-200);
    }
}

.kades-photo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .kades-photo-wrapper {
        width: 170px;
        height: 170px;
    }
}

.kades-photo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), #8b5cf6, #ec4899, var(--primary));
    animation: rotateRing 8s linear infinite;
    opacity: 0.8;
}

.kades-photo-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

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

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

.kades-photo-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.kades-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: floatPhoto 4s ease-in-out infinite;
}

@keyframes floatPhoto {

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

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

.kades-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.kades-photo:hover img {
    transform: scale(1.08);
}

.kades-photo-wrapper::before,
.kades-photo-wrapper::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
    z-index: 3;
}

.kades-photo-wrapper::before {
    top: 5px;
    right: 10px;
    animation: floatDot 3s ease-in-out infinite;
}

.kades-photo-wrapper::after {
    bottom: 10px;
    left: 5px;
    background: #8b5cf6;
    animation: floatDot 3s ease-in-out infinite 1.5s;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(4px, -4px);
        opacity: 1;
    }
}

.kades-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}

.kades-position {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.kades-content {
    padding: 24px;
    flex: 1;
}

@media (min-width: 768px) {
    .kades-content {
        padding: 40px 32px;
    }
}

.kades-content-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    display: none;
    position: relative;
    padding-bottom: 12px;
}

@media (min-width: 768px) {
    .kades-content-title {
        display: block;
        font-size: 1.2rem;
    }

    .kades-content-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), transparent);
        border-radius: 2px;
    }
}

.kades-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.75;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .kades-text {
        -webkit-line-clamp: 5;
        font-size: 0.9rem;
    }
}

.kades-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
}

.kades-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

/* ============================================
   APARATUR DESA - MODERN FRAME + AUTO SCROLL
   ============================================ */
.aparatur-scroller-wrapper {
    position: relative;
    overflow: hidden;
    padding: 8px 0 16px;
    /* Fade edges for modern look */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.aparatur-scroller {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: aparaturScroll 40s linear infinite;
}

/* Pause on hover */
.aparatur-scroller-wrapper:hover .aparatur-scroller {
    animation-play-state: paused;
}

@keyframes aparaturScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modern Aparatur Card with gradient frame */
.aparatur-card-modern {
    width: 170px;
    flex-shrink: 0;
    position: relative;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    transition: var(--transition);
    cursor: pointer;
}

@media (min-width: 576px) {
    .aparatur-card-modern {
        width: 185px;
    }
}

.aparatur-card-modern:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(135deg, var(--primary), #8b5cf6, #ec4899);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.aparatur-card-inner {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.aparatur-img-modern {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    position: relative;
}

.aparatur-img-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.aparatur-card-modern:hover .aparatur-img-modern img {
    transform: scale(1.08);
}

/* Shine effect overlay on image */
.aparatur-img-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aparatur-card-modern:hover .aparatur-img-modern::after {
    opacity: 1;
    animation: shineEffect 1.2s ease;
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.aparatur-info-modern {
    padding: 12px 10px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.aparatur-rank-modern {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    padding: 2px 8px;
    background: var(--primary-light);
    border-radius: 10px;
}

.aparatur-name-modern {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aparatur-position-modern {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status indicator dot */
.aparatur-status-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    z-index: 3;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

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

    50% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1);
    }
}

/* ============================================
   LAPORAN KEGIATAN - COMPACT MODERN CARD
   ============================================ */
.kegiatan-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.kegiatan-scroller::-webkit-scrollbar {
    display: none;
}

.kegiatan-scroller>* {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.kegiatan-card-compact {
    width: 280px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    /* Staggered fade-in animation */
    opacity: 0;
    animation: kegiatanFadeIn 0.5s ease forwards;
}

@media (min-width: 576px) {
    .kegiatan-card-compact {
        width: 310px;
        padding: 16px;
    }
}

.kegiatan-card-compact:nth-child(1) {
    animation-delay: 0.05s;
}

.kegiatan-card-compact:nth-child(2) {
    animation-delay: 0.1s;
}

.kegiatan-card-compact:nth-child(3) {
    animation-delay: 0.15s;
}

.kegiatan-card-compact:nth-child(4) {
    animation-delay: 0.2s;
}

.kegiatan-card-compact:nth-child(5) {
    animation-delay: 0.25s;
}

.kegiatan-card-compact:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes kegiatanFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.kegiatan-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Status color bar - top instead of left for modern look */
.kegiatan-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.kegiatan-card-compact[data-status="Selesai"]::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.kegiatan-card-compact[data-status="Terjadwal"]::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.kegiatan-card-compact[data-status="Batal"]::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.kegiatan-card-compact[data-status="Berlangsung"]::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Status badge with pulse for "Berlangsung" */
.kegiatan-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kegiatan-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.kegiatan-status-badge.status-berlangsung {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.kegiatan-status-badge.status-berlangsung .status-dot {
    animation: statusBlink 1.5s ease-in-out infinite;
}

.kegiatan-status-badge.status-selesai {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.kegiatan-status-badge.status-terjadwal {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.kegiatan-status-badge.status-batal {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

@keyframes statusBlink {

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

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.kegiatan-top-compact {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.kegiatan-foto-compact {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kegiatan-foto-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kegiatan-meta-compact {
    flex: 1;
    min-width: 0;
}

.kegiatan-title-compact {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kegiatan-loc-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 8px;
}

.kegiatan-loc-compact i {
    color: var(--primary);
    font-size: 0.75rem;
}

.kegiatan-loc-compact strong {
    color: var(--dark);
    font-weight: 600;
}

.kegiatan-desc-compact {
    font-size: 0.72rem;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.kegiatan-footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.kegiatan-date-compact {
    font-size: 0.68rem;
    color: var(--gray-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kegiatan-detail-btn-compact {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kegiatan-detail-btn-compact:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* === BERITA === */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .berita-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.berita-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.berita-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.berita-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.berita-card:hover .berita-img img {
    transform: scale(1.05);
}

.berita-date {
    background: var(--dark);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 10px;
    font-weight: 500;
}

.berita-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .berita-body {
        padding: 16px;
    }
}

.berita-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .berita-title {
        font-size: 0.95rem;
    }
}

.berita-excerpt {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}

@media (min-width: 768px) {
    .berita-excerpt {
        -webkit-line-clamp: 3;
        font-size: 0.8rem;
    }
}

.berita-btn {
    display: block;
    text-align: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.berita-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === LAPAK === */
.lapak-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .lapak-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.lapak-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.lapak-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.lapak-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.lapak-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lapak-card:hover .lapak-img img {
    transform: scale(1.05);
}

.lapak-body {
    padding: 12px;
}

.lapak-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.lapak-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--danger);
    margin: 0 0 10px;
}

.lapak-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.lapak-wa:hover {
    background: #1da851;
    color: #fff;
}

/* ============================================
   STATISTIK PENDUDUK - MODERN ANIMATED RINGS
   ============================================ */
.stat-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 28px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stat-section {
        padding: 40px 32px;
    }
}

/* Subtle background pattern */
.stat-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px;
    position: relative;
}

@media (min-width: 768px) {
    .stat-title {
        font-size: 1.6rem;
    }
}

.stat-title span {
    color: var(--primary);
}

.stat-subtitle {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 28px;
    position: relative;
}

@media (min-width: 768px) {
    .stat-subtitle {
        font-size: 0.8rem;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 560px;
    margin: 0 auto 28px;
    position: relative;
}

@media (min-width: 576px) {
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 640px;
        gap: 16px;
    }
}

.stat-item {
    text-align: center;
    position: relative;
}

/* Modern ring container */
.stat-ring-modern {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    position: relative;
    transition: var(--transition);
}

@media (min-width: 576px) {
    .stat-ring-modern {
        width: 110px;
        height: 110px;
    }
}

.stat-item:hover .stat-ring-modern {
    transform: translateY(-4px);
}

/* Outer rotating dashed ring */
.stat-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed transparent;
    animation: ringRotate 15s linear infinite;
}

.stat-ring-modern.laki .stat-ring-outer {
    border-color: rgba(6, 182, 212, 0.4);
}

.stat-ring-modern.perempuan .stat-ring-outer {
    border-color: rgba(236, 72, 153, 0.4);
    animation-direction: reverse;
}

.stat-ring-modern.total .stat-ring-outer {
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-ring-modern.dusun .stat-ring-outer {
    border-color: rgba(245, 158, 11, 0.4);
    animation-direction: reverse;
}

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

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

/* Inner solid ring with progress */
.stat-ring-inner-progress {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--ring-pct) * 1%),
            var(--gray-200) 0);
    animation: ringFill 1.5s ease-out forwards;
    transform: rotate(-90deg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes ringFill {
    from {
        --ring-pct: 0;
    }
}

/* Center circle */
.stat-ring-center {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--gray-50));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.stat-ring-center i {
    font-size: 1.1rem;
    margin-bottom: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.stat-ring-modern.laki .stat-ring-center i {
    color: #06b6d4;
}

.stat-ring-modern.perempuan .stat-ring-center i {
    color: #ec4899;
}

.stat-ring-modern.total .stat-ring-center i {
    color: #10b981;
}

.stat-ring-modern.dusun .stat-ring-center i {
    color: #f59e0b;
}

.stat-ring-center h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark);
    line-height: 1;
}

@media (min-width: 576px) {
    .stat-ring-center h4 {
        font-size: 1.05rem;
    }
}

.stat-ring-center small {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Pulse glow on hover */
.stat-ring-modern::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ring-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-item:hover .stat-ring-modern::after {
    opacity: 0.15;
}

.stat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.stat-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SMART INSIGHT WIDGET
   ============================================ */
.si-section {
    background: #f8fafc;
}

.si-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.si-main-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.si-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    justify-content: center;
}

.si-tab-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.si-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.si-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.si-tab-pane {
    display: none;
    animation: siFadeIn .35s ease;
}

.si-tab-pane.active {
    display: block;
}

@keyframes siFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.si-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .si-stat-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-stat-card {
    background: linear-gradient(160deg, #059669 0%, #047857 100%);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18);
}

.si-stat-card.sm {
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.14);
}

.si-stat-card.muted {
    background: linear-gradient(160deg, #64748b 0%, #475569 100%);
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.14);
}

.si-stat-head {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.12);
}

.si-stat-body {
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
}

.si-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.si-stat-card.sm .si-stat-num {
    font-size: 1.25rem;
}

.si-stat-unit {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 2px;
}

.si-stat-foot {
    font-size: 0.66rem;
    text-align: center;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.si-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .si-two-col {
        grid-template-columns: 1.3fr 1fr;
    }

    .si-two-col-wide {
        grid-template-columns: 1fr 1fr;
    }
}

.si-box {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.si-box-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.si-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.si-table thead th {
    background: #eef1f6;
    font-weight: 700;
    color: #475569;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 0.66rem;
    letter-spacing: .3px;
}

.si-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f2f6;
    color: #334155;
}

.si-table tbody tr:hover {
    background: #f8fafc;
}

.si-table .si-total-row td {
    background: #ecfdf5;
    font-weight: 700;
}

.si-delta.up {
    color: #059669;
    font-weight: 700;
}

.si-delta.down {
    color: #dc2626;
    font-weight: 700;
}

.si-table-compact th,
.si-table-compact td {
    padding: 7px 8px;
    font-size: 0.74rem;
}

.si-insight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.si-insight-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
}

.si-insight-item i {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.si-period-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.si-period-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.si-period-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.si-period-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.si-download-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
}

.si-download-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.si-chart-wrap {
    position: relative;
    width: 100%;
}

.si-inputer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .si-inputer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .si-inputer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-inputer-box {
    padding: 14px;
}

.si-surat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 576px) {
    .si-surat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-total-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 14px;
    margin-bottom: 8px;
}

.si-total-banner-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.si-list-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.si-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f6;
}

.si-list-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.si-list-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

.si-list-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 2px;
}

.si-count-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.si-ranked-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #475569;
}

.si-ranked-list li {
    margin-bottom: 6px;
}

.si-ranked-list li b {
    color: #1e293b;
}

/* === APBDES - 3D MODERN WITH ROTATING DONUTS === */
.apbdes-card {
    border-radius: var(--radius-xl);
    overflow: visible;
    background: #fff;
    position: relative;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(37, 99, 235, 0.08),
        0 24px 48px rgba(37, 99, 235, 0.06);
    transition: var(--transition);
}

.apbdes-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 20px 40px rgba(37, 99, 235, 0.12),
        0 32px 64px rgba(37, 99, 235, 0.08);
}

.apbdes-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-top: 2px solid rgba(37, 99, 235, 0.15);
    border-right: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 0 12px 0 0;
    pointer-events: none;
    z-index: 1;
}

.apbdes-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
    border-left: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 0 0 0 12px;
    pointer-events: none;
    z-index: 1;
}

.apbdes-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 50%, #1e3a5f 100%);
    padding: 32px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.apbdes-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.apbdes-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

@media (min-width: 992px) {
    .apbdes-banner {
        padding: 40px 24px;
    }
}

.apbdes-banner h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 6px;
    opacity: 0.75;
    position: relative;
    z-index: 2;
}

.apbdes-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .apbdes-banner h2 {
        font-size: 2rem;
    }
}

.apbdes-banner img {
    max-width: 90px;
    margin: 8px 0 16px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 2;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

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

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

.apbdes-banner .btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.apbdes-banner .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.apbdes-data {
    padding: 0;
    position: relative;
    z-index: 2;
}

.apbdes-row {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .apbdes-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apbdes-item {
    padding: 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    transition: var(--transition);
}

.apbdes-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), transparent);
}

@media (min-width: 992px) {
    .apbdes-item {
        border-bottom: none;
        border-right: 1px solid var(--gray-200);
        padding: 28px 20px;
    }
}

.apbdes-item:last-child {
    border-right: none;
    border-bottom: none;
}

.apbdes-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.apbdes-item:hover::before {
    opacity: 0.5;
}

.apbdes-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apbdes-label::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media (min-width: 992px) {
    .apbdes-item .apbdes-label {
        display: none;
    }
}

.apbdes-header-row {
    display: none;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 992px) {
    .apbdes-header-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .apbdes-header-row div {
        text-align: center;
        padding: 14px;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--dark);
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }

    .apbdes-header-row div:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 30%;
        bottom: 30%;
        width: 1px;
        background: var(--gray-300);
    }
}

.apbdes-info p {
    margin: 0 0 4px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.apbdes-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}

.donut-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateDonut 12s linear infinite;
}

.donut::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--color) var(--pct), var(--gray-200) 0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donut-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed var(--color);
    opacity: 0.3;
    animation: rotateDonutReverse 20s linear infinite;
}

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

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

@keyframes rotateDonutReverse {
    from {
        transform: rotate(360deg);
    }

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

.donut-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--gray-50));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: rotateDonutReverse 12s linear infinite;
}

/* === INFO BOXES === */
.info-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    height: 100%;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(37, 99, 235, 0.12);
}

.info-box-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 16px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.info-box-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    pointer-events: none;
}

.info-box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.info-box-header .info-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box-header .info-title {
    position: relative;
    z-index: 1;
    flex: 1;
}

.info-box-header .info-title small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-box.map-box .info-box-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.info-box.map-box-alt .info-box-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.info-box-body {
    padding: 0;
}

.table-jam {
    width: 100%;
    font-size: 0.85rem;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-jam thead th {
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    color: var(--gray-700);
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-jam td {
    padding: 12px 8px;
    text-align: center;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    transition: var(--transition);
}

.table-jam tbody tr {
    transition: var(--transition);
}

.table-jam tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.03), transparent);
}

.table-jam tbody tr:hover td {
    color: var(--primary);
}

.table-jam tbody tr:last-child td {
    border-bottom: none;
}

.table-jam tr.libur td {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.05), transparent);
    color: var(--danger);
    font-weight: 700;
}

.table-jam td.hari-cell {
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    padding-left: 16px;
    position: relative;
}

.table-jam td.hari-cell::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.5;
}

.map-container-modern {
    position: relative;
    padding: 12px;
    background: var(--gray-50);
}

.map-frame {
    width: 100%;
    height: 240px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .map-frame {
        height: 260px;
    }
}

.map-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-badge i {
    color: var(--primary);
}

/* === UTILITY === */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

#cg_dd1834ed_wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    font-family: inherit;
    animation: cgSlideIn .6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 576px) {
    #cg_dd1834ed_wrap {
        top: 10px;
        right: 10px;
    }
}

@keyframes cgSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px) scale(.92);
    }

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

#cg_dd1834ed_pill {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 8px 14px;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: transform .2s ease;
    position: relative;
    overflow: hidden;
}

#cg_dd1834ed_pill:hover {
    transform: translateY(-2px);
}

#cg_dd1834ed_pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: cgShimmer 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes cgShimmer {
    0% {
        left: -60%;
    }

    18% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

#cg_dd1834ed_pill .cg-suhu {
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

#cg_dd1834ed_pill .cg-ikon-cuaca {
    font-size: 1.05rem;
    color: #ffd76e;
    position: relative;
    z-index: 1;
    display: inline-block;
}

#cg_dd1834ed_pill .cg-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .3);
    position: relative;
    z-index: 1;
}

#cg_dd1834ed_pill .cg-gempa-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

#cg_dd1834ed_pill .cg-gempa-mini i {
    color: #fca5a5;
    animation: cgShake 1.4s ease-in-out infinite;
}

@keyframes cgShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(9deg);
    }

    60% {
        transform: rotate(-6deg);
    }

    80% {
        transform: rotate(4deg);
    }
}

#cg_dd1834ed_pill.cg-alert {
    animation: cgSlideIn .6s cubic-bezier(0.22, 1, 0.36, 1) both, cgPulseAlert 1.8s ease-in-out infinite .6s;
}

@keyframes cgPulseAlert {

    0%,
    100% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
    }

    50% {
        box-shadow: 0 4px 26px rgba(220, 38, 38, .7);
    }
}

#cg_dd1834ed_pill .cg-chev {
    font-size: .65rem;
    opacity: .7;
    transition: transform .3s ease;
    position: relative;
    z-index: 1;
}

#cg_dd1834ed_pill.cg-open .cg-chev {
    transform: rotate(180deg);
}

/* Animasi ikon cuaca sesuai kondisinya -- membuat pill terasa "hidup" */
.cg-anim-cerah {
    animation: cgRotateSlow 12s linear infinite;
}

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

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

.cg-anim-berawan {
    animation: cgFloat 3s ease-in-out infinite;
}

@keyframes cgFloat {

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

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

.cg-anim-hujan {
    animation: cgBounceRain 1.1s ease-in-out infinite;
}

@keyframes cgBounceRain {

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

    50% {
        transform: translateY(2px);
    }
}

.cg-anim-petir {
    animation: cgFlash 1.6s steps(1) infinite;
}

@keyframes cgFlash {

    0%,
    80%,
    100% {
        opacity: 1;
    }

    85%,
    95% {
        opacity: .35;
    }
}

.cg-anim-kabut {
    animation: cgFade 2.4s ease-in-out infinite;
}

@keyframes cgFade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

#cg_dd1834ed_panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 7;
}

#cg_dd1834ed_panel.cg-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 380px) {
    #cg_dd1834ed_panel {
        width: 250px;
    }
}

#cg_dd1834ed_panel .cg-sec {
    padding: 16px;
}

#cg_dd1834ed_panel .cg-sec+.cg-sec {
    border-top: 1px solid #f1f5f9;
}

#cg_dd1834ed_panel .cg-sec-title {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#cg_dd1834ed_panel .cg-cuaca-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#cg_dd1834ed_panel .cg-cuaca-ikon {
    font-size: 2.1rem;
    color: #f59e0b;
    flex-shrink: 0;
}

#cg_dd1834ed_panel .cg-cuaca-suhu {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

#cg_dd1834ed_panel .cg-cuaca-desk {
    font-size: .78rem;
    color: #475569;
    font-weight: 600;
    margin-top: 2px;
}

#cg_dd1834ed_panel .cg-cuaca-lokasi {
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

#cg_dd1834ed_panel .cg-lokasi-sub {
    display: block;
    padding-left: 16px;
    opacity: .8;
}

#cg_dd1834ed_panel .cg-cuaca-angin {
    font-size: .72rem;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#cg_dd1834ed_panel .cg-gempa-mag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

#cg_dd1834ed_panel .cg-gempa-mag.cg-kecil {
    background: #f0fdf4;
    color: #16a34a;
}

#cg_dd1834ed_panel .cg-gempa-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#cg_dd1834ed_panel .cg-gempa-wilayah {
    font-size: .78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

#cg_dd1834ed_panel .cg-gempa-meta {
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.5;
}

#cg_dd1834ed_panel .cg-gempa-jarak {
    display: inline-block;
    margin-top: 6px;
    font-size: .68rem;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 9px;
    border-radius: 20px;
}

#cg_dd1834ed_panel .cg-kosong {
    font-size: .74rem;
    color: #94a3b8;
    text-align: center;
    padding: 6px 0;
}

#cg_dd1834ed_panel .cg-footer {
    padding: 10px 16px;
    background: #f8fafc;
    text-align: center;
}

#cg_dd1834ed_panel .cg-footer a {
    font-size: .65rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.skm-btn-wrap {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
    animation: skmBtnIn .5s cubic-bezier(.16, 1, .3, 1) both .15s;
}

@keyframes skmBtnIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.skm-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 7px;
    border-radius: 30px;
    text-decoration: none !important;
    color: #ffffff;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: transform .2s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer lembut menyapu permukaan kaca, identik dengan widget cuaca */
.skm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: cgShimmer 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
    z-index: 2;
}

.skm-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.5);
}

.skm-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Animasi hanya pada icon -- bergerak naik-turun halus identik dengan animasi cuaca cgFloat */
.skm-btn .skm-ic {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0841E2 0%, #0284c7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(8, 65, 226, 0.35);
    transition: transform .25s ease;
    animation: cgFloat 3s ease-in-out infinite;
    z-index: 1;
}

.skm-btn:hover .skm-ic {
    transform: scale(1.06);
}

.skm-btn .skm-ic svg {
    width: 17px;
    height: 17px;
    stroke: #ffffff;
    display: block;
}

/* Tulisan tetap diam, tidak bergerak */
.skm-btn .skm-tx {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.skm-btn .skm-tx small {
    font-size: .62rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.skm-btn .skm-tx b {
    font-size: .88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Panah chevron tetap diam, hanya bergeser saat dihover */
.skm-btn .skm-arrow {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.65);
    transition: transform .25s ease, stroke .25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.skm-btn:hover .skm-arrow {
    stroke: #38bdf8;
    transform: translateX(3px);
}

@media(max-width:576px) {
    .skm-btn-wrap {
        top: 10px;
        left: 10px;
    }

    .skm-btn {
        padding: 5px 12px 5px 6px;
        gap: 8px;
        border-radius: 24px;
    }

    .skm-btn .skm-ic {
        width: 28px;
        height: 28px;
    }

    .skm-btn .skm-ic svg {
        width: 15px;
        height: 15px;
    }

    .skm-btn .skm-tx small {
        display: none;
    }

    .skm-btn .skm-tx b {
        font-size: .8rem;
    }

    .skm-btn .skm-arrow {
        width: 12px;
        height: 12px;
    }
}

@media(max-width:380px) {
    .skm-btn {
        padding: 4px 10px 4px 5px;
        gap: 6px;
    }

    .skm-btn .skm-tx b {
        font-size: .74rem;
    }
}

@media(prefers-reduced-motion:reduce) {
    .skm-btn,
    .skm-btn-wrap {
        animation: none;
    }
}

.sg-wrap {
    --sg-w: 80px;
    --sg-gap: 24px;
    position: relative;
    padding: 20px 0 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
}

.sg-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 16px;
}

.sg-head::before,
.sg-head::after {
    content: '';
    flex: 0 1 90px;
    height: 2px;
    border-radius: 2px;
}

.sg-head::before {
    background: linear-gradient(90deg, transparent, #93c5fd);
}

.sg-head::after {
    background: linear-gradient(90deg, #93c5fd, transparent);
}

.sg-title {
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #1e293b;
    white-space: nowrap;
}

.sg-title i {
    color: #2563eb;
    margin-right: 8px;
}

/* Jalur berjalan: dua set identik, bergeser -50% -> 0 (kiri ke kanan, tanpa putus) */
.sg-viewport {
    overflow: hidden;
    contain: paint;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.sg-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: sgMarquee var(--sg-dur, 80s) linear infinite;
}

.sg-viewport:hover .sg-track {
    animation-play-state: paused;
}

.sg-set {
    display: flex;
    flex: 0 0 auto;
    padding: 14px 0 6px;
}

.sg-statis .sg-viewport {
    -webkit-mask-image: none;
    mask-image: none;
}

.sg-statis .sg-track {
    animation: none;
    width: 100%;
    justify-content: center;
}

.sg-statis .sg-set {
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes sgMarquee {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Ubin 3D halus */
.sg-item {
    flex: 0 0 auto;
    margin-right: var(--sg-gap);
    perspective: 760px;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.sg-item:hover {
    transform: translateY(-7px) scale(1.09);
}

.sg-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: var(--sg-w);
}

.sg-card {
    position: relative;
    display: block;
    width: var(--sg-w);
    height: var(--sg-w);
    border-radius: 22px;
    transform-style: preserve-3d;
    animation: sgTilt 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.15s);
}

/* tebal: dua lempeng di belakang wajah ubin */
.sg-card::before,
.sg-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.sg-card::before {
    background: linear-gradient(145deg, #94a3b8, #64748b);
    transform: translateZ(-5px);
    box-shadow: 0 12px 18px -10px rgba(15, 23, 42, .5);
}

.sg-card::after {
    background: linear-gradient(145deg, #cbd5e1, #94a3b8);
    transform: translateZ(-2.5px);
}

.sg-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    transform: translateZ(1px);
    background: linear-gradient(150deg, #ffffff 0%, #f4f7fb 52%, #e5ebf3 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -4px 8px rgba(15, 23, 42, .07), inset 0 0 0 1px rgba(148, 163, 184, .25);
}

.sg-face::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 16%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 46%);
}

/* kilatan mengkilap menyapu ubin */
.sg-face::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 64%);
    background-size: 280% 100%;
    background-repeat: no-repeat;
    background-position: 160% 0;
    animation: sgShine 5.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.7s);
}

.sg-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transform: translateZ(11px);
}

.sg-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(15, 23, 42, .22));
}

.sg-nama {
    max-width: var(--sg-w);
    font-size: .66rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}

.sg-item:hover .sg-nama {
    color: #2563eb;
}

@keyframes sgTilt {

    0%,
    100% {
        transform: rotateY(-13deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(13deg) rotateX(-4deg) translateY(-5px);
    }
}

@keyframes sgShine {

    0%,
    12% {
        background-position: 160% 0;
    }

    46%,
    100% {
        background-position: -70% 0;
    }
}

@media (max-width: 768px) {
    .sg-wrap {
        --sg-w: 56px;
        --sg-gap: 14px;
        padding: 14px 0 10px;
    }

    .sg-head {
        margin-bottom: 8px;
    }

    .sg-title {
        font-size: .72rem;
        letter-spacing: .4px;
    }

    .sg-title i {
        margin-right: 5px;
    }

    .sg-card {
        border-radius: 16px;
    }

    .sg-card::before {
        transform: translateZ(-3px);
    }

    .sg-card::after {
        transform: translateZ(-1.5px);
    }

    .sg-logo {
        padding: 9px;
        transform: translateZ(7px);
    }

    .sg-link {
        gap: 5px;
    }

    .sg-nama {
        font-size: .58rem;
    }

    .sg-set {
        padding: 8px 0 3px;
    }

    .sg-head::before,
    .sg-head::after {
        flex-basis: 28px;
    }
}

/* Hormati pengguna yang mengaktifkan "kurangi gerakan": diam & bisa digeser manual */
@media (prefers-reduced-motion: reduce) {

    .sg-track,
    .sg-card,
    .sg-face::after {
        animation: none !important;
    }

    .sg-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sg-set[aria-hidden="true"] {
        display: none;
    }
}

#jw_b4076dec {
    max-width: 900px;
    margin: 0 auto 24px;
    font-family: inherit;
}

#jw_b4076dec .jw-card {
    background: transparent;
}

#jw_b4076dec .jw-header {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 100% at center, #eaf2ff 0%, #f6f9ff 55%, rgba(255, 255, 255, 0) 100%);
    padding: 26px 20px 34px;
    text-align: center;
}

/* --- PARTIKEL SPARKLE LEMBUT (versi terang, menyatu dengan latar putih) --- */
#jw_b4076dec .jw-sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#jw_b4076dec .jw-star {
    position: absolute;
    background: radial-gradient(circle, #93c5fd 0%, rgba(147, 197, 253, 0) 70%);
    border-radius: 50%;
    animation: jwTwinkle ease-in-out infinite;
}

@keyframes jwTwinkle {

    0%,
    100% {
        opacity: .15;
        transform: scale(.6) translateY(0);
    }

    50% {
        opacity: .85;
        transform: scale(1.25) translateY(-4px);
    }
}

#jw_b4076dec .jw-mosque {
    position: absolute;
    top: 8px;
    bottom: 0;
    width: 220px;
    color: var(--primary-light, #dbeafe);
    opacity: .8;
    font-size: 5.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 0;
}

#jw_b4076dec .jw-mosque.left {
    left: -55px;
}

#jw_b4076dec .jw-mosque.right {
    right: -55px;
}

#jw_b4076dec .jw-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    color: var(--primary, #2563eb);
    font-size: 1.55rem;
    margin: 0 0 6px;
    position: relative;
    z-index: 2;
}

#jw_b4076dec .jw-kota {
    font-weight: 800;
    color: var(--dark, #1e293b);
    font-size: .95rem;
    letter-spacing: .5px;
    position: relative;
    z-index: 2;
}

#jw_b4076dec .jw-tanggal {
    font-weight: 600;
    color: var(--gray-500, #64748b);
    font-size: .88rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

/* --- TOMBOL BUKA/TUTUP: dibuat menonjol dengan animasi pulse --- */
#jw_b4076dec .jw-toggle-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

#jw_b4076dec .jw-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--primary-dark, #1d4ed8));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .82rem;
    padding: 11px 22px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}

#jw_b4076dec .jw-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .45);
}

#jw_b4076dec .jw-toggle::before,
#jw_b4076dec .jw-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 2px solid var(--primary, #2563eb);
    animation: jwPulseRing 2.2s cubic-bezier(0.4, 0, 0.3, 1) infinite;
    pointer-events: none;
}

#jw_b4076dec .jw-toggle::after {
    animation-delay: 1.1s;
}

@keyframes jwPulseRing {
    0% {
        opacity: .55;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

#jw_b4076dec .jw-toggle i.jw-chev {
    transition: transform .35s ease;
    animation: jwBob 1.6s ease-in-out infinite;
}

#jw_b4076dec .jw-toggle.open i.jw-chev {
    transform: rotate(180deg);
    animation: none;
}

@keyframes jwBob {

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

    50% {
        transform: translateY(3px);
    }
}

@media (max-width: 576px) {
    #jw_b4076dec .jw-header {
        padding: 22px 16px 30px;
    }

    #jw_b4076dec .jw-mosque {
        width: 130px;
        font-size: 3.4rem;
    }

    #jw_b4076dec .jw-title {
        font-size: 1.25rem;
    }

    #jw_b4076dec .jw-toggle {
        padding: 10px 18px;
        font-size: .78rem;
    }
}

#jw_b4076dec .jw-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s ease, opacity .35s ease, padding .35s ease;
    padding: 0 18px;
    background: #fff;
}

#jw_b4076dec .jw-body.open {
    max-height: 900px;
    opacity: 1;
    padding: 20px 18px 6px;
}

#jw_b4076dec .jw-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

#jw_b4076dec .jw-btn-kalender {
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    color: var(--primary, #2563eb);
    font-weight: 700;
    font-size: .8rem;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

#jw_b4076dec .jw-btn-kalender:hover {
    background: var(--primary-light, #dbeafe);
    border-color: var(--primary, #2563eb);
}

#jw_b4076dec .jw-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

#jw_b4076dec .jw-row-bottom {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    #jw_b4076dec .jw-row-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 420px) {
    #jw_b4076dec .jw-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

#jw_b4076dec .jw-box {
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .08));
    transition: transform .25s ease, box-shadow .25s ease;
}

#jw_b4076dec .jw-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .08));
}

#jw_b4076dec .jw-box .jw-lbl {
    background: var(--primary-light, #dbeafe);
    color: var(--primary-dark, #1d4ed8);
    font-weight: 700;
    font-size: .8rem;
    padding: 10px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#jw_b4076dec .jw-box .jw-jam {
    padding: 12px 6px;
    font-weight: 800;
    color: var(--dark, #1e293b);
    font-size: 1.05rem;
    letter-spacing: .3px;
}

#jw_b4076dec .jw-warn {
    text-align: center;
    font-size: .82rem;
    color: var(--warning, #d97706);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

#jw_b4076dec_modal .jw-modal-tbl,
.jw-modal-tbl {
    width: 100%;
    font-size: .84rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--dark, #1e293b);
}

#jw_b4076dec_modal .jw-modal-tbl th,
.jw-modal-tbl th,
#jw_b4076dec_modal .jw-modal-tbl td,
.jw-modal-tbl td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

#jw_b4076dec_modal .jw-modal-tbl th,
.jw-modal-tbl th {
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

#jw_b4076dec_modal .jw-modal-tbl tr:nth-child(even),
.jw-modal-tbl tr:nth-child(even) {
    background: var(--gray-50, #f8fafc);
}

/* ========================================================
   WIDGET MENU PINTAS (Modern Anti-Slop Bento Action Grid)
   ======================================================== */
.wm-section-header {
    margin-bottom: 12px;
}

.wm-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(8, 65, 226, 0.08);
    border: 1px solid rgba(8, 65, 226, 0.18);
    color: #0841E2;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wm-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.wm-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 9px;
    border-radius: 999px;
}

.wm-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: wmLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes wmLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.wm-card {
    --item-color: #0841E2;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 72px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.26s ease,
                background-color 0.26s ease;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    animation: wmTileEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--idx, 0) * 0.045s);
}

@keyframes wmTileEntrance {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diagonal glass sheen animation on hover */
.wm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 2;
}

.wm-card:hover::before {
    left: 180%;
}

/* Hairline bottom accent progress beam */
.wm-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: var(--item-color);
    transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.wm-card:hover::after {
    width: 100%;
}

.wm-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: color-mix(in srgb, var(--item-color) 35%, rgba(226, 232, 240, 0.8));
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 
                0 4px 12px -2px color-mix(in srgb, var(--item-color) 20%, transparent);
}

.wm-card:active {
    transform: scale(0.98);
}

/* Icon badge container */
.wm-icon-badge {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--item-color) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--item-color) 22%, transparent);
    color: var(--item-color);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.26s ease,
                color 0.26s ease,
                box-shadow 0.26s ease;
    flex-shrink: 0;
    z-index: 1;
}

.wm-card:hover .wm-icon-badge {
    transform: scale(1.08) rotate(2deg);
    background: color-mix(in srgb, var(--item-color) 16%, #ffffff);
    box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--item-color) 30%, transparent);
}

.wm-svg-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.26s ease;
}

.wm-card:hover .wm-svg-icon {
    transform: scale(1.05);
}

.wm-icon-badge i {
    font-size: 1.3rem;
    transition: transform 0.26s ease;
}

.wm-card:hover .wm-icon-badge i {
    transform: scale(1.08);
}

/* Text Block */
.wm-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    z-index: 1;
}

.wm-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.wm-card:hover .wm-title {
    color: var(--item-color);
}

.wm-subtitle {
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748B;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow indicator on the right edge */
.wm-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #94A3B8;
    opacity: 0.5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                color 0.25s ease;
    flex-shrink: 0;
    z-index: 1;
}

.wm-card:hover .wm-arrow {
    opacity: 1;
    color: var(--item-color);
    transform: translateX(3px);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .wm-card {
        padding: 9px 10px;
        min-height: 60px;
        gap: 9px;
        border-radius: 12px;
    }
    
    .wm-icon-badge {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }
    
    .wm-svg-icon {
        width: 18px;
        height: 18px;
    }
    
    .wm-icon-badge i {
        font-size: 1.05rem;
    }
    
    .wm-title {
        font-size: 0.78rem;
        margin-bottom: 1px;
    }
    
    .wm-subtitle {
        font-size: 0.66rem;
    }
    
    .wm-arrow {
        display: none; /* Keep clean on small mobile */
    }
}

/* Wrapper Utama: Dominasi Putih Bersih 3D & Latar Gambar Samar yang lebih jelas */
.mandiri-wrapper {
    position: relative;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 40px;
    overflow: hidden;

    /* Dominasi warna putih dengan gradasi 3D sangat lembut */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 242, 245, 0.85) 100%);

    /* Efek timbul (3D Bevel) dengan bayangan lembut */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 2px 5px rgba(255, 255, 255, 1),
        inset 0 -3px 5px rgba(200, 200, 200, 0.3);

    border: 1px solid rgba(220, 224, 230, 0.8);
    z-index: 1;
}

/* Latar Belakang Gambar Samar (Diperjelas sedikit) */
.mandiri-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-image: url('https://bedesapro2.desakami.my.id/assets/img/slider/slider_1785335629_9c9228d1.png');
    background-size: cover;
    background-position: center;

    /* Blur dikurangi dan opacity dinaikkan agar gambar slide lebih terlihat */
    filter: blur(8px) brightness(0.95) opacity(0.25);
    z-index: -1;
}

/* Kiri: Teks & Ilustrasi */
.mandiri-left {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Tengah: Box Putih Timbul (3D Center Box) */
.mandiri-center-box {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 25px 20px;

    /* Box shadow yang memberikan penekanan ruang 3D */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.04),
        inset 0 -2px 0 #e2e8f0,
        inset 0 2px 0 #ffffff;

    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Animasi Logo Berputar Horizontal (3D) */
@keyframes spinHorizontal {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.mandiri-logo-spin {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    animation: spinHorizontal 8s linear infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.15));
}

/* Tombol Login 3D Modern (Warna Hijau Aksen) */
.btn-mandiri-login {
    background: linear-gradient(145deg, #008a00, #006b00);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    width: 100%;
    max-width: 250px;

    /* Efek Timbul 3D pada tombol */
    box-shadow:
        0 6px 12px rgba(0, 138, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);

    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-mandiri-login:hover {
    background: linear-gradient(145deg, #007d00, #005a00);
    transform: translateY(1px);
    box-shadow:
        0 3px 6px rgba(0, 138, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-mandiri-login:active {
    transform: translateY(3px);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3);
}

/* Kanan: Ilustrasi Warga & Bubble Chat */
.mandiri-right {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 160px;
    z-index: 2;
}

/* Animasi Bubble Chat (Melayang & Berdenyut Halus) */
@keyframes floatAndPulse {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Bubble Chat bernuansa Hijau Solid */
.bubble-chat-modern {
    position: absolute;
    top: -15px;
    right: 5%;
    background: linear-gradient(145deg, #008a00, #007300);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;

    /* Efek melayang */
    box-shadow:
        0 8px 16px rgba(0, 138, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    border: none;
    z-index: 3;
    max-width: 170px;
    line-height: 1.3;
    animation: floatAndPulse 3.5s ease-in-out infinite;
}

.bubble-chat-modern::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #007300;
}

@media (max-width: 768px) {
    .mandiri-right {
        margin-top: 25px;
    }

    .bubble-chat-modern {
        top: -25px;
        right: 20%;
    }

    .mandiri-logo-spin {
        height: 65px;
    }
}

.footer {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: #ecf0f1;
    padding-top: 60px;
    font-size: 0.85rem;
    /* Font dasar diperkecil */
}

.footer-brand {
    font-size: 0.95rem;
    /* Diperkecil agar tidak nabrak */
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    /* PENTING: Izinkan teks turun ke baris baru jika kepanjangan */
    word-wrap: break-word;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .footer-brand {
        font-size: 0.85rem;
    }
}

.footer-text {
    color: #bdc3c7;
    line-height: 1.5;
    font-size: 0.8rem;
    /* Diperkecil */
}

.contact-list li {
    margin-bottom: 10px;
    color: #bdc3c7;
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    /* Diperkecil */
    line-height: 1.4;
}

.contact-list i {
    color: #3498db;
    margin-top: 2px;
    width: 22px;
    font-size: 0.85rem;
}

/* Judul Kolom */
.footer-heading {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Media Sosial Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    background-color: #34495e;
}

.social-icon.fb,
.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.ig,
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.yt,
.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon.tw,
.social-icon.twitter,
.social-icon.x {
    background-color: #000000;
}

.social-icon.tt,
.social-icon.tiktok {
    background-color: #000000;
}

.social-icon.wa,
.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Penyesuaian Style CSS Khusus Widget agar Sejajar dengan Kolom Lain */
.widget-wrapper {
    width: 100%;
    display: block;
}

.widget-wrapper .widget-counter {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.widget-wrapper .widget-counter h6 {
    font-size: 0.9rem !important;
    /* Disamakan dengan .footer-heading */
    letter-spacing: 0.5px !important;
    margin-bottom: 1.25rem !important;
    /* Gap yang sama */
}

.widget-wrapper .widget-counter h6 i {
    display: none;
    /* Sembunyikan icon agar seragam dengan gaya judul kolom footer */
}

.widget-wrapper .widget-counter .small {
    font-size: 0.8rem !important;
    /* Teks widget diperkecil */
}

.widget-wrapper .widget-counter .fs-6 {
    font-size: 0.9rem !important;
    /* Angka widget diperkecil */
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #111820;
    padding: 15px 0;
    margin-top: 40px;
    border-top: 1px solid #2c3e50;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.footer-bottom-links::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        justify-content: flex-start;
    }
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.footer-bottom-links .separator {
    color: #34495e;
    margin: 0 10px;
    font-size: 0.8rem;
}

.copyright-text {
    color: #95a5a6;
    font-size: 0.8rem;
}

@media (max-width: 576px) {

    .footer-bottom-links a,
    .footer-bottom-links .separator {
        font-size: 0.75rem;
    }

    .footer-bottom-links .separator {
        margin: 0 6px;
    }

    .copyright-text {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

.drop-shadow {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.text-justify {
    text-align: justify;
}

/* MOBILE BOTTOM NAVIGATION (MODERN FROSTED DOCK) */
.mobile-bottom-nav,
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 20px -2px rgba(15, 23, 42, 0.05);
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    min-height: 58px;
}

.mobile-bottom-nav .nav-item,
.dock-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    position: relative;
    padding: 6px 2px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover,
.dock-item.active,
.dock-item:hover {
    color: #0841E2;
}

.mobile-bottom-nav .nav-item.active,
.dock-item.active {
    font-weight: 700;
}

.nav-item-center,
.dock-center-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0841E2 0%, #0635b5 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transform: translateY(-14px);
    box-shadow: 0 8px 18px -2px rgba(8, 65, 226, 0.38), 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 3px solid #ffffff;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.nav-item-center:hover,
.dock-center-btn:hover {
    transform: translateY(-16px) scale(1.04);
    box-shadow: 0 10px 22px -2px rgba(8, 65, 226, 0.48), 0 3px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }

    .footer-bottom {
        padding-bottom: 85px;
    }
}

/* Pulse Animation untuk Status Online */
.w-counter-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 5px #22c55e;
}

.w-counter-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #22c55e;
    border-radius: 50%;
    animation: wPulse 1.5s infinite ease-in-out;
}

@keyframes wPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Utility font weight extra bold */
.fw-black {
    font-weight: 800 !important;
}

/* FLOATING CONTACT WIDGET (MODERN, CLEAN, ANTI-AI SLOP) */
.floating-widget-container,
.floating-contact-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    z-index: 1045;
}

.float-btn,
.contact-fab {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px -1px rgba(15, 23, 42, 0.16), 0 2px 4px -1px rgba(15, 23, 42, 0.08);
}

.float-btn svg,
.contact-fab svg {
    width: 20px;
    height: 20px;
}

.float-btn:hover,
.contact-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -2px rgba(15, 23, 42, 0.24);
    color: #ffffff !important;
}

.float-btn:active,
.contact-fab:active {
    transform: scale(0.94);
}

/* Styling WhatsApp (Clean Emerald) */
.float-wa,
.fab-wa {
    background: linear-gradient(135deg, #25D366 0%, #1ea952 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(18, 140, 126, 0.32), 0 2px 4px -1px rgba(0, 0, 0, 0.08) !important;
}

/* Styling Email (Clean Vermilion) */
.float-email,
.fab-email {
    background: linear-gradient(135deg, #EA4335 0%, #c5221f 100%) !important;
    box-shadow: 0 4px 14px -1px rgba(234, 67, 53, 0.32), 0 2px 4px -1px rgba(0, 0, 0, 0.08) !important;
}

/* Tooltip Teks Melayang */
.float-btn .tooltip-label,
.fab-tooltip {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background-color: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.float-btn:hover .tooltip-label,
.contact-fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Responsif Layar Mobile HP: pastikan tidak menimpa menu bottom dock */
@media (max-width: 767.98px) {
    .floating-widget-container,
    .floating-contact-stack {
        bottom: 78px !important;
        right: 14px !important;
        gap: 10px;
    }

    .float-btn .tooltip-label,
    .fab-tooltip {
        display: none !important;
    }
}

/* ============================================
   SMART INSIGHT WIDGET
   ============================================ */
.si-section {
    background: #f8fafc;
}

.si-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.si-main-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.si-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    justify-content: center;
}

.si-tab-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.si-tab-btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.si-tab-btn.active {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #fff;
}

.si-tab-pane {
    display: none;
    animation: siFadeIn .35s ease;
}

.si-tab-pane.active {
    display: block;
}

@keyframes siFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.si-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .si-stat-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-stat-card {
    background: linear-gradient(160deg, #059669 0%, #047857 100%);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18);
}

.si-stat-card.sm {
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.14);
}

.si-stat-card.muted {
    background: linear-gradient(160deg, #64748b 0%, #475569 100%);
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.14);
}

.si-stat-head {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.12);
}

.si-stat-body {
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
}

.si-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.si-stat-card.sm .si-stat-num {
    font-size: 1.25rem;
}

.si-stat-unit {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 2px;
}

.si-stat-foot {
    font-size: 0.66rem;
    text-align: center;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.si-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .si-two-col {
        grid-template-columns: 1.3fr 1fr;
    }

    .si-two-col-wide {
        grid-template-columns: 1fr 1fr;
    }
}

.si-box {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.si-box-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary, #2563eb);
    display: inline-block;
}

.si-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.si-table thead th {
    background: #eef1f6;
    font-weight: 700;
    color: #475569;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 0.66rem;
    letter-spacing: .3px;
}

.si-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f2f6;
    color: #334155;
}

.si-table tbody tr:hover {
    background: #f8fafc;
}

.si-table .si-total-row td {
    background: #ecfdf5;
    font-weight: 700;
}

.si-delta.up {
    color: #059669;
    font-weight: 700;
}

.si-delta.down {
    color: #dc2626;
    font-weight: 700;
}

.si-table-compact th,
.si-table-compact td {
    padding: 7px 8px;
    font-size: 0.74rem;
}

.si-insight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.si-insight-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
}

.si-insight-item i {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.si-period-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.si-period-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.si-period-btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.si-period-btn.active {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #fff;
}

.si-download-btn {
    border: 1px solid #d7dce3;
    background: #fff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
}

.si-download-btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.si-chart-wrap {
    position: relative;
    width: 100%;
}

.si-inputer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .si-inputer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .si-inputer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-inputer-box {
    padding: 14px;
}

.si-surat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 576px) {
    .si-surat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.si-total-banner {
    background: linear-gradient(135deg, var(--primary, #2563eb) 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 14px;
    margin-bottom: 8px;
}

.si-total-banner-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.si-list-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.si-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f6;
}

.si-list-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.si-list-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

.si-list-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 2px;
}

.si-count-badge {
    background: var(--primary-light, #dbeafe);
    color: var(--primary-dark, #1d4ed8);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.si-ranked-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #475569;
}

.si-ranked-list li {
    margin-bottom: 6px;
}

.si-ranked-list li b {
    color: #1e293b;
}

/* === APBDES - 3D MODERN WITH ROTATING DONUTS === */
.apbdes-card {
    border-radius: var(--radius-xl, 20px);
    overflow: visible;
    background: #fff;
    position: relative;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(37, 99, 235, 0.08),
        0 24px 48px rgba(37, 99, 235, 0.06);
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.apbdes-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 20px 40px rgba(37, 99, 235, 0.12),
        0 32px 64px rgba(37, 99, 235, 0.08);
}

.apbdes-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-top: 2px solid rgba(37, 99, 235, 0.15);
    border-right: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 0 12px 0 0;
    pointer-events: none;
    z-index: 1;
}

.apbdes-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
    border-left: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 0 0 0 12px;
    pointer-events: none;
    z-index: 1;
}

.apbdes-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 50%, #1e3a5f 100%);
    padding: 32px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.apbdes-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.apbdes-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

@media (min-width: 992px) {
    .apbdes-banner {
        padding: 40px 24px;
    }
}

.apbdes-banner h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 6px;
    opacity: 0.75;
    position: relative;
    z-index: 2;
}

.apbdes-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .apbdes-banner h2 {
        font-size: 2rem;
    }
}

.apbdes-banner img {
    max-width: 90px;
    margin: 8px 0 16px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 2;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

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

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

.apbdes-banner .btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    position: relative;
    z-index: 2;
    display: inline-block;
}

.apbdes-banner .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.apbdes-data {
    padding: 0;
    position: relative;
    z-index: 2;
}

.apbdes-row {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .apbdes-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apbdes-item {
    padding: 24px 20px;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.apbdes-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), transparent);
}

@media (min-width: 992px) {
    .apbdes-item {
        border-bottom: none;
        border-right: 1px solid var(--gray-200, #e2e8f0);
        padding: 28px 20px;
    }
}

.apbdes-item:last-child {
    border-right: none;
    border-bottom: none;
}

.apbdes-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary, #2563eb), transparent);
    opacity: 0;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.apbdes-item:hover::before {
    opacity: 0.5;
}

.apbdes-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary, #2563eb);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apbdes-label::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--primary, #2563eb);
    border-radius: 2px;
}

@media (min-width: 992px) {
    .apbdes-item .apbdes-label {
        display: none;
    }
}

.apbdes-header-row {
    display: none;
    background: var(--gray-50, #f8fafc);
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}

@media (min-width: 992px) {
    .apbdes-header-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .apbdes-header-row div {
        text-align: center;
        padding: 14px;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--dark, #1e293b);
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }

    .apbdes-header-row div:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 30%;
        bottom: 30%;
        width: 1px;
        background: var(--gray-300, #cbd5e1);
    }
}

.apbdes-info p {
    margin: 0 0 4px;
    font-size: 0.75rem;
    color: var(--gray-500, #64748b);
}

.apbdes-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark, #1e293b);
    font-weight: 700;
}

.donut-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateDonut 12s linear infinite;
}

.donut::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--color) var(--pct), var(--gray-200, #e2e8f0) 0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donut-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed var(--color);
    opacity: 0.3;
    animation: rotateDonutReverse 20s linear infinite;
}

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

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

@keyframes rotateDonutReverse {
    from {
        transform: rotate(360deg);
    }

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

.donut-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--gray-50, #f8fafc));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: rotateDonutReverse 12s linear infinite;
}

/* === INFO BOXES === */
.info-box {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: #fff;
    height: 100%;
    position: relative;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200, #e2e8f0);
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(37, 99, 235, 0.12);
}

.info-box-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 16px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.info-box-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    pointer-events: none;
}

.info-box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.info-box-header .info-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box-header .info-title {
    position: relative;
    z-index: 1;
    flex: 1;
}

.info-box-header .info-title small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-box.map-box .info-box-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.info-box.map-box-alt .info-box-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.info-box-body {
    padding: 0;
}

.table-jam {
    width: 100%;
    font-size: 0.85rem;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-jam thead th {
    background: linear-gradient(180deg, var(--gray-50, #f8fafc), var(--gray-100, #f1f5f9));
    color: var(--gray-700, #334155);
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid var(--gray-200, #e2e8f0);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-jam td {
    padding: 12px 8px;
    text-align: center;
    color: var(--gray-700, #334155);
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    font-weight: 500;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.table-jam tbody tr {
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.table-jam tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.03), transparent);
}

.table-jam tbody tr:hover td {
    color: var(--primary, #2563eb);
}

.table-jam tbody tr:last-child td {
    border-bottom: none;
}

.table-jam tr.libur td {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.05), transparent);
    color: var(--danger, #dc2626);
    font-weight: 700;
}

.table-jam td.hari-cell {
    font-weight: 700;
    color: var(--dark, #1e293b);
    text-align: left;
    padding-left: 16px;
    position: relative;
}

.table-jam td.hari-cell::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary, #2563eb);
    border-radius: 2px;
    opacity: 0.5;
}

.map-container-modern {
    position: relative;
    padding: 12px;
    background: var(--gray-50, #f8fafc);
}

.map-frame {
    width: 100%;
    height: 240px;
    border: none;
    border-radius: var(--radius-md, 12px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .map-frame {
        height: 260px;
    }
}

.map-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark, #1e293b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-badge i {
    color: var(--primary, #2563eb);
}

/* === WIDGET JADWAL SHALAT === */
#jw_b4076dec {
    max-width: 900px;
    margin: 0 auto 24px;
    font-family: inherit;
}

#jw_b4076dec .jw-card {
    background: transparent;
}

#jw_b4076dec .jw-header {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 100% at center, #eaf2ff 0%, #f6f9ff 55%, rgba(255, 255, 255, 0) 100%);
    padding: 26px 20px 34px;
    text-align: center;
}

#jw_b4076dec .jw-sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#jw_b4076dec .jw-star {
    position: absolute;
    background: radial-gradient(circle, #93c5fd 0%, rgba(147, 197, 253, 0) 70%);
    border-radius: 50%;
    animation: jwTwinkle ease-in-out infinite;
}

@keyframes jwTwinkle {

    0%,
    100% {
        opacity: .15;
        transform: scale(.6) translateY(0);
    }

    50% {
        opacity: .85;
        transform: scale(1.25) translateY(-4px);
    }
}

#jw_b4076dec .jw-mosque {
    position: absolute;
    top: 8px;
    bottom: 0;
    width: 220px;
    color: var(--primary-light, #dbeafe);
    opacity: .8;
    font-size: 5.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 0;
}

#jw_b4076dec .jw-mosque.left {
    left: -55px;
}

#jw_b4076dec .jw-mosque.right {
    right: -55px;
}

#jw_b4076dec .jw-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    color: var(--primary, #2563eb);
    font-size: 1.55rem;
    margin: 0 0 6px;
    position: relative;
    z-index: 2;
}

#jw_b4076dec .jw-kota {
    font-weight: 800;
    color: var(--dark, #1e293b);
    font-size: .95rem;
    letter-spacing: .5px;
    position: relative;
    z-index: 2;
}

#jw_b4076dec .jw-tanggal {
    font-weight: 600;
    color: var(--gray-500, #64748b);
    font-size: .88rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

#jw_b4076dec .jw-toggle-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

#jw_b4076dec .jw-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--primary-dark, #1d4ed8));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .82rem;
    padding: 11px 22px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}

#jw_b4076dec .jw-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .45);
}

#jw_b4076dec .jw-toggle::before,
#jw_b4076dec .jw-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 2px solid var(--primary, #2563eb);
    animation: jwPulseRing 2.2s cubic-bezier(0.4, 0, 0.3, 1) infinite;
    pointer-events: none;
}

#jw_b4076dec .jw-toggle::after {
    animation-delay: 1.1s;
}

@keyframes jwPulseRing {
    0% {
        opacity: .55;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

#jw_b4076dec .jw-toggle i.jw-chev {
    transition: transform .35s ease;
    animation: jwBob 1.6s ease-in-out infinite;
}

#jw_b4076dec .jw-toggle.open i.jw-chev {
    transform: rotate(180deg);
    animation: none;
}

@keyframes jwBob {

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

    50% {
        transform: translateY(3px);
    }
}

@media (max-width: 576px) {
    #jw_b4076dec .jw-header {
        padding: 22px 16px 30px;
    }

    #jw_b4076dec .jw-mosque {
        width: 130px;
        font-size: 3.4rem;
    }

    #jw_b4076dec .jw-title {
        font-size: 1.25rem;
    }

    #jw_b4076dec .jw-toggle {
        padding: 10px 18px;
        font-size: .78rem;
    }
}

#jw_b4076dec .jw-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s ease, opacity .35s ease, padding .35s ease;
    padding: 0 18px;
    background: #fff;
}

#jw_b4076dec .jw-body.open {
    max-height: 900px;
    opacity: 1;
    padding: 20px 18px 6px;
}

#jw_b4076dec .jw-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

#jw_b4076dec .jw-btn-kalender {
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    color: var(--primary, #2563eb);
    font-weight: 700;
    font-size: .8rem;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

#jw_b4076dec .jw-btn-kalender:hover {
    background: var(--primary-light, #dbeafe);
    border-color: var(--primary, #2563eb);
}

#jw_b4076dec .jw-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

#jw_b4076dec .jw-row-bottom {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    #jw_b4076dec .jw-row-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 420px) {
    #jw_b4076dec .jw-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

#jw_b4076dec .jw-box {
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .08));
    transition: transform .25s ease, box-shadow .25s ease;
}

#jw_b4076dec .jw-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .08));
}

#jw_b4076dec .jw-box .jw-lbl {
    background: var(--primary-light, #dbeafe);
    color: var(--primary-dark, #1d4ed8);
    font-weight: 700;
    font-size: .8rem;
    padding: 10px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#jw_b4076dec .jw-box .jw-jam {
    padding: 12px 6px;
    font-weight: 800;
    color: var(--dark, #1e293b);
    font-size: 1.05rem;
    letter-spacing: .3px;
}

#jw_b4076dec .jw-warn {
    text-align: center;
    font-size: .82rem;
    color: var(--warning, #d97706);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

#jw_b4076dec_modal .jw-modal-tbl,
.jw-modal-tbl {
    width: 100%;
    font-size: .84rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--dark, #1e293b);
}

#jw_b4076dec_modal .jw-modal-tbl th,
.jw-modal-tbl th,
#jw_b4076dec_modal .jw-modal-tbl td,
.jw-modal-tbl td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

#jw_b4076dec_modal .jw-modal-tbl th,
.jw-modal-tbl th {
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

#jw_b4076dec_modal .jw-modal-tbl tr:nth-child(even),
.jw-modal-tbl tr:nth-child(even) {
    background: var(--gray-50, #f8fafc);
}

/* === RUNNING TEXT INFO BAR === */
.info-bar {
    background: var(--gray-50, #f8fafc);
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.info-bar-label {
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.info-bar-content {
    flex: 1;
    overflow: hidden;
    padding-left: 16px;
}

.info-bar-content marquee {
    font-size: 0.85rem;
    color: var(--gray-700, #334155);
}

.info-bar-content a,
.info-bar-content span {
    color: var(--gray-800, #1e293b);
    text-decoration: none;
    font-weight: 500;
}

.info-bar-content a:hover {
    color: var(--primary, #2563eb);
}

/* =========================================================
   BERITA DUKA / BERITA GEMBIRA -- Tulisan Berjalan (Ticker)
   Ditampilkan di bagian BAWAH slider, memenuhi lebar slider,
   dengan animasi kelopak bunga jatuh di SELURUH area slider.
   ========================================================= */
.duka-ticker-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(20, 21, 32, 0.95) 0%, rgba(35, 37, 54, 0.92) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    height: 42px;
    animation: dukaBarMasuk 0.7s ease-out;
}

@keyframes dukaBarMasuk {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

.duka-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffb4c6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.duka-ticker-label.gembira {
    color: #86efac;
}

.duka-ticker-viewport {
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.duka-ticker-viewport:hover .duka-ticker-track {
    animation-play-state: paused;
}

.duka-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-name: dukaTickerScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 35s;
    padding-left: 100%;
}

.duka-ticker-track span {
    color: #f1f1f4;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.duka-ticker-track span b {
    color: #fff;
    font-weight: 700;
}

.duka-ticker-track .pemisah-duka {
    margin: 0 28px;
    color: #ff8fa3;
    font-weight: bold;
}

@keyframes dukaTickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.duka-ticker-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cfcfe0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.duka-ticker-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .duka-ticker-bar {
        height: 36px;
    }

    .duka-ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }

    .duka-ticker-track span {
        font-size: 0.72rem;
    }
}