/* ==========================================================================
   PORTAL RESMI KPU KOTA MATARAM — SISTEM DESAIN KELEMBAGAAN NEGARA
   Gaya: Sovereign Institutional Editorial & Command Center
   Karakter: Kertas Negara (Warm Paper), Tinta Dalam, Merah KPU (#8B1E19), 
             Aksen Emas Garuda (#C59B27 / #D4AF37), Garis Rambut Metalik,
             Angka Tabular Monospace, & Efek Interaktif Taktil.
   Anti-AI Design: Menghilangkan neon berlebih, glassmorphism buram acak,
                   dan warna template generik.
   ========================================================================== */

:root {
    /* Palet Warna Resmi Republik Indonesia & KPU */
    --kpu-primary: #8b1e19;
    --kpu-deep: #681410;
    --kpu-crimson: #a3271f;
    --kpu-gold: #c59b27;
    --kpu-gold-light: #e5b948;
    --kpu-gold-dark: #967215;
    --kpu-ink: #0f141c;
    --kpu-charcoal: #1e2633;
    --kpu-muted: #5e6b7e;
    --kpu-paper: #faf8f5;
    --kpu-paper-subtle: #f2eee8;
    --kpu-rule: #e4dfd5;
    --kpu-rule-gold: rgba(197, 155, 39, 0.35);

    /* Panel Admin Gelap (Sovereign Command Center) */
    --cmd-bg: #090d15;
    --cmd-surface: #101622;
    --cmd-surface-hover: #161e2e;
    --cmd-card: #131a28;
    --cmd-border: rgba(255, 255, 255, 0.08);
    --cmd-border-gold: rgba(197, 155, 39, 0.28);
    --cmd-text: #f1f5f9;
    --cmd-muted: #8b99ad;

    /* Timing Kurva Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Font Tokens: Unified to Plus Jakarta Sans for a clean, consistent, professional look */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: var(--font-sans);
    --font-mono: var(--font-sans);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body, html, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, label, th, td, .font-serif, .font-mono, .headline-kpu, code, kbd, pre {
    font-family: var(--font-sans) !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--kpu-paper);
    color: var(--kpu-ink);
}

/* Guard: Pastikan Logo KPU selalu proporsional dan tidak pernah membesar liar */
img[src*="logo-kpu"], img#kpu-brand-logo {
    max-width: 48px !important;
    max-height: 48px !important;
    width: auto;
    height: auto;
    object-fit: contain !important;
}

::selection {
    background: var(--kpu-primary);
    color: #ffffff;
}

/* ---------- 1. LATAR KELEMBAGAAN & TEXTURE KEAMANAN (GUILLOCHE) ---------- */
/* Tekstur garis halus mikro seperti kertas suara / sertifikat resmi */
.bg-guilloche-light {
    background-color: #fbf9f6;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(197, 155, 39, 0.05) 0%, transparent 60%),
        linear-gradient(rgba(228, 223, 213, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(228, 223, 213, 0.4) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
}

/* Latar Admin: Command Center dengan kisi keamanan presisi */
.bg-command-grid {
    background-color: var(--cmd-bg);
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(139, 30, 25, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(197, 155, 39, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* ---------- 2. TIPOGRAFI PRESISI KONSISTEN (UNIFIED PLUS JAKARTA SANS) ---------- */
h1, h2, h3, h4, h5, h6, .headline-kpu {
    font-family: var(--font-sans) !important;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.tnum {
    font-variant-numeric: tabular-nums;
}

/* Kicker Badge Resmi */
.kicker-official {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: rgba(139, 30, 25, 0.08);
    color: var(--kpu-primary);
    border: 1px solid rgba(139, 30, 25, 0.22);
}

.kicker-official.gold {
    background: rgba(197, 155, 39, 0.12);
    color: #926c0e;
    border-color: rgba(197, 155, 39, 0.3);
}

.kicker-official.dark {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- 3. KARTU & PANEL INTERAKTIF (EFEK HOVER & DEPTH) ---------- */
/* Kartu Publik */
.kpu-card {
    background: #ffffff;
    border: 1px solid var(--kpu-rule);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 20, 28, 0.04), 0 6px 16px -6px rgba(15, 20, 28, 0.06);
    transition: transform 0.25s var(--ease-out-expo), 
                box-shadow 0.25s var(--ease-out-expo), 
                border-color 0.2s var(--ease-smooth);
    position: relative;
}

.kpu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(139, 30, 25, 0.12), 0 4px 12px -2px rgba(15, 20, 28, 0.05);
    border-color: rgba(139, 30, 25, 0.35);
}

/* Kartu Admin / Command Center */
.cmd-card, .glass-panel {
    background-color: var(--cmd-card) !important;
    border: 1px solid var(--cmd-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: transform 0.25s var(--ease-out-expo), 
                box-shadow 0.25s var(--ease-out-expo), 
                border-color 0.2s var(--ease-smooth),
                background-color 0.2s !important;
    position: relative;
    overflow: hidden;
}

.cmd-card:hover, .glass-panel:hover {
    transform: translateY(-3px) !important;
    border-color: var(--cmd-border-gold) !important;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(197, 155, 39, 0.15) !important;
    background-color: #172132 !important;
}

/* Shimmer Light Bar di Atas Kartu Saat Hover */
.cmd-card::before, .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kpu-gold), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s, transform 0.4s var(--ease-out-expo);
}

.cmd-card:hover::before, .glass-panel:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Seluruh background admin bg-slate-950 otomatis mendapatkan tekstur command grid */
.bg-slate-950, [class*="bg-slate-950"] {
    background-color: var(--cmd-bg) !important;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(139, 30, 25, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(197, 155, 39, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px !important;
}

/* Transform seluruh kartu publik .bg-white.rounded-2xl dengan elevasi taktil */
main .bg-white.rounded-2xl {
    border-color: var(--kpu-rule) !important;
    box-shadow: 0 1px 3px rgba(15, 20, 28, 0.04), 0 6px 16px -6px rgba(15, 20, 28, 0.06) !important;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), border-color 0.2s var(--ease-smooth) !important;
}
main .bg-white.rounded-2xl:hover {
    box-shadow: 0 12px 28px -8px rgba(139, 30, 25, 0.12), 0 4px 12px -2px rgba(15, 20, 28, 0.05) !important;
    border-color: rgba(139, 30, 25, 0.28) !important;
}

/* Tombol aksi admin teal diubah menjadi merah KPU bermartabat */
button.bg-teal-500, a.bg-teal-500, button.bg-teal-600, a.bg-teal-600 {
    background: linear-gradient(180deg, #a3271f 0%, #851c17 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(133, 28, 23, 0.35) !important;
}
button.bg-teal-500:hover, a.bg-teal-500:hover, button.bg-teal-600:hover, a.bg-teal-600:hover {
    background: linear-gradient(180deg, #b32d24 0%, #911f1a 100%) !important;
    box-shadow: 0 6px 20px rgba(133, 28, 23, 0.5) !important;
}

/* Badges teal di admin berubah menjadi gold/crimson berwibawa */
.bg-teal-500\/10, .bg-teal-500\/20, [class*="bg-teal-500/"] {
    background-color: rgba(197, 155, 39, 0.12) !important;
    border-color: rgba(197, 155, 39, 0.28) !important;
    color: #e5b948 !important;
}
.text-teal-300, .text-teal-400 {
    color: #e5b948 !important;
}

/* ---------- 4. SEGEL RESMI NOMOR URUT (OFFICIAL BALLOT SEAL) ---------- */
.ballot-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 17px;
    color: #ffffff;
    background: radial-gradient(circle at 35% 35%, #b32d24, #731511);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(115, 21, 17, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    user-select: none;
    transition: transform 0.25s var(--ease-spring);
}

.ballot-seal:hover {
    transform: scale(1.12) rotate(-3deg);
}

.ballot-seal.gold {
    background: radial-gradient(circle at 35% 35%, #e5b948, #967215);
    box-shadow: 0 4px 12px rgba(150, 114, 21, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    color: #1c1503;
}

/* ---------- 5. STRIPED ANIMATED METERS & PROGRESS BARS ---------- */
/* Bar kemajuan bergaris gerak ala tally resmi */
.progress-meter-striped {
    background-size: 28px 28px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        transparent 75%,
        transparent
    );
    animation: progress-stripes 1.6s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 28px 0; }
}

/* ---------- 6. RADAR & PULSE LIVE INDIKATOR (MULTI-RING) ---------- */
.radar-live-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.radar-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
}

.radar-live-dot::before,
.radar-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid #ef4444;
    animation: radar-pulse 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.radar-live-dot::after {
    animation-delay: 0.75s;
}

@keyframes radar-pulse {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- 7. TOMBOL & KONTROL TAKTIL DENGAN SHEEN HOVER ---------- */
button, .btn-kpu {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.btn-kpu-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    background: linear-gradient(180deg, #a3271f 0%, #851c17 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(133, 28, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.2s var(--ease-smooth);
    overflow: hidden;
}

.btn-kpu-primary:hover {
    background: linear-gradient(180deg, #b32d24 0%, #911f1a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(133, 28, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-kpu-primary:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 1px 3px rgba(133, 28, 23, 0.4);
}

/* Efek kilatan cahaya (Specular Sheen Sweep) */
.btn-kpu-primary::after, .btn-sheen::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: rotate(25deg);
    transition: transform 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.btn-kpu-primary:hover::after, .btn-sheen:hover::after {
    transform: translateX(350%) rotate(25deg);
}

/* Tombol Emas Garuda */
.btn-kpu-gold {
    background: linear-gradient(180deg, #d4af37 0%, #b8860b 100%);
    color: #1a1403;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-kpu-gold:hover {
    background: linear-gradient(180deg, #e5b948 0%, #c59b27 100%);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.5);
}

/* ---------- 8. TOPSTRIP & MASTHEAD KPU ---------- */
.masthead {
    transition: box-shadow 0.3s var(--ease-smooth), background-color 0.3s;
}
.masthead.is-scrolled {
    box-shadow: 0 1px 0 var(--kpu-rule), 0 10px 30px -15px rgba(15, 20, 28, 0.15);
}

.topstrip {
    background: #0b0f19;
    color: #cbd5e1;
    font-size: 11px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topstrip .sep {
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
}

/* ---------- 9. ROUTE PROGRESS BAR (DUAL CRIMSON & GOLD) ---------- */
#kpu-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}
#kpu-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #8b1e19, #d4af37, #ef4444);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transition: width 0.35s var(--ease-out-expo), opacity 0.3s;
}

/* ---------- 10. REVEAL & STAGGER ANIMATIONS ---------- */
.kpu-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
    transition-delay: var(--d, 0ms);
}
.kpu-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Table Hover Striping */
table thead th {
    font-weight: 700 !important;
    letter-spacing: 0.07em;
}
table tbody tr {
    transition: background-color 0.15s var(--ease-smooth);
}

/* Custom Scrollbar Elegan */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(94, 107, 126, 0.32);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(94, 107, 126, 0.58);
}

/* ---------- 11. AKSESIBILITAS ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .kpu-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .progress-meter-striped {
        animation: none !important;
    }
}

/* ---------- 12. SOVEREIGN GIS COMMAND CENTER (GEOCENTER HUD) ---------- */
.geocenter-hud {
    background: rgba(11, 17, 30, 0.94) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9;
    border-radius: 18px;
    position: relative;
}

/* Corner Notch Accents (Gaya Konsol Komando Negara) */
.corner-notch {
    position: relative;
}
.corner-notch::before, .corner-notch::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    pointer-events: none;
    z-index: 10;
}
.corner-notch::before {
    top: 4px;
    left: 4px;
    border-top: 2px solid var(--kpu-gold);
    border-left: 2px solid var(--kpu-gold);
}
.corner-notch::after {
    bottom: 4px;
    right: 4px;
    border-bottom: 2px solid var(--kpu-gold);
    border-right: 2px solid var(--kpu-gold);
}

.geocenter-input {
    background: rgba(18, 26, 43, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    transition: all 0.2s var(--ease-smooth);
}
.geocenter-input:focus, .geocenter-input:focus-within {
    border-color: var(--kpu-gold) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
    background: rgba(22, 33, 56, 0.98) !important;
}

.geocenter-select {
    background-color: rgba(18, 26, 43, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    transition: all 0.2s var(--ease-smooth);
}
.geocenter-select:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
}
.geocenter-select:focus {
    border-color: var(--kpu-gold) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
}

/* Basemap Switcher Metalik */
.basemap-plate {
    background: rgba(11, 17, 30, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.basemap-plate button.active {
    background: linear-gradient(180deg, #a3271f 0%, #851c17 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Leaflet Custom Theme — Model C.Hasil Resmi */
.leaflet-popup-content-wrapper {
    background: #0f1624 !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    padding: 2px !important;
}
.leaflet-popup-tip {
    background: #0f1624 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
}
.leaflet-popup-content {
    margin: 12px 14px !important;
    font-family: var(--font-sans);
}
.leaflet-bar a {
    background-color: rgba(15, 22, 36, 0.95) !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s;
}
.leaflet-bar a:hover {
    background-color: #8b1e19 !important;
    color: #ffffff !important;
}

/* ---------- 13. MEDALI SEGEL RESMI & PITA LAUREL KANDIDAT UNGGUL ---------- */
.ballot-seal-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 20px;
    color: #ffffff;
    background: radial-gradient(circle at 35% 35%, #b32d24, #6b1410);
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(107, 20, 16, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.45);
    position: relative;
    user-select: none;
    transition: transform 0.3s var(--ease-spring);
}
.ballot-seal-lg:hover {
    transform: scale(1.14) rotate(-4deg);
}

.champion-laurel {
    position: relative;
    overflow: hidden;
}
.champion-laurel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c59b27, #f7d566, #c59b27);
    box-shadow: 0 0 10px rgba(247, 213, 102, 0.6);
}

.gold-foil-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #fff2cc 0%, #fae29c 100%);
    color: #785207;
    border: 1px solid #e0be53;
    box-shadow: 0 2px 8px rgba(200, 150, 20, 0.25), inset 0 1px 0 #ffffff;
}

/* Specular Dynamic Cursor Spotlight pada Kartu (.kpu-card & .cmd-card) */
.kpu-card, .cmd-card, .kpu-kpi-card {
    --mouse-x: -100px;
    --mouse-y: -100px;
}
.kpu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(139, 30, 25, 0.04), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.kpu-card:hover::after {
    opacity: 1;
}

.cmd-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cmd-card:hover::after {
    opacity: 1;
}

/* KPI Card Elegan */
.kpu-kpi-card {
    background: #ffffff;
    border: 1px solid var(--kpu-rule);
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: 0 2px 6px rgba(15, 20, 28, 0.04), 0 10px 24px -8px rgba(15, 20, 28, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), border-color 0.2s var(--ease-smooth);
}
.kpu-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -8px rgba(139, 30, 25, 0.12);
    border-color: rgba(139, 30, 25, 0.3);
}
.kpu-kpi-card .kpi-num {
    font-family: var(--font-mono);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
