body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.ukp-glass-bg {
    background-color: #EBF3FE;
    background-image:
        radial-gradient(at 0% 0%, rgba(147, 197, 253, 0.55) 0px, transparent 50%),
        radial-gradient(at 100% 10%, rgba(254, 240, 138, 0.55) 0px, transparent 48%),
        radial-gradient(at 85% 85%, rgba(186, 230, 253, 0.6) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(224, 231, 255, 0.65) 0px, transparent 50%);
    background-attachment: fixed;
    color: #1D3B6E;
}

.font-serif-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 34px -8px rgba(29, 59, 110, 0.12),
        0 4px 12px -2px rgba(29, 59, 110, 0.06),
        inset 0 2px 3px rgba(255, 255, 255, 0.95);
}

.liquid-glass-pop {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.liquid-glass-pop:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #FFFFFF;
    box-shadow:
        0 24px 44px -10px rgba(29, 59, 110, 0.2),
        0 8px 20px -4px rgba(250, 204, 21, 0.22),
        inset 0 2px 4px rgba(255, 255, 255, 1);
}

.liquid-glass-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px -6px rgba(29, 59, 110, 0.08);
}

.liquid-glass-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.92) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 28px 60px -12px rgba(15, 35, 66, 0.35), inset 0 2px 4px rgba(255, 255, 255, 1);
}

.fade-in { animation: fadeIn 0.25s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }

@media print {
    body * { visibility: hidden; }
    #certificate-printable, #certificate-printable * { visibility: visible; }
    #certificate-printable {
        position: fixed; left: 0; top: 0; width: 100%;
        margin: 0; padding: 20px; box-shadow: none !important;
    }
    .no-print { display: none !important; }
}

/* ==========================================================================
   MODE GELAP (kompatibel dengan html.dark dari assets/tema.js)
   ========================================================================== */
html.dark { color-scheme: dark; }

html.dark body.ukp-body,
html.dark body.ukp-glass-bg {
    background-color: #0b1220;
    background-image:
        radial-gradient(at 0% 0%, rgba(29, 59, 110, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 10%, rgba(250, 204, 21, 0.1) 0px, transparent 48%),
        radial-gradient(at 85% 85%, rgba(20, 41, 77, 0.45) 0px, transparent 50%);
    color: #e2e8f0;
}

html.dark .liquid-glass,
html.dark .liquid-glass-modal {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(15, 23, 42, 0.80) 100%);
    border-color: rgba(51, 65, 85, 0.85);
    box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.55);
}

html.dark .liquid-glass-header {
    background: rgba(15, 23, 42, 0.84);
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

html.dark .text-navy:not(.bg-brandYellow):not(.keep-navy) { color: #f8fafc; }
html.dark .bg-brandYellow, html.dark .bg-brandYellow * { color: #1D3B6E !important; }
html.dark .bg-white, html.dark .bg-white\/90, html.dark .bg-white\/80, html.dark .bg-white\/75 { background-color: #111827; }
html.dark .bg-surface, html.dark .bg-slate-50, html.dark .bg-slate-100 { background-color: #1e293b; }
html.dark .bg-slate-200 { background-color: #334155; }
html.dark .text-slate-800, html.dark .text-slate-900 { color: #f1f5f9; }
html.dark .text-slate-700, html.dark .text-slate-600 { color: #cbd5e1; }
html.dark .text-slate-500, html.dark .text-slate-400 { color: #94a3b8; }
html.dark .border-slate-200, html.dark .border-white { border-color: #1e293b; }
html.dark .border-slate-300 { border-color: #334155; }
html.dark .text-blue-900 { color: #facc15; }
html.dark .text-blue-800, html.dark .text-blue-700, html.dark .text-blue-600 { color: #93c5fd; }
html.dark .bg-blue-50, html.dark .bg-blue-100 { background-color: #1e3a8a; }
html.dark .bg-emerald-100 { background-color: #052e1b; }
html.dark .text-emerald-800, html.dark .text-emerald-700 { color: #6ee7b7; }
html.dark .bg-amber-50, html.dark .bg-amber-100 { background-color: #422006; }
html.dark .text-amber-800 { color: #fcd34d; }
html.dark .bg-red-50, html.dark .bg-red-100 { background-color: #450a0a; }
html.dark .text-red-700, html.dark .text-red-600 { color: #fca5a5; }
html.dark input, html.dark select, html.dark textarea { background-color: #0f172a; color: #e2e8f0; border-color: #334155; }
html.dark option { background-color: #111827; color: #e2e8f0; }