/* ─────────────────────────────────────
   TEMA PUTIH / LIGHT (ANTI-CACHE)
───────────────────────────────────── */
:root {
  --red: #e85d3a; --red-dark: #c0392b; --blue: #3b82f6; --blue-dark: #1e3a8a;
  --navy: #f8fafc; --navy2: #f1f5f9; --navy3: #e2e8f0;
  --surface: #ffffff; --surface2: #f8fafc;
  --border: rgba(0, 0, 0, 0.08); --border2: rgba(0, 0, 0, 0.04);
  --text: #1e293b; --text-dim: #475569; --text-muted: #64748b;
  --green: #10b981; --amber: #f59e0b; --purple: #7c3aed; --teal: #0891b2;
  --gradient-main: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  --glow-red: 0 8px 24px rgba(232, 93, 58, 0.15);
  --r: 14px; --r-sm: 9px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: 'Inter', sans-serif; background: var(--navy); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.page-wrap { position: relative; z-index: 1; padding-bottom: 80px; }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 200; height: 60px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 40px; gap: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.topbar::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gradient-main); }
.topbar-back { display: flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: var(--r-sm); border: 1px solid var(--border); background: #ffffff; color: var(--text-dim); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all .2s; }
.topbar-back:hover { background: rgba(232, 93, 58, .05); border-color: rgba(232, 93, 58, .35); color: var(--red) }
.topbar-title { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.topbar-title span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px }
.topbar-badge { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 10.5px; font-weight: 700; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25); color: var(--green); }
.topbar-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.3) } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0) } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0) } }

/* HERO */
.hero-seksi { padding: 52px 40px 48px; background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px; background: rgba(232, 93, 58, .1); border: 1px solid rgba(232, 93, 58, .25); font-size: 10.5px; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.hero-seksi h1 { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; margin-bottom: 14px; }
.hero-seksi h1 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-seksi p.lead { font-size: 14px; color: var(--text-dim); line-height: 1.78; max-width: 580px; margin-bottom: 24px; }
.tupoksi-list { display: flex; flex-direction: column; gap: 9px; }
.tupoksi-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: #ffffff; border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.tupoksi-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }

/* FOTO KANAN */
.hero-foto-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.foto-frame { width: 180px; height: 180px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.05); overflow: hidden; flex-shrink: 0; }
.foto-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-frame .initials { font-family: 'Orbitron', sans-serif; font-size: 52px; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; align-items: center; justify-content: center; width: 100%; height: 100%; }
.foto-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100% }
.foto-name { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.foto-jabatan { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: rgba(232, 93, 58, .1); border: 1px solid rgba(232, 93, 58, .25); color: var(--red-dark); }

/* STATS */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--border); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); gap: 1px; }
.stat-cell { background: #ffffff; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.stat-v { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
.stat-l { font-size: 11px; color: var(--text-muted); text-align: center }
.stat-c1 .stat-v { color: var(--red) } .stat-c2 .stat-v { color: var(--blue) } .stat-c3 .stat-v { color: var(--green) } .stat-c4 .stat-v { color: var(--amber) } .stat-c5 .stat-v { color: var(--purple) }

/* SECTIONS & CHARTS */
.section { padding: 44px 40px; max-width: 1180px; margin: 0 auto }
.sec-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.sec-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--gradient-main); }
.sec-title { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sec-title em { font-style: normal; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sec-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }

.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.chart-panel::before { content: ''; display: block; height: 3px; background: var(--gradient-main); }
.chart-panel-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.chart-panel-head h3 { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); }
.chart-body { padding: 24px; position: relative }
.chart-wrap { position: relative; height: 340px }

.page-footer { border-top: 1px solid var(--border); background: #ffffff; padding: 20px 40px; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.page-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-main); }

/* FILTER BAR */
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.filter-field label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .3px; }
.filter-field select { height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; }
.filter-field select:focus { outline: none; border-color: var(--red); }
.filter-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn-filter { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: var(--r-sm); border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: all .2s; }
.btn-reset { background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border); }
.btn-reset:hover { background: var(--navy3); }
.btn-cetak { background: var(--blue-dark); color: #fff; cursor: pointer; }
.btn-cetak:hover { opacity: .9; }
/* ─────────────────────────────────────
   RESPONSIVE — TABLET (≤900px)
───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────
   RESPONSIVE — MOBILE (≤600px)
───────────────────────────────────── */
@media (max-width: 600px) {

  /* TOPBAR */
  .topbar { height: auto; min-height: 56px; padding: 10px 16px; flex-wrap: wrap; row-gap: 8px; }
  .topbar-back { padding: 6px 12px; font-size: 11.5px; }
  .topbar-title { font-size: 11px; line-height: 1.4; white-space: normal; }
  .topbar-right { margin-left: 0; }
  .topbar-badge { font-size: 10px; padding: 4px 10px; }

  /* HERO */
  .hero-seksi { padding: 28px 18px 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-seksi h1 { font-size: 22px; }
  .hero-seksi p.lead { font-size: 13px; max-width: 100%; }
  .tupoksi-item { font-size: 12px; padding: 9px 12px; }

  /* FOTO: pindah ke atas & jadi baris horizontal ringkas di mobile */
  .hero-foto-col { flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; order: -1; }
  .foto-frame { width: 76px; height: 76px; border-radius: 14px; }
  .foto-frame .initials { font-size: 26px; }
  .foto-badge-wrap { align-items: flex-start; width: auto; }
  .foto-name { font-size: 12.5px; }
  .foto-jabatan { font-size: 10px; }

  /* STAT ROW */
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 16px 10px; }
  .stat-v { font-size: 22px; }
  .stat-l { font-size: 10px; }

  /* SECTION */
  .section { padding: 32px 18px; }
  .sec-title { font-size: 16px; }
  .sec-sub { font-size: 12px; margin-bottom: 20px; }

  /* FILTER BAR */
  .filter-panel { padding: 14px; gap: 12px; }
  .filter-field { flex: 1 1 100%; min-width: 100%; }
  .filter-actions { flex: 1 1 100%; width: 100%; }
  .btn-filter { flex: 1; justify-content: center; }

  /* CHART */
  .chart-panel-head { padding: 16px 16px 12px; }
  .chart-panel-head h3 { font-size: 13px; }
  .chart-body { padding: 14px; }
  .chart-wrap { height: 260px; }

  /* FOOTER */
  .page-footer { flex-direction: column; align-items: center; gap: 6px; padding: 18px 18px; text-align: center; font-size: 10.5px; }
}