:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --link-color: #0066cc;
    --card-bg: #f5f5f5;
}
body.dark-mode {
    --bg-color: #0b0f19;
    --text-color: #e2e8f0;
    --link-color: #60a5fa;
    --card-bg: #151d30;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ========== PREMIUM DARK MODE OVERRIDES (Light mode 100% Untouched) ========== */
body.dark-mode .mainwrap,
body.dark-mode .maincontent { 
    background: #0b0f19 !important; 
}
body.dark-mode .wrapper {
    background: transparent !important;
}

/* 1. Header & Navbar in Dark Mode */
body.dark-mode .mainmenu {
    background-color: #0b0f19;
}
body.dark-mode .mainmenu.nempel {
    background-color: #0f172a !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-mode .mainmenu__sitetitle {
    color: #ffffff !important;
}
body.dark-mode .mainmenu__sitetitle-top span {
    color: #93c5fd !important;
    font-weight: 600;
}
body.dark-mode .mainmenu__sitetitle-bottom span {
    color: #f8fafc !important;
    font-weight: 800;
}
body.dark-mode .mainmenu__sitetitle .text-capitalize {
    color: #cbd5e1 !important;
}
body.dark-mode .mainmenu__sitetitle .text-capitalize i {
    color: #60a5fa !important;
}
body.dark-mode .mainmenu__nav {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .menudge ul {
    background: #151d30 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .menudge ul li a {
    color: #cbd5e1 !important;
}
body.dark-mode .menudge ul li a:hover,
body.dark-mode .menudge ul li:hover > a {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

/* Mobile Sticky Navbar */
@media screen and (max-width: 991px) {
    body.dark-mode .mainmenu,
    body.dark-mode .mainmenu.nempel {
        background-color: #0f172a !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    }
    body.dark-mode .mainmenu .mainmenu__sitetitle,
    body.dark-mode .mainmenu .mainmenu__sitetitle span {
        color: #ffffff !important;
    }
    body.dark-mode .mainmenu .burger img {
        filter: none !important;
    }
}
@media screen and (max-width: 991px) {
    .mainmenu,
    .mainmenu.nempel {
        background-color: #064ea2 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
    .mainmenu.nempel .mainmenu__sitetitle,
    .mainmenu.nempel .mainmenu__sitetitle span,
    .mainmenu.nempel .mainmenu__sitetitle-top,
    .mainmenu.nempel .mainmenu__sitetitle-bottom {
        color: #ffffff !important;
    }
    .mainmenu.nempel .burger img {
        filter: none !important;
    }
}

/* 2. Fix Overlays & Sliders (Do not let gradient overlays become solid black boxes) */
body.dark-mode .bg-gradient-to-t,
body.dark-mode .bg-gradient-to-tr,
body.dark-mode .bg-gradient-to-b {
    background-color: transparent !important;
}
body.dark-mode .xswiper-topicon-wrap > div {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    background: #0f172a !important;
}

/* 3. Ticker / Pengumuman */
body.dark-mode #pengumuman {
    background: linear-gradient(90deg, #0f172a 0%, #151d30 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* 4. Featured News & Headline Cards */
body.dark-mode .lg\:col-span-2 {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .lg\:col-span-2 h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}
body.dark-mode .group.bg-gradient-to-b {
    background: #151d30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .group.bg-gradient-to-b:hover {
    background: #1a243c !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* 5. Typography & Tailwind Color Utility Fixes in Dark Mode */
body.dark-mode .text-slate-900 { color: #ffffff !important; }
body.dark-mode .text-slate-800 { color: #f8fafc !important; }
body.dark-mode .text-slate-700 { color: #e2e8f0 !important; }
body.dark-mode .text-slate-600 { color: #cbd5e1 !important; }
body.dark-mode .text-slate-500 { color: #94a3b8 !important; }
body.dark-mode .text-slate-400 { color: #94a3b8 !important; }

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
    color: #f8fafc;
}
body.dark-mode .group:hover h3.text-slate-800,
body.dark-mode .group:hover h2.text-slate-800,
body.dark-mode .hover\:text-slate-800:hover {
    color: #60a5fa !important;
}

/* Borders in Dark Mode */
body.dark-mode .border-slate-100,
body.dark-mode .border-slate-200,
body.dark-mode .border-slate-200\/50,
body.dark-mode .border-slate-200\/70,
body.dark-mode .border-slate-200\/80 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Badges / Pill Tags */
body.dark-mode a.bg-slate-100,
body.dark-mode span.bg-slate-100 {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
body.dark-mode a.bg-slate-100:hover {
    background: rgba(59, 130, 246, 0.28) !important;
    color: #ffffff !important;
}

/* 6. Section Titles */
body.dark-mode .border-b-2.border-slate-100 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .border-b-2.border-slate-100 h2 {
    color: #f8fafc !important;
}
body.dark-mode .border-b-2.border-slate-100 h2 span.bg-slate-800 {
    background: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}
body.dark-mode .border-b-2.border-slate-100 a {
    color: #60a5fa !important;
}
body.dark-mode .border-b-2.border-slate-100 a:hover {
    color: #93c5fd !important;
}

/* 7. Latest News Cards ("BERITA TERBARU") */
body.dark-mode .group.border-slate-200\/70 {
    background: #151d30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .group.border-slate-200\/70:hover {
    background: #1a243c !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .group.border-slate-200\/70 h3 {
    color: #f8fafc !important;
}
body.dark-mode .group.border-slate-200\/70:hover h3 {
    color: #60a5fa !important;
}
body.dark-mode .group.border-slate-200\/70 p.text-slate-500 {
    color: #94a3b8 !important;
}
body.dark-mode .group a[style*="linear-gradient"] {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}
body.dark-mode .group a[style*="linear-gradient"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5) !important;
}

/* 8. Section "INFORMASI KEMENTERIAN AGAMA" */
body.dark-mode .bg-\[\#f8f9fa\] {
    background: #151d30 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .bg-\[\#f8f9fa\] h2 {
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .bg-\[\#f8f9fa\] a.bg-\[\#f8f9fa\] {
    background: #1a233a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .bg-\[\#f8f9fa\] a.bg-\[\#f8f9fa\]:hover {
    background: #232f4e !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .bg-\[\#f8f9fa\] div.w-16.h-16.rounded-full {
    background: #151d30 !important;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .bg-\[\#f8f9fa\] a span {
    color: #cbd5e1 !important;
}
body.dark-mode .bg-\[\#f8f9fa\] a:hover span {
    color: #60a5fa !important;
}

/* 9. Sidebar Widgets */
body.dark-mode .swidget { 
    background: #151d30 !important; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}
body.dark-mode .bloktitle { 
    background: #0f172a !important; 
    color: #f8fafc !important; 
    border-bottom: 3px solid #3b82f6 !important;
}
body.dark-mode .swidget h4.text-slate-800 {
    color: #f8fafc !important;
}
body.dark-mode .swidget button[style*="linear-gradient"],
body.dark-mode .btnsimpanisipoling {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}
body.dark-mode .infogwidget__text {
    color: #cbd5e1 !important;
}

/* Polling Widget */
body.dark-mode .swidget p.text-slate-700 {
    color: #f8fafc !important;
}
body.dark-mode .swidget label.border-slate-200 {
    background: #1a233a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .swidget label.border-slate-200:hover {
    background: #232f4e !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}
body.dark-mode .swidget span.text-slate-600 {
    color: #cbd5e1 !important;
}
body.dark-mode .swidget .bg-slate-100 {
    background: #0f172a !important;
}

/* Berita Satker Widget */
body.dark-mode .swidget .bg-slate-50\/80 {
    background: #1a233a !important;
}
body.dark-mode .swidget .hover\:bg-slate-100:hover,
body.dark-mode .swidget a:hover {
    background: #232f4e !important;
}
body.dark-mode .swidget .text-slate-700,
body.dark-mode .swidget .text-slate-600 {
    color: #cbd5e1 !important;
}
body.dark-mode .swidget a:hover .text-slate-600 {
    color: #f8fafc !important;
}
body.dark-mode .swidget .bg-slate-200 {
    background: #0f172a !important;
    color: #60a5fa !important;
}

/* PTSP & Other Widgets */
body.dark-mode .swidget .text-slate-500 {
    color: #94a3b8 !important;
}
body.dark-mode .swidget .border-slate-100 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 10. Photo Gallery Cards */
body.dark-mode .gallery-card {
    background: #151d30 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .gallery-card__title {
    color: #f8fafc !important;
}
body.dark-mode .gallery-card__date {
    color: #94a3b8 !important;
}
body.dark-mode .gallery-card__cat {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}
/* Section Headings & Titles (.hlm-title, Galeri Foto, Link Terkait, etc.) */
body.dark-mode .hlm-title {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
body.dark-mode .hlm-title::before {
    background: linear-gradient(180deg, #38bdf8, #2563eb) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
}
body.dark-mode .hlm-title span,
body.dark-mode .hlm-title-blueborder,
body.dark-mode .hlm-title-blueborder span {
    color: #cbd5e1 !important;
}
body.dark-mode .hlm-title span.strong,
body.dark-mode .hlm-title strong,
body.dark-mode .hlm-title-blueborder span.strong,
body.dark-mode .hlm-title-blueborder strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}
body.dark-mode .hlm-title-blueborder::before {
    background-color: #3b82f6 !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5) !important;
}
body.dark-mode .hlm-title a {
    color: #60a5fa !important;
}
body.dark-mode .hlm-title a:hover {
    color: #93c5fd !important;
}

/* Link Terkait & Partner Logos (.mindex) */
body.dark-mode .mindex-wrap {
    margin-bottom: 30px !important;
}
body.dark-mode .mindex-link {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    display: block !important;
}
body.dark-mode .mindex__title {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-top: 10px !important;
    transition: color 0.25s ease !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
body.dark-mode .mindex-link:hover .mindex__title,
body.dark-mode .mindex ul li a:hover {
    color: #60a5fa !important;
}
body.dark-mode .mindex__icon {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 65px !important;
}
body.dark-mode .mindex-link:hover .mindex__icon {
    background: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
}
body.dark-mode .mindex__icon img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 11. Detail Berita & Inner Content */
body.dark-mode .article-title,
body.dark-mode .pages-title {
    color: #f8fafc !important;
}
body.dark-mode .article-meta {
    background: #151d30 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .article-meta__label {
    color: #94a3b8 !important;
}
body.dark-mode .article-meta__value {
    color: #f8fafc !important;
}
body.dark-mode .article-meta__divider {
    background: rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode .article-body,
body.dark-mode .detail__content,
body.dark-mode .gen-content {
    color: #cbd5e1 !important;
}
body.dark-mode .article-body p,
body.dark-mode .article-body span,
body.dark-mode .detail__content p,
body.dark-mode .gen-content p {
    color: inherit !important;
}
body.dark-mode .article-tags__item {
    background: #1a233a !important;
    color: #93c5fd !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .article-tags__item:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Archive News List (.newsrow) */
body.dark-mode .newsrow__row { 
    background: #151d30 !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important; 
}
body.dark-mode .newsrow__row:hover { 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important; 
}
body.dark-mode .newsrow__content p { color: #94a3b8 !important; }
body.dark-mode .newsrow__title a { color: #f8fafc !important; }
body.dark-mode .newsrow__title a:hover { color: #60a5fa !important; }

/* Tables & Lists */
body.dark-mode .tableblock,
body.dark-mode .tablev2,
body.dark-mode .tablev2__row {
    background: #151d30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .tableblock table tr:nth-child(2n+2),
body.dark-mode .tablev2__no,
body.dark-mode .tablev2__title {
    background: #0f172a !important;
    color: #94a3b8 !important;
}
body.dark-mode table { color: #cbd5e1; }
body.dark-mode table th { color: #93c5fd; background: #0f172a; border-color: rgba(255,255,255,0.08); }
body.dark-mode table td { border-color: rgba(255,255,255,0.08); }
body.dark-mode .list-group-item {
    background: #151d30;
    color: #cbd5e1;
    border-color: rgba(255,255,255,0.08);
}

/* Pagination & Breadcrumb */
body.dark-mode .paging ul li a {
    background-color: #151d30 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-mode .paging ul li.active a,
body.dark-mode .paging ul li a:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}
body.dark-mode .breadcrumb__chip {
    background: #151d30;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .breadcrumb__chip a { color: #94a3b8; }
body.dark-mode .breadcrumb__chip a:hover { color: #f8fafc; background: rgba(255,255,255,0.08); }

/* Modal Sambutan */
body.dark-mode .modal-content {
    background-color: #151d30 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
    color: #cbd5e1 !important;
}
body.dark-mode .modal-content h3,
body.dark-mode .modal-content span.text-slate-800 {
    color: #f8fafc !important;
}
body.dark-mode .modal-content span.w-1\.5.h-6.bg-slate-800 {
    background: #3b82f6 !important;
}
body.dark-mode .modal-content .text-slate-600 {
    color: #cbd5e1 !important;
}
body.dark-mode .modal-content .border-b,
body.dark-mode .modal-content .border-t {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .modal-content .bg-slate-50\/50,
body.dark-mode .modal-content .bg-slate-100 {
    background: #0f172a !important;
}

/* ==========================================================================
   MODERN & PROFESSIONAL DARK MODE FOOTER (Seamless, No Black Box)
   ========================================================================== */
body.dark-mode .footer.modern-footer {
    background: linear-gradient(180deg, #0d1527 0%, #070d19 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    padding: 50px 0 25px !important;
}

/* Elegant top accent border line with soft glow */
body.dark-mode .modern-footer::before {
    height: 3px !important;
    background: linear-gradient(90deg, #059669 0%, #0284c7 50%, #3b82f6 100%) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
}

/* Ensure inner wrapper is completely seamless and transparent */
body.dark-mode .modern-footer .wrapper,
body.dark-mode .modern-footer .footer__wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Column Headings */
body.dark-mode .footer-col .footer-title,
body.dark-mode .footer-col .footer__head {
    color: #f8fafc !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

body.dark-mode .footer-col .footer-title::after,
body.dark-mode .footer-col .footer__head::after {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%) !important;
    height: 3px !important;
    width: 45px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
}

/* Contact Items with Glass Icon Pods */
body.dark-mode .modern-footer .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
}

body.dark-mode .modern-footer .contact-item i {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 8px !important;
    color: #60a5fa !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
    margin-right: 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

body.dark-mode .modern-footer .contact-item:hover i {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

body.dark-mode .modern-footer .contact-item a,
body.dark-mode .modern-footer .contact-item span {
    color: #cbd5e1 !important;
    transition: color 0.25s ease !important;
}

body.dark-mode .modern-footer .contact-item a:hover {
    color: #ffffff !important;
}

/* Quick Links in Dark Mode */
body.dark-mode .modern-footer .quick-links li {
    margin-bottom: 10px !important;
}

body.dark-mode .modern-footer .quick-links a {
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 0 !important;
}

body.dark-mode .modern-footer .quick-links a i {
    color: #475569 !important;
    margin-right: 10px !important;
    font-size: 0.8rem !important;
    transition: all 0.25s ease !important;
}

body.dark-mode .modern-footer .quick-links a:hover {
    color: #60a5fa !important;
    transform: translateX(6px) !important;
}

body.dark-mode .modern-footer .quick-links a:hover i {
    color: #60a5fa !important;
}

/* Premium Glassmorphic Social Media Buttons */
body.dark-mode .modern-footer .modern-sosmed {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

body.dark-mode .modern-footer .social-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    color: #cbd5e1 !important;
    font-size: 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-mode .modern-footer .social-btn:hover {
    transform: translateY(-4px) scale(1.06) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .modern-footer .social-btn.fb:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4) !important;
}
body.dark-mode .modern-footer .social-btn.ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4) !important;
}
body.dark-mode .modern-footer .social-btn.x:hover {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .modern-footer .social-btn.yt:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4) !important;
}
body.dark-mode .modern-footer .social-btn.tt:hover {
    background: #010101 !important;
    border-color: #00f2fe !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3) !important;
}
body.dark-mode .modern-footer .social-btn.wa:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4) !important;
}

/* Footer Bottom Divider and Bar */
body.dark-mode .modern-footer .modern-linefoot {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%) !important;
    margin: 30px 0 20px !important;
}

body.dark-mode .modern-footer .modern-bottom {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
}

body.dark-mode .modern-footer .copyright {
    color: #94a3b8 !important;
}

body.dark-mode .modern-footer .online-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.dark-mode .modern-footer .online-badge b {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-left: 3px !important;
}

/* Scrollbar */
body.dark-mode::-webkit-scrollbar-track { background: #0b0f19; }
body.dark-mode::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
body.dark-mode::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ==========================================================================
   MODERN & ROUNDED SEARCH MODAL OVERLAY (Theme Adaptive)
   ========================================================================== */
.cari__form {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
}

.cari__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Modern Rounded Search Container */
.cari__form-inner {
    display: flex !important;
    align-items: center !important;
    width: 90% !important;
    max-width: 640px !important;
    height: 64px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 9999px !important;
    padding: 6px 8px 6px 26px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cari__form-inner:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.35) !important;
    transform: translate(-50%, -52%) !important;
}

/* Modern Input */
.cari__form-inner input {
    flex: 1 !important;
    width: auto !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 1.15rem !important;
    font-family: inherit !important;
    padding: 0 15px 0 0 !important;
}

.cari__form-inner input::placeholder {
    color: #94a3b8 !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
}

/* Replace Yellow Button with Modern Theme Gradient Button */
.cari__btn {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
}

.cari__btn:hover {
    transform: scale(1.06) !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.55) !important;
}

.cari__btn i {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    transition: transform 0.25s ease !important;
}

.cari__btn:hover i {
    transform: scale(1.1) !important;
}

/* Modern Floating Close Button */
.cari__close {
    position: absolute !important;
    top: 35px !important;
    right: 35px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.cari__close:hover {
    background: rgba(239, 68, 68, 0.85) !important;
    border-color: rgba(239, 68, 68, 0.9) !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   SEARCH MODAL IN DARK MODE (Deep Glass Aesthetics)
   ========================================================================== */
body.dark-mode .cari__overlay {
    background-color: rgba(8, 13, 25, 0.82) !important;
}

body.dark-mode .cari__form-inner {
    background: rgba(21, 29, 48, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode .cari__form-inner:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(59, 130, 246, 0.4) !important;
}

body.dark-mode .cari__form-inner input {
    color: #f8fafc !important;
}

body.dark-mode .cari__form-inner input::placeholder {
    color: #64748b !important;
}

body.dark-mode .cari__btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5) !important;
}

body.dark-mode .cari__btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.6) !important;
}

body.dark-mode .cari__btn i {
    color: #ffffff !important;
}

/* Mobile Responsiveness for Search Modal */
@media screen and (max-width: 767px) {
    .cari__form-inner {
        height: 54px !important;
        padding: 4px 6px 4px 20px !important;
        width: 92% !important;
    }
    .cari__form-inner input {
        font-size: 1rem !important;
    }
    .cari__form-inner input::placeholder {
        font-size: 0.95rem !important;
    }
    .cari__btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
    .cari__btn i {
        font-size: 1rem !important;
    }
    .cari__close {
        top: 20px !important;
        right: 20px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
    }
}

