/* Sistem Informasi Kurikulum & Pengukuran CPL Terpadu — Gaya Antarmuka Modern */
:root {
  /* Tipografi */
  --font-utama: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Palet Warna Brand Modern */
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-primary-dark: #075985;
  --brand-accent: #38bdf8;
  --brand-emerald: #10b981;
  --brand-indigo: #4f46e5;
  --brand-dark-from: #0f172a;
  --brand-dark-to: #1e293b;

  --biru-tua: #0f2b48;
  --biru: #0284c7;
  --biru-terang: #38bdf8;
  --biru-muda: #f0f9ff;
  --biru-samar: #f8fafc;

  --garis: #e2e8f0;
  --garis-tegas: #cbd5e1;
  --teks: #0f172a;
  --teks-lembut: #334155;
  --redup: #64748b;
  --putih: #ffffff;
  --latar: #f8fafc;

  --merah: #dc2626;
  --merah-muda: #fef2f2;
  --kuning: #fffbeb;
  --kuning-garis: #fde68a;
  --hijau-tua: #166534;
  --hijau: #16a34a;
  --hijau-gelap: #14532d;
  --hijau-muda: #f0fdf4;

  --radius-lg: 16px;
  --radius: 10px;
  --radius-kecil: 6px;
  --radius-pill: 9999px;

  --bayang-halus: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --bayang: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --bayang-naik: 0 12px 28px -6px rgba(15, 23, 42, 0.10), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
  --bayang-kartu-glow: 0 20px 40px -15px rgba(2, 132, 199, 0.15);

  --transisi: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Tema Gelap (kerangka aplikasi) ----------
   Cakupan: header, sidebar, latar utama, kartu, tabel, input, tombol — semua
   elemen yang memakai variabel warna di atas. Beberapa aksen warna khusus
   per-modul yang ditulis langsung (hardcode) di kode JS belum ikut berubah;
   ini disengaja bertahap, bukan terlewat. */
html[data-tema="gelap"] {
  --biru-tua: #7dd3fc;
  --biru-muda: #0c2233;
  --biru-samar: #111d2c;

  --garis: #27364a;
  --garis-tegas: #3a4b63;
  --teks: #e6edf6;
  --teks-lembut: #b8c4d6;
  --redup: #8895a8;
  --putih: #16212f;
  --latar: #0b131d;

  --merah-muda: #3a1a1e;
  --kuning: #2c2410;
  --hijau-muda: #0f2419;
}
html[data-tema="gelap"] body { color-scheme: dark; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-utama);
  font-size: 14px;
  line-height: 1.55;
  color: var(--teks);
  background: var(--latar);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   LANDING PAGE & AUTHENTICATION (Inspired by modern high-conversion design)
   ========================================================================== */
#halaman-masuk {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Top Header Landing Page */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.landing-nav-wadah {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teks);
}

.landing-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.landing-brand-teks {
  display: flex;
  flex-direction: column;
}

.brand-nama {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}

.brand-titik {
  color: var(--brand-primary);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--redup);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-menu {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 860px) {
  .landing-menu {
    display: flex;
  }
}

.landing-link {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transisi);
}

.landing-link:hover {
  color: var(--brand-primary);
  background: rgba(2, 132, 199, 0.06);
}

.btn-landing-masuk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--brand-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all var(--transisi);
}

.btn-landing-masuk:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.06) 0%, transparent 50%);
}

.landing-hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(14, 26, 26, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(14, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.landing-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: rgba(56, 189, 248, 0.25);
  top: 5%;
  right: 10%;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(99, 102, 241, 0.18);
  bottom: 10%;
  left: 5%;
}

.landing-hero-wadah {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .landing-hero-wadah {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

.landing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.pill-teks {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.pill-tag {
  background: #f0f9ff;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #bae6fd;
}

.landing-hero-judul {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .landing-hero-judul {
    font-size: 46px;
  }
}

@media (min-width: 1200px) {
  .landing-hero-judul {
    font-size: 52px;
  }
}

.teks-gradasi {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-deskripsi {
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 32px;
  max-width: 580px;
}

.landing-hero-tombol-grup {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-hero-primer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  transition: all var(--transisi);
}

.btn-hero-primer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
}

.btn-hero-sekunder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transisi);
}

.btn-hero-sekunder:hover {
  background: #f8fafc;
  color: var(--brand-primary);
  border-color: #94a3b8;
}

/* Metric Counter Strip */
.landing-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--redup);
  margin-bottom: 2px;
}

.stat-angka {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: #cbd5e1;
}

/* Kartu Login Visual Hero */
.landing-hero-visual {
  position: relative;
}

.kartu-masuk-modern {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15),
              0 0 0 1px rgba(2, 132, 199, 0.06);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.kartu-masuk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  min-height: 44px;
}

.mac-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.badge-keamanan {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  line-height: 1.2;
}

.kartu-masuk-body {
  padding: 28px 28px 24px;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
  margin-bottom: 10px;
}

.login-judul {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.login-subjudul {
  font-size: 12.5px;
  color: var(--redup);
  margin: 0;
}

.baris-modern {
  margin-bottom: 16px;
}

.baris-modern label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.label-dan-lupa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.input-icon-wrap input {
  width: 100%;
  height: 44px;
  padding: 8px 12px 8px 38px;
  font-family: var(--font-utama);
  font-size: 13.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all var(--transisi);
}

.input-icon-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.12);
}

.btn-toggle-sandi {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity var(--transisi);
}

.btn-toggle-sandi:hover {
  opacity: 1;
}

.btn-submit-masuk {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-utama);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all var(--transisi);
  margin-top: 20px;
}

.btn-submit-masuk:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* Tombol "Masuk dengan Google" (dirender Google Identity Services sendiri
   ke dalam wadah ini) — pemisah "atau" hanya muncul lewat kelas
   "terisi" yang ditambahkan JS setelah tombolnya benar-benar dirender,
   supaya tidak ada garis/teks "atau" menggantung sendirian saat fitur ini
   nonaktif (client ID kosong). */
.wadah-masuk-google {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.wadah-masuk-google.terisi {
  position: relative;
  padding-top: 22px;
}
.wadah-masuk-google.terisi::before {
  content: "atau masuk dengan";
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--redup);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Panel Pilihan Peran Masuk Akun Google (inline di login card, bukan popup) */
.panel-pilih-akun-google {
  animation: fadeInPilih 0.3s ease-out;
}
@keyframes fadeInPilih {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.google-auth-terhubung {
  text-align: center;
  margin-bottom: 12px;
}
.badge-google-aktif {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #bae6fd;
}
.judul-pilih-google {
  font-size: 16px;
  font-weight: 750;
  color: var(--gelap, #0f172a);
  margin: 9px 0 3px;
}
.petunjuk-pilih-google {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}
.daftar-tile-akun-google {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 13px 0;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 2px;
}
.tile-akun-google {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}
.tile-akun-google:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
}
.tile-akun-ikon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.tile-akun-google:hover .tile-akun-ikon {
  background: #e0f2fe;
}
.tile-akun-info {
  flex: 1;
  min-width: 0;
}
.tile-akun-peran {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-akun-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-akun-panah {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}
.tile-akun-google:hover .tile-akun-panah {
  color: #0284c7;
  transform: translateX(3px);
}
.btn-kembali-login-google {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.btn-kembali-login-google:hover {
  background: #f8fafc;
  color: #334155;
  border-color: #94a3b8;
}

.login-footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

/* Floating Tilt Badges Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(var(--float-tilt, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--float-tilt, 0deg));
  }
}

.floating-chip {
  position: absolute;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  animation: float 4s ease-in-out infinite;
}

@media (min-width: 1080px) {
  .floating-chip {
    display: flex;
  }
}

.chip-top-right {
  top: -16px;
  right: -12px;
  --float-tilt: 3deg;
  animation-delay: -1.5s;
}

.chip-bottom-left {
  bottom: -16px;
  left: -14px;
  --float-tilt: -2.5deg;
  animation-delay: -3s;
}

.chip-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f0f9ff;
  border-radius: 8px;
}

.chip-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.chip-sub {
  font-size: 10.5px;
  color: #64748b;
}

/* Showcase Section Fitur Unggulan */
.landing-fitur {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.landing-wadah-fitur {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.fitur-header-teks {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.fitur-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.tag-garis {
  width: 20px;
  height: 2px;
  background: var(--brand-primary);
}

.fitur-judul-besar {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .fitur-judul-besar {
    font-size: 40px;
  }
}

.fitur-subjudul {
  font-size: 15.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.grid-kartu-fitur {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-kartu-fitur {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-kartu-fitur {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kartu-fitur-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all var(--transisi);
}

.kartu-fitur-item:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 16px 30px -10px rgba(2, 132, 199, 0.12);
}

.kartu-highlight {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #334155;
}

.kartu-highlight .fitur-nama {
  color: #ffffff;
}

.kartu-highlight .fitur-deskripsi {
  color: #94a3b8;
}

.kartu-highlight .fitur-poin-list li {
  color: #e2e8f0;
}

.fitur-ikon-kotak {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f9ff;
  font-size: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.kartu-highlight .fitur-ikon-kotak {
  background: rgba(255, 255, 255, 0.12);
}

.fitur-nama {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
}

.fitur-deskripsi {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 20px;
  flex: 1;
}

.fitur-poin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

/* Footer Landing Page */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 36px 0;
}

.landing-footer-wadah {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-footer-wadah {
    flex-direction: row;
    text-align: left;
  }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

/* Logo USN berdampingan dengan logo SIMETRIK, dipisah garis tegak tipis. */
.footer-logo-pemisah {
  width: 1px;
  height: 20px;
  background: var(--garis);
  flex: none;
}
.footer-logo-usn {
  border-radius: 0;
  object-fit: contain;
}

.footer-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.footer-teks {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.footer-copyright {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Navigasi Mobile Drawer untuk Landing Page */
.btn-menu-mobile-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
  color: #334155;
  transition: all var(--transisi);
}

.btn-menu-mobile-landing:hover {
  background: #f8fafc;
  color: var(--brand-primary);
  border-color: #94a3b8;
}

@media (min-width: 860px) {
  .btn-menu-mobile-landing {
    display: none;
  }
}

.landing-drawer-mobile {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px 18px;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.landing-drawer-mobile.aktif {
  display: flex;
}

.drawer-link {
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all var(--transisi);
}

.drawer-link:hover {
  background: #f0f9ff;
  color: var(--brand-primary);
  border-color: #bae6fd;
}

/* Navigasi Mobile Drawer untuk Dashboard Aplikasi */
.btn-menu-mobile-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transisi);
}

.btn-menu-mobile-app:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (min-width: 860px) {
  .btn-menu-mobile-app {
    display: none;
  }
}

.tirai-sidebar-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
}

.tirai-sidebar-mobile.tampil {
  display: block;
}

#aplikasi {
  display: none;
}
#aplikasi.tampil {
  display: block;
}

/* ---------- Header Atas Aplikasi ---------- */
header.atas {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 6px;
  gap: 16px;
  padding: 0 20px;
  background: var(--brand-dark-from);
  background: linear-gradient(135deg, var(--brand-dark-from) 0%, var(--brand-dark-to) 100%);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

header.atas .judul { color: #ffffff; }

.wadah-logo-kop {
  display: flex;
  align-items: center;
  gap: 7px;
}
.logo-kop-simetrik,
.logo-kop-institusi {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}
.logo-kop-simetrik:hover,
.logo-kop-institusi:hover {
  transform: scale(1.06);
}
.logo-kop-pemisah {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 1px;
}

header.atas .kanan {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

header.atas .kanan select {
  max-width: 160px;
}

header.atas button.di-kop {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  white-space: nowrap;
}
header.atas button.di-kop:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.isi {
  display: flex;
  align-items: flex-start;
}

/* ---------- Wadah Sidebar Kiri dengan Footer Bawah ---------- */
aside.wadah-samping {
  width: 244px;
  background: var(--biru-muda);
  border-right: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 46px;
  height: calc(100vh - 46px);
  box-shadow: 1px 0 6px rgba(0,0,0,0.03);
  z-index: 10;
}

@media (max-width: 859px) {
  aside.wadah-samping {
    position: fixed;
    top: 0;
    left: -270px;
    bottom: 0;
    height: 100vh;
    width: 260px;
    z-index: 50;
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.2);
  }

  aside.wadah-samping.buka-mobile {
    left: 0;
  }

  .isi {
    flex-direction: column;
  }

  main.utama {
    padding: 16px 14px 40px !important;
  }

  header.atas {
    padding: 8px 14px !important;
  }

  header.atas .kop-tagline {
    display: none;
  }

  header.atas .kanan {
    gap: 6px !important;
    font-size: 12px;
  }

  header.atas select {
    max-width: 130px !important;
    font-size: 11.5px !important;
    padding: 4px 6px !important;
  }
}

nav.samping {
  flex: 1;
  width: 100%;
  padding: 12px 0 16px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

nav.samping::-webkit-scrollbar {
  width: 5px;
}
nav.samping::-webkit-scrollbar-track {
  background: transparent;
}
nav.samping::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
nav.samping::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

nav.samping .kelompok-wadah {
  margin-bottom: 8px;
  padding-bottom: 2px;
}

nav.samping .kelompok-kop {
  padding: 8px 12px 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  margin: 3px 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  transition: all 0.15s ease;
}

nav.samping .kelompok-kop:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: var(--brand-primary);
}

nav.samping .induk-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

nav.samping .induk-ikon {
  font-size: 13.5px;
}

nav.samping .kelompok-panah {
  font-size: 9px;
  transition: transform 0.2s ease;
  color: #94a3b8;
  font-weight: 900;
}

nav.samping .kelompok-wadah.tertutup .kelompok-panah {
  transform: rotate(-90deg);
}

nav.samping .kelompok-wadah.tertutup .kelompok-isi {
  display: none;
}

nav.samping .kelompok-isi {
  padding: 3px 0 3px 4px;
}

nav.samping a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 16px;
  color: #475569;
  text-decoration: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.35;
  margin: 2px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
}

nav.samping a .ikon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

nav.samping a:hover {
  background: #f8fafc;
  color: #0284c7;
  border-left-color: #38bdf8;
  padding-left: 19px;
}
nav.samping a:hover .ikon {
  opacity: 1;
}

nav.samping a.aktif {
  background: #f0f9ff;
  border-left-color: #0284c7;
  font-weight: 700;
  color: #0369a1;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}
nav.samping a.aktif .ikon {
  opacity: 1;
}

/* ---------- Sidebar Footer (Profil Pengguna & Tombol Keluar) ---------- */
.sidebar-bawah {
  flex-shrink: 0;
  padding: 12px 10px 14px;
  border-top: 1px solid #dbeafe;
  background: #e0f2fe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kartu-profil-sidebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.avatar-sidebar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.teks-profil-sidebar {
  min-width: 0;
  flex: 1;
}

.nama-user-sidebar {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.peran-user-sidebar {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.tombol-keluar-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transisi);
}

.tombol-keluar-sidebar:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.12);
}

.tombol-keluar-sidebar .ikon-keluar {
  font-size: 14px;
}

/* Kelompok Khusus AI */
nav.samping .kelompok-khusus-ai {
  margin: 10px 6px 6px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 4px;
}
nav.samping .kelompok-khusus-ai .kelompok-kop {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}
nav.samping .kelompok-khusus-ai a:hover {
  background: #f5f3ff;
  color: #7c3aed;
  border-left-color: #9333ea;
}
nav.samping .kelompok-khusus-ai a.aktif {
  background: #ede9fe;
  color: #6d28d9;
  border-left-color: #7c3aed;
}

main.utama { flex: 1; padding: 24px 28px 40px; min-width: 0; }
main.utama h2 {
  margin: 0 0 4px; font-size: 20px; color: var(--biru-tua);
  letter-spacing: -.015em; font-weight: 650;
}
main.utama p.keterangan {
  margin: 0 0 18px; color: var(--redup); font-size: 13.5px; max-width: 78ch;
}

/* ---------- komponen ---------- */
.kartu {
  background: var(--putih); border: 1px solid var(--garis);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
  box-shadow: var(--bayang);
}

table { width: 100%; border-collapse: collapse; background: var(--putih); }
th, td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--garis); vertical-align: middle;
}
/* Tabel di dalam kartu bergulir diberi lebar minimum supaya kolomnya tidak
   terjepit sampai teks pendek pun terpotong jadi beberapa baris; pada layar
   sempit kartunya menggulir mendatar, bukan meremas isinya. */
.kartu[style*="overflow-x"] > table { min-width: 740px; }
th {
  background: var(--biru-muda); color: var(--biru-tua); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; vertical-align: middle;
}
tbody tr { transition: background var(--transisi); }
tbody tr:hover { background: var(--biru-samar); }
tbody tr:last-child td { border-bottom: none; }
td.aksi { white-space: nowrap; text-align: right; }
/* tombol baris baru terlihat penuh saat barisnya disorot — mengurangi
   keramaian visual pada tabel panjang tanpa menyembunyikannya sama sekali */
td.aksi button { opacity: .72; transition: opacity var(--transisi); }
tbody tr:hover td.aksi button { opacity: 1; }

label {
  display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px;
  color: var(--teks-lembut);
}
input, select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--garis-tegas);
  border-radius: var(--radius-kecil); font-size: 14px; font-family: inherit;
  background: var(--putih); color: var(--teks);
  transition: border-color var(--transisi), box-shadow var(--transisi);
}
input:hover, select:hover, textarea:hover { border-color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--biru);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, .14);
}
textarea { line-height: 1.55; resize: vertical; }
.baris { margin-bottom: 13px; }
.kolom2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

button {
  padding: 8px 15px; border: 1px solid var(--biru);
  border-radius: var(--radius-kecil);
  background: var(--biru); color: var(--putih); font-size: 13.5px;
  font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background var(--transisi), border-color var(--transisi),
              box-shadow var(--transisi), transform var(--transisi);
}
button:hover {
  background: var(--biru-tua); border-color: var(--biru-tua);
  box-shadow: 0 2px 6px rgba(31, 78, 120, .22);
}
button:active { transform: translateY(1px); box-shadow: none; }
button.hantu {
  background: var(--putih); color: var(--biru);
  border-color: var(--garis-tegas);
}
button.hantu:hover {
  background: var(--biru-muda); color: var(--biru-tua);
  border-color: var(--biru-terang); box-shadow: none;
}
button.bahaya { background: transparent; color: var(--merah);
                border-color: transparent; }
button.bahaya:hover { background: var(--merah-muda); box-shadow: none; }
button.sukses, button.hijau {
  background: var(--hijau-tua);
  border-color: var(--hijau-tua);
  color: var(--putih);
  font-weight: 600;
}
button.sukses:hover, button.hijau:hover {
  background: var(--hijau-gelap);
  border-color: var(--hijau-gelap);
  color: var(--putih);
  box-shadow: 0 2px 6px rgba(22, 101, 52, .28);
}
button.kecil { padding: 4px 10px; font-size: 12.5px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button:disabled:hover { transform: none; }

.lencana {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; background: var(--biru-muda);
  color: var(--biru-tua); white-space: nowrap; line-height: 1.6;
  border: 1px solid rgba(31, 78, 120, .12);
}
.lencana.aktif { background: var(--hijau-muda); color: var(--hijau);
                 border-color: rgba(20, 120, 74, .16); }
.lencana.arsip { background: #eef1f5; color: var(--redup);
                 border-color: rgba(100, 116, 139, .16); }
.lencana.draf  { background: var(--kuning); color: #8a6d1f;
                 border-color: var(--kuning-garis); }
.lencana.mati  { background: var(--merah-muda); color: var(--merah);
                 border-color: rgba(180, 35, 42, .16); }

.spanduk-sebagai {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; font-size: 13px; background: var(--kuning);
  color: #8a6d1f; border-bottom: 1px solid var(--kuning-garis);
}
.spanduk-sebagai.tampil { display: flex; }
.spanduk-sebagai strong { font-weight: 700; }
.spanduk-sebagai span { flex: 1; min-width: 200px; }
.spanduk-sebagai button { margin-left: auto; }
@media (max-width: 859px) {
  .spanduk-sebagai { padding: 8px 12px; font-size: 12px; }
  .spanduk-sebagai span { min-width: 100%; order: 1; }
  .spanduk-sebagai button { order: 2; }
}

.pesan {
  padding: 11px 14px; border-radius: var(--radius-kecil);
  margin-bottom: 14px; display: none; font-size: 13.5px;
  border-left-width: 3px; border-left-style: solid;
}
.pesan.tampil { display: block; }
.pesan.galat {
  background: var(--merah-muda); color: var(--merah);
  border: 1px solid #f3c6c8; border-left: 3px solid var(--merah);
}
.pesan.sukses {
  background: var(--hijau-muda); color: var(--hijau);
  border: 1px solid #b8e2ca; border-left: 3px solid var(--hijau);
}
/* Proses berjalan (mis. sedang merakit/mengunduh dokumen) — sengaja dibuat
   jelas beda dari galat/sukses: warna biru khas "sedang berlangsung" +
   ikon berputar, supaya pengguna tidak mengira platform diam/macet
   selagi menunggu proses yang bisa makan waktu (dokumen besar, AI, dsb). */
.pesan.info {
  background: var(--biru-muda); color: var(--biru-tua);
  border: 1px solid var(--biru-terang); border-left: 3px solid var(--biru);
  font-weight: 600; align-items: center; gap: 10px;
}
.pesan.info.tampil { display: flex; }
.pesan.info::before {
  content: ""; flex: none; width: 15px; height: 15px;
  border: 2.5px solid var(--biru-terang); border-top-color: var(--biru);
  border-radius: 50%; animation: pesan-info-putar 0.7s linear infinite;
}
@keyframes pesan-info-putar { to { transform: rotate(360deg); } }

/* Notifikasi belum dibaca berdenyut supaya menonjol tanpa harus dibuka —
   memakai skala/opacity, bukan warna, agar tetap terbaca di mode gelap. */
.badge-notifikasi.berdenyut {
  animation: notif-denyut 1.6s ease-in-out infinite;
}
.notifikasi-item.belum-dibaca {
  animation: notif-denyut-lembut 2.2s ease-in-out infinite;
}
@keyframes notif-denyut {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}
@keyframes notif-denyut-lembut {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-notifikasi.berdenyut,
  .notifikasi-item.belum-dibaca { animation: none; }
}

.kosong {
  padding: 34px 24px; text-align: center; color: var(--redup);
  font-size: 13.5px;
}

/* ---------- jendela ---------- */
.tirai {
  position: fixed; inset: 0; background: rgba(15, 28, 48, .5);
  display: none; align-items: center; justify-content: center; padding: 20px;
  z-index: 50; backdrop-filter: blur(2px);
}
.tirai.tampil { display: flex; animation: muncul 150ms ease; }
@keyframes muncul { from { opacity: 0 } to { opacity: 1 } }
.jendela {
  background: var(--putih); border-radius: 12px; padding: 24px;
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 18px 48px rgba(15, 33, 61, .24);
}
.jendela h3 {
  margin: 0 0 18px; color: var(--biru-tua); font-size: 17px;
  letter-spacing: -.01em; padding-bottom: 12px;
  border-bottom: 1px solid var(--garis);
}
.jendela .tombol {
  display: flex; gap: 9px; justify-content: flex-end; margin-top: 22px;
  padding-top: 16px; border-top: 1px solid var(--garis);
}

.petunjuk { font-size: 12px; color: var(--redup); margin-top: 4px;
            line-height: 1.5; }

/* ---------- kotak ringkasan pada Beranda & Mata Kuliah ---------- */
.kartu .ringkas-angka {
  font-size: 26px; font-weight: 650; color: var(--biru-tua);
  letter-spacing: -.02em;
}

/* ---------- editor matriks ---------- */
table.matriks { border-collapse: separate; border-spacing: 0; }
table.matriks th, table.matriks td {
  border-right: 1px solid var(--garis);
  border-bottom: 1px solid var(--garis);
  padding: 0;
}
table.matriks thead th {
  position: sticky; top: 0; z-index: 3; background: var(--biru-muda);
}
table.matriks th.baris-kiri {
  position: sticky; left: 0; z-index: 2; background: var(--putih);
  text-align: left; padding: 6px 10px; min-width: 190px; max-width: 260px;
  font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px;
}
table.matriks thead th.baris-kiri { z-index: 4; background: var(--biru-muda); }
table.matriks th.baris-kiri span { display: block; }

/* Judul kolom diputar tegak: matriks CPL × Mata Kuliah bisa punya puluhan
   kolom, dan judul mendatar akan membuat tabelnya jauh lebih lebar
   daripada layar mana pun. */
table.matriks th.tegak {
  height: 110px; width: 34px; min-width: 34px; vertical-align: bottom;
  padding-bottom: 8px;
}
table.matriks th.tegak span {
  display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 12px; white-space: nowrap;
}

table.matriks td.sel {
  width: 34px; min-width: 34px; height: 32px; text-align: center;
  cursor: pointer; color: var(--biru-tua); font-weight: 600;
  user-select: none;
}
table.matriks td.sel:hover { background: var(--biru-samar); }
table.matriks td.sel.terisi { background: var(--biru-muda); }
table.matriks td.sel input {
  width: 100%; height: 32px; border: none; text-align: center;
  padding: 0 2px; font-size: 12px; background: transparent; border-radius: 0;
}
table.matriks td.sel input:focus { box-shadow: inset 0 0 0 2px var(--biru); }

table.matriks .jumlah {
  width: 46px; min-width: 46px; text-align: center; font-weight: 600;
  background: var(--biru-samar); font-size: 12px;
}
table.matriks td.jumlah.tak-genap { background: var(--kuning); color: #8a6d1f; }

/* ---------- Beranda Dashboard Styling ---------- */
.beranda-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 55%, #0284c7 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.25), 0 8px 10px -6px rgba(2, 132, 199, 0.2);
  position: relative;
  overflow: hidden;
}
.beranda-hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.beranda-hero-watermark {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 175px;
  height: 175px;
  object-fit: contain;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
  filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
  z-index: 1;
  transition: opacity 0.3s ease;
}
.beranda-hero:hover .beranda-hero-watermark {
  opacity: 0.22;
}
.beranda-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.beranda-hero p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  max-width: 720px;
  line-height: 1.5;
}
.beranda-lencana-wadah {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.beranda-lencana {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #ffffff;
}

.beranda-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.stat-kartu {
  background: var(--putih);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--garis);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-kartu:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.stat-ikon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-info .angka {
  font-size: 22px;
  font-weight: 750;
  color: var(--teks);
  line-height: 1.1;
}
.stat-info .label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Kontrol & Filter Beranda Dashboard ---------- */
.beranda-kontrol-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.beranda-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.beranda-tab-pill {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.beranda-tab-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.beranda-tab-pill.aktif {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.beranda-aksi-lipat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beranda-grup-blok {
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.beranda-grup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.beranda-grup-header:hover {
  background: #f1f5f9;
}

.beranda-grup-judul-kiri {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
}

.beranda-grup-judul-kanan {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beranda-panah-lipat {
  font-size: 11px;
  color: #64748b;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.beranda-grup-blok.tertutup .beranda-panah-lipat {
  transform: rotate(-90deg);
}

.beranda-grup-blok.tertutup .beranda-grup-header {
  border-bottom: none;
}

.beranda-grup-blok.tertutup .menu-grid {
  display: none !important;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #ffffff;
}

.menu-kartu {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.menu-kartu:hover {
  background: #ffffff;
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 8px 16px -2px rgba(14, 165, 233, 0.12), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

.menu-kartu-atas {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-kartu-ikon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.menu-kartu-panah {
  color: #cbd5e1;
  font-size: 13px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.menu-kartu:hover .menu-kartu-panah {
  transform: translateX(3px);
  color: #0284c7;
}

.menu-kartu-judul {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.menu-kartu-ket {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

