
:root{
    --mpi-primary:#243B6B;
    --mpi-secondary:#3E8EDE;
    --mpi-dark:#152238;
    --mpi-bg:#F5F7FB;
    --mpi-border:#E5E7EB;
    --mpi-success:#16A34A;
    --mpi-warning:#D97706;
    --mpi-danger:#DC2626;
    --mpi-muted:#64748b;
}
*{box-sizing:border-box}
body{
    background:var(--mpi-bg);
    font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:#1f2937;
}
.public-navbar{
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--mpi-border);
}
.brand-mark{
    width:36px;height:36px;border-radius:12px;display:inline-grid;place-items:center;
    background:var(--mpi-primary);color:#fff;margin-right:8px;
}
.nav-link{font-weight:700;color:#475569;border-radius:12px;padding:.55rem .85rem!important;}
.nav-link.active,.nav-link:hover{background:#eef6ff;color:var(--mpi-primary);}
.language-select{min-width:135px;}
.page-hero{
    background:
        radial-gradient(circle at top right, rgba(62,142,222,.43), transparent 36%),
        linear-gradient(135deg,#152238,#243B6B 58%,#3E8EDE);
    color:#fff;
    padding:58px 0 34px;
}
.hero-badge{
    display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;
    background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-weight:800;
}
.hero-title{font-size:clamp(32px,5vw,58px);font-weight:950;letter-spacing:-.04em;line-height:1.04;}
.hero-text{font-size:17px;color:rgba(255,255,255,.82);max-width:900px;}
.hero-panel{
    border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);
    border-radius:28px;padding:24px;box-shadow:0 20px 70px rgba(0,0,0,.22);
}
.status-pill{
    background:#DCFCE7;color:#166534;border-radius:999px;padding:6px 12px;font-weight:900;font-size:13px;
}
.filter-bar{
    background:#fff;color:#1f2937;border-radius:24px;padding:20px;
    box-shadow:0 20px 60px rgba(15,23,42,.14);
}
.form-label{font-weight:800;font-size:13px;}
.public-kpi-card,.public-card{
    background:#fff;border:1px solid var(--mpi-border);border-radius:24px;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.public-kpi-card{padding:22px;height:100%;}
.kpi-icon{
    width:46px;height:46px;border-radius:16px;background:#eef6ff;color:var(--mpi-primary);
    display:grid;place-items:center;font-size:20px;margin-bottom:14px;
}
.public-kpi-card small{color:#64748b;font-weight:900;}
.public-kpi-card h2{font-weight:950;font-size:36px;margin:6px 0;}
.public-card{padding:24px;}
.card-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px;}
.card-toolbar h5{font-weight:950;margin-bottom:3px;}
.card-toolbar p{margin:0;color:#64748b;}
.public-table th{
    color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.04em;
}
.badge-soft-success{background:#DCFCE7;color:#166534;}
.badge-soft-warning{background:#FEF3C7;color:#92400E;}
.badge-soft-danger{background:#FEE2E2;color:#991B1B;}
.badge-soft-info{background:#DBEAFE;color:#1E40AF;}
.mpi-badge{border-radius:999px;padding:6px 10px;color:#fff;font-weight:900;}
.low{background:#22c55e!important}.medium{background:#f59e0b!important}.high{background:#ef4444!important}
.trend{display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:800;}
.trend-down{color:var(--mpi-success)}.trend-up{color:var(--mpi-warning)}.trend-neutral{color:#64748b}
.map-dashboard,.gis-full-map{
    border-radius:22px;overflow:hidden;background:#e0f2fe;border:1px solid #dbeafe;
}
.map-dashboard{height:470px}.gis-full-map{height:calc(100vh - 220px);min-height:560px}
.mock-map{
    position:relative;height:100%;
    background:
        linear-gradient(90deg, rgba(148,163,184,.18) 1px, transparent 1px),
        linear-gradient(rgba(148,163,184,.18) 1px, transparent 1px),
        linear-gradient(135deg,#e0f2fe,#f8fafc);
    background-size:36px 36px,36px 36px,100% 100%;
}
.mock-region{
    position:absolute;color:#fff;font-weight:950;display:grid;place-items:center;cursor:pointer;
    transition:.2s ease;box-shadow:0 16px 40px rgba(15,23,42,.16);text-align:center;padding:8px;
}
.mock-region:hover{transform:scale(1.04);z-index:5;}
.r1{left:16%;top:18%;width:190px;height:120px;border-radius:42% 58% 39% 61% / 50% 38% 62% 50%;}
.r2{left:42%;top:16%;width:210px;height:145px;border-radius:56% 44% 50% 50% / 41% 49% 51% 59%;}
.r3{left:23%;bottom:17%;width:220px;height:135px;border-radius:52% 48% 60% 40% / 48% 55% 45% 52%;}
.r4{right:13%;top:38%;width:170px;height:150px;border-radius:47% 53% 39% 61% / 55% 36% 64% 45%;}
.r5{right:26%;bottom:13%;width:180px;height:105px;border-radius:60% 40% 47% 53% / 42% 53% 47% 58%;}
.map-label{
    position:absolute;left:24px;bottom:24px;background:rgba(255,255,255,.95);border-radius:18px;
    padding:12px 16px;font-weight:950;color:#1f2937;border:1px solid #e5e7eb;
}
.map-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#64748b;}
.legend-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;}
.profile-header-card{
    margin-top:-28px;background:#fff;border:1px solid var(--mpi-border);border-radius:26px;padding:24px;
    box-shadow:0 20px 60px rgba(15,23,42,.12);
}
.info-list .info-row{
    display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--mpi-border);
}
.info-list .info-row:last-child{border-bottom:0;}
.hotspot-item,.list-item{
    display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--mpi-border);
}
.hotspot-item:last-child,.list-item:last-child{border-bottom:0;}
.hotspot-score{
    width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#fee2e2;color:#991b1b;font-weight:950;
}
.module-card{
    display:block;text-decoration:none;color:#1f2937;border:1px solid var(--mpi-border);border-radius:22px;padding:20px;background:#fff;
    transition:.18s ease;height:100%;
}
.module-card:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08);}
.module-card i{
    width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--mpi-primary);color:#fff;font-size:18px;margin-bottom:12px;
}
.source-item{
    display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--mpi-border);font-weight:800;
}
.source-item:last-child{border-bottom:0}
.source-item i{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eef6ff;color:var(--mpi-primary);}
.quick-public-links{display:grid;gap:10px}
.quick-public-links a{
    display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--mpi-border);border-radius:16px;
    text-decoration:none;color:#1f2937;font-weight:900;transition:.18s ease;
}
.quick-public-links a:hover{border-color:#93c5fd;background:#eef6ff;}
.gis-sidebar{
    background:#fff;border:1px solid var(--mpi-border);border-radius:24px;padding:18px;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.layer-control{
    display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--mpi-border);
    border-radius:16px;margin-bottom:10px;background:#fff;
}
.report-card{
    border:1px solid var(--mpi-border);border-radius:22px;background:#fff;padding:20px;height:100%;
    transition:.18s ease;
}
.report-card:hover{border-color:#93c5fd;box-shadow:0 10px 24px rgba(15,23,42,.08);}
.report-icon{
    width:48px;height:48px;border-radius:16px;background:#eef6ff;color:var(--mpi-primary);
    display:grid;place-items:center;font-size:22px;margin-bottom:14px;
}
.public-footer{background:#fff;border-top:1px solid var(--mpi-border);padding:26px 0;}
@media(max-width:992px){
    .page-hero{padding-top:42px}.card-toolbar{flex-direction:column}.map-dashboard{height:380px}
    .mock-region{font-size:12px}.hero-panel{margin-top:20px}.gis-full-map{height:520px}
}
@media(max-width:576px){
    .public-card,.public-kpi-card,.profile-header-card{border-radius:18px;padding:18px}
    .filter-bar{border-radius:18px}.map-dashboard{height:320px}.public-kpi-card h2{font-size:30px}
    .r1,.r2,.r3,.r4,.r5{width:130px;height:90px}.gis-full-map{height:460px;min-height:460px}
}
