/* ============================================================
   infographics_dkb.css
   Infografis DKB — Kabupaten Bangka
   Nuansa Pemerintahan: Deep Navy + Gold + Warm Ivory
   ============================================================ */

/* ── TOKEN DESIGN SYSTEM ──────────────────────────────────── */
:root {
    --gov-teal-400: #1D9E75;
    --gov-teal-300: #5DCAA5;
    --gov-blue-400: #378ADD;
    /* ── Palet Pemerintahan ────────────────────────────────── */
    --gov-navy-900: #0A1F33;
    /* Deep navy — utama */
    --gov-navy-800: #0F2A44;
    --gov-navy-700: #15355F;
    --gov-navy-600: #1B4178;
    --gov-navy-500: #2558A3;
    --gov-navy-100: #D6E4F5;
    --gov-navy-50: #EEF3FA;

    --gov-gold-700: #9A7B1C;
    /* Gold tua */
    --gov-gold-600: #B8922A;
    --gov-gold-500: #C9A227;
    /* Gold utama */
    --gov-gold-400: #D4B24A;
    --gov-gold-300: #E5C76B;
    --gov-gold-200: #F0DC9A;
    --gov-gold-100: #FAF0C9;
    --gov-gold-50: #FDF8E7;

    --gov-ivory-100: #F5F1E8;
    /* Warm ivory — background */
    --gov-ivory-50: #FAF8F3;
    --gov-cream: #FBF9F4;

    --gov-ink-900: #1A1A1A;
    --gov-ink-700: #2D3748;
    --gov-ink-500: #4A5568;
    --gov-ink-400: #718096;
    --gov-ink-300: #A0AEC0;
    --gov-ink-200: #CBD5E0;
    --gov-ink-100: #E2E8F0;

    /* Warna kategori statistik */
    --stat-male: #1B4178;
    /* Navy — Laki-laki */
    --stat-female: #8B2E5C;
    /* Magenta tua — Perempuan */
    --stat-total: #0F2A44;
    /* Deep navy — Total */

    /* ── Typography ────────────────────────────────────────── */
    --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* ── Shadow & Elevation ────────────────────────────────── */
    --shadow-xs: 0 1px 2px rgba(10, 31, 51, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 31, 51, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 31, 51, 0.08);
    --shadow-lg: 0 12px 32px rgba(10, 31, 51, 0.12);
    --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.18);

    /* ── Animation ─────────────────────────────────────────── */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.18s;
    --dur-base: 0.32s;
    --dur-slow: 0.55s;
}

/* ══════════════════════════════════════════════════════════════
   BODY — Background dengan Motif Geometris Pemerintahan
   Layer:
   1. Diamond/lozenge pattern halus (opacity rendah)
   2. Radial glow di sudut (navy & gold)
   3. Gradient warm ivory → cream
   ══════════════════════════════════════════════════════════════ */
body {
    font-family: var(--font-body);
    color: var(--gov-ink-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;

    background-color: #042C53;
    background-image:
        /* Grid dot pattern halus */
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        /* Glow teal — kiri bawah */
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(29, 158, 117, 0.28) 0%, transparent 70%),
        /* Glow biru — kanan atas */
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(55, 138, 221, 0.22) 0%, transparent 70%),
        /* Gradient utama diagonal navy → biru → teal */
        linear-gradient(135deg, #042C53 0%, #185FA5 48%, #085041 100%);

    background-size:
        40px 40px,
        100% 100%,
        100% 100%,
        100% 100%;
    background-attachment: fixed;
    position: relative;
}

/* Aksen bar atas (teal gradient) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1D9E75, #5DCAA5, #1D9E75);
    z-index: 9999;
    pointer-events: none;
}

/* Aksen bar kiri (teal vertikal) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #5DCAA5, #1D9E75);
    z-index: 9999;
    pointer-events: none;
}

/* Ornamen sudut — lingkaran konsentrik & segitiga (via SVG background) */
.page-bg-deco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Lingkaran konsentrik kanan atas */
.page-bg-deco::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    top: -300px;
    right: -200px;
    border-radius: 50%;
    box-shadow:
        0 0 0 0px rgba(255, 255, 255, 0.00),
        0 0 0 70px rgba(255, 255, 255, 0.05),
        0 0 0 140px rgba(255, 255, 255, 0.04),
        0 0 0 210px rgba(255, 255, 255, 0.03),
        0 0 0 280px rgba(255, 255, 255, 0.025);
}

/* Lingkaran konsentrik kiri bawah (teal) */
.page-bg-deco::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    bottom: -280px;
    left: -180px;
    border-radius: 50%;
    box-shadow:
        0 0 0 0px rgba(93, 202, 165, 0.00),
        0 0 0 65px rgba(93, 202, 165, 0.07),
        0 0 0 130px rgba(93, 202, 165, 0.06),
        0 0 0 195px rgba(93, 202, 165, 0.05),
        0 0 0 260px rgba(93, 202, 165, 0.04);
}

/* Pastikan konten di atas layer dekorasi */
.container {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   HEADER — Judul Halaman
   ══════════════════════════════════════════════════════════════ */
.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gov-ink-100);
    gap: 1rem;
    position: relative;
}

/* Garis emas tipis di bawah border */
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--gov-gold-500), transparent);
}

@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: center;
    }
}

.page-header__subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gov-gold-600);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header__subtitle::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gov-gold-500);
}

.page-header__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gov-gold-100);
    margin-top: 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Tombol Kembali — gaya outline formal */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--gov-ink-200);
    color: var(--gov-navy-700);
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    transition: all var(--dur-fast) var(--ease-smooth);
    white-space: nowrap;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--gov-navy-800);
    border-color: var(--gov-navy-800);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-back svg {
    transition: transform var(--dur-fast) var(--ease-smooth);
}

.btn-back:hover svg {
    transform: translateX(-2px);
}

/* ══════════════════════════════════════════════════════════════
   FILTER CARD — Panel filter dengan aksen emas
   ══════════════════════════════════════════════════════════════ */
.filter-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 2px solid rgba(93, 202, 165, 0.7);
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(4, 44, 83, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-card__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #5DCAA5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    padding: 0.6rem 2rem 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235DCAA5'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1rem;
    transition: border-color 0.18s, background-color 0.18s;
}

.filter-select:hover {
    border-color: rgba(93, 202, 165, 0.5);
    background-color: rgba(255, 255, 255, 0.11);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(93, 202, 165, 0.7);
    box-shadow: 0 0 0 3px rgba(93, 202, 165, 0.15);
}

.filter-select option {
    background: #0C447C;
    color: #ffffff;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1D9E75, #0F6E56);
    color: #ffffff;
    padding: 0.65rem 1.4rem;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(93, 202, 165, 0.4);
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(29, 158, 117, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.18s var(--ease-smooth);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #5DCAA5, #1D9E75);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 158, 117, 0.45);
}

/* ══════════════════════════════════════════════════════════════
   CONTEXT BANNER — Header data dengan nuansa resmi
   ══════════════════════════════════════════════════════════════ */
.context-banner {
    background: linear-gradient(135deg,
            rgba(4, 44, 83, 0.85) 0%,
            rgba(21, 64, 137, 0.8) 50%,
            rgba(8, 80, 65, 0.75) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(93, 202, 165, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(4, 44, 83, 0.4);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    animation: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    /* matikan bannerGlow lama */
}

.context-banner::before {
    background: linear-gradient(90deg,
            transparent,
            #5DCAA5 30%,
            #9FE1CB 50%,
            #5DCAA5 70%,
            transparent);
    height: 2px;
}

/* ← baru tambahkan */
.context-banner__badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    align-items: center;
    /* ← tambahkan ini agar tidak menyempit */
}

.context-banner::after {
    background-image:
        linear-gradient(45deg, rgba(93, 202, 165, 0.03) 25%, transparent 25%, transparent 75%, rgba(93, 202, 165, 0.03) 75%);
    background-size: 20px 20px;
}

.context-banner__eyebrow {
    color: #5DCAA5;
}

.context-banner__title {
    color: #ffffff;
}

.context-banner__subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.context-banner__subtitle strong {
    color: #9FE1CB;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(93, 202, 165, 0.28);
    color: #ffffff;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
}

.badge-pill svg {
    color: #5DCAA5;
}

.badge-pill:hover {
    background: rgba(93, 202, 165, 0.12);
    border-color: rgba(93, 202, 165, 0.5);
}

/* ── KARTU STATISTIK (Layout Baru & Background Gradien) ── */
.stat-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all var(--dur-base) var(--ease-spring);
    will-change: transform, box-shadow;

    /* Default background: Deep Navy (untuk Total) */
    background: linear-gradient(135deg, var(--gov-navy-800) 0%, var(--gov-navy-900) 100%);
}

/* Background spesifik per kategori (tetap menggunakan palet yang sama) */
.stat-card--total {
    background: linear-gradient(135deg, var(--gov-navy-800) 0%, var(--gov-navy-900) 100%);
    border-color: rgba(201, 162, 39, 0.3);
    /* Aksen emas tipis */
}

.stat-card--male {
    background: linear-gradient(135deg, #1B4178 0%, #0A1F33 100%);
    border-color: rgba(147, 197, 253, 0.2);
}

.stat-card--female {
    background: linear-gradient(135deg, #8B2E5C 0%, #4A1230 100%);
    border-color: rgba(249, 168, 212, 0.2);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 31, 51, 0.25);
}

/* Header: Ikon dan Label sejajar horizontal (kesamping) & center vertikal */
.stat-card__header {
    display: flex;
    align-items: center;
    /* Center vertikal */
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Wrapper Ikon */
.stat-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* Warna Ikon per kartu */
.stat-card--total .stat-card__icon-wrap svg {
    color: var(--gov-gold-300);
}

.stat-card--male .stat-card__icon-wrap svg {
    color: #93C5FD;
}

.stat-card--female .stat-card__icon-wrap svg {
    color: #F9A8D4;
}

/* Label (Total Penduduk, dll) */
.stat-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.2;
}

/* ANGKA: Putih, Lebih Besar, Lebih Tebal */
.stat-card__value {
    font-size: 3rem;
    /* Ukuran diperbesar */
    font-weight: 800;
    /* Font lebih tebal (Extra Bold) */
    color: #ffffff;
    /* Warna Putih */
    line-height: 1.1;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    font-variant-numeric: tabular-nums;
    /* Agar angka sejajar rapi */
    transition: transform var(--dur-fast) var(--ease-spring);
}

.stat-card:hover .stat-card__value {
    transform: scale(1.02);
}

/* Satuan (jiwa) */
.stat-card__unit {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.35rem;
    letter-spacing: 0.02em;
}

/* Watermark Background Character (dibuat sangat subtle di background gelap) */
.stat-card__bg-char {
    position: absolute;
    right: -0.5rem;
    top: -1rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* Sangat transparan */
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 1;
    font-family: 'Georgia', serif;
}

/* Shimmer effect disesuaikan untuk background gelap */
.stat-card>.shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    transition: background-position 0.8s var(--ease-smooth);
    pointer-events: none;
    z-index: 1;
}

.stat-card:hover>.shimmer {
    background-position: -20% 0;
}


/* ══════════════════════════════════════════════════════════════
   CHART CARDS — Glassmorphism subtle
   ══════════════════════════════════════════════════════════════ */
.chart-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(4, 44, 83, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s, border-color 0.25s;
}

.chart-card::before {
    left: 1.5rem;
    right: 1.5rem;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(93, 202, 165, 0.6), transparent);
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(4, 44, 83, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(93, 202, 165, 0.2);
}

.chart-card__title {
    color: #ffffff;
}

.chart-card__subtitle {
    color: rgba(255, 255, 255, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.empty-state {
    background: #ffffff;
    border: 1px solid var(--gov-navy-100);
    border-top: 3px solid var(--gov-gold-500);
    border-radius: 8px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--gov-ink-700);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(15, 42, 68, 0.02) 25%, transparent 25%, transparent 75%, rgba(15, 42, 68, 0.02) 75%);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    pointer-events: none;
}

.empty-state__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gov-navy-800);
    margin-bottom: 0.35rem;
    position: relative;
}

.empty-state__desc {
    font-size: 0.875rem;
    color: var(--gov-ink-500);
    position: relative;
}

.empty-state__desc strong {
    color: var(--gov-navy-700);
    border-bottom: 1px solid var(--gov-gold-400);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — Sumber data
   ══════════════════════════════════════════════════════════════ */
.data-footer {
    margin-top: 3rem;
    border-top: 2px solid var(--gov-navy-800);
    background: linear-gradient(180deg, var(--gov-navy-900) 0%, var(--gov-navy-800) 100%);
    position: relative;
    overflow: hidden;
}

/* Garis emas di atas footer */
.data-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--gov-gold-500) 20%,
            var(--gov-gold-300) 50%,
            var(--gov-gold-500) 80%,
            transparent);
}

/* Pattern halus di footer */
.data-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(201, 162, 39, 0.03) 25%, transparent 25%, transparent 75%, rgba(201, 162, 39, 0.03) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    pointer-events: none;
}

.data-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .data-footer__inner {
        flex-direction: row;
    }
}

.data-footer__icon-wrap {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gov-gold-500), var(--gov-gold-700));
    border: 1px solid var(--gov-gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
    transition: transform var(--dur-fast) var(--ease-spring);
}

.data-footer__icon-wrap svg {
    color: var(--gov-navy-900);
}

.data-footer__icon-wrap:hover {
    transform: rotate(-6deg) scale(1.08);
}

.data-footer__source-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gov-gold-400);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.data-footer__source-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.data-footer__source-text span {
    color: var(--gov-gold-300);
    font-weight: 700;
}

.data-footer__copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   ANIMASI
   ══════════════════════════════════════════════════════════════ */

/* Stagger fade-in */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.animate-in {
    animation: fadeSlideUp var(--dur-base) var(--ease-out) both;
}

.animate-delay-1 {
    animation-delay: 0.06s;
}

.animate-delay-2 {
    animation-delay: 0.12s;
}

.animate-delay-3 {
    animation-delay: 0.18s;
}

.animate-delay-4 {
    animation-delay: 0.24s;
}

.animate-delay-5 {
    animation-delay: 0.32s;
}

.animate-delay-6 {
    animation-delay: 0.40s;
}

/* Banner breathing glow — lebih subtle */
@keyframes bannerGlow {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(10, 31, 51, 0.25), 0 2px 8px rgba(10, 31, 51, 0.15);
    }

    50% {
        box-shadow: 0 12px 36px rgba(10, 31, 51, 0.32), 0 4px 12px rgba(201, 162, 39, 0.12);
    }
}

.context-banner {
    animation: bannerGlow 6s ease-in-out infinite;
}

/* Filter focus */
@keyframes selectFocusIn {
    from {
        box-shadow: 0 0 0 0px rgba(27, 65, 120, 0);
    }

    to {
        box-shadow: 0 0 0 3px rgba(27, 65, 120, 0.12);
    }
}

.filter-select:focus {
    animation: selectFocusIn var(--dur-fast) var(--ease-out) forwards;
}

/* Count-up pulse */
@keyframes countPulse {
    0% {
        opacity: 0.4;
        transform: scale(0.94);
    }

    60% {
        opacity: 1;
        transform: scale(1.04);
    }

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

.stat-card__value.counting {
    animation: countPulse 0.7s var(--ease-spring) both;
}

/* Empty state float */
@keyframes floatIcon {

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

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

.empty-state svg {
    animation: floatIcon 3.5s ease-in-out infinite;
}

/* Shimmer sweep pada stat card hover */
.stat-card {
    position: relative;
}

.stat-card>.shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(201, 162, 39, 0.08) 50%,
            transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    transition: background-position 0.8s var(--ease-smooth);
    pointer-events: none;
    z-index: 1;
}

.stat-card:hover>.shimmer {
    background-position: -20% 0;
}

/* Scrollbar — nuansa pemerintahan */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gov-ivory-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gov-navy-600), var(--gov-navy-800));
    border-radius: 4px;
    border: 2px solid var(--gov-ivory-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gov-gold-600), var(--gov-gold-700));
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .page-header__title {
        font-size: 1.5rem;
    }

    .context-banner {
        padding: 1.25rem;
    }

    .context-banner__title {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    }

    .stat-card__value {
        font-size: 1.85rem;
    }

    .stat-card__bg-char {
        font-size: 5rem;
    }

    body::before,
    body::after {
        width: 180px;
        height: 180px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRINT — tampilan cetak formal
   ══════════════════════════════════════════════════════════════ */
@media print {
    body {
        background: #ffffff !important;
    }

    .btn-back,
    .filter-card {
        display: none;
    }

    .stat-card,
    .chart-card,
    .context-banner {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
}