/* ==========================================================================
   Buku Tamu & SKM BKPSDM — Design System
   Glassmorphism di atas Bootstrap 5.3
   ========================================================================== */

:root {
    /* Warna institusi */
    --bt-navy-900: #14265c;
    --bt-navy-800: #1e3a8a;
    --bt-navy-700: #2749a5;
    --bt-blue-500: #3b82f6;
    --bt-blue-300: #93b4fd;

    --bt-success: #0f9d63;
    --bt-warning: #d97706;
    --bt-danger:  #dc2626;
    --bt-info:    #0891b2;

    /* Permukaan */
    --bt-bg:          #eef2fb;
    --bt-bg-accent:   radial-gradient(1200px 600px at 12% -10%, #dbe6ff 0%, transparent 60%),
                      radial-gradient(900px 500px at 92% 0%, #e6dcff 0%, transparent 55%),
                      linear-gradient(180deg, #eef2fb 0%, #f6f8fd 100%);
    --bt-glass:       rgba(255, 255, 255, 0.72);
    --bt-glass-solid: rgba(255, 255, 255, 0.94);
    --bt-border:      rgba(30, 58, 138, 0.10);
    --bt-border-soft: rgba(30, 58, 138, 0.06);

    /* Teks */
    --bt-ink:      #10193a;
    --bt-ink-soft: #5a6785;
    --bt-ink-mute: #8a94ad;

    /* Bentuk */
    --bt-radius:    16px;
    --bt-radius-sm: 10px;
    --bt-shadow:    0 10px 30px -12px rgba(16, 25, 58, 0.22);
    --bt-shadow-lg: 0 24px 60px -20px rgba(16, 25, 58, 0.32);

    --bt-sidebar-w: 268px;

    --bs-primary: #1e3a8a;
    --bs-primary-rgb: 30, 58, 138;
    --bs-body-color: var(--bt-ink);
    --bs-border-radius: var(--bt-radius-sm);
}

/* ─── Dasar ─────────────────────────────────────────────────── */

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bt-bg-accent) fixed;
    color: var(--bt-ink);
    font-size: 0.925rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 650; letter-spacing: -0.015em; color: var(--bt-ink); }

a { text-decoration: none; }
a:hover { text-decoration: none; }

.text-soft { color: var(--bt-ink-soft) !important; }
.text-mute { color: var(--bt-ink-mute) !important; }

.fw-650 { font-weight: 650; }

/* Angka sejajar pada tabel & kartu statistik */
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ─── Kartu kaca ────────────────────────────────────────────── */

.glass {
    background: var(--bt-glass);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
}

.card {
    background: var(--bt-glass-solid);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--bt-border-soft);
    padding: 1rem 1.15rem;
    font-weight: 650;
}

.card-body { padding: 1.15rem; }

/* ─── Kerangka halaman ──────────────────────────────────────── */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--bt-sidebar-w);
    flex: 0 0 var(--bt-sidebar-w);
    background: linear-gradient(170deg, var(--bt-navy-900) 0%, var(--bt-navy-800) 55%, #27408f 100%);
    color: rgba(255, 255, 255, 0.86);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1040;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.25rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-brand .brand-mark {
    width: 42px; height: 42px;
    flex: 0 0 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.25rem;
    color: #fff;
}

.sidebar-brand .brand-name { color: #fff; font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.sidebar-brand .brand-sub  { color: rgba(255, 255, 255, 0.6); font-size: 0.73rem; }

.sidebar-nav { padding: 0.85rem 0.7rem 2rem; }

.nav-section {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255, 255, 255, 0.42);
    padding: 1rem 0.55rem 0.4rem;
    font-weight: 600;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.56rem 0.65rem;
    margin-bottom: 0.15rem;
    border-radius: var(--bt-radius-sm);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link i { font-size: 1.02rem; width: 1.25rem; text-align: center; opacity: 0.9; }

.sidebar .nav-link:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--bt-blue-300);
}

.sidebar .nav-link .badge { margin-left: auto; font-size: 0.68rem; }

.sidebar-sub { padding-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.12); margin-left: 1.1rem; }
.sidebar-sub .nav-link { font-size: 0.83rem; padding-block: 0.42rem; }

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* ─── Header ────────────────────────────────────────────────── */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--bt-border);
    padding: 0.7rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-header .page-title { font-size: 1.05rem; font-weight: 650; margin: 0; }
.app-header .page-sub   { font-size: 0.78rem; color: var(--bt-ink-mute); }

.app-content { padding: 1.35rem; flex: 1 1 auto; }

.avatar {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-navy-800), var(--bt-blue-500));
    color: #fff;
    font-weight: 650;
    font-size: 0.8rem;
}

/* ─── Kartu statistik ───────────────────────────────────────── */

.stat {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.2rem;
    border-radius: var(--bt-radius);
    background: var(--bt-glass-solid);
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
    height: 100%;
}

.stat::after {
    content: '';
    position: absolute;
    inset: auto -30px -40px auto;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.07;
}

.stat .stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bt-ink-mute); font-weight: 600; }
.stat .stat-value { font-size: 1.85rem; font-weight: 700; line-height: 1.15; margin-top: 0.15rem; letter-spacing: -0.02em; }
.stat .stat-foot  { font-size: 0.78rem; color: var(--bt-ink-soft); }

.stat .stat-icon {
    position: absolute;
    top: 1.05rem; right: 1.1rem;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--bt-border);
    font-size: 1.05rem;
}

.stat-primary { color: var(--bt-navy-800); }
.stat-success { color: var(--bt-success); }
.stat-warning { color: var(--bt-warning); }
.stat-info    { color: var(--bt-info); }
.stat-danger  { color: var(--bt-danger); }

/* ─── Tabel ─────────────────────────────────────────────────── */

.table-wrap {
    border-radius: var(--bt-radius);
    overflow: hidden;
    border: 1px solid var(--bt-border);
    background: var(--bt-glass-solid);
}

.table-wrap > .table-responsive { overflow-x: auto; }

.table {
    margin: 0;
    --bs-table-bg: transparent;
    font-size: 0.875rem;
}

.table > thead > tr > th {
    background: rgba(30, 58, 138, 0.045);
    color: var(--bt-ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--bt-border);
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
}

.table > tbody > tr > td { padding: 0.72rem 0.85rem; vertical-align: middle; border-color: var(--bt-border-soft); }
.table > tbody > tr:hover > td { background: rgba(59, 130, 246, 0.045); }
.table > tbody > tr:last-child > td { border-bottom: 0; }

.table-empty { padding: 3rem 1rem; text-align: center; color: var(--bt-ink-mute); }
.table-empty i { font-size: 2.4rem; opacity: 0.35; display: block; margin-bottom: 0.6rem; }

/* ─── Badge & pil ───────────────────────────────────────────── */

.badge { font-weight: 600; letter-spacing: 0.01em; padding: 0.36em 0.62em; border-radius: 7px; }
.badge-status { font-size: 0.74rem; }

.pill-filter {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: rgba(30, 58, 138, 0.07);
    border: 1px solid var(--bt-border);
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    font-size: 0.76rem;
    color: var(--bt-ink-soft);
}

/* ─── Form ──────────────────────────────────────────────────── */

.form-label { font-weight: 600; font-size: 0.82rem; color: var(--bt-ink-soft); margin-bottom: 0.32rem; }
.form-label .req { color: var(--bt-danger); }

.form-control, .form-select {
    border-radius: var(--bt-radius-sm);
    border-color: rgba(30, 58, 138, 0.16);
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bt-blue-500);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.16);
    background-color: #fff;
}

.form-control-lg, .form-select-lg { padding: 0.75rem 0.95rem; font-size: 1rem; }

.form-text { font-size: 0.78rem; color: var(--bt-ink-mute); }

.btn { border-radius: var(--bt-radius-sm); font-weight: 600; font-size: 0.875rem; padding: 0.5rem 0.95rem; }
.btn-sm { padding: 0.32rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--bt-navy-800), var(--bt-navy-700));
    border-color: var(--bt-navy-800);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--bt-navy-900), var(--bt-navy-800));
    border-color: var(--bt-navy-900);
}

.btn-soft {
    background: rgba(30, 58, 138, 0.08);
    color: var(--bt-navy-800);
    border: 1px solid var(--bt-border);
}
.btn-soft:hover { background: rgba(30, 58, 138, 0.14); color: var(--bt-navy-900); }

.btn-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; }

/* ─── Filter bar ────────────────────────────────────────────── */

.filter-bar {
    background: var(--bt-glass-solid);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--bt-shadow);
}

/* ─── Alert ─────────────────────────────────────────────────── */

.alert { border-radius: var(--bt-radius-sm); border: 1px solid transparent; font-size: 0.88rem; }
.alert .bi { vertical-align: -1px; }

/* ─── Halaman publik / kiosk ────────────────────────────────── */

.guest-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1000px 520px at 8% -8%, rgba(59, 130, 246, 0.22) 0%, transparent 62%),
        radial-gradient(900px 480px at 96% 4%, rgba(124, 58, 237, 0.18) 0%, transparent 58%),
        linear-gradient(175deg, #16296b 0%, #1e3a8a 45%, #2a4bb0 100%);
}

.guest-header { padding: 1.5rem 1.25rem 0.5rem; color: #fff; text-align: center; }
.guest-header .instansi { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.guest-header h1 { color: #fff; font-size: 1.6rem; margin: 0.35rem 0 0.2rem; }
.guest-header p  { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 0.92rem; }

.guest-body { flex: 1 1 auto; padding: 1.25rem 1rem 2.5rem; }

.guest-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    box-shadow: var(--bt-shadow-lg);
    padding: 1.6rem;
}

.guest-footer { padding: 0 1rem 1.25rem; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }

.fieldset-title {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--bt-navy-800);
    margin: 0 0 0.85rem;
}
.fieldset-title::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--bt-border); }
.fieldset-title .step {
    display: grid; place-items: center;
    width: 22px; height: 22px; border-radius: 7px;
    background: var(--bt-navy-800); color: #fff; font-size: 0.72rem;
}

/* ─── Kuesioner ─────────────────────────────────────────────── */

.q-item {
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 0.95rem 1.05rem;
    margin-bottom: 0.7rem;
    background: rgba(255, 255, 255, 0.85);
}

.q-item.is-filled { border-color: rgba(15, 157, 99, 0.35); background: rgba(15, 157, 99, 0.04); }
.q-item.is-missing { border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.04); }

.q-item .q-number {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 8px;
    background: var(--bt-navy-800); color: #fff;
    font-size: 0.78rem; font-weight: 650;
}

.q-item .q-text { font-weight: 550; font-size: 0.9rem; }
.q-item .q-unsur { font-size: 0.74rem; color: var(--bt-ink-mute); }

.likert { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin-top: 0.75rem; }

.likert input { position: absolute; opacity: 0; width: 0; height: 0; }

.likert label {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius-sm);
    padding: 0.5rem 0.3rem;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: all 0.14s ease;
}

.likert label .skor { font-weight: 700; font-size: 1rem; }
.likert label .teks { font-size: 0.68rem; color: var(--bt-ink-mute); line-height: 1.2; }

.likert label:hover { border-color: var(--bt-blue-500); background: rgba(59, 130, 246, 0.05); }

.likert input:checked + label {
    background: var(--bt-navy-800);
    border-color: var(--bt-navy-800);
    color: #fff;
}
.likert input:checked + label .teks { color: rgba(255, 255, 255, 0.82); }
.likert input:focus-visible + label { outline: 2px solid var(--bt-blue-500); outline-offset: 2px; }

/* ─── Bar meter (laporan) ───────────────────────────────────── */

.meter { height: 8px; border-radius: 999px; background: rgba(30, 58, 138, 0.10); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--bt-navy-800); }

/* ─── Kartu tamu / QR ───────────────────────────────────────── */

.kartu-tamu {
    width: 340px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow-lg);
    overflow: hidden;
}

.kartu-tamu .kartu-head {
    background: linear-gradient(135deg, var(--bt-navy-900), var(--bt-navy-700));
    color: #fff;
    padding: 0.95rem 1.1rem;
    text-align: center;
}

.kartu-tamu .kartu-head .instansi { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.78; }
.kartu-tamu .kartu-head h2 { color: #fff; font-size: 1.02rem; margin: 0.2rem 0 0; }

.kartu-tamu .kartu-body { padding: 1.1rem; text-align: center; }
.kartu-tamu .qr-box { display: grid; place-items: center; padding: 0.6rem; }
.kartu-tamu dl { margin: 0.85rem 0 0; text-align: left; font-size: 0.82rem; }
.kartu-tamu dt { color: var(--bt-ink-mute); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.kartu-tamu dd { margin: 0 0 0.55rem; font-weight: 600; }

/* ─── Pagination ────────────────────────────────────────────── */

.pagination { --bs-pagination-border-radius: var(--bt-radius-sm); margin: 0; }
.pagination .page-link { border-color: var(--bt-border); color: var(--bt-navy-800); font-size: 0.85rem; font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--bt-navy-800); border-color: var(--bt-navy-800); }

/* ─── Timeline audit ────────────────────────────────────────── */

.mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace; font-size: 0.8rem; }

pre.json-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: var(--bt-radius-sm);
    padding: 0.9rem;
    font-size: 0.78rem;
    max-height: 340px;
    overflow: auto;
    margin: 0;
}

/* ─── Responsif ─────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: var(--bt-shadow-lg);
    }
    .sidebar.is-open { transform: translateX(0); }

    .sidebar-backdrop {
        position: fixed; inset: 0;
        background: rgba(16, 25, 58, 0.45);
        backdrop-filter: blur(2px);
        z-index: 1035;
    }

    .app-content { padding: 1rem; }
    .likert { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .app-header { padding: 0.6rem 0.9rem; }
    .guest-card { padding: 1.1rem; border-radius: 16px; }
    .stat .stat-value { font-size: 1.55rem; }
    .stat .stat-label { padding-right: 2.6rem; } /* jangan tertutup ikon */
}

/* ─── Laman depan (landing) ─────────────────────────────────── */

.landing-page { background: var(--bt-bg-accent) fixed; }
.landing { min-height: 100vh; display: flex; flex-direction: column; }

/* Navigasi atas — kaca gelap di atas hero, tetap menempel saat digulir */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.7rem 0;
    background: rgba(20, 38, 92, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.landing-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; min-width: 0; }
.landing-brand-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bt-blue-500), #7c3aed);
    font-size: 1.15rem;
    box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.7);
}
.landing-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.landing-brand-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-brand-sub  { font-size: 0.72rem; color: rgba(255, 255, 255, 0.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-nav {
    display: inline-flex; align-items: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.15s, color 0.15s;
}
.btn-nav:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn-nav-solid { color: var(--bt-navy-900); background: #fff; border-color: #fff; }
.btn-nav-solid:hover { color: var(--bt-navy-900); background: #e6ecff; }

/* Hero */
.landing-hero {
    position: relative;
    color: #fff;
    padding: 3.5rem 0 3.25rem;
    background:
        radial-gradient(1000px 520px at 8% -8%, rgba(59, 130, 246, 0.30) 0%, transparent 62%),
        radial-gradient(900px 480px at 96% 4%, rgba(124, 58, 237, 0.24) 0%, transparent 58%),
        linear-gradient(175deg, #16296b 0%, #1e3a8a 45%, #2a4bb0 100%);
    overflow: hidden;
}
.landing-hero::before {
    /* Pola titik halus agar hero tidak terasa datar */
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
    pointer-events: none;
}
.landing-hero .container-xl { position: relative; }

.landing-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: #dbe6ff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 1.1rem;
}
.landing-title {
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}
.landing-lead { color: rgba(255, 255, 255, 0.80); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.8rem; }

/* Tombol ajakan utama — sengaja besar dan kontras terhadap latar navy */
.btn-cta {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.95rem 1.7rem;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bt-navy-900);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 0;
    box-shadow: 0 14px 34px -10px rgba(245, 158, 11, 0.75), 0 0 0 6px rgba(251, 191, 36, 0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-cta .bi { font-size: 1.3rem; line-height: 1; }
.btn-cta:hover, .btn-cta:focus-visible {
    color: var(--bt-navy-900);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.85), 0 0 0 8px rgba(251, 191, 36, 0.22);
}
.btn-cta.is-disabled { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); box-shadow: none; cursor: not-allowed; }

.landing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.landing-cta-hint { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.landing-cta-hint .bi { margin-right: 0.3rem; color: #fbbf24; }

/* Sorotan IKM di hero */
.ikm-hero {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 22px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--bt-shadow-lg);
}
.ikm-hero-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ikm-hero-label .bi { color: #fbbf24; margin-right: 0.3rem; }
.ikm-hero-value { font-size: 3.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0.4rem 0 0.5rem; }
.ikm-hero-value small { font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.ikm-hero-mutu { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.02rem; }
.ikm-hero-foot { margin-top: 0.75rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.ikm-hero-foot strong { color: #fff; }

/* Huruf mutu pelayanan (A–D) */
.mutu {
    display: inline-grid; place-items: center;
    min-width: 1.7rem; height: 1.7rem;
    padding: 0 0.4rem;
    border-radius: 8px;
    font-size: 0.82rem; font-weight: 800;
    color: #fff;
    background: var(--bt-ink-mute);
}
.mutu-success   { background: var(--bt-success); }
.mutu-primary   { background: var(--bt-blue-500); }
.mutu-warning   { background: var(--bt-warning); }
.mutu-danger    { background: var(--bt-danger); }
.mutu-secondary { background: var(--bt-ink-mute); }

/* Pita komitmen */
.landing-commit {
    background: #fff7e6;
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    color: #7c4a03;
    font-size: 0.9rem;
    padding: 0.65rem 0;
    text-align: center;
}
.landing-commit .bi { color: var(--bt-warning); margin-right: 0.35rem; }

/* Konten utama */
.landing-main { flex: 1 1 auto; padding: 2.5rem 0 3rem; scroll-margin-top: 72px; }

.landing-section-head { margin-bottom: 1.25rem; }
.landing-section-head h2 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.landing-section-head p  { color: var(--bt-ink-soft); margin: 0; font-size: 0.9rem; }

.badge-soft {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem; font-weight: 600;
    color: var(--bt-navy-800);
    background: rgba(30, 58, 138, 0.08);
}

/* Daftar unsur pelayanan dengan bilah nilai */
.unsur-list { display: flex; flex-direction: column; gap: 0.85rem; }
.unsur-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.35rem; }
.unsur-nama { font-size: 0.88rem; font-weight: 500; }
.unsur-nilai { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.unsur-bar { height: 8px; border-radius: 999px; background: rgba(30, 58, 138, 0.08); overflow: hidden; }
.unsur-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.unsur-fill.bg-primary { background: var(--bt-blue-500) !important; }

/* Kotak ajakan penutup */
.landing-cta-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--bt-navy-900) 0%, var(--bt-navy-700) 100%);
    box-shadow: var(--bt-shadow-lg);
}
.landing-cta-box h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.25rem; }
.landing-cta-box p  { color: rgba(255, 255, 255, 0.75); margin: 0; }

.landing-footer { padding: 1.25rem 0; color: var(--bt-ink-mute); font-size: 0.8rem; border-top: 1px solid var(--bt-border-soft); }

@media (max-width: 767.98px) {
    .landing-hero { padding: 2.25rem 0 2.25rem; }
    .landing-lead { font-size: 0.98rem; }
    .btn-cta { width: 100%; justify-content: center; font-size: 1.1rem; padding: 0.95rem 1.2rem; }
    .ikm-hero-value { font-size: 2.9rem; }
    .landing-cta-box { padding: 1.35rem; text-align: center; justify-content: center; }
    .landing-brand-sub { display: none; }
}

/* ─── Cetak ─────────────────────────────────────────────────── */

@media print {
    @page { margin: 14mm; }

    body { background: #fff !important; font-size: 11pt; color: #000; }

    .sidebar, .app-header, .no-print, .filter-bar, .pagination, .btn { display: none !important; }
    .app-shell { display: block; }
    .app-content { padding: 0; }

    .card, .glass, .table-wrap, .stat {
        box-shadow: none !important;
        border: 1px solid #999 !important;
        background: #fff !important;
        backdrop-filter: none !important;
        break-inside: avoid;
    }

    .table > thead > tr > th { background: #e8e8e8 !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .table { font-size: 10pt; }

    .kop-cetak { display: block !important; }

    a[href]::after { content: ''; }
}

.kop-cetak { display: none; }
