/* ==========================================================================
   PMBM MODERN LANDING PAGE STYLESHEET
   Ultra-lightweight, Responsive, Modern Glassmorphic Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root,
body.theme-emerald {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #064e3b;
  --primary-hover: #047857;
  --primary-light: #d1fae5;
  --primary-gradient: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  --hero-bg: linear-gradient(135deg, #042f24 0%, #064e3b 50%, #047857 100%);
  --hero-glow-1: rgba(16, 185, 129, 0.3);
  --hero-glow-2: rgba(245, 158, 11, 0.2);
  --accent-gold: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --accent-hover: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --card-border-hover: #10b981;
  --footer-bg: #032119;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-muted: #64748b;
  --text-body: #334155;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(226, 232, 240, 0.6);
  --card-radius: 20px;
  --pill-radius: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-sapphire {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --hero-bg: linear-gradient(135deg, #0a1128 0%, #172554 50%, #1e3a8a 100%);
  --hero-glow-1: rgba(37, 99, 235, 0.35);
  --hero-glow-2: rgba(6, 182, 212, 0.25);
  --accent-gold: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  --accent-hover: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --card-border-hover: #3b82f6;
  --footer-bg: #070c1e;
}

body.theme-sunset {
  --primary: #9a3412;
  --primary-hover: #7c2d12;
  --primary-light: #ffedd5;
  --primary-gradient: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #ea580c 100%);
  --hero-bg: linear-gradient(135deg, #431407 0%, #7c2d12 50%, #9a3412 100%);
  --hero-glow-1: rgba(234, 88, 12, 0.35);
  --hero-glow-2: rgba(245, 158, 11, 0.3);
  --accent-gold: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --accent-hover: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --card-border-hover: #f97316;
  --footer-bg: #280b03;
}

body.theme-teal {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --primary-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  --hero-bg: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #134e4a 100%);
  --hero-glow-1: rgba(20, 184, 166, 0.35);
  --hero-glow-2: rgba(94, 234, 212, 0.25);
  --accent-gold: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --accent-hover: linear-gradient(135deg, #0d9488 0%, #042f2e 100%);
  --card-border-hover: #14b8a6;
  --footer-bg: #021e1d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-custom {
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
  z-index: 1030;
}

.navbar-custom.sticky {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-custom.sticky .brand-title {
  color: var(--dark) !important;
}

@media (max-width: 1199.98px) {
  .brand-title {
    font-size: 0.92rem;
  }
}

@media (max-width: 991.98px) {
  .brand-title {
    font-size: 0.85rem;
    max-width: 250px;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    font-size: 0.76rem;
    max-width: 175px;
  }
  .navbar-brand img {
    height: 38px;
  }
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar-custom.sticky .brand-subtitle {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px !important;
  border-radius: var(--pill-radius);
  transition: var(--transition);
}

@media (min-width: 992px) {
  #navbarCollapse {
    display: flex !important;
    justify-content: center !important;
  }
  #navbar-navlist {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ==========================================================================
   DISTINCT COLORED & CENTERED NAV PILLS (ELEGANT COMPACT HORIZONTAL INLINE)
/* ==========================================================================
   DYNAMIC ICON-EXPAND ON HOVER NAV PILLS (SPACE SAVER & DOCK-STYLE EXPANSION)
   ========================================================================== */
.nav-pill-menu {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 38px !important;
  border-radius: 9999px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  margin: 0 2px !important;
  text-decoration: none !important;
  cursor: pointer;
}

.nav-pill-menu i {
  font-size: 0.95rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* DESKTOP HOVER-EXPAND SYSTEM: ICON ONLY BY DEFAULT, TEXT EMERGES SMOOTHLY ON HOVER */
@media (min-width: 992px) {
  .nav-pill-menu {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .nav-pill-menu span {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: max-width 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.22s ease, margin-left 0.25s ease !important;
    line-height: 1 !important;
  }

  .nav-pill-menu:hover,
  .nav-pill-menu:focus-visible,
  .nav-pill-menu.active {
    width: auto !important;
    min-width: 38px !important;
    max-width: 220px !important;
    padding: 0 14px 0 12px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px) !important;
  }

  .nav-pill-menu:hover span,
  .nav-pill-menu:focus-visible span,
  .nav-pill-menu.active span {
    max-width: 160px !important;
    opacity: 1 !important;
    margin-left: 6px !important;
  }
}

/* MOBILE VERTICAL DRAWER SYSTEM: CLEAN, UNIFIED & CONSISTENT THEME */
@media (max-width: 991.98px) {
  #navbarCollapse {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 14px !important;
    margin-top: 10px !important;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
  }

  .nav-pill-menu,
  .nav-pill-home,
  .nav-pill-alur,
  .nav-pill-syarat,
  .nav-pill-kuota,
  .nav-pill-status,
  .nav-pill-kontak,
  .nav-pill-siswa,
  .nav-pill-forget,
  .nav-pill-admin {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 16px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin: 4px 0 !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .nav-pill-menu i,
  .nav-pill-home i,
  .nav-pill-alur i,
  .nav-pill-syarat i,
  .nav-pill-kuota i,
  .nav-pill-status i,
  .nav-pill-kontak i,
  .nav-pill-siswa i,
  .nav-pill-forget i,
  .nav-pill-admin i {
    font-size: 1.15rem !important;
    color: var(--primary) !important;
  }

  .nav-pill-menu span {
    display: inline-block !important;
    line-height: 1 !important;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
  }

  .nav-pill-menu:hover,
  .nav-pill-menu.active,
  .nav-pill-home.active,
  .nav-pill-alur.active,
  .nav-pill-syarat.active,
  .nav-pill-kuota.active,
  .nav-pill-status.active,
  .nav-pill-kontak.active,
  .nav-pill-siswa.active,
  .nav-pill-forget.active,
  .nav-pill-admin.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25) !important;
  }

  .nav-pill-menu:hover i,
  .nav-pill-menu.active i,
  .nav-pill-home.active i,
  .nav-pill-alur.active i,
  .nav-pill-syarat.active i,
  .nav-pill-kuota.active i,
  .nav-pill-status.active i,
  .nav-pill-kontak.active i,
  .nav-pill-siswa.active i,
  .nav-pill-forget.active i,
  .nav-pill-admin.active i,
  .nav-pill-menu:hover span,
  .nav-pill-menu.active span,
  .nav-pill-home.active span,
  .nav-pill-alur.active span,
  .nav-pill-syarat.active span,
  .nav-pill-kuota.active span,
  .nav-pill-status.active span,
  .nav-pill-kontak.active span,
  .nav-pill-siswa.active span,
  .nav-pill-forget.active span,
  .nav-pill-admin.active span {
    color: #ffffff !important;
  }
}

/* 1. Home - Emerald Green */
.nav-pill-home {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #a7f3d0 !important;
}
.navbar-custom.sticky .nav-pill-home {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #047857 !important;
}
.nav-pill-home:hover,
.nav-pill-home.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4) !important;
  transform: translateY(-1px);
}

/* 2. Alur Pendaftaran - Sky Blue */
.nav-pill-alur {
  background: rgba(14, 165, 233, 0.18) !important;
  border: 1px solid rgba(14, 165, 233, 0.45) !important;
  color: #bae6fd !important;
}
.navbar-custom.sticky .nav-pill-alur {
  background: rgba(14, 165, 233, 0.12) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  color: #0284c7 !important;
}
.nav-pill-alur:hover,
.nav-pill-alur.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
  transform: translateY(-1px);
}

/* 3. Syarat Dokumen - Indigo Violet */
.nav-pill-syarat {
  background: rgba(99, 102, 241, 0.2) !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  color: #c7d2fe !important;
}
.navbar-custom.sticky .nav-pill-syarat {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #4f46e5 !important;
}
.nav-pill-syarat:hover,
.nav-pill-syarat.active {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

/* 4. Info Kuota & Statistik - Emerald Green */
.nav-pill-kuota {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #a7f3d0 !important;
}
.navbar-custom.sticky .nav-pill-kuota {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #047857 !important;
}
.nav-pill-kuota:hover,
.nav-pill-kuota.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4) !important;
  transform: translateY(-1px);
}
.nav-pill-kuota:hover span,
.nav-pill-kuota.active span,
.nav-pill-kuota:hover i,
.nav-pill-kuota.active i {
  color: #ffffff !important;
}

/* 5. Cek Status - Amber Orange */
.nav-pill-status {
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fde68a !important;
}
.navbar-custom.sticky .nav-pill-status {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #b45309 !important;
}
.nav-pill-status:hover,
.nav-pill-status.active {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4) !important;
  transform: translateY(-1px);
}

/* 5. Kontak - Teal Mint */
.nav-pill-kontak {
  background: rgba(20, 184, 166, 0.18) !important;
  border: 1px solid rgba(20, 184, 166, 0.45) !important;
  color: #99f6e4 !important;
}
.navbar-custom.sticky .nav-pill-kontak {
  background: rgba(20, 184, 166, 0.12) !important;
  border: 1px solid rgba(20, 184, 166, 0.3) !important;
  color: #0f766e !important;
}
.nav-pill-kontak:hover,
.nav-pill-kontak.active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4) !important;
  transform: translateY(-1px);
}

/* 6. Portal Masuk Siswa - Electric Cyan */
.nav-pill-siswa {
  background: rgba(6, 182, 212, 0.2) !important;
  border: 1px solid rgba(6, 182, 212, 0.5) !important;
  color: #a5f3fc !important;
}
.navbar-custom.sticky .nav-pill-siswa {
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  color: #0891b2 !important;
}
.nav-pill-siswa:hover,
.nav-pill-siswa.active {
  background: #0891b2 !important;
  color: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.45) !important;
  transform: translateY(-1px);
}

/* 7. Lupa Password - Amber Orange */
.nav-pill-forget {
  background: rgba(249, 115, 22, 0.2) !important;
  border: 1px solid rgba(249, 115, 22, 0.5) !important;
  color: #fed7aa !important;
}
.navbar-custom.sticky .nav-pill-forget {
  background: rgba(249, 115, 22, 0.12) !important;
  border: 1px solid rgba(249, 115, 22, 0.35) !important;
  color: #ea580c !important;
}
.nav-pill-forget:hover,
.nav-pill-forget.active {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45) !important;
  transform: translateY(-1px);
}

/* 8. Login Admin - Slate Navy */
.nav-pill-admin {
  background: rgba(100, 116, 139, 0.22) !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  color: #cbd5e1 !important;
}
.navbar-custom.sticky .nav-pill-admin {
  background: rgba(100, 116, 139, 0.12) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  color: #334155 !important;
}
.nav-pill-admin:hover,
.nav-pill-admin.active {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.45) !important;
  transform: translateY(-1px);
}

/* 8. Login Admin Button */
.btn-nav-portal.btn-pill-login {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  border-radius: 9999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-decoration: none !important;
  cursor: pointer;
}
.btn-nav-portal.btn-pill-login i {
  font-size: 0.9rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.navbar-custom.sticky .btn-nav-portal.btn-pill-login {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
.btn-nav-portal.btn-pill-login:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.3) !important;
}

@media (min-width: 992px) {
  .btn-nav-portal.btn-pill-login {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .btn-nav-portal.btn-pill-login span {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: max-width 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.22s ease, margin-left 0.25s ease !important;
    line-height: 1 !important;
  }
  .btn-nav-portal.btn-pill-login:hover,
  .btn-nav-portal.btn-pill-login:focus-visible {
    width: auto !important;
    min-width: 38px !important;
    max-width: 180px !important;
    padding: 0 14px 0 12px !important;
  }
  .btn-nav-portal.btn-pill-login:hover span,
  .btn-nav-portal.btn-pill-login:focus-visible span {
    max-width: 130px !important;
    opacity: 1 !important;
    margin-left: 6px !important;
  }
}

@media (max-width: 991.98px) {
  .btn-nav-portal.btn-pill-login {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 16px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin: 4px 0 !important;
    gap: 10px !important;
  }
  .btn-nav-portal.btn-pill-login span {
    display: inline-block !important;
    line-height: 1 !important;
    opacity: 1 !important;
  }
}

/* 7. DAFTAR SEKARANG CTA Button */
.btn-nav-register.btn-pill-daftar {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  height: 38px !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}
.btn-nav-register.btn-pill-daftar i {
  font-size: 0.9rem !important;
  margin: 0 !important;
}
.btn-nav-register.btn-pill-daftar:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.55) !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand img {
    height: 40px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .btn-nav-portal.btn-pill-login {
    height: 35px !important;
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    gap: 4px !important;
  }
  .btn-nav-register.btn-pill-daftar {
    height: 35px !important;
    font-size: 0.78rem !important;
    padding: 5px 12px !important;
    gap: 4px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-brand img {
    height: 44px !important;
  }
  .nav-actions {
    gap: 8px !important;
  }
  .btn-nav-portal.btn-pill-login {
    height: 38px !important;
    font-size: 0.82rem !important;
    padding: 6px 14px !important;
    gap: 5px !important;
  }
  .btn-nav-register.btn-pill-daftar {
    height: 38px !important;
    font-size: 0.82rem !important;
    padding: 6px 16px !important;
    gap: 5px !important;
  }
}

@media (min-width: 1400px) {
  .navbar-brand img {
    height: 48px !important;
  }
  .btn-nav-portal.btn-pill-login {
    height: 40px !important;
    font-size: 0.85rem !important;
    padding: 7px 16px !important;
  }
  .btn-nav-register.btn-pill-daftar {
    height: 40px !important;
    font-size: 0.85rem !important;
    padding: 7px 20px !important;
  }
}

/* Mobile Toggler and Responsive Navigation (Smartphone & Tablet) */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 10px 0 !important;
  }
  .navbar-brand img {
    height: 40px !important;
  }
  .brand-title {
    font-size: 0.95rem !important;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-subtitle {
    font-size: 0.68rem !important;
  }
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 18px !important;
    padding: 18px 16px !important;
    margin-top: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45) !important;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-custom.sticky .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
  }
  .navbar-nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .navbar-nav .nav-item {
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .navbar-nav .nav-link.nav-pill-menu {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 16px !important;
    font-size: 0.92rem !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-radius: 12px !important;
    gap: 12px !important;
  }
  .navbar-nav .nav-link.nav-pill-menu i {
    font-size: 1.15rem !important;
    width: 24px;
    text-align: center;
  }
  .navbar-collapse .nav-actions {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .navbar-custom.sticky .navbar-collapse .nav-actions {
    border-top: 1px solid #e2e8f0 !important;
  }
  .navbar-collapse .btn-nav-portal,
  .navbar-collapse .btn-nav-register {
    width: 100% !important;
    height: 44px !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
  }
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--white);
  outline: none !important;
  box-shadow: none !important;
}

.navbar-custom.sticky .navbar-toggler {
  background: #f1f5f9;
  color: var(--dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow-2) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--pill-radius);
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--pill-radius);
  border: none;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.5);
  color: var(--white);
}

.btn-hero-primary:disabled,
.btn-hero-primary[disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(35%) !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--pill-radius);
  transition: var(--transition);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  transform: translateY(-3px);
}

/* ==========================================================================
   GLASS LOGIN CARD (HERO RIGHT)
   ========================================================================== */
.glass-login-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transition: var(--transition);
}

.glass-login-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3);
}

.login-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.login-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.login-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.modern-form-group {
  margin-bottom: 18px;
}

.modern-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.modern-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition);
}

.modern-form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: var(--transition);
  outline: none;
}

.modern-form-control:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.modern-form-control:focus + .input-icon,
.modern-input-wrap:focus-within .input-icon {
  color: var(--primary);
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
  transition: var(--transition);
  cursor: pointer;
  margin-top: 8px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.45);
}

.login-card-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-card-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.login-card-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-padding {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--pill-radius);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 1: INFO KUOTA & STATISTIK PENDAFTAR (#statistik)
   Warna Latar Belakang: Fresh Soft Mint / Emerald Ice Tint
   ========================================================================== */
.section-statistik {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  border-top: 1px solid #d1fae5;
  border-bottom: 1px solid #bbf7d0;
  position: relative;
}

.section-statistik .stat-card {
  background: #ffffff !important;
  border: 1.5px solid #a7f3d0 !important;
  box-shadow: 0 12px 30px -8px rgba(6, 78, 59, 0.09), 0 2px 6px -1px rgba(6, 78, 59, 0.04) !important;
}

.section-statistik .stat-card:hover {
  border-color: #10b981 !important;
  box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.16) !important;
}

/* ==========================================================================
   SECTION 2: ALUR PENDAFTARAN (PREMIUM HIGH-CONTRAST FLOW CARDS) (#features)
   Warna Latar Belakang: Modern Soft Cool Slate / Off-White Clean
   ========================================================================== */
.flow-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.flow-card {
  background: #ffffff !important;
  border: 1.5px solid #dbe2ea !important;
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Top Accent Bar */
.flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.flow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px -12px rgba(6, 78, 59, 0.16), 0 0 0 1.5px var(--primary);
  border-color: var(--primary);
}

.flow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.flow-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.28);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flow-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.flow-card:hover .flow-step-icon {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(6deg);
}

.flow-card-body {
  flex: 1;
}

.flow-card-step-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 3px;
}

.flow-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.flow-card-text {
  font-size: 0.94rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0;
}

.flow-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-pill-step {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  transition: var(--transition);
}

.flow-card:hover .flow-pill-step {
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================================
   SECTION 3: SYARAT PENDAFTARAN (MODERN ACCORDION) (#syarat)
   Warna Latar Belakang: Subtle Light Warm Clean
   ========================================================================== */
.section-syarat {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%) !important;
  border-bottom: 1px solid #f1ece4;
  position: relative;
}

.modern-accordion .accordion-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

.modern-accordion .accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.modern-accordion .accordion-button {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  box-shadow: none;
  gap: 14px;
}

.modern-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: #f0fdfa;
}

.modern-accordion .accordion-button::after {
  background-size: 1.1rem;
  transition: var(--transition);
}

.modern-accordion .accordion-body {
  padding: 20px 24px 24px;
  font-size: 0.92rem;
  color: var(--text-body);
  background: var(--white);
  border-top: 1px solid #f1f5f9;
}

.syarat-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: #475569;
}

.syarat-list-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 4: STATUS PENDAFTARAN (DATATABLE WRAPPER) (#status)
   Warna Latar Belakang: Fresh Ice Cyan / Soft Slate Blue Tint
   ========================================================================== */
.section-status {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border-bottom: 1px solid #bae6fd;
  position: relative;
}

.section-status .table-card {
  background: #ffffff !important;
  border: 1.5px solid #bae6fd !important;
  box-shadow: 0 16px 36px -10px rgba(2, 132, 199, 0.12), 0 4px 10px -2px rgba(2, 132, 199, 0.06) !important;
}

.table-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--glass-shadow);
}

.modern-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.9rem;
}

.modern-table thead th {
  background: #f8fafc !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 16px !important;
  border-top: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.modern-table tbody td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #475569;
}

.modern-table tbody tr:hover {
  background-color: #f8fafc;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill-radius);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-status.status-verified {
  background: #d1fae5;
  color: #065f46;
}

.badge-status.status-rejected {
  background: #ffe4e6;
  color: #9f1239;
}

/* ==========================================================================
   STATISTIK & KUOTA (STATS CARDS)
   ========================================================================== */
.stat-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  text-align: center;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 40px -10px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.stat-card.stat-kuota:hover::after { background: #0284c7; }
.stat-card.stat-pendaftar:hover::after { background: #0f766e; }
.stat-card.stat-diterima:hover::after { background: #16a34a; }
.stat-card.stat-belum:hover::after { background: #d97706; }

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(-4deg);
}

.stat-kuota .stat-icon { background: #e0f2fe; color: #0284c7; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18); }
.stat-pendaftar .stat-icon { background: #ccfbf1; color: #0f766e; box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18); }
.stat-diterima .stat-icon { background: #dcfce7; color: #16a34a; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18); }
.stat-belum .stat-icon { background: #fef3c7; color: #d97706; box-shadow: 0 6px 16px rgba(217, 119, 6, 0.18); }
.stat-ditolak .stat-icon { background: #fee2e2; color: #dc2626; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.18); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ==========================================================================
   SECTION 5: TIM PANITIA & KONTAK (#panitia)
   Warna Latar Belakang: Fresh Warm Mint / Soft Emerald Pastel
   ========================================================================== */
.section-panitia {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-bottom: 1px solid #bbf7d0;
  position: relative;
}

.section-panitia .panitia-card {
  background: #ffffff !important;
  border: 1.5px solid #bbf7d0 !important;
  box-shadow: 0 12px 30px -8px rgba(6, 78, 59, 0.08) !important;
}

.section-panitia .panitia-card:hover {
  border-color: #10b981 !important;
  box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.16) !important;
}

/* ==========================================================================
   SECTION 6: LOKASI & ALAMAT MADRASAH (#lokasi)
   Warna Latar Belakang: Modern Neutral Slate
   ========================================================================== */
.section-lokasi {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.section-lokasi .table-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.06) !important;
}

.panitia-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.panitia-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.12);
}



.panitia-card:hover .panitia-avatar {
  transform: scale(1.05);
}

.panitia-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f766e;
}

.panitia-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.panitia-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.btn-wa-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: var(--white) !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  width: 100%;
  max-width: 220px;
  margin-top: auto;
}

.btn-wa-chat:hover {
  background: #20ba59;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   MODAL MODERN STYLING
   ========================================================================== */
.modal-modern .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
}

.modal-header-gradient {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 28px 32px 24px;
  border-bottom: none;
  position: relative;
}

.modal-header-gradient .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header-gradient .modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-header-gradient p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.modal-modern .modal-body {
  padding: 32px;
  background: #ffffff;
}

.modal-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-modern {
  background: var(--footer-bg, var(--dark));
  color: #94a3b8;
  padding: 70px 0 25px;
}

.footer-brand h4 {
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.1rem;
  margin-right: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* Back to top FAB */
#back-to-top {
  position: fixed;
  bottom: 88px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin-top: 14px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  }
  .navbar-nav .nav-link {
    color: var(--dark) !important;
  }
  .hero-section {
    padding: 120px 0 80px;
  }
}

/* ==========================================================================
   THEME-SPECIFIC ACCENT OVERRIDES & UNIQUE IDENTITIES
   ========================================================================== */
/* 1. Theme Emerald: Islamic / Organic Prestige */
body.theme-emerald .hero-section {
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
              linear-gradient(135deg, #042f24 0%, #064e3b 60%, #065f46 100%);
}
body.theme-emerald .hero-title .highlight {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-emerald .hero-badge {
  color: #fef08a;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(6, 78, 59, 0.5);
}
body.theme-emerald .section-tag {
  background: #d1fae5;
  color: #065f46;
}

/* 2. Theme Sapphire: Academic Excellence / Cyber Tech */
body.theme-sapphire .hero-section {
  background: radial-gradient(circle at 10% 30%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 90% 70%, rgba(6, 182, 212, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #090e1a 0%, #0f172a 40%, #1e3a8a 100%);
}
body.theme-sapphire .hero-title .highlight {
  background: linear-gradient(135deg, #a5f3fc 0%, #38bdf8 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-sapphire .hero-badge {
  color: #a5f3fc;
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(30, 58, 138, 0.5);
}
body.theme-sapphire .section-tag {
  background: #dbeafe;
  color: #1e40af;
}
body.theme-sapphire .btn-hero-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}
body.theme-sapphire .btn-hero-primary:hover {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

/* 3. Theme Sunset: Warm Coral / High-Energy Prestige */
body.theme-sunset .hero-section {
  background: radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.3) 0%, transparent 45%),
              radial-gradient(circle at 75% 75%, rgba(234, 88, 12, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #2b0b04 0%, #431407 45%, #7c2d12 100%);
}
body.theme-sunset .hero-title .highlight {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-sunset .hero-badge {
  color: #fef08a;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(124, 45, 18, 0.5);
}
body.theme-sunset .section-tag {
  background: #ffedd5;
  color: #c2410c;
}
body.theme-sunset .btn-hero-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.45);
}
body.theme-sunset .btn-hero-primary:hover {
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.6);
}

/* 4. Theme Teal: Modern Minimalist / Fresh Clean */
body.theme-teal .hero-section {
  background: radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.25) 0%, transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(13, 148, 136, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #021a19 0%, #042f2e 50%, #0f766e 100%);
}
body.theme-teal .hero-title .highlight {
  background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-teal .hero-badge {
  color: #ccfbf1;
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(15, 118, 110, 0.5);
}
body.theme-teal .section-tag {
  background: #ccfbf1;
  color: #0f766e;
}
body.theme-teal .btn-hero-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.45);
}
body.theme-teal .btn-hero-primary:hover {
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.6);
}

/* ==========================================================================
   PANITIA PMBM CONTACT CARDS (PORTRAIT 3:4 / 4:5 ASPECT RATIO)
   ========================================================================== */
.panitia-card {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.panitia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--primary);
}

.panitia-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto !important;
  max-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.panitia-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.panitia-card:hover .panitia-avatar {
  transform: scale(1.03);
}

.panitia-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #94a3b8;
}

.panitia-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.panitia-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
  text-align: center;
}

.panitia-role {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.btn-wa-chat {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  border: none;
  width: 100%;
}

.btn-wa-chat:hover {
  background: #1eb954;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   HERO DYNAMIC SLIDER CAROUSEL (RESPONSIVE & GLASSMORPHIC)
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 26px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.38), 0 0 35px rgba(16, 185, 129, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-slider-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45), 0 0 50px rgba(16, 185, 129, 0.3);
}

.hero-carousel {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-slide-card {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: #0f172a;
}

@media (max-width: 991.98px) {
  .hero-slide-card {
    height: 340px;
  }
}

@media (max-width: 575.98px) {
  .hero-slide-card {
    height: 260px;
  }
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .hero-slide-img {
  transform: scale(1.06);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 44px 24px;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 575.98px) {
  .hero-slide-caption {
    padding: 14px 16px 36px 16px;
  }
}

.slide-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

@media (max-width: 575.98px) {
  .slide-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
}

.slide-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .slide-desc {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}

.hero-carousel .carousel-indicators {
  margin-bottom: 14px;
  z-index: 3;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background-color: transparent;
  opacity: 0.65;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
  width: 24px;
  border-radius: 9999px;
  background-color: #10b981;
  border-color: #10b981;
  opacity: 1;
}

.carousel-control-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.carousel-control-prev:hover .carousel-control-icon-wrap,
.carousel-control-next:hover .carousel-control-icon-wrap {
  background: rgba(16, 185, 129, 0.9);
  border-color: #10b981;
  transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-slider-wrapper:hover .carousel-control-prev,
.hero-slider-wrapper:hover .carousel-control-next {
  opacity: 1;
}

/* ==========================================================================
   FLOATING WHATSAPP ADMIN MADRASAH & UI REFINEMENT
   ========================================================================== */
.wa-float-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(18, 140, 126, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.wa-float-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.6);
  color: #ffffff !important;
}

.wa-float-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.wa-default-icon {
  font-size: 1.6rem;
  color: #25D366;
  line-height: 1;
}

.wa-custom-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wa-float-label {
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hilangkan tanda panah sort segitiga bertumpuk di DataTables landing page */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled,
.modern-table thead th.sorting,
.modern-table thead th.sorting_asc,
.modern-table thead th.sorting_desc {
  background-image: none !important;
  cursor: default !important;
  position: static !important;
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
.modern-table thead th:before,
.modern-table thead th:after {
  display: none !important;
  content: "" !important;
}

/* Penataan Alur Pendaftaran (Flow Card) Lebih Ramping, Rapi & Hemat Tempat */
.flow-card {
  padding: 20px 18px 16px !important;
  border-radius: 16px !important;
}
.flow-card-header {
  margin-bottom: 12px !important;
}
.flow-step-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 1.05rem !important;
}
.flow-step-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 1.1rem !important;
}
.flow-card-step-label {
  font-size: 0.68rem !important;
  margin-bottom: 2px !important;
}
.flow-card-title {
  font-size: 1.08rem !important;
  margin-bottom: 6px !important;
}
.flow-card-text {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  color: #475569 !important;
}
.flow-card-footer {
  margin-top: 12px !important;
  padding-top: 10px !important;
}
.flow-pill-step {
  font-size: 0.72rem !important;
  padding: 2px 8px !important;
}
