/* =====================================================================
   SLARACE — Stylesheet utama
   Tema dinamis dikendalikan oleh variabel --primary, --accent, --radius, --font
   (diisi dari Pengaturan Tema di panel admin).
   ===================================================================== */
:root {
  --primary: #1d4ed8; --accent: #f59e0b; --hero-dark: #0b1530; --radius: 16px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f1f3f9; --text: #0f172a; --muted: #64748b;
  --border: #e4e7ef; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --success: #16a34a; --warning: #d97706; --danger: #dc2626; --info: #0284c7; --purple: #7c3aed;
  --r-sm: calc(var(--radius) * .6); --r-lg: calc(var(--radius) * 1.4);
}
[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a2e; --surface-2: #18223a; --text: #e6eaf5; --muted: #94a0bb;
  --border: #243150; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
  --primary-soft: color-mix(in srgb, var(--primary) 22%, transparent);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
[data-theme="dark"] a { color: color-mix(in srgb, var(--primary) 60%, white); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mt-2 { margin-top: .75rem; } .mt-3 { margin-top: 1.25rem; } .mt-4 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .75rem; } .mb-3 { margin-bottom: 1.25rem; }
.p-3 { padding: 1rem; } .text-center { text-align: center; } .small { font-size: .85rem; } .fw-bold { font-weight: 700; }
.flex { display: flex; gap: .75rem; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }
[hidden] { display: none !important; }

/* ---------- Tombol ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--r-sm);
  font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap; color: inherit; background: none; }
.btn:focus-visible, .input:focus-visible, .icon-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-accent { background: var(--accent); color: #111 !important; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text) !important; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; }
.btn-ghost { color: var(--text) !important; } .btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-success { background: var(--success); color: #fff !important; } .btn-danger { background: var(--danger); color: #fff !important; }
.btn-warning { background: var(--warning); color: #fff !important; } .btn-wa { background: #25d366; color: #fff !important; }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-wa:hover { filter: brightness(1.08); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; } .btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; position: relative; font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }
.badge-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge-muted, .badge-soft-muted { background: var(--surface-2); color: var(--muted); }
.badge-soft-info { background: color-mix(in srgb, var(--info) 10%, transparent); color: var(--info); }
.badge-soft-warning { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.badge-soft-danger { background: var(--danger); color: #fff; }
[data-theme="dark"] .badge-primary { color: color-mix(in srgb, var(--primary) 55%, white); }
.chip { display: inline-flex; gap: .35rem; align-items: center; padding: .25rem .6rem; border-radius: 8px; background: var(--surface-2); font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ---------- Kartu ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border); }
.cards-elevated .card { box-shadow: var(--shadow); border-color: transparent; }
[data-theme="dark"] .cards-elevated .card { border-color: var(--border); }
.cards-flat .card { box-shadow: none; border-color: transparent; background: var(--surface-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1180px) { .panel .grid-main { grid-template-columns: 1fr; } .panel .grid-main > form.card[style*=sticky] { position: static !important; } }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Alert / flash ---------- */
.flash-wrap { width: min(1200px, 100% - 32px); margin: 1rem auto 0; display: grid; gap: .5rem; }
.panel .flash-wrap { width: 100%; margin: 0 0 1rem; }
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-sm); border: 1px solid; font-weight: 500; }
.alert span { flex: 1; } .alert i { margin-top: .15rem; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.alert-danger { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert-warning { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 30%, transparent); color: var(--warning); }
.alert-info { background: color-mix(in srgb, var(--info) 10%, var(--surface)); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--info); }
.alert-close { background: none; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .7; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field .req { color: var(--danger); }
.label-caps { text-transform: uppercase; letter-spacing: .05em; font-size: .78rem !important; font-weight: 700 !important; }
select.input:disabled { opacity: .6; cursor: not-allowed; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.input, select.input, textarea.input { width: 100%; padding: .75rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; transition: .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); outline: none; }
textarea.input { min-height: 130px; resize: vertical; }
.input-icon { position: relative; } .input-icon i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); } .input-icon .input { padding-left: 2.5rem; }
.check { display: flex; gap: .6rem; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; background: var(--surface-2); cursor: pointer; transition: .2s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone i { font-size: 2rem; color: var(--primary); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .75rem; }
.previews img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.previews .pdf-prev { grid-column: 1/-1; display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .85rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: flex; gap: .6rem; align-items: center; padding: .8rem; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: .88rem; background: var(--surface); transition: .15s; height: 100%; }
.choice > span > i { font-size: 1.2rem; color: var(--primary); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--primary-soft); }
.choice small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }

/* ---------- Navbar publik ---------- */
.announce { padding: .55rem 1rem; text-align: center; font-weight: 600; font-size: .88rem; }
.announce-info { background: var(--primary); color: #fff; } .announce-warning { background: var(--accent); color: #111; } .announce-danger { background: var(--danger); color: #fff; }
.topnav { position: sticky; top: 0; z-index: 50; transition: .25s; }
.nav-glass .topnav { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav-solid .topnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-transparent .topnav { background: transparent; } .nav-transparent .topnav.scrolled { background: var(--surface); box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text) !important; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; } .brand-text strong { font-size: 1.1rem; letter-spacing: .02em; } .brand-text small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links > a:not(.btn) { padding: .5rem .8rem; border-radius: 10px; color: var(--text) !important; font-weight: 600; font-size: .92rem; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { background: var(--surface-2); color: var(--primary) !important; }
.nav-tools { display: flex; gap: .4rem; } .nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger { display: inline-grid; } .nav-tools { margin-left: auto; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 1rem; gap: .25rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .nav-links.open { display: flex; } .nav-links .btn { margin-top: .4rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); isolation: isolate; }
.hero-gradient, .hero-split { background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 60%),
  linear-gradient(135deg, var(--hero-dark), color-mix(in srgb, var(--primary) 75%, var(--hero-dark))); }
.hero-image { background: var(--hero-dark); } .hero-image .hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.hero-image .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--hero-dark) 92%, transparent) 30%, color-mix(in srgb, var(--primary) 45%, transparent)); }
.hero-minimal { background: var(--bg); color: var(--text); }
.hero-minimal .hero-sub { color: var(--muted) !important; } .hero-minimal .hero-badge { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.hero-minimal .btn-light { color: var(--text) !important; border-color: var(--border); background: var(--surface); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-minimal::before { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-gradient .hero-inner, .hero-image .hero-inner, .hero-minimal .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin-inline: auto; }
.hero-gradient .hero-actions, .hero-image .hero-actions, .hero-minimal .hero-actions, .hero-gradient .hero-search, .hero-image .hero-search, .hero-minimal .hero-search { justify-content: center; margin-inline: auto; }
.hero-badge { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 600; font-size: .85rem; backdrop-filter: blur(6px); }
.hero-badge .live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin: 1.1rem 0 1rem; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.82); max-width: 640px; }
.hero-gradient .hero-sub, .hero-image .hero-sub, .hero-minimal .hero-sub { margin-inline: auto; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-search { display: flex; max-width: 520px; margin-top: 1.4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem; border-radius: calc(var(--r-sm) + 6px); backdrop-filter: blur(8px); }
.hero-minimal .hero-search { background: var(--surface); border-color: var(--border); }
.hero-search input { flex: 1; background: transparent; border: 0; color: inherit; padding: .6rem .8rem; font: inherit; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,.65); } .hero-minimal .hero-search input::placeholder { color: var(--muted); }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hero-card h3 { font-size: 1rem; display: flex; gap: .5rem; align-items: center; }
.hc-item { display: flex; gap: .8rem; align-items: center; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); margin-top: .6rem; }
.hc-item .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.15); flex-shrink: 0; }
.hc-item strong { display: block; font-size: .9rem; } .hc-item small { color: rgba(255,255,255,.7); }
.hc-item .badge { margin-left: auto; background: rgba(255,255,255,.18); color: #fff; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 70px; color: var(--bg); }
.hero-minimal .hero-wave { display: none; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-card { display: none; } }

/* ---------- Seksi ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; margin-bottom: .6rem; }
[data-theme="dark"] .eyebrow { color: color-mix(in srgb, var(--primary) 55%, white); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.stats-band { margin-top: -4.5rem; position: relative; z-index: 2; }
.stat { display: flex; gap: 1rem; align-items: center; }
.stat .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.stat strong { font-size: 1.8rem; font-weight: 800; display: block; line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 500; }
.ic-primary { background: var(--primary-soft); color: var(--primary); } .ic-warning { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.ic-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); } .ic-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.ic-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); } .ic-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.ic-accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, #000); }
[data-theme="dark"] .ic-primary { color: color-mix(in srgb, var(--primary) 55%, white); }

/* Alur */
.flow-tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.flow-tab { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--text); font: inherit; font-weight: 700; }
.flow-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; counter-reset: f; }
.flow-step { position: relative; padding: 1.4rem; text-align: left; }
.flow-step::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; top: 1rem; right: 1.2rem; font-weight: 800; font-size: 1.6rem; color: var(--border); }
.flow-step .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.flow-step h3 { font-size: 1rem; } .flow-step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Unit */
.unit-card { display: flex; flex-direction: column; gap: .5rem; }
.unit-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--accent))); color: #fff; margin-bottom: .5rem; }
.unit-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.unit-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: .75rem; }
.unit-meta b { color: var(--text); }

/* Kartu laporan */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.filters .input { width: auto; min-width: 160px; padding: .6rem .8rem; }
.filters .input-icon { flex: 1; min-width: 220px; }
.report-card { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; transition: .2s; color: var(--text) !important; }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.report-thumb { aspect-ratio: 16/9; background: var(--surface-2); position: relative; overflow: hidden; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: color-mix(in srgb, var(--primary) 40%, transparent); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.report-thumb .badge { position: absolute; top: .75rem; left: .75rem; background: var(--surface); box-shadow: var(--shadow); }
.report-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.report-body h3 { font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--muted); }
.progress { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: auto; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width .6s; }
.progress-row { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: .4rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: .5rem; opacity: .5; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '\F282'; font-family: bootstrap-icons; transition: .2s; } .faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }
.cta-band { border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; text-align: center; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--hero-dark))); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); } .cta-band p { color: rgba(255,255,255,.8); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: .95rem; } .footer-grid a, .footer-grid span { display: flex; gap: .5rem; color: var(--muted) !important; margin-bottom: .45rem; font-size: .9rem; }
.footer-grid a:hover { color: var(--primary) !important; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Halaman form/detail publik */
.page-hero { padding: 2.5rem 0 5rem; color: #fff; background: linear-gradient(135deg, var(--hero-dark), color-mix(in srgb, var(--primary) 75%, var(--hero-dark))); }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin: .3rem 0; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; }
.crumb { font-size: .85rem; color: rgba(255,255,255,.7); } .crumb a { color: #fff !important; }
.page-body { margin-top: -3.5rem; position: relative; }
.form-step-title { display: flex; gap: .75rem; align-items: center; margin: 1.6rem 0 1rem; font-size: 1.05rem; }
.form-step-title:first-child { margin-top: 0; }
.form-step-title .n { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.kode-box { text-align: center; padding: 2.5rem 1.5rem; }
.kode-box .kode { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: .08em; padding: .8rem 1.4rem; border: 2px dashed var(--primary); border-radius: var(--radius); display: inline-block; margin: 1rem 0; color: var(--primary); background: var(--primary-soft); }
.success-ic { width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* Stepper */
.stepper { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; position: relative; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; position: relative; text-align: center; }
.stepper li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; background: var(--border); border-radius: 3px; }
.stepper li.done:not(:last-child)::after { background: var(--success); }
.step-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 1.1rem; border: 2px solid var(--border); z-index: 1; transition: .3s; }
.stepper li.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.current .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-soft); animation: ring 2s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px transparent; } }
.step-label { font-size: .78rem; font-weight: 700; color: var(--muted); } .stepper li.done .step-label, .stepper li.current .step-label { color: var(--text); }
.stepper.is-rejected .step-dot { opacity: .45; }
@media (max-width: 560px) { .step-label { font-size: .66rem; } .step-dot { width: 36px; height: 36px; font-size: .9rem; } .stepper li:not(:last-child)::after { top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: flex; gap: 1rem; position: relative; padding-bottom: 1.3rem; }
.tl-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; z-index: 1; background: var(--surface); border: 2px solid var(--border); }
.tl-info .tl-icon { color: var(--info); border-color: var(--info); } .tl-primary .tl-icon { color: var(--primary); border-color: var(--primary); }
.tl-purple .tl-icon { color: var(--purple); border-color: var(--purple); } .tl-warning .tl-icon { color: var(--warning); border-color: var(--warning); }
.tl-success .tl-icon { color: #fff; background: var(--success); border-color: var(--success); } .tl-danger .tl-icon { color: var(--danger); border-color: var(--danger); }
.tl-body { flex: 1; background: var(--surface-2); border-radius: var(--r-sm); padding: .85rem 1rem; min-width: 0; }
.tl-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; } .tl-head time { font-size: .78rem; color: var(--muted); }
.tl-body p { margin: .35rem 0 .3rem; font-size: .92rem; overflow-wrap: anywhere; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--border); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.info-list { display: grid; gap: .1rem; margin: 0; }
.info-list > div { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.info-list > div:last-child { border-bottom: 0; } .info-list dt { color: var(--muted); font-weight: 500; } .info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.desc { white-space: normal; overflow-wrap: anywhere; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,20,.88); display: grid; place-items: center; padding: 2rem; }
.lightbox img { max-height: 90vh; max-width: 95vw; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* Login */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), linear-gradient(150deg, var(--hero-dark), var(--primary)); }
.auth-side .brand { color: #fff !important; } .auth-side .brand small { color: rgba(255,255,255,.7); }
.auth-side h2 { font-size: 2.2rem; font-weight: 800; } .auth-side p { color: rgba(255,255,255,.8); }
.auth-feat { display: flex; gap: .75rem; align-items: center; margin-top: .8rem; color: rgba(255,255,255,.9); }
.auth-feat i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); }
.auth-form { display: grid; place-items: center; padding: 2rem; }
.auth-form .card { width: min(420px, 100%); padding: 2rem; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Panel ---------- */
.panel-shell { display: flex; min-height: 100vh; }
.sidebar { width: 268px; background: var(--surface); border-right: 1px solid var(--border); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; z-index: 60; }
.side-user { display: flex; gap: .7rem; align-items: center; padding: .8rem; border-radius: var(--r-sm); background: var(--surface-2); }
.side-user strong { display: block; font-size: .88rem; line-height: 1.2; } .side-user small { color: var(--muted); font-size: .74rem; line-height: 1.2; display: block; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.side-nav { display: grid; gap: .2rem; }
.side-nav a { display: flex; gap: .75rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; color: var(--muted) !important; font-weight: 600; font-size: .9rem; }
.side-nav a i { font-size: 1.1rem; } .side-nav a span { flex: 1; }
.side-nav a:hover { background: var(--surface-2); color: var(--text) !important; }
.side-nav a.active { background: var(--primary-soft); color: var(--primary) !important; }
[data-theme="dark"] .side-nav a.active { color: color-mix(in srgb, var(--primary) 55%, white) !important; }
.pill { background: var(--danger); color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 99px; }
.side-logout { margin-top: auto; }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.6rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.panel-title { font-size: 1.2rem; margin: 0; flex: 1; }
.panel-tools { display: flex; gap: .5rem; }
.panel-content { padding: 1.6rem; width: 100%; max-width: 1400px; }
.side-toggle { display: none; }
.dot { position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; }
.notif-wrap { position: relative; }
.notif-pop { position: absolute; right: 0; top: 48px; width: min(360px, 90vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; padding: .8rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border); font-size: .9rem; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text) !important; font-size: .86rem; }
.notif-item:hover { background: var(--surface-2); } .notif-item.unread { background: var(--primary-soft); }
.notif-item i { color: var(--primary); font-size: 1.1rem; } .notif-item small { display: block; color: var(--muted); }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; } .side-toggle { display: inline-grid; }
  .panel-content { padding: 1rem; } .panel-top { padding: .75rem 1rem; }
}

/* Tabel */
.table-wrap { overflow-x: auto; margin: 0 -1.4rem; padding: 0 1.4rem; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: var(--surface-2); }
.table .t-title { font-weight: 700; color: var(--text) !important; display: block; }
.table .t-sub { font-size: .78rem; color: var(--muted); }
.kode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: .82rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; font-weight: 600; color: var(--muted) !important; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .9rem; }
.tabs a.active { color: var(--primary) !important; border-color: var(--primary); }
.tabs a b { font-size: .72rem; background: var(--surface-2); padding: .1rem .45rem; border-radius: 99px; margin-left: .3rem; }

/* Bar chart sederhana */
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 180px; padding-top: 1rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.bars .bar span { width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 45%, transparent)); min-height: 4px; position: relative; }
.bars .bar span::before { content: attr(data-v); position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--muted); }
.bars .bar small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.hbar { display: grid; gap: .75rem; } .hbar-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: .75rem; align-items: center; font-size: .85rem; }
.hbar-row .track { height: 10px; background: var(--surface-2); border-radius: 9px; overflow: hidden; } .hbar-row .track span { display: block; height: 100%; background: var(--primary); border-radius: 9px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(5,8,20,.55); display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(3px); }
.modal-box { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 1.05rem; } .modal-head button { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1.4rem; display: grid; gap: 1rem; } .modal-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .5rem; }
.action-grid { display: grid; gap: .6rem; }
.tech-pick { display: grid; gap: .5rem; }
.tech-pick label { display: flex; gap: .75rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; }
.tech-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.tech-pick input { width: 18px; height: 18px; accent-color: var(--primary); }
.tech-pick .load { margin-left: auto; font-size: .75rem; }

/* Toast */
.toast-wrap { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; display: grid; gap: .5rem; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); max-width: 340px; font-size: .88rem; animation: pop .25s; }

/* Pengaturan tema */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.preset { position: relative; } .preset input { position: absolute; opacity: 0; }
.preset span { display: block; border: 2px solid var(--border); border-radius: var(--r-sm); padding: .6rem; cursor: pointer; font-weight: 600; font-size: .82rem; }
.preset span i { display: flex; height: 38px; border-radius: 8px; margin-bottom: .5rem; overflow: hidden; }
.preset span i b { flex: 1; }
.preset input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.color-row { display: flex; gap: .5rem; align-items: center; } .color-row input[type=color] { width: 48px; height: 44px; padding: 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.settings-nav { position: sticky; top: 90px; display: grid; gap: .2rem; }
.settings-nav a { padding: .6rem .8rem; border-radius: 10px; color: var(--muted) !important; font-weight: 600; font-size: .9rem; display: flex; gap: .6rem; }
.settings-nav a:hover { background: var(--surface); color: var(--primary) !important; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--border); }
.switch:last-child { border-bottom: 0; } .switch small { display: block; color: var(--muted); }
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; } .toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: .2s; }
.toggle span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--primary); } .toggle input:checked + span::before { transform: translateX(20px); }
.copy-row { display: flex; gap: .5rem; } .copy-row .input { font-family: ui-monospace, monospace; font-size: .82rem; }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; color: var(--text) !important; padding: 0 .6rem; }
.pagination .current { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.error-card { text-align: center; } .error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; } .js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
