/* ============================================================
   KampungDigital Pro - Public CSS
   File: assets/css/public.css
============================================================ */

:root {
    --primary: var(--theme-primary, #0F766E);
    --primary-dark: var(--theme-primary-dark, #115E59);
    --primary-soft: var(--theme-soft-bg, #ECFDF5);
    --accent: var(--theme-accent, #D4AF37);
    --accent-soft: #FFFBE B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --danger: #DC2626;
    --radius: 24px;
    --shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.text-gold {
    color: var(--accent) !important;
}

.bg-primary-soft {
    background: var(--primary-soft) !important;
}

.bg-gold-soft {
    background: var(--accent-soft) !important;
}

.btn-main {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 750;
    box-shadow: 0 14px 30px rgba(15, 118, 110, .22);
}

.btn-main:hover {
    color: white;
    transform: translateY(-1px);
}

.btn-gold {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #F6D365, var(--accent));
    color: #3B2F0B;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(212, 175, 55, .24);
}

.btn-gold:hover {
    color: #3B2F0B;
    transform: translateY(-1px);
}

.btn-outline-main {
    border: 1px solid rgba(15, 118, 110, .25);
    border-radius: 999px;
    padding: 11px 22px;
    color: var(--primary);
    background: white;
    font-weight: 750;
}

.btn-outline-main:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.card-lux {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: white;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 850;
    letter-spacing: -.8px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--accent-soft);
    color: #B45309;
    font-size: 13px;
    font-weight: 800;
}

/* ============================================================
   Header / Navbar
============================================================ */

.public-topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    padding: 9px 0;
}

.public-topbar a {
    color: rgba(255, 255, 255, .92);
}

.public-topbar a:hover {
    color: white;
}

.public-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-public {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.navbar-brand-public:hover {
    color: var(--text);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-weight: 850;
    font-size: 18px;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.public-navbar .nav-link {
    color: #334155;
    font-weight: 700;
    padding: 12px 13px !important;
    border-radius: 999px;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.navbar-toggler {
    border: 0;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 10px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================================
   Hero / Page Header
============================================================ */

.page-hero {
    position: relative;
    padding: 90px 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .20), transparent 36%),
        linear-gradient(135deg, #ECFDF5 0%, #F8FAFC 55%, #FFFFFF 100%);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .08);
    right: -120px;
    top: -100px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1.05;
}

.page-description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 720px;
}

.breadcrumb-custom {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb-custom a {
    color: var(--primary);
}

.breadcrumb-custom span {
    color: var(--muted);
}

/* ============================================================
   Cards / Content
============================================================ */

.news-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
    height: 100%;
    transition: .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #E2E8F0;
}

.news-card-body {
    padding: 22px;
}

.news-card-title {
    font-size: 19px;
    font-weight: 850;
    line-height: 1.35;
    color: var(--text);
}

.news-card-title:hover {
    color: var(--primary);
}

.news-meta {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-excerpt {
    color: var(--muted);
    line-height: 1.75;
    font-size: 15px;
}

.content-box {
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #1E293B;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 850;
    letter-spacing: -.4px;
    margin-top: 1.4em;
    margin-bottom: .65em;
}

.article-content p {
    margin-bottom: 1.15em;
}

.article-content img {
    border-radius: 20px;
    margin: 18px 0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.article-content blockquote {
    border-left: 5px solid var(--accent);
    background: var(--accent-soft);
    padding: 18px 22px;
    border-radius: 16px;
    color: #3B2F0B;
}

.sidebar-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 18px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
    font-weight: 700;
}

.category-link:hover {
    color: var(--primary);
}

.category-link:last-child {
    border-bottom: 0;
}

.form-control,
.form-select {
    border-radius: 16px;
    padding: 13px 15px;
    border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .12);
}

/* ============================================================
   Pagination
============================================================ */

.pagination .page-link {
    border: 0;
    color: var(--primary);
    margin: 0 4px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* ============================================================
   Footer
============================================================ */

.public-footer {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .12), transparent 35%),
        linear-gradient(135deg, #064E3B, #0F766E);
    color: rgba(255, 255, 255, .82);
    padding-top: 70px;
}

.public-footer h5,
.public-footer h6 {
    color: white;
    font-weight: 850;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 20px 0;
    margin-top: 50px;
    color: rgba(255, 255, 255, .68);
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social:hover {
    background: rgba(255, 255, 255, .20);
    color: white;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 14px 35px rgba(37, 211, 102, .35);
}

.whatsapp-float:hover {
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   Global Premium Loading
============================================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .16), transparent 35%),
        rgba(248, 250, 252, .96);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box {
    width: 190px;
    min-height: 150px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
}

.loader-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    box-shadow: 0 16px 30px rgba(15, 118, 110, .22);
}

.loader-logo::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 26px;
    border: 2px solid rgba(212, 175, 55, .42);
    border-top-color: transparent;
    animation: loaderSpin .85s linear infinite;
}

.loader-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .2px;
}

.loader-subtext {
    font-size: 12px;
    color: var(--muted);
    margin-top: -8px;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Responsive
============================================================ */

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .public-navbar .navbar-collapse {
        background: white;
        border-radius: 24px;
        margin-top: 14px;
        padding: 14px;
        box-shadow: var(--shadow);
    }

    .page-hero {
        padding: 70px 0;
    }

    .content-box {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .public-topbar {
        display: none;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-tagline {
        display: none;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .page-hero {
        padding: 50px 0;
    }

    .section-padding {
        padding: 46px 0;
    }

    .content-box {
        padding: 20px;
        border-radius: 22px;
    }

    .news-card-image {
        height: 190px;
    }
}

/* ============================================================
   SweetAlert2 Premium Global
============================================================ */

.swal2-popup.swal-premium-popup,
.swal2-popup {
    border-radius: 28px !important;
    padding: 28px !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .18) !important;
}

.swal2-title {
    color: #0F172A !important;
    font-weight: 850 !important;
    letter-spacing: -.4px !important;
}

.swal2-html-container {
    color: #64748B !important;
    line-height: 1.7 !important;
}

.swal2-confirm.swal-premium-confirm,
.swal2-confirm {
    border-radius: 16px !important;
    background: #0F766E !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .22) !important;
}

.swal2-cancel.swal-premium-cancel,
.swal2-cancel {
    border-radius: 16px !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
}

.swal2-icon {
    margin-top: 12px !important;
}

.swal-premium-toast {
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14) !important;
}

/* ============================================================
   Public Sidebar Menu
============================================================ */

.public-menu-button {
    border: 0;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: .2s ease;
}

.public-menu-button:hover {
    background: #D1FAE5;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.public-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .50);
    backdrop-filter: blur(6px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.public-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.public-sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    height: 100vh;
    background: #ffffff;
    z-index: 1999;
    transform: translateX(105%);
    transition: .28s ease;
    box-shadow: -24px 0 70px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.public-sidebar-menu.show {
    transform: translateX(0);
}

.public-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .18), transparent 38%),
        linear-gradient(135deg, #FFFFFF, #F8FAFC);
}

.public-sidebar-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #F1F5F9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.public-sidebar-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.public-sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #334155;
    font-weight: 800;
    margin-bottom: 8px;
    transition: .18s ease;
}

.public-sidebar-link i {
    width: 24px;
    height: 24px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.public-sidebar-link:hover,
.public-sidebar-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.public-sidebar-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    background: #F8FAFC;
}

.public-sidebar-contact {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
}

.public-sidebar-contact-item {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.public-sidebar-contact-item:last-child {
    margin-bottom: 0;
}

.public-sidebar-contact-item i {
    color: var(--primary);
}

body.sidebar-open {
    overflow: hidden;
}

/* Navbar desktop tetap clean */
.public-navbar .navbar-collapse {
    display: none !important;
}

@media (max-width: 575px) {
    .public-menu-button {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .public-sidebar-header {
        padding: 20px;
    }

    .public-sidebar-body {
        padding: 16px;
    }

    .public-sidebar-footer {
        padding: 16px 20px 20px;
    }
}

/* ============================================================
   Homepage
============================================================ */

.home-hero {
    position: relative;
    padding: 96px 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, .12), transparent 36%),
        linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 55%, #F8FAFC 100%);
    overflow: hidden;
}

.home-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1.02;
}

.home-title span {
    color: var(--primary);
}

.home-description {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
    max-width: 640px;
}

.home-hero-info {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.home-hero-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.home-hero-info-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.home-hero-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-hero-card {
    position: relative;
    border-radius: 34px;
    padding: 14px;
    background: white;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
}

.home-hero-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 26px;
}

.home-hero-placeholder {
    height: 520px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .25), transparent 35%),
        linear-gradient(135deg, #064E3B, #0F766E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 30px;
}

.home-hero-placeholder i {
    font-size: 72px;
    color: var(--accent);
}

.home-hero-placeholder strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
}

.home-hero-placeholder span {
    color: rgba(255, 255, 255, .78);
}

.home-floating-card {
    position: absolute;
    left: -18px;
    bottom: 34px;
    width: min(310px, 90%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

.home-floating-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--accent-soft);
    color: #B45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: 0 0 auto;
}

.home-feature-mini {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #334155;
    font-weight: 700;
}

.home-feature-mini i {
    color: var(--primary);
    margin-top: 2px;
}

.home-profile-card {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .16), transparent 35%),
        #ffffff;
    border-radius: 32px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.home-service-card {
    height: 100%;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
}

.home-service-card i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 18px;
}

.home-service-card h5 {
    font-weight: 850;
    margin-bottom: 8px;
}

.home-service-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 14px;
}

.home-public-service {
    display: block;
    height: 100%;
    background: white;
    border-radius: 28px;
    padding: 30px;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.home-public-service:hover {
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

.home-public-service i {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.home-public-service h5 {
    font-weight: 850;
    margin-bottom: 10px;
}

.home-public-service p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.home-cta {
    padding: 80px 0;
    background: #FFFFFF;
}

.home-cta-box {
    border-radius: 36px;
    padding: 48px;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .18), transparent 35%),
        linear-gradient(135deg, #064E3B, #0F766E);
    box-shadow: 0 28px 80px rgba(15, 118, 110, .22);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.soft-green {
    background: #ECFDF5;
    color: #0F766E;
}

.soft-gold {
    background: #FFFBEB;
    color: #B45309;
}

.soft-blue {
    background: #EFF6FF;
    color: #2563EB;
}

.soft-red {
    background: #FEF2F2;
    color: #DC2626;
}

@media (max-width: 991px) {
    .home-hero {
        padding: 70px 0;
    }

    .home-hero-image,
    .home-hero-placeholder {
        height: 420px;
    }

    .home-floating-card {
        left: 24px;
    }
}

@media (max-width: 575px) {
    .home-hero {
        padding: 50px 0;
    }

    .home-title {
        letter-spacing: -1.2px;
    }

    .home-hero-image,
    .home-hero-placeholder {
        height: 320px;
    }

    .home-floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 16px;
        width: 100%;
    }

    .home-cta-box {
        padding: 28px;
        border-radius: 28px;
    }
}

/* ============================================================
   Homepage Hero Slider Pro
============================================================ */

.home-hero-pro {
    position: relative;
    background: #064E3B;
}

.min-vh-hero {
    min-height: 690px;
}

.home-hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.home-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .24), transparent 35%),
        linear-gradient(180deg, rgba(15, 23, 42, .10), rgba(15, 23, 42, .22));
    pointer-events: none;
}

.home-hero-slide-default {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .22), transparent 35%),
        linear-gradient(135deg, #064E3B, #0F766E);
}

.home-hero-pro-content {
    position: relative;
    z-index: 3;
    padding: 90px 0 140px;
    color: #ffffff;
}

.home-title-pro {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 950;
    letter-spacing: -2.2px;
    line-height: 1.02;
    text-shadow: 0 12px 35px rgba(15, 23, 42, .24);
}

.home-description-pro {
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.85;
    max-width: 660px;
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.btn-glass:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.home-hero-pro-card {
    position: relative;
    z-index: 3;
    margin-left: auto;
    width: min(390px, 100%);
    padding: 26px;
    border-radius: 30px;
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.home-hero-pro-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .18);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 18px;
}

.home-hero-pro-card strong {
    display: block;
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 8px;
}

.home-hero-pro-card p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
}

.home-slider-control {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    color: white;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, .22);
}

.home-slider-control i {
    font-size: 25px;
}

.carousel-control-prev.home-slider-control {
    left: 24px;
}

.carousel-control-next.home-slider-control {
    right: 24px;
}

.home-slider-indicators {
    bottom: 112px;
    margin-bottom: 0;
}

.home-slider-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    opacity: .55;
}

.home-slider-indicators .active {
    width: 34px;
    opacity: 1;
    background: var(--accent);
}

.home-hero-bottom-panel {
    position: relative;
    z-index: 5;
    margin-top: -86px;
    padding-bottom: 46px;
}

.home-quick-panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 30px;
    box-shadow: 0 28px 75px rgba(15, 23, 42, .16);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    backdrop-filter: blur(16px);
}

.home-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    color: var(--text);
    transition: .2s ease;
}

.home-quick-item:hover {
    color: var(--text);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.home-quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 19px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex: 0 0 auto;
}

.home-quick-icon.gold {
    background: var(--accent-soft);
    color: #B45309;
}

.home-quick-icon.blue {
    background: #EFF6FF;
    color: #2563EB;
}

.home-quick-icon.red {
    background: #FEF2F2;
    color: #DC2626;
}

.home-quick-item strong {
    display: block;
    font-weight: 900;
    margin-bottom: 2px;
}

.home-quick-item span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

/* Android / Mobile Hero Fix */
@media (max-width: 991px) {
    .min-vh-hero {
        min-height: 620px;
    }

    .home-hero-pro-content {
        padding: 76px 0 140px;
    }

    .home-title-pro {
        letter-spacing: -1.4px;
    }

    .home-slider-control {
        display: none;
    }

    .home-quick-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .min-vh-hero {
        min-height: 590px;
    }

    .home-hero-slide {
        background-position: center;
    }

    .home-hero-pro-content {
        padding: 54px 0 136px;
    }

    .home-title-pro {
        font-size: 40px;
        letter-spacing: -1.2px;
        line-height: 1.06;
    }

    .home-description-pro {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .home-hero-bottom-panel {
        margin-top: -76px;
        padding-bottom: 36px;
    }

    .home-quick-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 12px;
    }

    .home-quick-item {
        padding: 14px;
        border-radius: 18px;
    }

    .home-quick-icon {
        width: 48px;
        height: 48px;
        border-radius: 17px;
        font-size: 22px;
    }

    .home-slider-indicators {
        bottom: 96px;
    }

    .home-title-pro br {
        display: none;
    }
}

@media (max-width: 575px) {
    .public-navbar {
        padding: 10px 0;
    }

    .public-navbar .container {
        gap: 10px;
    }

    .navbar-brand-public {
        min-width: 0;
        flex: 1;
    }

    .navbar-brand-public>div:last-child {
        min-width: 0;
    }

    .brand-name {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 210px;
    }

    .brand-tagline {
        display: block;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 210px;
    }

    .public-menu-button {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        flex: 0 0 auto;
    }
}

/* ============================================================
   Homepage Gallery
============================================================ */

.home-gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .25s ease;
}

.home-gallery-item:hover img {
    transform: scale(1.06);
}

.home-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .72));
    color: white;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
    font-weight: 850;
    opacity: 0;
    transition: .25s ease;
}

.home-gallery-item:hover .home-gallery-overlay {
    opacity: 1;
}

.home-gallery-overlay i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575px) {
    .home-gallery-item {
        height: 170px;
        border-radius: 18px;
    }

    .home-gallery-overlay {
        opacity: 1;
        padding: 14px;
        font-size: 13px;
    }

    .home-gallery-overlay i {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.carousel,
.carousel-inner,
.carousel-item,
.home-hero-pro,
.home-hero-slide,
#homeHeroSlider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 575px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-quick-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   Donation Payment Methods
============================================================ */

.payment-method-card {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    border-radius: 24px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    transition: .2s ease;
}

.payment-method-card:hover {
    border-color: #0F766E;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.payment-method-card.active {
    border: 2px solid #1D4ED8;
    box-shadow: 0 14px 34px rgba(29, 78, 216, .10);
}

.payment-method-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.payment-method-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #F8FAFC;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex: 0 0 auto;
}

.payment-method-info {
    min-width: 0;
}

.payment-method-name {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
}

.payment-method-badge {
    margin-top: 6px;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.payment-method-right {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 575px) {
    .payment-method-card {
        padding: 16px;
        border-radius: 20px;
    }

    .payment-method-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 22px;
    }

    .payment-method-name {
        font-size: 16px;
    }

    .payment-method-right {
        font-size: 16px;
    }
}

.complaint-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.complaint-detail-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #E5E7EB;
    align-items: start;
}

.complaint-detail-item:last-child {
    border-bottom: 0;
}

.complaint-detail-label {
    color: #6B7280;
    font-weight: 500;
}

.complaint-detail-value {
    color: #0F172A;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.complaint-detail-text {
    color: #475569;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.complaint-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .complaint-detail-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 0;
    }

    .complaint-detail-label {
        font-size: 14px;
    }

    .complaint-detail-value {
        text-align: left;
        font-size: 16px;
    }
}

/* =========================
   Invoice Detail
========================= */

.invoice-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.invoice-detail-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #E5E7EB;
    align-items: start;
}

.invoice-detail-item:last-child {
    border-bottom: 0;
}

.invoice-detail-label {
    color: #6B7280;
    font-weight: 500;
}

.invoice-detail-value {
    color: #0F172A;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.invoice-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.invoice-note-text {
    color: #475569;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .invoice-detail-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 0;
    }

    .invoice-detail-label {
        font-size: 14px;
    }

    .invoice-detail-value {
        text-align: left;
        font-size: 16px;
    }
}

/* =========================
   Donation Status Detail
========================= */

.donation-status-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.donation-status-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #E5E7EB;
    align-items: start;
}

.donation-status-item:last-child {
    border-bottom: 0;
}

.donation-status-label {
    color: #6B7280;
    font-weight: 500;
}

.donation-status-value {
    color: #0F172A;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.donation-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .donation-status-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 0;
    }

    .donation-status-label {
        font-size: 14px;
    }

    .donation-status-value {
        text-align: left;
        font-size: 16px;
    }
}

/* =========================
   Home Pro
========================= */

.hero-slider-pro,
.hero-slide-pro {
    min-height: 700px;
    position: relative;
}

.hero-slide-pro-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide-pro-content {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px 0 90px;
    position: relative;
    z-index: 2;
}

.hero-slide-pro-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 760px;
}

.hero-slide-pro-text {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.home-hero-fallback {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 28%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #334155 100%);
    color: #fff;
}

.home-intro-box,
.content-box {
    border: 1px solid #E5E7EB;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    padding: 28px;
}

.card-lux {
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
}

.home-mini-card,
.home-feature-box,
.home-service-box {
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    height: 100%;
    transition: 0.25s ease;
}

.home-mini-card:hover,
.home-feature-box:hover,
.home-service-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.home-stat-card {
    position: relative;
    overflow: hidden;
}

.home-stat-card::after {
    content: "";
    position: absolute;
    top: -24px;
    right: -18px;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
}

.home-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 10px;
}

.home-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
}

.home-stat-icon {
    position: absolute;
    right: 20px;
    bottom: 18px;
    font-size: 28px;
    color: #94A3B8;
}

.home-card-post {
    overflow: hidden;
}

.home-image-placeholder {
    height: 220px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 42px;
}

.home-highlight-box {
    border: 1px solid #E5E7EB;
    border-radius: 22px;
    padding: 18px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: 0.25s ease;
}

.home-highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.home-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(212, 175, 55, 0.16));
    color: #0F766E;
    font-size: 24px;
}

.home-highlight-text {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.7;
}

@media (max-width: 767.98px) {

    .hero-slider-pro,
    .hero-slide-pro,
    .hero-slide-pro-content {
        min-height: 560px;
    }

    .hero-slide-pro-content {
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .home-intro-box,
    .content-box {
        padding: 18px;
        border-radius: 20px;
    }

    .home-stat-value {
        font-size: 24px;
    }

    .home-stat-icon {
        font-size: 22px;
    }

    .home-highlight-box {
        padding: 16px;
        border-radius: 18px;
        gap: 12px;
    }

    .home-highlight-icon {
        width: 46px;
        height: 46px;
        font-size: 21px;
        border-radius: 14px;
    }

    .home-highlight-text {
        font-size: 15px;
    }
}

/* =========================
   Home Premium Upgrade
========================= */

.home-premium-hero {
    padding: 40px 0 10px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .14), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f6 42%, #f8fafc 100%);
}

.home-premium-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.home-premium-text {
    max-width: 720px;
    color: #64748b;
    font-size: 1.06rem;
    line-height: 1.95;
}

.home-premium-visual {
    position: relative;
}

.home-premium-visual img {
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.home-premium-visual-fallback {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    color: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

.home-premium-visual-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-weight: 700;
}

.home-floating-card {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.home-floating-card i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .14));
    flex-shrink: 0;
}

.home-premium-stat {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.home-premium-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.home-premium-stat-label {
    margin-top: 6px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

.home-quick-card {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    height: 100%;
    transition: .25s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.home-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.home-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .14));
    flex-shrink: 0;
}

.home-quick-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.home-quick-desc {
    color: #64748b;
    font-size: .93rem;
    line-height: 1.7;
}

.home-cta-box {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .12), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 991.98px) {
    .home-floating-card {
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 767.98px) {
    .home-premium-hero {
        padding-top: 24px;
    }

    .home-premium-text {
        font-size: .98rem;
    }

    .home-premium-visual-fallback {
        min-height: 280px;
    }
}

/* ===== Hero refinement ===== */

.home-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 10px;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 118, 110, .10), transparent 22%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, .16), transparent 20%),
        linear-gradient(135deg, #f8fbfb 0%, #f4f8f7 42%, #eef4f3 100%);
}



.home-premium-hero>.container {
    position: relative;
    z-index: 2;
}

.home-premium-title {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 1.05;
    font-weight: 800;
    color: #0b1733;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.home-premium-text {
    max-width: 720px;
    color: #66758a;
    font-size: 1.02rem;
    line-height: 1.95;
}

/* ===== Premium stat cards ===== */

.home-premium-stat {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    padding: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-premium-stat::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -18px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .05);
}

.home-premium-stat-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.home-premium-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .12));
    color: #0f766e;
    font-size: 1.25rem;
}

.home-premium-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.home-premium-stat-label {
    margin-top: 8px;
    color: #64748b;
    font-size: .95rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .home-premium-stat {
        padding: 18px;
        border-radius: 20px;
    }

    .home-premium-stat-value {
        font-size: 1.65rem;
    }

    .home-premium-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.05rem;
    }
}

/* ===== Home premium button fix ===== */

.home-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 10px;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 118, 110, .10), transparent 22%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, .16), transparent 20%),
        linear-gradient(135deg, #f8fbfb 0%, #f4f8f7 42%, #eef4f3 100%);
}

.home-premium-title {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 1.05;
    font-weight: 800;
    color: #0b1733;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.home-premium-text {
    max-width: 720px;
    color: #66758a;
    font-size: 1.02rem;
    line-height: 1.95;
}

.home-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1;
    width: auto;
    min-width: 260px;
    max-width: 320px;
    box-shadow: none;
}

.home-premium-hero .btn-main.home-hero-btn {
    box-shadow: 0 14px 28px rgba(15, 118, 110, .18);
}

.home-premium-hero .btn-outline-main.home-hero-btn {
    border: 1.5px solid rgba(15, 118, 110, .18);
    background: rgba(255, 255, 255, .84);
}

.home-premium-stat {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    padding: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-premium-stat::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -18px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .05);
}

.home-premium-stat-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.home-premium-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .12));
    color: #0f766e;
    font-size: 1.25rem;
}

.home-premium-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.home-premium-stat-label {
    margin-top: 8px;
    color: #64748b;
    font-size: .95rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .home-hero-btn {
        min-width: 0;
        width: auto;
        max-width: 100%;
        min-height: 50px;
        padding: 0 20px;
        font-size: .95rem;
        border-radius: 17px;
    }

    .home-premium-stat {
        padding: 18px;
        border-radius: 20px;
    }

    .home-premium-stat-value {
        font-size: 1.65rem;
    }

    .home-premium-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.05rem;
    }
}

/* Spasi icon dan teks tombol hero */
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px !important;
}

.home-hero-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* =========================
   Public Complaints Latest
========================= */

.complaint-public-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
    transition: .25s ease;
}

.complaint-public-card:last-child {
    margin-bottom: 0;
}

.complaint-public-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    border-color: rgba(15, 118, 110, .18);
}

.complaint-public-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.complaint-public-code {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.01em;
    word-break: break-word;
}

.complaint-public-title {
    font-size: 1.1rem;
    line-height: 1.45;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.complaint-public-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .92rem;
}

.complaint-public-link {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-size: .94rem;
    font-weight: 800;
}

.complaint-public-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .83rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.complaint-public-status.status-success {
    background: #eaf8f1;
    color: #166534;
    border-color: #cdebd8;
}

.complaint-public-status.status-warning {
    background: #fff7df;
    color: #a16207;
    border-color: #f6e7a9;
}

.complaint-public-status.status-info {
    background: #eaf4ff;
    color: #1d4ed8;
    border-color: #cfe1ff;
}

.complaint-public-status.status-danger {
    background: #fdecec;
    color: #b91c1c;
    border-color: #f5caca;
}

@media (max-width: 767.98px) {
    .complaint-public-card {
        padding: 16px;
        border-radius: 20px;
    }

    .complaint-public-code {
        font-size: .95rem;
    }

    .complaint-public-title {
        font-size: 1rem;
    }

    .complaint-public-status {
        min-height: 32px;
        padding: 6px 12px;
        font-size: .79rem;
    }
}

/* =========================
   Top Marquee Bar
========================= */

.top-marquee-bar {
    position: relative;
    z-index: 1002;
    background: linear-gradient(90deg, #0f766e 0%, #13867e 50%, #0f766e 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}

.top-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.top-marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-width: max-content;
    animation: topMarqueeMove 24s linear infinite;
}

.top-marquee-track span {
    display: inline-flex;
    align-items: center;
    padding-right: 80px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.top-marquee-track span::before {
    content: "•";
    margin-right: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
}

@keyframes topMarqueeMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .top-marquee-wrap {
        min-height: 38px;
    }

    .top-marquee-track span {
        font-size: .84rem;
        padding-right: 56px;
    }
}

.top-marquee-inner {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    gap: 12px;
}

.top-marquee-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    flex-shrink: 0;
}

/* =========================
   Announcements Public
========================= */

.announcement-featured-card {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .10), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfa 48%, #f4f8f7 100%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
    transition: .25s ease;
}

.announcement-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .08);
}

.announcement-featured-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.announcement-featured-text {
    color: #64748b;
    line-height: 1.9;
}

.announcement-featured-side {
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.announcement-featured-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .12));
}

.announcement-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 800;
}

.announcement-card {
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .04);
    transition: .25s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    border-color: rgba(15, 118, 110, .18);
}

.announcement-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.announcement-badge-pinned {
    background: #fff4d6;
    color: #b45309;
}

.announcement-badge-date {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.announcement-card-title {
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.announcement-card-text {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 14px;
}

.announcement-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 800;
}

.announcement-detail-content {
    color: #334155;
    line-height: 1.95;
    white-space: normal;
}

.announcement-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-related-item {
    display: block;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    transition: .2s ease;
}

.announcement-related-item:hover {
    background: #fafcfd;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.announcement-related-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 4px;
}

.announcement-related-date {
    color: #64748b;
    font-size: .84rem;
}

@media (max-width: 767.98px) {
    .announcement-featured-card {
        padding: 20px;
        border-radius: 24px;
    }

    .announcement-featured-side {
        min-height: auto;
        border-radius: 20px;
    }

    .announcement-card {
        padding: 18px;
        border-radius: 22px;
    }

    .announcement-card-title {
        font-size: 1.02rem;
    }
}

/* =========================
   Announcement content image fix
========================= */

.announcement-detail-content {
    color: #334155;
    line-height: 1.95;
    white-space: normal;
    word-break: break-word;
}

.announcement-detail-content img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 520px;
    object-fit: contain;
    margin: 18px auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.announcement-detail-content p {
    margin-bottom: 1rem;
}

.announcement-detail-content figure {
    margin: 0 0 1.2rem;
    text-align: center;
}

.announcement-detail-content iframe,
.announcement-detail-content video {
    max-width: 100%;
    border-radius: 18px;
}

@media (max-width: 767.98px) {
    .announcement-detail-content img {
        max-height: 320px;
        border-radius: 16px;
        margin: 14px auto;
    }
}

/* =========================
   Latest Announcement Popup
========================= */

body.announcement-popup-open {
    overflow: hidden;
}

.announcement-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.announcement-popup-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.announcement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(920px, calc(100% - 28px));
    transform: translate(-50%, -46%);
    opacity: 0;
    visibility: hidden;
    z-index: 2001;
    transition: .28s ease;
}

.announcement-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.announcement-popup-inner {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .10), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfa 48%, #f4f8f7 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 34px 90px rgba(15, 23, 42, .22);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 520px;
}

.announcement-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    transition: .2s ease;
}

.announcement-popup-close:hover {
    transform: scale(1.04);
    background: #fff;
}

.announcement-popup-media {
    position: relative;
    background: linear-gradient(135deg, #eef7f5 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.announcement-popup-media img {
    width: 100%;
    max-width: 420px;
    max-height: 430px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    background: #fff;
}

.announcement-popup-placeholder {
    width: 100%;
    max-width: 420px;
    min-height: 420px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, .09), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f5faf9 100%);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.announcement-popup-placeholder-icon {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .14));
    color: #0f766e;
    font-size: 2rem;
    margin-bottom: 18px;
}

.announcement-popup-placeholder-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.announcement-popup-content {
    padding: 34px 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-popup-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.announcement-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
}

.announcement-popup-badge.badge-important {
    background: #fff3d8;
    color: #b45309;
}

.announcement-popup-badge.badge-date {
    background: #eaf8f5;
    color: #0f766e;
}

.announcement-popup-label {
    color: #0f766e;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.announcement-popup-title {
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    line-height: 1.2;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
}

.announcement-popup-text {
    color: #64748b;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 22px;
}

.announcement-popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.announcement-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 16px !important;
}

.announcement-popup-btn-muted {
    border: 1px solid #e5e7eb;
    background: #fff;
}

@media (max-width: 991.98px) {
    .announcement-popup-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .announcement-popup-media {
        padding: 22px 22px 8px;
    }

    .announcement-popup-media img {
        max-height: 280px;
    }

    .announcement-popup-placeholder {
        min-height: 240px;
    }

    .announcement-popup-content {
        padding: 22px;
    }
}

@media (max-width: 767.98px) {
    .announcement-popup {
        width: calc(100% - 20px);
    }

    .announcement-popup-inner {
        border-radius: 26px;
    }

    .announcement-popup-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .announcement-popup-title {
        font-size: 1.35rem;
    }

    .announcement-popup-text {
        font-size: .94rem;
        line-height: 1.75;
    }

    .announcement-popup-actions {
        flex-direction: column;
    }

    .announcement-popup-btn {
        width: 100%;
    }
}

/* Popup content follow editor format */

.announcement-popup-editor-content {
    color: #475569;
    line-height: 1.8;
    font-size: .98rem;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
    margin-bottom: 22px;
}

.announcement-popup-editor-content p {
    margin-bottom: .9rem;
}

.announcement-popup-editor-content h1,
.announcement-popup-editor-content h2,
.announcement-popup-editor-content h3,
.announcement-popup-editor-content h4,
.announcement-popup-editor-content h5,
.announcement-popup-editor-content h6 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: .7rem;
}

.announcement-popup-editor-content h1 {
    font-size: 1.45rem;
}

.announcement-popup-editor-content h2 {
    font-size: 1.3rem;
}

.announcement-popup-editor-content h3 {
    font-size: 1.15rem;
}

.announcement-popup-editor-content h4 {
    font-size: 1.05rem;
}

.announcement-popup-editor-content ul,
.announcement-popup-editor-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.announcement-popup-editor-content img {
    display: none !important;
}

.announcement-popup-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.announcement-popup-editor-content table td,
.announcement-popup-editor-content table th {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    font-size: .9rem;
}

.announcement-popup-editor-content blockquote {
    border-left: 4px solid #0f766e;
    padding-left: 12px;
    margin: 0 0 1rem;
    color: #475569;
    font-style: italic;
}

.announcement-popup-editor-content::-webkit-scrollbar {
    width: 8px;
}

.announcement-popup-editor-content::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, .25);
    border-radius: 999px;
}

.announcement-popup-editor-content::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, .12);
    border-radius: 999px;
}

/* =========================
   Popup mobile smaller
========================= */

@media (max-width: 767.98px) {
    .announcement-popup {
        width: calc(100% - 22px);
        max-width: 420px;
    }

    .announcement-popup-inner {
        grid-template-columns: 1fr;
        border-radius: 24px;
        min-height: auto;
    }

    .announcement-popup-media {
        padding: 14px 14px 6px;
    }

    .announcement-popup-media img {
        width: 100%;
        max-width: 250px;
        max-height: 180px;
        object-fit: contain;
        border-radius: 16px;
        margin: 0 auto;
    }

    .announcement-popup-placeholder {
        min-height: 160px;
        max-width: 250px;
        border-radius: 18px;
        padding: 18px;
    }

    .announcement-popup-placeholder-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .announcement-popup-placeholder-text {
        font-size: .98rem;
    }

    .announcement-popup-content {
        padding: 14px 16px 16px;
    }

    .announcement-popup-badges {
        gap: 8px;
        margin-bottom: 10px;
    }

    .announcement-popup-badge {
        min-height: 28px;
        padding: 5px 10px;
        font-size: .74rem;
    }

    .announcement-popup-label {
        font-size: .78rem;
        margin-bottom: 6px;
    }

    .announcement-popup-title {
        font-size: 1.1rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .announcement-popup-text,
    .announcement-popup-editor-content {
        font-size: .88rem;
        line-height: 1.65;
        max-height: 130px;
        margin-bottom: 14px;
    }

    .announcement-popup-actions {
        gap: 8px;
    }

    .announcement-popup-btn {
        min-height: 42px;
        padding: 10px 14px;
        font-size: .92rem;
        border-radius: 14px !important;
    }

    .announcement-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }
}

/* =========================
   Premium mobile popup
========================= */

@media (max-width: 767.98px) {
    .announcement-popup {
        width: calc(100% - 24px);
        max-width: 390px;
    }

    .announcement-popup-inner {
        grid-template-columns: 1fr;
        border-radius: 24px;
        min-height: auto;
        box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    }

    .announcement-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: .92rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    }

    .announcement-popup-media {
        padding: 14px 14px 6px;
        min-height: auto;
    }

    .announcement-popup-media img {
        width: 100%;
        max-width: 220px;
        max-height: 150px;
        object-fit: contain;
        margin: 0 auto;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    }

    .announcement-popup-placeholder {
        min-height: 150px;
        max-width: 220px;
        border-radius: 18px;
        padding: 16px;
    }

    .announcement-popup-placeholder-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .announcement-popup-placeholder-text {
        font-size: .95rem;
    }

    .announcement-popup-content {
        padding: 14px 16px 16px;
    }

    .announcement-popup-badges {
        gap: 8px;
        margin-bottom: 10px;
    }

    .announcement-popup-badge {
        min-height: 28px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: .74rem;
    }

    .announcement-popup-label {
        font-size: .76rem;
        margin-bottom: 6px;
        letter-spacing: .04em;
    }

    .announcement-popup-title {
        font-size: 1.08rem;
        line-height: 1.28;
        margin-bottom: 8px;
    }

    .announcement-popup-text,
    .announcement-popup-editor-content {
        font-size: .88rem;
        line-height: 1.65;
        max-height: 120px;
        overflow: auto;
        margin-bottom: 14px;
        padding-right: 2px;
    }

    .announcement-popup-editor-content h1,
    .announcement-popup-editor-content h2,
    .announcement-popup-editor-content h3,
    .announcement-popup-editor-content h4,
    .announcement-popup-editor-content h5,
    .announcement-popup-editor-content h6 {
        font-size: 1rem !important;
        line-height: 1.35;
        margin-bottom: .55rem;
    }

    .announcement-popup-editor-content p {
        margin-bottom: .7rem;
    }

    .announcement-popup-editor-content img {
        display: none !important;
    }

    .announcement-popup-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .announcement-popup-btn {
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
        font-size: .92rem;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .announcement-popup-btn i {
        font-size: .95rem;
    }

    .announcement-popup-btn-muted {
        background: #fff;
        border: 1px solid #e5e7eb;
    }
}

/* =========================
   Agenda Public
========================= */

.agenda-featured-card {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .10), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfa 48%, #f4f8f7 100%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
    transition: .25s ease;
}

.agenda-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .08);
}

.agenda-featured-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.agenda-featured-text {
    color: #64748b;
    line-height: 1.9;
}

.agenda-featured-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 700;
}

.agenda-featured-side {
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.agenda-featured-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(212, 175, 55, .12));
}

.agenda-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 800;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agenda-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    padding: 16px;
    transition: .22s ease;
}

.agenda-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.agenda-list-date {
    width: 70px;
    min-width: 70px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .10), rgba(212, 175, 55, .10));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agenda-list-date-day {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.agenda-list-date-month {
    font-size: .78rem;
    font-weight: 800;
    color: #0f766e;
    text-transform: uppercase;
    margin-top: 4px;
}

.agenda-list-content {
    min-width: 0;
    flex: 1 1 auto;
}

.agenda-list-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 6px;
}

.agenda-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.6;
}

.agenda-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agenda-list-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0f766e;
}

.agenda-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agenda-related-item {
    display: block;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    transition: .2s ease;
}

.agenda-related-item:hover {
    background: #fafcfd;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.agenda-related-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 4px;
}

.agenda-related-date {
    color: #64748b;
    font-size: .84rem;
}

@media (max-width: 767.98px) {
    .agenda-featured-card {
        padding: 20px;
        border-radius: 24px;
    }

    .agenda-featured-side {
        min-height: auto;
        border-radius: 20px;
    }

    .agenda-list-item {
        align-items: flex-start;
        padding: 14px;
        border-radius: 18px;
    }

    .agenda-list-date {
        width: 60px;
        min-width: 60px;
        height: 62px;
        border-radius: 16px;
    }

    .agenda-list-title {
        font-size: .96rem;
    }

    .agenda-list-meta {
        gap: 8px;
        font-size: .82rem;
    }
}

/* =========================
   Home Agenda Section
========================= */

.home-agenda-featured {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .10), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfa 48%, #f4f8f7 100%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
    transition: .25s ease;
    height: 100%;
}

.home-agenda-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .08);
}

.home-agenda-featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-agenda-featured-title {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.home-agenda-featured-text {
    color: #64748b;
    line-height: 1.85;
    margin-bottom: 14px;
}

.home-agenda-featured-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-agenda-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 800;
}

.home-agenda-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.home-agenda-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .03);
    transition: .22s ease;
}

.home-agenda-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.home-agenda-date-box {
    width: 62px;
    min-width: 62px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .10), rgba(212, 175, 55, .10));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-agenda-date-box .day {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.home-agenda-date-box .month {
    margin-top: 4px;
    font-size: .76rem;
    font-weight: 800;
    color: #0f766e;
    text-transform: uppercase;
}

.home-agenda-list-content {
    min-width: 0;
    flex: 1 1 auto;
}

.home-agenda-list-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.42;
    margin-bottom: 5px;
}

.home-agenda-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.55;
}

.home-agenda-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-agenda-list-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0f766e;
}

.home-agenda-empty {
    border: 1px dashed #dbe2ea;
    border-radius: 24px;
    padding: 28px 18px;
    text-align: center;
    color: #64748b;
    background: #fff;
}

.home-agenda-empty i {
    display: block;
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

@media (max-width: 767.98px) {
    .home-agenda-featured {
        padding: 20px;
        border-radius: 24px;
    }

    .home-agenda-list-item {
        align-items: flex-start;
        padding: 14px;
        border-radius: 18px;
    }

    .home-agenda-date-box {
        width: 56px;
        min-width: 56px;
        height: 60px;
        border-radius: 16px;
    }

    .home-agenda-list-title {
        font-size: .95rem;
    }

    .home-agenda-list-meta {
        gap: 8px;
        font-size: .8rem;
    }
}

/* =========================
   Dynamic Theme Overrides
========================= */

a {
    color: var(--theme-link);
}

a:hover {
    color: var(--theme-link-hover);
}

.text-primary-custom {
    color: var(--theme-primary) !important;
}

.btn-main {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-button-text) !important;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--theme-primary) 22%, transparent);
}

.btn-main:hover,
.btn-main:focus {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%) !important;
    border-color: var(--theme-primary-dark) !important;
    color: var(--theme-button-text) !important;
}

.btn-outline-main {
    background: #fff !important;
    border: 1px solid var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

.btn-outline-main:hover,
.btn-outline-main:focus {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-button-text) !important;
}

.badge-soft {
    background: var(--theme-soft-bg) !important;
    color: var(--theme-primary) !important;
    border: 1px solid color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

.badge-gold {
    background: color-mix(in srgb, var(--theme-accent) 18%, white) !important;
    color: color-mix(in srgb, var(--theme-accent) 78%, black) !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, white);
}

.breadcrumb-custom a {
    color: var(--theme-primary);
}

.breadcrumb-custom i {
    color: color-mix(in srgb, var(--theme-primary) 70%, #64748b);
}

.page-hero {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent) 10%, transparent), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--theme-soft-bg) 45%, white) 48%, #f8fafc 100%);
}

.page-title {
    color: #0f172a;
}

.page-description {
    color: #64748b;
}

.top-marquee-bar {
    background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-primary-dark) 50%, var(--theme-primary) 100%) !important;
}

.public-topbar,
.topbar-public,
.header-topbar {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%) !important;
}

.home-highlight-icon,
.program-feature-icon,
.announcement-featured-icon,
.agenda-featured-icon,
.home-service-card i,
.home-service-box i,
.sidebar-title i,
.announcement-popup-placeholder-icon,
.announcement-popup-icon {
    color: var(--theme-primary) !important;
}

.home-highlight-icon,
.program-feature-icon {
    background: color-mix(in srgb, var(--theme-primary) 12%, white) !important;
}

.content-box,
.sidebar-card,
.card-lux,
.home-agenda-featured,
.announcement-featured-card,
.agenda-featured-card,
.complaint-public-card,
.announcement-card,
.home-agenda-list-item,
.agenda-list-item,
.announcement-related-item,
.agenda-related-item {
    border-color: color-mix(in srgb, var(--theme-soft-bg) 75%, #e5e7eb) !important;
}

.home-agenda-featured-link,
.agenda-featured-link,
.announcement-featured-link,
.announcement-card-link,
.complaint-public-link,
.home-agenda-list-arrow,
.agenda-list-arrow,
.announcement-popup-label,
.announcement-popup-link {
    color: var(--theme-primary) !important;
}

.home-agenda-list-arrow,
.agenda-list-arrow {
    background: color-mix(in srgb, var(--theme-soft-bg) 80%, white) !important;
}

.home-agenda-date-box,
.agenda-list-date {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--theme-primary) 10%, white),
            color-mix(in srgb, var(--theme-accent) 12%, white)) !important;
}

.home-agenda-date-box .month,
.agenda-list-date-month {
    color: var(--theme-primary) !important;
}

.announcement-popup-badge.badge-date {
    background: var(--theme-soft-bg) !important;
    color: var(--theme-primary) !important;
}

.announcement-popup-badge.badge-important {
    background: color-mix(in srgb, var(--theme-accent) 18%, white) !important;
    color: color-mix(in srgb, var(--theme-accent) 80%, black) !important;
}

.announcement-popup-label {
    color: var(--theme-primary) !important;
}

.announcement-popup-close:hover {
    color: var(--theme-primary) !important;
}

.announcement-popup-placeholder {
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--theme-accent) 10%, transparent), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--theme-soft-bg) 45%, white) 100%) !important;
}

.maintenance-eta,
.home-agenda-featured-meta,
.agenda-featured-meta {
    color: var(--theme-primary) !important;
}

.section-title-line,
.gold-line {
    background: linear-gradient(90deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 55%, white)) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.header-nav .nav-link.active,
.header-nav .nav-link:hover {
    color: var(--theme-primary) !important;
}

.pagination .page-item.active .page-link {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.pagination .page-link {
    color: var(--theme-primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--theme-primary) 35%, #cbd5e1) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
}

/* Fallback simple theme colors */

.btn-main {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark)) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-button-text) !important;
}

.btn-outline-main {
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

.btn-outline-main:hover {
    background: var(--theme-primary) !important;
    color: var(--theme-button-text) !important;
}

.badge-soft {
    background: var(--theme-soft-bg) !important;
    color: var(--theme-primary) !important;
}

.text-primary-custom,
.home-agenda-featured-link,
.agenda-featured-link,
.announcement-featured-link,
.announcement-card-link,
.complaint-public-link {
    color: var(--theme-primary) !important;
}

/* =========================
   Final dynamic theme fixes
========================= */

/* icon umum */
.bi,
.public-topbar i,
.top-marquee-icon i,
.public-sidebar-link i,
.public-sidebar-contact-item i,
.sidebar-title i,
.home-agenda-list-meta i,
.agenda-list-meta i,
.home-agenda-featured-meta i,
.agenda-featured-meta i,
.announcement-popup-badge i {
    color: var(--primary);
}

/* icon dalam box/soft area */
.home-highlight-icon,
.program-feature-icon,
.announcement-featured-icon,
.agenda-featured-icon,
.announcement-popup-placeholder-icon,
.home-agenda-list-arrow,
.agenda-list-arrow {
    color: var(--primary) !important;
    background: var(--primary-soft) !important;
}

/* topbar dan marquee */
.public-topbar,
.top-marquee-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

.public-topbar,
.public-topbar a,
.public-topbar i,
.top-marquee-bar,
.top-marquee-bar i,
.top-marquee-bar span {
    color: var(--theme-button-text) !important;
}

/* tombol whatsapp / tombol utama */
.btn-main,
.public-sidebar-footer .btn-main,
a.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: var(--primary) !important;
    color: var(--theme-button-text) !important;
}

/* footer utama */
.site-footer,
.footer,
.public-footer,
footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: var(--theme-button-text) !important;
}

/* semua teks dan link di footer */
.site-footer *,
.footer *,
.public-footer *,
footer * {
    color: var(--theme-button-text) !important;
}

.site-footer a,
.footer a,
.public-footer a,
footer a {
    color: var(--theme-button-text) !important;
    opacity: .95;
}

.site-footer a:hover,
.footer a:hover,
.public-footer a:hover,
footer a:hover {
    opacity: 1;
    color: #ffffff !important;
}

/* icon footer */
.site-footer i,
.footer i,
.public-footer i,
footer i {
    color: var(--theme-button-text) !important;
}

/* badge soft dan badge aksen */
.badge-soft {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
}

.badge-gold,
.theme-preview-badge {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* link aktif menu */
.public-sidebar-link.active,
.public-sidebar-link:hover,
.public-sidebar-link.active i,
.public-sidebar-link:hover i {
    color: var(--primary) !important;
}

/* title/link penting */
.home-agenda-featured-link,
.agenda-featured-link,
.announcement-featured-link,
.announcement-card-link,
.agenda-related-title,
.announcement-related-title {
    color: var(--primary) !important;
}

/* border lembut beberapa card */
.content-box,
.sidebar-card,
.home-agenda-featured,
.announcement-featured-card,
.agenda-featured-card,
.home-agenda-list-item,
.agenda-list-item,
.announcement-related-item,
.agenda-related-item {
    border-color: var(--border) !important;
}

/* Loader putih, logo tidak ikut tema */
.page-loader {
    background: #ffffff !important;
}

.page-loader .loader-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    backdrop-filter: none;
}

.page-loader .loader-logo {
    background: linear-gradient(135deg, #0f766e 0%, #0b5d57 100%) !important;
    box-shadow: 0 14px 30px rgba(15, 118, 110, .20);
}

.page-loader .loader-logo,
.page-loader .loader-logo i {
    color: #ffffff !important;
}

.page-loader .loader-text {
    color: #0f172a !important;
}

.page-loader .loader-subtext {
    color: #64748b !important;
}

/* =========================
   Officials / Aparatur
========================= */

.official-card {
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    overflow: hidden;
    transition: .24s ease;
}

.official-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, .08);
}

.official-photo-wrap {
    position: relative;
    padding: 18px 18px 0;
}

.official-photo {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    background: #f8fafc;
}

.official-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft), #f8fafc);
    color: var(--primary);
    font-size: 3rem;
}

.official-body {
    padding: 18px 18px 22px;
    text-align: center;
}

.official-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
}

.official-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.official-desc {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
}

.official-slider-wrap {
    position: relative;
}

.official-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px;
    scrollbar-width: none;
}

.official-slider::-webkit-scrollbar {
    display: none;
}

.official-slide-item {
    flex: 0 0 280px;
    max-width: 280px;
}

.official-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.official-slider-nav.prev {
    left: -10px;
}

.official-slider-nav.next {
    right: -10px;
}

.official-slider-nav:hover {
    background: var(--primary);
    color: var(--theme-button-text);
}

@media (max-width: 991.98px) {
    .official-slider-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .official-photo {
        height: 250px;
        border-radius: 18px;
    }

    .official-card {
        border-radius: 22px;
    }

    .official-body {
        padding: 16px;
    }

    .official-slide-item {
        flex: 0 0 240px;
        max-width: 240px;
    }
}

/* =========================
   Live Chat Widget
========================= */

.live-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
}

.live-chat-fab {
    border: none;
    border-radius: 999px;
    min-height: 58px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--theme-button-text);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
    font-weight: 800;
}

.live-chat-fab-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(390px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transition: .22s ease;
}

.live-chat-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.live-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--theme-button-text);
}

.live-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.live-chat-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.live-chat-subtitle {
    font-size: .82rem;
    opacity: .92;
}

.live-chat-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-chat-body {
    padding: 16px;
    background: #fff;
}

.live-chat-welcome {
    text-align: center;
    padding: 10px 6px 16px;
}

.live-chat-welcome-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft), #f8fafc);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.live-chat-form .form-control,
.live-chat-reply .form-control {
    border-radius: 16px;
    min-height: 46px;
}

.live-chat-messages {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
}

.live-chat-msg {
    display: flex;
    margin-bottom: 12px;
}

.live-chat-msg.visitor {
    justify-content: flex-end;
}

.live-chat-msg.admin {
    justify-content: flex-start;
}

.live-chat-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.7;
    font-size: .92rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.live-chat-msg.visitor .live-chat-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--theme-button-text);
    border-bottom-right-radius: 6px;
}

.live-chat-msg.admin .live-chat-bubble {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.live-chat-meta {
    margin-top: 6px;
    font-size: .74rem;
    opacity: .85;
}

.live-chat-reply-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.live-chat-send-btn {
    min-width: 50px;
    height: 50px;
    border-radius: 16px;
    padding: 0;
}

@media (max-width: 767.98px) {
    .live-chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .live-chat-fab {
        min-height: 54px;
        padding: 10px 16px;
    }

    .live-chat-fab-text {
        display: none;
    }

    .live-chat-panel {
        width: min(360px, calc(100vw - 16px));
        bottom: 70px;
    }
}

/* =========================
   Warga Header
========================= */
.warga-navbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(14px);
}

.warga-header-menu .btn {
    min-height: 40px;
    border-radius: 12px;
    font-weight: 600;
}

.warga-header-user {
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(15, 118, 110, .08);
    border: 1px solid rgba(15, 118, 110, .12);
}

.warga-header-user-name {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 991.98px) {
    .warga-header-menu {
        display: none !important;
    }
}

/* =========================
   Citizen Portal Header
========================= */
.public-header-citizen-actions .btn {
    min-height: 44px;
    border-radius: 14px;
}

.public-header-citizen-name {
    white-space: nowrap;
    font-weight: 600;
    color: rgba(15, 23, 42, .72);
    font-size: .86rem;
}

@media (max-width: 991.98px) {
    .public-header-citizen-actions {
        display: none !important;
    }
}

/* =========================
   Warga Header
========================= */
.warga-navbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(14px);
}

.warga-header-menu .btn {
    min-height: 40px;
    border-radius: 12px;
    font-weight: 600;
}

.warga-header-user {
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(15, 118, 110, .08);
    border: 1px solid rgba(15, 118, 110, .12);
}

.warga-header-user-name {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 991.98px) {
    .warga-header-menu {
        display: none !important;
    }
}

/* =========================
   Premium Status Badge
========================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.status-badge i {
    font-size: .9rem;
    line-height: 1;
}

.status-pending {
    background: rgba(212, 175, 55, .14);
    color: #9a6b00;
    border-color: rgba(212, 175, 55, .26);
}

.status-processing {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, .20);
}

.status-verified {
    background: rgba(8, 145, 178, .12);
    color: #0f766e;
    border-color: rgba(8, 145, 178, .22);
}

.status-completed {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
    border-color: rgba(22, 163, 74, .22);
}

.status-rejected {
    background: rgba(220, 38, 38, .10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .18);
}

.status-cancelled {
    background: rgba(100, 116, 139, .12);
    color: #475569;
    border-color: rgba(100, 116, 139, .20);
}

.status-open {
    background: rgba(5, 150, 105, .12);
    color: #047857;
    border-color: rgba(5, 150, 105, .20);
}

.status-closed {
    background: rgba(71, 85, 105, .12);
    color: #334155;
    border-color: rgba(71, 85, 105, .20);
}

.status-default {
    background: rgba(148, 163, 184, .14);
    color: #475569;
    border-color: rgba(148, 163, 184, .22);
}

/* ============================================================
   Homepage Premium Hero (Full Background Slider)
============================================================ */

.home-premium-hero {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.home-premium-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.home-premium-hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.home-premium-hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-premium-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgb(255 255 255 / 86%) 0%, rgb(255 255 255 / 68%) 45%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.home-premium-hero-fallback {
    position: absolute;
    inset: 0;
    background: #F8FAFC;
    z-index: 0;
}

.home-premium-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-premium-title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    color: var(--text);
}

.home-premium-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
    max-width: 600px;
}

.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-premium-stat {
    background: white;
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    transition: .2s ease;
}

.home-premium-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

.home-premium-stat-top {
    margin-bottom: 10px;
}

.home-premium-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-premium-stat-value {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.4px;
    color: var(--text);
    line-height: 1.2;
}

.home-premium-stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
}

/* Quick cards below hero */
.home-quick-menu-wrap {
    position: relative;
    z-index: 3;
    margin-top: -30px;
    padding-bottom: 10px;
}

.home-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
    transition: .2s ease;
    height: 100%;
}

.home-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
}

.home-quick-card .home-quick-icon {
    flex: 0 0 auto;
}

.home-quick-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.home-quick-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.5;
}

/* Service box in layanan utama */
.home-service-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    transition: .18s ease;
}

.home-service-box:hover {
    background: var(--primary-soft);
    border-color: rgba(15, 118, 110, .2);
    transform: translateX(4px);
}

/* Highlight boxes */
.home-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.home-highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.home-highlight-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
}

/* Image placeholder */
.home-image-placeholder {
    height: 230px;
    background: linear-gradient(135deg, var(--primary-soft), #E0F2FE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    opacity: .5;
}

/* Card post */
.home-card-post {
    transition: .2s ease;
}

.home-card-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
}

/* Agenda */
.home-agenda-featured {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.home-agenda-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
}

.home-agenda-featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-agenda-featured-title {
    font-size: 22px;
    font-weight: 850;
    color: var(--text);
    margin: 16px 0 12px;
    line-height: 1.3;
}

.home-agenda-featured-text {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.home-agenda-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

.home-agenda-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    margin-top: 20px;
}

.home-agenda-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-agenda-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: .18s ease;
}

.home-agenda-list-item:hover {
    color: var(--text);
    transform: translateX(4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.home-agenda-date-box {
    text-align: center;
    background: var(--primary-soft);
    border-radius: 14px;
    padding: 8px 12px;
    flex: 0 0 auto;
    min-width: 52px;
}

.home-agenda-date-box .day {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.home-agenda-date-box .month {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 3px;
}

.home-agenda-list-content {
    flex: 1;
    min-width: 0;
}

.home-agenda-list-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-agenda-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.home-agenda-list-arrow {
    color: var(--primary);
    font-size: 18px;
    flex: 0 0 auto;
}

.home-agenda-empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.home-agenda-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: .4;
}

/* Official slider */
.official-slider-wrap {
    position: relative;
}

.official-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.official-slider::-webkit-scrollbar {
    display: none;
}

.official-slide-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.official-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: .2s ease;
}

.official-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .11);
}

.official-photo-wrap {
    height: 180px;
    overflow: hidden;
    background: var(--primary-soft);
}

.official-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary);
    opacity: .4;
}

.official-body {
    padding: 18px;
}

.official-name {
    font-size: 15px;
    font-weight: 850;
    margin-bottom: 4px;
    color: var(--text);
}

.official-position {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.official-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.official-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    color: var(--primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.official-slider-nav.prev {
    left: -16px;
}

.official-slider-nav.next {
    right: -16px;
}

.official-slider-nav:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .home-premium-hero {
        min-height: 70vh;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-premium-hero-overlay {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.80) 100%);
    }

    .home-quick-menu-wrap {
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .home-premium-hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .home-premium-title {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .home-premium-hero-overlay {
        background: rgba(255, 255, 255, 0.88);
    }

    .home-quick-menu-wrap {
        margin-top: 16px;
    }

    .home-quick-card {
        padding: 14px 16px;
    }
}

/* ============================================================
   Infographics Page
   ============================================================ */
.info-tab-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.info-tab-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    min-width: 120px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.info-tab-link i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-tab-link:hover,
.info-tab-link.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.2);
}

.info-tab-link:hover i,
.info-tab-link.active i {
    color: white !important;
}

.info-metric-card {
    border-radius: 24px;
    padding: 24px;
    background: white;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.info-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.info-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.info-metric-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.info-metric-unit {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-left: 4px;
}

.info-metric-label {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 4px;
}

.info-metric-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ============================================================
   Homepage Priority Programs Section
   ============================================================ */
.home-priority-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
}

.home-priority-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-priority-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 118, 110, 0.2);
}

.home-priority-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.home-priority-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.home-priority-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.4;
}

.home-priority-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.home-priority-progress-text span:last-child {
    color: var(--primary);
}

/* ============================================================
   Floating Visitor Statistics Widget
   ============================================================ */
.visitor-widget-wrap {
    left: 20px;
    bottom: 20px;
    position: fixed;
    z-index: 1000;
}

.visitor-widget-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.visitor-widget-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.25);
    transform: translateY(-2px);
}

.visitor-widget-pill.active {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.3);
}

.visitor-widget-icon {
    font-size: 16px;
}

.visitor-widget-count {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.visitor-widget-pill:hover .visitor-widget-count,
.visitor-widget-pill.active .visitor-widget-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.visitor-widget-chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.visitor-widget-detail {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 16px;
    overflow: hidden;
}

.visitor-widget-detail.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.visitor-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.visitor-widget-header i {
    font-size: 16px;
}

.visitor-widget-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visitor-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
}

.visitor-stat-label {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-stat-label i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.visitor-stat-value {
    font-weight: 750;
    color: var(--text);
}

.visitor-stat-value.badge {
    font-weight: 800;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
}

.bg-success-soft {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.visitor-divider {
    border: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin: 6px 0;
}

.visitor-stat-item.font-weight-bold {
    font-size: 14px;
}

@media (max-width: 575px) {
    .visitor-widget-wrap {
        left: 12px;
        bottom: 12px;
    }
    .visitor-widget-pill {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
    }
    .visitor-widget-detail {
        width: 250px;
        left: 0;
        bottom: calc(100% + 8px);
        padding: 12px;
    }
}
