/* --------------------------------------------
   1. FONTS & IMPORTS
   -------------------------------------------- */
/* Font dimuat dari assets/vendor/fonts/fonts.css (di setiap halaman) */

/* --------------------------------------------
   2. ROOT VARIABLES
   -------------------------------------------- */
:root {
    /* Core palette */
    --pd-primary: #2F6B4A;
    --pd-primary-light: #4C8A68;
    --pd-primary-dark: #1D4632;
    --pd-primary-bg: #E3EEE4;

    --pd-accent-warm: #D9834A;
    --pd-accent-warm-bg: rgba(217, 131, 74, 0.14);

    --pd-secondary: #4A83B8;
    --pd-accent: #C9973E;
    --pd-success: #4C8A68;
    --pd-danger: #C1483B;

    --pd-bg: #FBF8F1;
    --pd-bg-alt: #F3EEE1;
    --pd-text: #3F4440;
    --pd-text-muted: #767F73;
    --pd-heading: #1E2A20;

    --pd-surface: #FFFFFF;
    --pd-border: #E4DECE;

    --sidebar-width: 280px;
    --header-height: 76px;

    --shadow-sm: 0 1px 2px 0 rgba(35, 40, 33, 0.05);
    --shadow-md: 0 4px 10px -2px rgba(35, 40, 33, 0.07);
    --shadow-lg: 0 10px 25px -5px rgba(35, 40, 33, 0.08);
    --shadow-xl: 0 20px 35px -8px rgba(35, 40, 33, 0.10);
    --shadow-primary: 0 10px 18px -4px rgba(31, 92, 69, 0.25);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET OVERFLOW HORIZONTAL
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* --------------------------------------------
   3. BASE & BODY
   -------------------------------------------- */
html {
    overflow-x: hidden;
    width: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--pd-bg);
    color: var(--pd-text);
    -webkit-font-smoothing: antialiased;
    
    /* TRANSISI HALUS CEPAT */
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body.page-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.page-exit {
    opacity: 0;
    transform: translateY(-15px) scale(0.96);
    transition: opacity 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

/* Semua elemen tidak boleh melebihi lebar */
* {
    box-sizing: border-box;
    max-width: 100%;
}
/* Biarkan Bootstrap menangani max-width; kita hanya tambahkan padding lebih lega */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

/* Gambar dan media */
img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
.h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pd-heading);
}
/* --------------------------------------------
   4. UTILITIES
   -------------------------------------------- */
.text-primary { color: var(--pd-primary) !important; }

/* --------------------------------------------
   5. BUTTONS
   -------------------------------------------- */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 50rem;
    transition: var(--transition-base);
}
.btn-primary {
    background-color: var(--pd-primary);
    border-color: var(--pd-primary);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background-color: var(--pd-primary-dark);
    border-color: var(--pd-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 20px -4px rgba(31, 92, 69, 0.3);
}
.btn-light {
    background-color: var(--pd-surface);
    border-color: var(--pd-border);
    color: var(--pd-heading);
}
.btn-light:hover {
    background-color: var(--pd-bg-alt);
    border-color: var(--pd-border);
}

/* --------------------------------------------
   6. FORMS
   -------------------------------------------- */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--pd-border);
    transition: var(--transition-fast);
    font-size: 0.95rem;
    background-color: var(--pd-surface);
}
.form-control:focus {
    border-color: var(--pd-primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 100, 0.15);
}

/* --------------------------------------------
   7. CARDS
   -------------------------------------------- */
.card {
    border: 1px solid var(--pd-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    background-color: var(--pd-surface);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* --------------------------------------------
   8. NAVBAR
   -------------------------------------------- */
.pd-navbar {
    background-color: rgba(251, 248, 242, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
}
.pd-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.pd-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--pd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pd-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.pd-brand-text .pd-brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--pd-heading);
    letter-spacing: -0.02em;
}
.pd-brand-text .pd-brand-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--pd-text-muted);
    text-transform: uppercase;
}
.pd-navbar .nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    color: var(--pd-text);
    position: relative;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}
.pd-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pd-primary);
    transition: width 0.25s ease;
}
.pd-navbar .nav-link:hover {
    color: var(--pd-primary);
    transform: translateY(-2px);
}
.pd-navbar .nav-link:hover::after {
    width: 100%;
}

/* --------------------------------------------
   9. HERO SECTION
   -------------------------------------------- */
.hero-section {
    padding: 7rem 0 5rem;
    background: linear-gradient(160deg, #FBF8F2 0%, #F6F1E6 45%, #E9F1EA 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(59, 130, 100, 0.10) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--pd-heading);
    margin-bottom: 1.25rem;
}
.hero-lead {
    font-size: 1.1rem;
    color: var(--pd-text-muted);
    max-width: 560px;
    line-height: 1.7;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --------------------------------------------
   10. FEATURE SECTION (Layanan)
   -------------------------------------------- */
.feature-card {
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #2E7D57;
}
.feature-card .feature-icon i {
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon i {
    transform: scale(1.08);
}
.feature-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    display: inline-block;
}

/* --------------------------------------------
   11. ALUR PELAYANAN (Cara Kerja)
   -------------------------------------------- */
.step-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
}
.step-card-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    display: flex;
    justify-content: center;
}
.step-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 1.75rem 0.75rem 1.5rem;
    text-align: center;
    width: 100%;
    min-height: 170px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(46, 125, 87, 0.08);
    border-color: #2E7D57;
}
.step-icon {
    font-size: 2.4rem;
    color: #2E7D57;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
    line-height: 1;
}
.step-card:hover .step-icon {
    opacity: 1;
    transform: scale(1.06);
}
.step-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pd-heading);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0.1rem;
}
.step-sub {
    font-size: 0.8rem;
    color: var(--pd-text-muted);
    font-weight: 500;
}
.step-arrow {
    flex: 0 0 auto;
    width: 36px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
    color: #2E7D57;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
    user-select: none;
    padding: 0 0.25rem;
}
.step-container:hover .step-arrow {
    opacity: 0.9;
    transform: translateX(4px);
}

/* --------------------------------------------
   12. STATISTIK SECTION
   -------------------------------------------- */
.stat-number {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pd-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pd-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --------------------------------------------
   13. FOOTER
   -------------------------------------------- */
.pd-footer {
    background-color: var(--pd-primary-dark);
    color: rgba(255, 255, 255, 0.75);
}
.pd-footer a { color: rgba(255, 255, 255, 0.75); }
.pd-footer a:hover { color: #fff; }
.pd-footer h5,
.pd-footer .h5 { color: #fff; }
.pd-footer hr { border-color: rgba(255, 255, 255, 0.15); }

/* --------------------------------------------
   14. BADGES
   -------------------------------------------- */
.badge {
    padding: 0.5em 0.85em;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* Tables */
.table-responsive { border-radius: 1rem; background: var(--pd-surface); padding: 0; }
.table { margin-bottom: 0; }
.table th {
    border-top: none;
    border-bottom: 1px solid var(--pd-border);
    background-color: var(--pd-bg-alt);
    color: var(--pd-text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1rem 1.25rem;
}
.table td {
    vertical-align: middle;
    color: var(--pd-text);
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pd-border);
}
.table tbody tr:hover { background-color: var(--pd-bg-alt); }
.table tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------
   16. AUTH LAYOUT
   -------------------------------------------- */

.form-floating > .form-control { height: calc(3.5rem + 2px); line-height: 1.25; }
.form-floating > label { padding: 1rem 1rem; color: var(--pd-text-muted); }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--pd-primary);
    transform: scale(.85) translateY(-.75rem) translateX(.15rem);
}

.role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.3rem;
    background: var(--pd-bg-alt);
    border-radius: 0.9rem;
}
.role-toggle button {
    border: none;
    background: transparent;
    padding: 0.65rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pd-text-muted);
    transition: var(--transition-fast);
}
.role-toggle button.active { background: var(--pd-surface); color: var(--pd-primary); box-shadow: var(--shadow-sm); }

/* --------------------------------------------
   18. LIVE SEARCH
   -------------------------------------------- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   19. PROGRESS STEP (Surat)
   -------------------------------------------- */
.step-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: var(--pd-surface);
    border: 3px solid var(--pd-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--pd-text-muted);
    font-weight: 700; font-size: 1.1rem;
    transition: var(--transition-base);
}
.step-label { font-size: 0.9rem; font-weight: 600; color: var(--pd-text-muted); }

/* --------------------------------------------
   20. EXTRA UTILITIES
   -------------------------------------------- */
@keyframes pdPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* --------------------------------------------
   21. RESPONSIVE
   -------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.3rem; }

    .step-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.5rem;
    }
    .step-card-wrapper {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    .step-arrow { display: none; }
    .step-card {
        min-height: 150px;
        padding: 1.5rem 0.5rem 1.25rem;
    }
    .stat-number { font-size: 1.8rem; }
}

@media (max-width: 767.98px) {
    .feature-card .card-body { padding: 1.75rem !important; }

    .hero-title { font-size: 1.8rem !important; }
    .step-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .step-card-wrapper {
        flex: 0 0 100%;
        max-width: 220px;
    }
    .step-card {
        min-height: 130px;
        padding: 1.25rem 0.5rem 1rem;
    }
    .step-icon { font-size: 2rem; }
    .step-label { font-size: 1rem; }
    .step-sub { font-size: 0.75rem; }

    #statistik .col-lg-8 { text-align: center; }
    #statistik h2 { font-size: 1.8rem !important; }
    #statistik p { margin-left: auto; margin-right: auto; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.7rem; }
}

/* ==========================================================================
   Kontak Section – Modern Contact
   ========================================================================== */
.contact-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(46, 125, 87, 0.08);
    border-color: #2E7D57;
}

.contact-card .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.06);
}

.contact-card .fa-arrow-right {
    transition: transform 0.3s ease;
}

.contact-card:hover .fa-arrow-right {
    transform: translateX(4px);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: 0 12px 32px rgba(46, 125, 87, 0.06);
    border-color: #D1E7D1;
}

.contact-form-card .form-control {
    border-radius: 12px;
    border-color: #E5E7EB;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: #2E7D57;
    box-shadow: 0 0 0 4px rgba(46, 125, 87, 0.10);
}

.contact-form-card .form-label {
    color: var(--pd-heading);
    margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
    .contact-form-card { padding: 1.5rem; }
}

@media (max-width: 767.98px) {
    #kontak .col-lg-5 { text-align: center; }
    #kontak p { margin-left: auto; margin-right: auto; }
    .contact-card {
        justify-content: center;
        padding: 0.75rem 1rem !important;
    }
    .contact-card .fa-arrow-right { display: none; }
    .contact-form-card { padding: 1.25rem; }
    .contact-form-card .row.g-3 { gap: 0.75rem; }
    .contact-form-card .form-label { font-size: 0.8rem !important; }
}

/* ============================================================
   STATISTIK FOOTER - TANPA BORDER, JAM BERPUTAR TERUS
   ============================================================ */
:root {
    --status-color: #1A56DB;
    --status-color-rgb: 26, 86, 219;
    --status-light: rgba(26, 86, 219, 0.10);
    --status-hover: rgba(26, 86, 219, 0.18);
    --status-glow: rgba(26, 86, 219, 0.50);
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 12px rgba(26, 86, 219, 0.50);
    }
    50% { 
        opacity: 0.35; 
        transform: scale(0.75); 
        box-shadow: 0 0 4px rgba(26, 86, 219, 0.10);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   HERO STATS - ANIMASI PREMIUM
   ============================================================ */

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

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

/* --- Tabel Struktur Pemerintahan (modern & interaktif) --- */
.table-struktur {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 6px;
}
.table-struktur thead th {
    border: none;
    background: rgba(46, 125, 87, 0.06);
    color: var(--pd-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    border-radius: 10px 10px 0 0;
}
.table-struktur tbody tr {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUpRow 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.table-struktur tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table-struktur tbody tr:nth-child(2) { animation-delay: 0.10s; }
.table-struktur tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table-struktur tbody tr:nth-child(4) { animation-delay: 0.20s; }
.table-struktur tbody tr:nth-child(5) { animation-delay: 0.25s; }
.table-struktur tbody tr:nth-child(6) { animation-delay: 0.30s; }
.table-struktur tbody tr:nth-child(7) { animation-delay: 0.35s; }
.table-struktur tbody tr:nth-child(8) { animation-delay: 0.40s; }
.table-struktur tbody tr:nth-child(9) { animation-delay: 0.45s; }

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

.table-struktur tbody tr:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.01) translateX(4px);
    box-shadow: 0 8px 24px rgba(46, 125, 87, 0.08);
    border-left: 3px solid #2E7D57;
}
.table-struktur tbody td {
    border: none;
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--pd-text);
    font-size: 0.92rem;
}
.table-struktur tbody td:first-child {
    font-weight: 600;
    color: var(--pd-text-muted);
    font-size: 0.85rem;
}
.table-struktur tbody td strong {
    color: var(--pd-heading);
    font-weight: 600;
}

.table-struktur .badge-struktur {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    background: rgba(46, 125, 87, 0.10);
    color: #2E7D57;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}
.table-struktur tbody tr:hover .badge-struktur {
    background: #2E7D57;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .table-struktur thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.6rem;
    }
    .table-struktur tbody td {
        padding: 0.6rem 0.6rem;
        font-size: 0.8rem;
    }
    .table-struktur .badge-struktur {
        font-size: 0.5rem;
        padding: 0.1rem 0.5rem;
    }
}

/* ============================================================
   NAVBAR - TOMBOL MASUK & DAFTAR (ANIMATIF)
   ============================================================ */
.navbar .btn-outline-masuk {
    background: transparent;
    color: #2E7D57;
    border: 2px solid #2E7D57;
    padding: 0.55rem 1.8rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    display: inline-block;
}

.navbar .btn-outline-masuk:hover {
    background: #2E7D57;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(46, 125, 87, 0.25);
}

.navbar .btn-outline-masuk:active {
    transform: scale(0.96);
}

.navbar .btn-daftar {
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    color: #fff;
    border: none;
    padding: 0.55rem 1.8rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(46, 125, 87, 0.25);
    text-decoration: none;
    display: inline-block;
}

.navbar .btn-daftar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(46, 125, 87, 0.35);
    background: linear-gradient(135deg, #1D5C3E, #0F3B8C);
}

.navbar .btn-daftar:active {
    transform: scale(0.96);
}

@media (max-width: 767.98px) {
    .navbar .btn-outline-masuk,
    .navbar .btn-daftar {
        padding: 0.45rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   NAVBAR - ANIMATIF PREMIUM
   ============================================================ */
.pd-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.pd-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-navbar .navbar-brand:hover {
    transform: scale(1.02);
}

.pd-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.pd-brand-mark::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(46, 125, 87, 0.15);
    animation: brandPulse 2.5s ease-in-out infinite;
}

.pd-brand-mark::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(46, 125, 87, 0.06);
    animation: brandPulse 2.5s ease-in-out infinite 0.8s;
}

@keyframes brandPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pd-navbar .navbar-brand:hover .pd-brand-mark {
    transform: rotate(-8deg) scale(1.05);
}

.pd-brand-text .pd-brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--pd-heading);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.pd-navbar .navbar-brand:hover .pd-brand-name {
    color: #2E7D57;
}

.pd-brand-text .pd-brand-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--pd-text-muted);
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pd-navbar .navbar-brand:hover .pd-brand-tag {
    opacity: 1;
}

.pd-navbar .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 1.2rem !important;
    color: var(--pd-text);
    position: relative;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 40px;
}

.pd-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #2E7D57, #1A56DB);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%);
}

.pd-navbar .nav-link:hover {
    color: #2E7D57;
    transform: translateY(-2px) scale(1.02);
}

.pd-navbar .nav-link:hover::after {
    width: 60%;
}

.pd-navbar .nav-link.active {
    color: #2E7D57;
    background: rgba(46, 125, 87, 0.06);
}

.pd-navbar .nav-link.active::after {
    width: 60%;
}

.navbar .btn-masuk {
    background: transparent;
    color: #2E7D57;
    border: 2px solid #2E7D57;
    padding: 0.45rem 1.6rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.navbar .btn-masuk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 50rem;
}

.navbar .btn-masuk:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(46, 125, 87, 0.25);
    border-color: transparent;
}

.navbar .btn-masuk:hover::before {
    opacity: 1;
}

.navbar .btn-masuk:active {
    transform: scale(0.95);
}

.navbar .btn-masuk span {
    position: relative;
    z-index: 1;
}

.navbar .btn-daftar {
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    color: #fff;
    border: none;
    padding: 0.45rem 1.8rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(46, 125, 87, 0.20);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.navbar .btn-daftar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1D5C3E, #0F3B8C);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 50rem;
}

.navbar .btn-daftar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(46, 125, 87, 0.35);
}

.navbar .btn-daftar:hover::before {
    opacity: 1;
}

.navbar .btn-daftar:active {
    transform: scale(0.95);
}

.navbar .btn-daftar span {
    position: relative;
    z-index: 1;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 12px;
    background: rgba(46, 125, 87, 0.04);
}

.navbar-toggler:hover {
    background: rgba(46, 125, 87, 0.10);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(46, 125, 87, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: rotate(90deg);
}

@media (max-width: 991.98px) {
    .pd-navbar .nav-link {
        padding: 0.6rem 1.2rem !important;
        border-radius: 12px;
    }
    .pd-navbar .nav-link::after {
        display: none;
    }
    .pd-navbar .nav-link:hover {
        background: rgba(46, 125, 87, 0.06);
        transform: translateX(4px);
    }
    .pd-navbar .nav-link.active {
        background: rgba(46, 125, 87, 0.08);
    }
    .navbar .btn-masuk,
    .navbar .btn-daftar {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .pd-navbar {
        padding: 0.6rem 0;
    }
    .pd-brand-mark {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .pd-brand-text .pd-brand-name {
        font-size: 1rem;
    }
}

/* ============================================================
   BACKGROUND ANIMATION
   ============================================================ */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(-45deg, #FBF8F2, #EAF3EA, #D4E8D4, #E3F0F5, #F5F9F5);
    background-size: 400% 400%;
    animation: bgGradient 18s ease-in-out infinite;
    background-attachment: fixed;
}

@keyframes bgGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.pd-navbar {
    background: rgba(255, 255, 255, 0.20) !important;
    backdrop-filter: blur(16px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
    border: none !important;
    box-shadow: none !important;
}

footer {
    background: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* ============================================================
   CUSTOM I-BEAM HITAM UNTUK SEMUA INPUT (GLOBAL)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOCAxVjE1TTMgMUgxM00zIDE1SDEzIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIi8+PC9zdmc+") 8 8, text !important;
    caret-color: #000000 !important;
    color: #000000 !important;
}

button,
input[type="submit"],
input[type="button"],
input[type="checkbox"] {
    cursor: pointer !important;
}

/* Footer halaman publik (includes/footer.php) */
.site-footer {
    background: transparent;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(46, 125, 87, 0.08);
}

/* --------------------------------------------
   KOMPONEN TAMBAHAN HALAMAN PUBLIK
   Pencarian UMKM dengan saran (AJAX) & tombol filter kategori
   -------------------------------------------- */
.list-toolbar {
    position: relative;
    z-index: 10; /* dropdown saran tampil di atas kartu */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 1.75rem;
}

.search-box {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
}
.search-box > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7C8B82;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}
.search-box input {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.8rem 1.1rem 0.8rem 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 125, 87, 0.15);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: #1a2e24;
    box-shadow: 0 8px 24px rgba(46, 125, 87, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-box input:focus {
    outline: none;
    border-color: #2E7D57;
    box-shadow: 0 0 0 4px rgba(46, 125, 87, 0.12);
}

.saran-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(46, 125, 87, 0.1);
    box-shadow: 0 20px 45px rgba(15, 40, 25, 0.14);
    max-height: 320px;
    overflow-y: auto;
    animation: saranMuncul 0.18s ease-out;
}
@keyframes saranMuncul {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.saran-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.88rem;
}
.saran-list li.active,
.saran-list li[role="option"]:hover { background: rgba(46, 125, 87, 0.08); }
.saran-list .saran-kosong { color: #7C8B82; cursor: default; justify-content: center; }
.saran-ikon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(46, 125, 87, 0.08);
    color: #2E7D57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.saran-ikon img { width: 100%; height: 100%; object-fit: cover; }
.saran-nama { flex: 1; font-weight: 600; color: #1a2e24; }
.saran-nama mark { padding: 0; background: rgba(250, 204, 21, 0.45); color: inherit; border-radius: 3px; }
.saran-kategori {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2E7D57;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 125, 87, 0.15);
    background: rgba(255, 255, 255, 0.75);
    color: #3F5147;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.chip span {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(46, 125, 87, 0.1);
    font-size: 0.68rem;
    text-align: center;
}
.chip:hover { border-color: #2E7D57; color: #2E7D57; transform: translateY(-1px); }
.chip.active {
    background: linear-gradient(135deg, #2E7D57, #1A56DB);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(46, 125, 87, 0.22);
}
.chip.active span { background: rgba(255, 255, 255, 0.25); }

.hasil-kosong {
    padding: 1.5rem;
    text-align: center;
    color: #6B7A71;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
}

.muncul { animation: kartuMuncul 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes kartuMuncul {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 576px) {
    .search-box { max-width: none; }
}
