/* ==========================================================================
   RT-FinSmart PRO - Executive Luxury Financial System
   Theme: Luxury Emerald (Hijau Zamrud Mewah), Rich Gold, & Glassmorphism
   ========================================================================== */

/* Custom Font: MaskingRenta (Display Font Resmi WARGA RT.001 RW.013) */
@font-face {
  font-family: 'MaskingRenta';
  src: url('assets/MaskingRenta.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Masking Renta';
  src: url('assets/MaskingRenta.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Safe Area Insets for Edge-to-Edge Displays (iPhone Dynamic Island / Notch & Android Gesture Bars) */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);

  --bg-primary: #04140e;
  --bg-secondary: #072318;
  --bg-card: rgba(8, 36, 26, 0.82);
  --bg-card-hover: rgba(12, 48, 35, 0.92);
  --bg-input: rgba(5, 26, 19, 0.9);
  
  --border-color: rgba(16, 185, 129, 0.18);
  --border-focus: rgba(245, 158, 11, 0.6);
  --border-glow: rgba(16, 185, 129, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-600: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --rose-600: #e11d48;
  --rose-glow: rgba(244, 63, 94, 0.2);

  --cyan-500: #06b6d4;
  --indigo-500: #6366f1;
  --purple-500: #a855f7;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 8px 30px rgba(245, 158, 11, 0.2);
  --shadow-emerald: 0 8px 30px rgba(16, 185, 129, 0.2);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup (Native Mobile App-Like Precision) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, a, select, input, textarea, [role="button"] {
  touch-action: manipulation;
}

.bnav-item, 
.public-brand, 
.sidebar-brand, 
.mobile-menu-toggle, 
.btn-icon-action, 
.annual-toggle-btn,
.hub-cockpit-card,
.orbital-petal-label {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 88% 25%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 50% 85%, rgba(5, 150, 105, 0.14) 0%, transparent 50%),
              linear-gradient(180deg, #03130d 0%, #061f16 50%, #041710 100%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-gold { color: var(--gold-400) !important; }
.text-emerald { color: var(--emerald-400) !important; }
.text-rose { color: var(--rose-400) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-xs { font-size: 0.8rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Main App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-400);
  transform: scale(1.05);
}

.sidebar-toggle-btn i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  overflow: visible;
}

/* ==================== SIDEBAR EXECUTIVE GLOWING ORBITAL LOGO (PERSIS GAMBAR 2) ==================== */
.sidebar-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Glowing Ambient Halo Pulse */
.sidebar-logo-wrap .sidebar-ambient-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(16, 185, 129, 0.35) 45%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  animation: splashHaloPulse 2.8s infinite ease-in-out;
}

/* Circular Orbital Track */
.sidebar-logo-wrap .sidebar-orbital-track {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25), inset 0 0 8px rgba(16, 185, 129, 0.15);
  pointer-events: none;
}

/* Rotating Glowing Light Beam Spinner (Emas & Zamrud Berpijar) */
.sidebar-logo-wrap .sidebar-orbital-spinner {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.8px solid transparent;
  border-top-color: #fbbf24; /* Emas berkilau */
  border-right-color: #34d399; /* Hijau zamrud menyala */
  border-bottom-color: rgba(245, 158, 11, 0.25);
  filter: drop-shadow(0 0 8px #fbbf24) drop-shadow(0 0 12px #10b981) drop-shadow(0 0 16px rgba(255, 255, 255, 0.7));
  animation: rotateOrbitalLight 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* Titik Bintang Bercahaya Terang di Kepala Putaran */
.sidebar-logo-wrap .sidebar-orbital-spinner::before {
  content: '';
  position: absolute;
  top: -2px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px 2px #ffffff, 0 0 10px 3px #fbbf24, 0 0 14px 4px #10b981;
}

/* Logo Bulat Putih Mewah (Circle Badge) */
.sidebar-logo-wrap .sidebar-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(245, 158, 11, 0.35), 0 0 20px rgba(16, 185, 129, 0.25);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-logo-wrap:hover .sidebar-logo-circle {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.5), 0 0 26px rgba(16, 185, 129, 0.4);
}

.sidebar-logo-wrap .sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.logo-icon, .logo-img-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 255, 255, 0.18);
  background: #ffffff;
  border: 2px solid #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-icon:hover, .logo-img-wrapper:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.35);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

.logo-text h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-pro {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Sidebar Menu */
.sidebar-menu {
  padding: 1rem 0.8rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
  position: relative;
}

.menu-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.menu-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.menu-item:hover i {
  color: var(--gold-400);
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.03));
  border-left: 3px solid var(--gold-500);
  font-weight: 600;
}

.menu-item.active i {
  color: var(--gold-400);
}

.counter-badge {
  margin-left: auto;
  background: var(--rose-500);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 12, 22, 0.6);
}

.user-profile-card,
#btn-open-switch-account {
  display: none !important;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info h4 {
  font-size: 0.85rem;
}

.user-role {
  font-size: 0.72rem;
  color: var(--emerald-400);
  font-weight: 600;
}

.apk-badge-box {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.apk-badge-box:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-400);
}

.apk-badge-box i {
  font-size: 1.3rem;
  color: var(--emerald-400);
}

.apk-badge-box strong {
  font-size: 0.78rem;
  color: var(--text-primary);
  display: block;
}

.apk-badge-box p {
  font-size: 0.7rem;
  color: var(--emerald-400);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 1.5rem 2rem 5rem 2rem;
  max-width: 1600px;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanded Main Content when sidebar is collapsed */
.app-container.sidebar-collapsed .main-content {
  margin-left: 76px;
  max-width: calc(100% - 76px);
}

/* Top Header Bar */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-400);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   INTERACTIVE SIDEBAR: MINI / COLLAPSED DESKTOP STATE (WIDTH 76PX)
   ========================================================================== */
@media (min-width: 1025px) {
  .sidebar.collapsed {
    width: 76px;
  }

  .sidebar.collapsed .sidebar-header {
    padding: 1.25rem 0.4rem;
    justify-content: center;
  }

  .sidebar.collapsed .logo-wrapper {
    justify-content: center;
  }

  .sidebar.collapsed .logo-img-wrapper,
  .sidebar.collapsed .sidebar-logo-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto;
  }

  .sidebar.collapsed .sidebar-logo-wrap .sidebar-logo-circle {
    width: 38px;
    height: 38px;
    padding: 2px;
  }

  .sidebar.collapsed .logo-text {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }

  .sidebar.collapsed .sidebar-toggle-btn {
    position: absolute;
    right: -13px;
    top: 22px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0b1329;
    border: 1.5px solid var(--gold-500);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.35);
    color: var(--gold-400);
    z-index: 105;
  }

  .sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
  }

  .sidebar.collapsed .sidebar-menu {
    padding: 1rem 0.45rem;
    overflow-x: hidden;
  }

  .sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0.8rem 0;
    gap: 0;
    position: relative;
    border-radius: 12px;
  }

  .sidebar.collapsed .menu-item span,
  .sidebar.collapsed .menu-item .counter-badge {
    display: none !important;
  }

  .sidebar.collapsed .menu-item.active {
    border-left: none;
    background: rgba(245, 158, 11, 0.2);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
  }

  .sidebar.collapsed .menu-item i {
    font-size: 1.25rem;
    width: auto;
    margin: 0;
  }

  /* Luxury floating tooltip on hover for collapsed elements */
  .sidebar.collapsed .menu-item[data-tooltip]::after,
  .sidebar.collapsed .sidebar-web-btn[data-tooltip]::after,
  .sidebar.collapsed .sidebar-logout-btn[data-tooltip]::after,
  .sidebar.collapsed .user-profile-card[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 82px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    padding: 0.5rem 0.9rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 14px rgba(245, 158, 11, 0.15);
    z-index: 9999;
  }

  .sidebar.collapsed .menu-item[data-tooltip]:hover::after,
  .sidebar.collapsed .sidebar-web-btn[data-tooltip]:hover::after,
  .sidebar.collapsed .sidebar-logout-btn[data-tooltip]:hover::after,
  .sidebar.collapsed .user-profile-card[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }

  /* Collapsed Footer */
  .sidebar.collapsed .sidebar-footer {
    padding: 0.85rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }

  .sidebar.collapsed .user-profile-card {
    padding: 0.35rem;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
  }

  .sidebar.collapsed .user-avatar {
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .sidebar.collapsed .user-info,
  .sidebar.collapsed .role-badge {
    display: none !important;
  }

  .sidebar.collapsed .sidebar-web-btn,
  .sidebar.collapsed .sidebar-logout-btn {
    justify-content: center;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    position: relative;
  }

  .sidebar.collapsed .sidebar-web-btn span,
  .sidebar.collapsed .sidebar-logout-btn span {
    display: none !important;
  }

  .sidebar.collapsed .sidebar-web-btn i,
  .sidebar.collapsed .sidebar-logout-btn i {
    font-size: 1.15rem;
    margin: 0;
  }
}

/* Sidebar Backdrop for Mobile/Drawer */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

.page-title-group h1 {
  font-size: clamp(1.2rem, 4.2vw, 1.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title-group p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.period-selector-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
}

.period-selector-pill i {
  color: var(--gold-400);
  font-size: 0.9rem;
}

.period-selector-pill select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.period-selector-pill select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #070a11;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-rose {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-rose {
  color: var(--rose-400);
  border-color: rgba(244, 63, 94, 0.3);
}

.btn-outline-rose:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--rose-400);
}

.btn-full {
  width: 100%;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Views Visibility Switching */
.view-section {
  display: none;
  animation: fadeInView 0.3s ease forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Hero Cards */
.hero-card-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.luxury-gold-glow {
  background: linear-gradient(135deg, rgba(23, 32, 54, 0.85) 0%, rgba(16, 24, 40, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 35px -5px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}

.luxury-gold-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.total-balance-value {
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.25rem;
  letter-spacing: -0.03em;
}

.badge-status-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-400);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-400);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.stat-box {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-color);
}

/* KPI Progress Card */
.collection-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.kpi-header h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpi-percent-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-400);
}

.progress-bar-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kpi-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.bg-emerald-subtle { background: rgba(16, 185, 129, 0.08); }
.bg-rose-subtle { background: rgba(244, 63, 94, 0.08); }

.kpi-mini-card i {
  font-size: 1.4rem;
}

.kpi-mini-card h4 {
  font-size: 1.05rem;
}

.kpi-mini-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Section Title Bar */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 2rem 0 1.25rem 0;
  gap: 1rem;
}

.section-title-bar h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-bar p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Capaian Iuran Berdasarkan Nama Jalan */
/* ─── Capaian Iuran Bulanan — Street KPI Cards (Premium Redesign) ─── */
.street-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.street-card {
  --street-accent: #f59e0b;     /* overridden per-card via JS */
  --street-accent-dim: rgba(245,158,11,0.12);
  background: linear-gradient(
    160deg,
    hsl(220 25% 10% / 0.97) 0%,
    color-mix(in srgb, var(--street-accent) 7%, transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--street-accent) 28%, transparent);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Top colour accent banner strip */
.street-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--street-accent) 0%,
    color-mix(in srgb, var(--street-accent) 50%, #fff 50%) 100%
  );
}

/* Radial glow orb top-right */
.street-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--street-accent) 16%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.street-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow:
    0 20px 50px -10px rgba(0,0,0,0.7),
    0 0 0 1px color-mix(in srgb, var(--street-accent) 45%, transparent),
    0 6px 24px -6px color-mix(in srgb, var(--street-accent) 35%, transparent);
}

/* Card body padding */
.street-card-body {
  padding: 1.3rem 1.3rem 0.85rem;
}

.street-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.street-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.street-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--street-accent) 16%, transparent);
  color: var(--street-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--street-accent) 30%, transparent);
  box-shadow: 0 2px 14px -3px color-mix(in srgb, var(--street-accent) 35%, transparent);
}

.street-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.street-info .street-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Percent badge (tier-based) ── */
.street-percent-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.street-percent-badge.tier-high {
  background: rgba(16,185,129,0.18);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.38);
}

.street-percent-badge.tier-mid {
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.38);
}

.street-percent-badge.tier-low {
  background: rgba(244,63,94,0.18);
  color: #fb7185;
  border: 1px solid rgba(244,63,94,0.38);
}

/* ── Big percent ring display ── */
.street-big-percent {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--street-accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.15rem;
}

/* ── Progress bar ── */
.street-progress-wrap {
  margin-bottom: 1rem;
}

.street-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.street-progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.street-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, var(--street-accent), color-mix(in srgb, var(--street-accent) 60%, #fff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--street-accent) 50%, transparent);
}

/* Keep old tier fill classes for backward compat if needed */
.street-progress-fill.tier-high {
  background: linear-gradient(90deg,#10b981,#34d399);
  box-shadow: 0 0 10px rgba(16,185,129,0.4);
}
.street-progress-fill.tier-mid {
  background: linear-gradient(90deg,#f59e0b,#fbbf24);
  box-shadow: 0 0 10px rgba(245,158,11,0.4);
}
.street-progress-fill.tier-low {
  background: linear-gradient(90deg,#f43f5e,#fb7185);
  box-shadow: 0 0 10px rgba(244,63,94,0.4);
}

/* ── Stats panel ── */
.street-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(4px);
}

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

.street-stat-item .stat-caption {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.street-stat-item .stat-figure {
  font-size: 1rem;
  font-weight: 800;
  color: #f1f5f9;
}

/* ── Nominal row ── */
.street-nominal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  margin-bottom: 0;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, var(--street-accent) 15%, rgba(255,255,255,0.04));
}

.street-nominal-row .nom-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.street-nominal-row .nom-val {
  font-weight: 800;
  color: var(--street-accent);
}

/* ── Jump button — card footer ── */
.street-card-footer {
  padding: 0 1.3rem 1.15rem;
}

.btn-street-jump {
  width: 100%;
  background: color-mix(in srgb, var(--street-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--street-accent) 35%, transparent);
  color: color-mix(in srgb, var(--street-accent) 100%, #fff 15%);
  padding: 0.55rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.btn-street-jump:hover {
  background: color-mix(in srgb, var(--street-accent) 22%, transparent);
  box-shadow: 0 4px 18px -4px color-mix(in srgb, var(--street-accent) 40%, transparent);
  transform: translateY(-2px);
}

.btn-street-jump:active {
  transform: translateY(0);
}

.street-header-badge {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold-400);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* 6 Pos Anggaran Cards */
.pos-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

/* ─── Premium Pos Card Redesign ─── */
.pos-card {
  --pos-accent: #10b981;          /* fallback; overridden inline per-card */
  background: linear-gradient(
    135deg,
    rgba(var(--bg-card-rgb, 15,23,30), 0.95) 0%,
    color-mix(in srgb, var(--pos-accent) 6%, transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--pos-accent) 35%, transparent);
  border-left: 4px solid var(--pos-accent);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.15rem;
  transition: var(--transition), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* glow orb behind the icon */
.pos-card::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pos-accent) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

/* diagonal shimmer stripe */
.pos-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 60%,
    color-mix(in srgb, var(--pos-accent) 4%, transparent) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.pos-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    0 16px 40px -8px rgba(0, 0, 0, 0.65),
    0 0 0 1px color-mix(in srgb, var(--pos-accent) 50%, transparent),
    0 4px 20px -4px color-mix(in srgb, var(--pos-accent) 30%, transparent);
}

.pos-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pos-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--pos-accent) 25%, transparent);
  box-shadow: 0 2px 12px -3px color-mix(in srgb, var(--pos-accent) 40%, transparent);
}

.pos-portion-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--pos-accent) 100%, #fff 20%);
  background: color-mix(in srgb, var(--pos-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--pos-accent) 30%, transparent);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.pos-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pos-card-balance {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pos-mini-flow {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, var(--pos-accent) 15%, rgba(255,255,255,0.05));
  gap: 0.5rem;
}

.pos-mini-flow span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}


/* Analytics & Charts */
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-header-flex h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header-flex p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chart-wrapper {
  height: 250px;
  position: relative;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.luxury-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.luxury-table th {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.luxury-table td {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.luxury-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* View Header Banner */
.view-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.banner-text h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 650px;
}

.banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 250px;
}

.search-input-box i {
  color: var(--text-muted);
}

.search-input-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
}

.custom-select, .custom-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.custom-select:focus, .custom-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px var(--border-glow);
}

.custom-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.checklist-summary-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist-summary-pill .separator {
  color: var(--text-muted);
}

/* Checklist Fast Ticking UI */
.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox-wrapper input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--emerald-500);
}

.status-badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.status-badge-unpaid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--rose-400);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.split-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.split-pill {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Pos Full Details Grid */
.pos-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.pos-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pos-full-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.pos-full-top h3 {
  font-size: 1.1rem;
}

.pos-full-top p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pos-flow-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.pos-flow-stats span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.pos-flow-stats strong {
  font-size: 1.05rem;
}

.pos-remaining-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.pos-remaining-bar strong {
  font-size: 1.25rem;
  color: var(--gold-400);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-content {
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.luxury-modal {
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.input-with-prefix .prefix {
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid var(--border-color);
}

.input-with-prefix input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  width: 100%;
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Multi-month checkboxes */
.multi-month-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.6rem;
  border-radius: var(--radius-md);
}

.month-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px;
}

.qp-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
}

/* Digital Receipt */
.receipt-modal-box {
  max-width: 480px;
}

.digital-receipt-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.receipt-logo {
  width: 38px;
  height: 38px;
  background: #0f172a;
  color: #fbbf24;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.receipt-title h3 {
  font-size: 1rem;
  color: #0f172a;
}

.receipt-title p {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.receipt-divider {
  border-top: 2px dashed #cbd5e1;
  margin: 0.75rem 0;
}

.receipt-meta-grid {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 1rem;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.receipt-resident-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.res-avatar {
  width: 34px;
  height: 34px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-resident-box h4 {
  font-size: 0.95rem;
  color: #0f172a;
}

.receipt-resident-box p {
  font-size: 0.75rem;
  color: #64748b;
}

.receipt-breakdown {
  margin-bottom: 1rem;
}

.breakdown-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.rcp-split-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 3px 0;
  border-bottom: 1px solid #f1f5f9;
}

.receipt-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.receipt-total-bar strong {
  font-size: 1.2rem;
  color: #34d399;
}

.receipt-footer-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
}

.status-stamp {
  font-size: 0.8rem;
  font-weight: 800;
  color: #059669;
  border: 2px solid #059669;
  padding: 4px 10px;
  border-radius: 6px;
  transform: rotate(-3deg);
}

.qr-placeholder {
  text-align: center;
  color: #0f172a;
}

.qr-placeholder i {
  font-size: 2rem;
  display: block;
}

.qr-placeholder small {
  font-size: 0.6rem;
  color: #64748b;
}

/* Printable Report Area */
.printable-report-card {
  margin-top: 1.5rem;
}

.report-letterhead {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.letterhead-logo {
  width: 55px;
  height: 55px;
  background: var(--gold-500);
  color: #070a11;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.letterhead-text h2 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.letterhead-text p {
  font-size: 0.85rem;
  color: var(--gold-400);
  font-weight: 600;
}

.letterhead-text h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.letterhead-divider {
  border-bottom: 3px double var(--border-color);
  margin-bottom: 1.5rem;
}

.report-summary-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rep-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.rep-box span {
  font-size: 0.72rem;
  display: block;
  color: var(--text-secondary);
}

.rep-box strong {
  font-size: 1.15rem;
}

.report-section-heading {
  font-size: 1rem;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.report-table th, .report-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.report-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.report-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 0 3rem;
}

.sig-box {
  text-align: center;
  font-size: 0.85rem;
}

.sig-space {
  height: 70px;
}

/* Settings View */
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.settings-card-header {
  margin-bottom: 1.25rem;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.25rem 0;
}

.pos-input-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pos-alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pos-alloc-name {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.pos-alloc-input {
  width: 130px;
}

.allocation-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.badge-success {
  color: var(--emerald-400);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-error {
  color: var(--rose-400);
  font-size: 0.8rem;
  font-weight: 700;
}

.backup-actions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.action-info h4 {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.file-input-btn {
  cursor: pointer;
}

/* APK Guide Step */
.guide-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--gold-500);
  color: #070a11;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.step-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.step-info code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--emerald-400);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.apk-guide-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.apk-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ==================== ACCOUNT & PIN MANAGEMENT ==================== */
.accounts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-settings-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.account-pin-change-box,
.account-list-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.settings-subheading {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.form-change-pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.accounts-management-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.acc-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.acc-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.acc-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.acc-item-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.acc-item-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.acc-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.acc-item-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-acc-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-acc-action:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.btn-acc-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-acc-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

@media (max-width: 900px) {
  .account-settings-content-grid {
    grid-template-columns: 1fr;
  }
  .form-change-pin-grid {
    grid-template-columns: 1fr;
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 0.88rem;
  animation: slideInToast 0.3s ease;
  min-width: 280px;
}

.toast-success {
  border-left: 4px solid var(--emerald-500);
}

.toast-error {
  border-left: 4px solid var(--rose-500);
}

.toast-info {
  border-left: 4px solid var(--gold-500);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Bottom Nav (Flagship Ergonomic Touch Bar) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 20, 14, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0.5rem calc(0.45rem + var(--sab)) 0.5rem;
  z-index: 1050;
  justify-content: space-around;
  align-items: center;
  height: calc(62px + var(--sab));
  box-sizing: border-box;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  min-width: 52px;
  min-height: 48px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bnav-item i {
  font-size: 1.18rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}

.bnav-item span {
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bnav-item.active {
  color: var(--gold-400);
}

.bnav-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: var(--gold-400);
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.bnav-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-400));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.bnav-item:active {
  transform: scale(0.92);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  }

  .main-content,
  .app-container.sidebar-collapsed .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem calc(75px + var(--sab)) 1rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Tablet Flagship Optimization: 2-Column Grid Balance */
  .hero-card-grid,
  .dashboard-analytics-grid,
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-bottom-nav {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-card-grid,
  .dashboard-analytics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* iOS Safari Anti-Auto-Zoom Standard: Enforce 16px font-size on all mobile form controls */
  input,
  select,
  textarea,
  .form-control,
  .form-input,
  .custom-input,
  .custom-select,
  .search-input-box input,
  .period-selector-pill select,
  .input-with-prefix input,
  .pos-alloc-input,
  .login-pin-input,
  .ronda-search-box input,
  .ronda-member-input,
  .dana-input,
  .dana-select,
  .dana-input-currency,
  .dana-textarea,
  .org-search-box input,
  .annual-year-select,
  .aset-toolbar-search input,
  .demografi-input-calc {
    font-size: 16px !important;
  }

  /* Touch Target Standards (Apple HIG & Material 3: min 44x44px) */
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .sidebar-toggle-btn {
    min-width: 38px;
    min-height: 38px;
  }
  .modal-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-icon-action {
    min-width: 38px;
    min-height: 38px;
  }
}

@media (max-width: 640px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-divider {
    display: none;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .report-summary-boxes {
    grid-template-columns: 1fr 1fr;
  }

  .report-signatures {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  /* Luxury Mobile Slide-Up Bottom Sheet Drawer */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-backdrop.active .modal-content {
    animation: slideUpBottomSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    padding: 1.5rem 1.25rem calc(1.5rem + var(--sab)) 1.25rem;
    overscroll-behavior-y: contain;
    position: relative;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75);
  }

  /* Elegant mobile drag handle pill */
  .modal-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
  }

  .modal-header {
    margin-top: 0.35rem;
  }
}

@keyframes slideUpBottomSheet {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Print Styling for Official PDF & Accounting Printout */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .sidebar, .top-header, .mobile-bottom-nav, .filter-toolbar, .banner-actions, .toast-container, .modal-backdrop {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .glass-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .view-section {
    display: none !important;
  }

  #view-laporan, #view-checklist {
    display: block !important;
  }

  .printable-report-card, .digital-receipt-card {
    border: 1px solid #000 !important;
    color: #000 !important;
  }

  .report-table th, .report-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
  }

  .text-emerald, .text-rose, .text-gold {
    color: #000 !important;
  }
}

/* ==========================================================================
   ROLE ACCESS CONTROL & ACCOUNT SWITCHER (B1 & B2)
   ========================================================================== */

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-badge-b1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.role-badge-b2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid var(--cyan-500);
  color: #67e8f9;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.role-badge-pengurus {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid #a855f7;
  color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.role-badge-warga {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.user-profile-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.user-profile-card:hover {
  border-color: var(--gold-400);
  background: rgba(16, 185, 129, 0.1);
}

.account-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-select-card {
  background: rgba(6, 28, 20, 0.7);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.account-select-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
}

.account-select-card.active {
  border-color: var(--gold-400);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.account-select-card .acc-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.acc-icon-b1 {
  background: linear-gradient(135deg, var(--gold-500), var(--emerald-500));
  color: #04140e;
}

.acc-icon-b2 {
  background: linear-gradient(135deg, var(--cyan-500), var(--emerald-500));
  color: #04140e;
}

.access-restricted-card {
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 650px;
  margin: 3rem auto;
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.access-restricted-icon {
  font-size: 3.5rem;
  color: var(--rose-400);
  margin-bottom: 1.25rem;
  animation: pulse-glow 2s infinite;
}

/* ==========================================================================
   JIMPITAN RONDA MODULE STYLING
   ========================================================================== */

.jimpitan-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.jimpitan-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.jimpitan-stat-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-emerald);
}

.jimpitan-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-400), var(--gold-400));
}

.jimpitan-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.jimpitan-regu-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.jimp-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.badge-pengurus-mode {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.badge-b2-mode {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-b1-mode {
  background: rgba(245, 158, 11, 0.16);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-locked-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.receipt-header-with-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(245, 158, 11, 0.3);
  margin-bottom: 1.25rem;
}

.receipt-header-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==================== RBAC: Role Badges & Account Switcher ==================== */

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.role-badge-b1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold-400);
}

.role-badge-b2 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: var(--emerald-400);
}

/* Menu locked state for B2 users */
.menu-item-locked {
  opacity: 0.38;
  pointer-events: none;
  position: relative;
}

.menu-item-locked::after {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bnav-item.menu-item-locked {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(0.8);
}

.bnav-item.menu-item-locked::after {
  display: none;
}

/* Account Select Cards in Switch Modal */
.account-select-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.account-select-card:hover {
  border-color: var(--emerald-400);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.account-select-card.selected {
  border-color: var(--gold-400);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.account-select-card h4 {
  font-family: var(--font-heading);
  font-size: .92rem;
  color: var(--text-primary);
  margin: 0;
}

.account-select-card p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
}

.acc-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto;
}

/* Section page header layout */
.section-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-page-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.section-page-header p {
  font-size: .85rem;
  color: var(--text-muted);
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}


/* ==========================================================================
   SPLASH LOADING SCREEN — Logo RT dengan Cahaya Memutari Logo (Cipta Karya Bersama)
   ========================================================================== */

.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 38%, #06281b 0%, #03140e 55%, #010a07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease, transform 0.65s ease;
}

.app-splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  max-width: 92vw;
  animation: splashFadeIn 0.8s ease-out forwards;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo Container dengan Rotating Light Orbit */
.splash-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Ambient Bloom Aura (Merah & Putih Bersinar) */
.splash-ambient-halo {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, rgba(255, 255, 255, 0.35) 45%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  animation: splashHaloPulse 2.8s infinite ease-in-out;
}

@keyframes splashHaloPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Track melingkar halus */
.splash-orbital-track {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Berkas Cahaya Memutari Logo (Rotating Beam Spinner: Merah Menyala & Putih Bersinar Terang) */
.splash-orbital-spinner {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 4.5px solid transparent;
  border-top-color: #ff2222; /* Merah menyala terang */
  border-right-color: #ffffff; /* Putih bersinar */
  border-bottom-color: rgba(255, 34, 34, 0.4);
  filter: drop-shadow(0 0 14px #ff2222) drop-shadow(0 0 24px #ffffff) drop-shadow(0 0 35px rgba(255, 255, 255, 0.9));
  animation: rotateOrbitalLight 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* Bintang / Titik Cahaya Putih Bersinar di Ujung Putaran */
.splash-orbital-spinner::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px 3px #ffffff, 0 0 20px 6px #ff2222, 0 0 30px 8px rgba(255, 255, 255, 0.85);
}

@keyframes rotateOrbitalLight {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Lingkaran Logo Putih Mewah */
.splash-logo-circle {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(239, 68, 68, 0.4), 0 0 45px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Teks Judul & Slogan */
.splash-brand-info {
  margin-bottom: 0;
}

.splash-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.splash-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
}

/* Pill Status Loading */
.splash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(3, 16, 11, 0.8);
  border: 1.2px solid rgba(245, 158, 11, 0.45);
  border-radius: 9999px;
  padding: 0.45rem 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.18);
}

.splash-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24, 0 0 18px #f59e0b;
  animation: splashPulseDot 1.4s infinite ease-in-out;
}

@keyframes splashPulseDot {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.splash-loading-text {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .splash-logo-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
  .splash-logo-circle {
    width: 130px;
    height: 130px;
    padding: 10px;
  }
  .splash-title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }
  .splash-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }
}


/* ==========================================================================
   LOGIN PORTAL — Luxury Glassmorphism Auth Screen
   ========================================================================== */

/* ---- Overlay ---- */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* Default tersembunyi; hanya muncul jika dipanggil showLoginOverlay() */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(16,185,129,0.22) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(245,158,11,0.14) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(5,150,105,0.12) 0%, transparent 60%),
              linear-gradient(160deg, #030f09 0%, #061a11 50%, #041610 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.login-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Animated orbs ---- */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.login-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(16,185,129,0.25), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.login-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent 70%);
  bottom: -80px; right: -60px;
  animation-delay: -3s;
}
.login-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%);
  top: 50%; left: 5%;
  animation-delay: -5.5s;
}
.login-orb-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%);
  bottom: 20%; right: 10%;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ---- Login Card ---- */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 1rem;
  background: rgba(8, 30, 20, 0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.08) inset,
    0 30px 80px rgba(0,0,0,0.65),
    0 0 40px rgba(16,185,129,0.1);
  overflow: hidden;
  animation: cardSlideUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Brand Header ---- */
.login-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.75rem 2rem 1.5rem;
}

/* ---- Logo Modal Login: Serasi dengan Logo Halaman Utama (Gambar 2) ---- */
.login-logo-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-logo-wrap .brand-orbital-track {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 14px rgba(255, 34, 34, 0.22), inset 0 0 10px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.login-logo-wrap .brand-orbital-spinner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: #ff2222;
  border-right-color: #ffffff;
  filter: drop-shadow(0 0 10px #ff2222) drop-shadow(0 0 16px #ffffff);
  animation: rotateOrbitalLight 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.login-logo-wrap .brand-logo-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 34, 34, 0.4), 0 0 24px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.login-logo-wrap .login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.login-logo-ring {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255, 34, 34, 0.4), 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.login-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0b0d07;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 4px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.login-rt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--emerald-400);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 99px;
  padding: 2px 10px;
  width: fit-content;
}

/* ---- Divider ---- */
.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3) 30%, rgba(245,158,11,0.2) 70%, transparent);
  margin: 0 2rem;
}

/* ---- Section ---- */
.login-section {
  padding: 1.4rem 2rem;
}

.login-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---- Direct Login Header & Badge ---- */
.login-direct-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0.2rem 0.5rem 0.5rem;
  animation: fadeIn 0.25s ease;
}

.direct-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.direct-portal-badge.badge-warga-glow {
  background: rgba(6, 182, 212, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.direct-portal-badge.badge-pengurus-glow {
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.direct-portal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.2rem 0 0.25rem;
  font-family: var(--font-heading);
}

.direct-portal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ---- Quick Pengurus Selector Chips ---- */
.login-pengurus-chips {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.login-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.login-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.login-chip-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--gold-400);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* ---- Switch Mode / Portal Links ---- */
.login-switch-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

.login-switch-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
}

.login-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.login-switch-btn.text-muted {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.login-switch-btn.text-muted:hover {
  color: var(--text-secondary);
}

/* ---- Role Cards (Hidden - User requests Direct PIN without account picking boxes) ---- */
#login-role-grid,
.login-role-grid,
#login-section-title,
.login-section-title,
#login-pengurus-chips,
.login-pengurus-chips {
  display: none !important;
}

.login-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0.75rem;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.login-role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: var(--transition);
}

.login-role-card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.login-role-card.selected-b1 {
  border-color: rgba(245,158,11,0.6);
  background: rgba(245,158,11,0.1);
  box-shadow: 0 0 20px rgba(245,158,11,0.2), 0 0 0 2px rgba(245,158,11,0.15) inset;
}

.login-role-card.selected-b2 {
  border-color: rgba(16,185,129,0.6);
  background: rgba(16,185,129,0.1);
  box-shadow: 0 0 20px rgba(16,185,129,0.2), 0 0 0 2px rgba(16,185,129,0.15) inset;
}

.login-role-card.selected-pengurus {
  border-color: rgba(168,85,247,0.6);
  background: rgba(168,85,247,0.1);
  box-shadow: 0 0 20px rgba(168,85,247,0.2), 0 0 0 2px rgba(168,85,247,0.15) inset;
}

.login-role-card.selected-warga {
  border-color: rgba(6,182,212,0.6);
  background: rgba(6,182,212,0.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.2), 0 0 0 2px rgba(6,182,212,0.15) inset;
}

.login-role-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.gold-icon {
  background: rgba(245,158,11,0.18);
  color: var(--gold-400);
}

.emerald-icon {
  background: rgba(16,185,129,0.18);
  color: var(--emerald-400);
}

.purple-icon {
  background: rgba(168,85,247,0.18);
  color: #c084fc;
}

.cyan-icon {
  background: rgba(6,182,212,0.18);
  color: #38bdf8;
}

.login-role-card.selected-b1 .gold-icon {
  background: rgba(245,158,11,0.3);
  box-shadow: 0 0 16px rgba(245,158,11,0.35);
}

.login-role-card.selected-b2 .emerald-icon {
  background: rgba(16,185,129,0.3);
  box-shadow: 0 0 16px rgba(16,185,129,0.35);
}

.login-role-card.selected-pengurus .purple-icon {
  background: rgba(168,85,247,0.3);
  box-shadow: 0 0 16px rgba(168,85,247,0.35);
}

.login-role-card.selected-warga .cyan-icon {
  background: rgba(6,182,212,0.3);
  box-shadow: 0 0 16px rgba(6,182,212,0.35);
}

.login-role-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.login-role-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.login-role-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.b1-pill {
  background: rgba(245,158,11,0.2);
  color: var(--gold-400);
  border: 1px solid rgba(245,158,11,0.3);
}

.b2-pill {
  background: rgba(16,185,129,0.2);
  color: var(--emerald-400);
  border: 1px solid rgba(16,185,129,0.3);
}

.pengurus-pill {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.35);
}

.warga-pill {
  background: rgba(6,182,212,0.2);
  color: #38bdf8;
  border: 1px solid rgba(6,182,212,0.35);
}

/* ---- PIN Input ---- */
.login-form-group {
  margin-bottom: 1.2rem;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.login-role-hint {
  color: var(--gold-400);
  font-weight: 600;
}

.login-input-wrapper {
  position: relative;
  display: flex;
}

.login-pin-input {
  flex: 1;
  height: 52px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.25em;
  padding: 0 56px 0 1.2rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.login-pin-input:focus {
  border-color: rgba(245,158,11,0.55);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
}

.login-pin-input::placeholder {
  letter-spacing: 0.3em;
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
}

.login-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: var(--transition);
  line-height: 1;
}

.login-eye-btn:hover {
  color: var(--gold-400);
  background: rgba(245,158,11,0.1);
}

/* ---- Options Row (Tik Tampilkan Password & Hint) ---- */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0 0.2rem;
  font-size: 0.78rem;
  user-select: none;
}

.login-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-checkbox-label:hover {
  color: var(--text-primary);
}

.login-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-tick {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.login-checkbox:checked + .custom-tick {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: #0b0d07;
  box-shadow: 0 0 10px rgba(245,158,11,0.4);
}

.login-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ---- Error ---- */
.login-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--rose-400);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ---- Submit Button ---- */
.login-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #d97706, #f59e0b 50%, #fbbf24);
  border: none;
  border-radius: 14px;
  color: #0b0d07;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 24px rgba(245,158,11,0.35), 0 2px 6px rgba(0,0,0,0.3);
  transition: var(--transition);
  margin-bottom: 0.9rem;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(245,158,11,0.45), 0 4px 12px rgba(0,0,0,0.35);
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* ---- Forgot link ---- */
.login-forgot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.login-forgot-link:hover {
  color: var(--gold-400);
  background: rgba(245,158,11,0.07);
}

/* ---- Forgot View ---- */
.forgot-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 20px;
  background: rgba(245,158,11,0.15);
  border: 1.5px solid rgba(245,158,11,0.3);
  font-size: 1.8rem;
  color: var(--gold-400);
  margin: 0 auto 1.1rem;
}

.forgot-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.forgot-desc {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.forgot-email-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.forgot-email-display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-400);
  word-break: break-all;
}

.btn-outline-gold {
  background: rgba(245,158,11,0.1);
  border: 1.5px solid rgba(245,158,11,0.3);
  color: var(--gold-400);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-gold:hover {
  background: rgba(245,158,11,0.25);
  border-color: var(--gold-400);
  color: #fff;
  box-shadow: 0 0 12px rgba(245,158,11,0.3);
}

/* ---- Card Footer ---- */
.login-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem 1.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---- Sidebar Logout Button ---- */
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0.45rem 0;
  padding: 0.6rem 1rem;
  background: rgba(244,63,94,0.07);
  border: 1px solid rgba(244,63,94,0.2);
  border-radius: 10px;
  color: var(--rose-400);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sidebar-logout-btn:hover {
  background: rgba(244,63,94,0.15);
  border-color: rgba(244,63,94,0.4);
  color: #ff8096;
  transform: translateX(2px);
}

/* ---- Responsive Login ---- */
@media (max-width: 500px) {
  .login-card {
    border-radius: 22px;
    margin: 0.5rem;
  }
  .login-brand {
    padding: 1.4rem 1.5rem 1.2rem;
    gap: 0.9rem;
  }
  .login-section {
    padding: 1.2rem 1.5rem;
  }
  .login-logo-wrap {
    width: 58px;
    height: 58px;
  }
  .login-logo-wrap .brand-logo-circle {
    width: 52px;
    height: 52px;
    padding: 4px;
  }
  .login-logo-ring {
    width: 58px; height: 58px;
  }
  .login-title {
    font-size: 1.3rem;
  }
  .login-role-grid {
    display: none !important;
  }
}

/* ==========================================================================
   PORTAL PUBLIK WARGA & INTEGRASI TERPADU (OPSI A)
   ========================================================================== */

/* Utility colors */
.bg-nu-green { background-color: #008141 !important; }
.text-nu-green { color: #008141 !important; }
.border-nu-green { border-color: #008141 !important; }
.bg-nu-light { background-color: #ecfdf5 !important; }

/* Close Button on Login Overlay */
.login-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--transition);
  z-index: 20;
}
.login-close-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: var(--rose-500);
  color: #fff;
  transform: rotate(90deg);
}

/* Sidebar & Header Web Warga Buttons */
.sidebar-web-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0.45rem 0;
  padding: 0.6rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  color: var(--emerald-400);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.sidebar-web-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-400);
  color: #ffffff;
  transform: translateX(2px);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
}
.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--emerald-400);
  color: #ffffff;
}

/* ---- Sticky Top Admin Bar on Public Page ---- */
.admin-public-bar {
  background: linear-gradient(90deg, #052e16 0%, #064e3b 50%, #065f46 100%);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-public-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.admin-bar-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-bar-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
}
.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-bar-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.admin-bar-return {
  background: #f59e0b;
  color: #0b1e15;
}
.admin-bar-return:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}
.admin-bar-logout {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.admin-bar-logout:hover {
  background: rgba(244, 63, 94, 0.4);
  color: #fff;
}

/* ---- Portal Publik Page Container (Dark Luxury Emerald) ---- */
.portal-public-page {
  background: radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 50% 55%, rgba(5, 150, 105, 0.12) 0%, transparent 50%),
              linear-gradient(180deg, #02120b 0%, #052417 35%, #031a11 75%, #010e08 100%);
  color: #f1f5f9;
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* Ambient Glowing Orbs on Hero */
.public-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  animation: publicOrbFloat 14s ease-in-out infinite alternate;
}
.public-hero-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.05) 70%, transparent 100%);
  top: -80px;
  left: 10%;
}
.public-hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.05) 70%, transparent 100%);
  top: 120px;
  right: 8%;
  animation-delay: -5s;
}
.public-hero-orb-3 {
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  bottom: 40px;
  left: 30%;
  animation-delay: -9s;
}

@keyframes publicOrbFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08) rotate(3deg); }
  100% { transform: translateY(20px) scale(0.95) rotate(-3deg); }
}

/* ---- Public Navbar Luxury with Full-Width Waving Indonesian Flag ---- */
.public-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #03140d;
  border-bottom: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.75), 0 0 25px rgba(220, 38, 38, 0.25);
  transition: var(--transition);
  padding-top: var(--sat);
  overflow: hidden;
}

.navbar-flag-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  filter: contrast(1.15) brightness(1.12) saturate(1.15);
}

.navbar-flag-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 50%, rgba(3, 20, 13, 0.16) 100%);
  pointer-events: none;
}

.public-nav-container {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  z-index: 4;
}

.public-brand-logo-wrap {
  width: 56px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-orbital-track {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.brand-orbital-spinner {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #ff2222;
  border-right-color: #ffffff;
  filter: drop-shadow(0 0 8px #ff2222) drop-shadow(0 0 14px #ffffff);
  animation: rotateOrbitalLight 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.brand-logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 34, 34, 0.45), 0 0 20px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.public-brand:hover .brand-logo-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), 0 0 22px rgba(239, 68, 68, 0.65);
}

/* Center Official Title over Waving Flag - DEAD CENTER TO SCREEN */
.navbar-center-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  pointer-events: auto;
  line-height: 1.15;
  width: max-content;
  max-width: calc(100% - 320px);
  z-index: 5;
}

.nav-flag-title-sub {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.74rem, 1.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fef08a; /* Soft Gold Highlight */
  margin-bottom: 2px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(245, 158, 11, 0.85);
}

.nav-flag-title-main {
  font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif;
  font-size: clamp(1.25rem, 2.7vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  word-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  color: #014421; /* Hijau Zamrud Gelap Pekat (Dark Emerald Green) */
  -webkit-text-stroke: 0 !important; /* Tanpa Outline */
  text-shadow: 
    0 0 6px rgba(255, 255, 255, 0.92),
    0 0 12px rgba(255, 255, 255, 0.75),
    0 0 20px rgba(52, 211, 153, 0.85),
    0 0 32px rgba(16, 185, 129, 0.65); /* Efek Pendar Cahaya Terang (Luminous Backlight Aura) */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Efek Tulisan Gelombang Laut (Ocean Wave Rolling across Characters) */
.ocean-wave-char {
  display: inline-block;
  animation: seaWaveRoll 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.085s);
  will-change: transform, filter;
}

.ocean-wave-space {
  display: inline-block;
  width: 0.32em;
}

.nav-flag-title-main:hover .ocean-wave-char {
  animation-duration: 1.5s; /* Gerak gelombang laut lebih dinamis saat kursor diarahkan */
}

@keyframes seaWaveRoll {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  }
  25% {
    transform: translateY(-4.5px) rotate(-1.5deg) scale(1.02);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 16px rgba(52, 211, 153, 0.85));
  }
  50% {
    transform: translateY(2px) rotate(0.8deg);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
  }
  75% {
    transform: translateY(-1.5px) rotate(-0.5deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.65));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-wave-char {
    animation: none !important;
  }
}

.brand-orbital-spinner {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #ff2222;
  border-right-color: #ffffff;
  filter: drop-shadow(0 0 8px #ff2222) drop-shadow(0 0 14px #ffffff);
  animation: rotateOrbitalLight 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.brand-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 34, 34, 0.4), 0 0 18px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.public-brand:hover .brand-logo-circle {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.55);
}

.public-brand:hover .brand-orbital-spinner {
  filter: drop-shadow(0 0 10px #ef4444) drop-shadow(0 0 16px #ffffff);
  animation-duration: 1.1s;
}

.public-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.public-brand-title {
  display: flex;
  flex-direction: column;
}
.public-brand-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #34d399 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.public-brand-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

.public-menu-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.public-nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.public-nav-link i {
  color: var(--emerald-400);
  font-size: 0.85rem;
  transition: var(--transition);
}
.public-nav-link:hover {
  color: #ffffff;
}
.public-nav-link:hover i {
  color: #fbbf24;
  transform: scale(1.15);
}
.public-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #fbbf24 100%);
  transition: width 0.25s ease;
  border-radius: 9999px;
}
.public-nav-link:hover::after {
  width: 100%;
}

.public-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.18);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.public-btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}
.public-btn-login:hover::before {
  left: 100%;
}
.public-btn-login:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 0 25px rgba(245, 158, 11, 0.3);
}

.public-hamburger-btn {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  font-size: 1.25rem;
  color: var(--emerald-400);
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  transition: var(--transition);
}
.public-hamburger-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

/* Mobile Dropdown Dark Luxury */
.public-menu-mobile {
  display: none;
  flex-direction: column;
  background: rgba(3, 20, 13, 0.98);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1.2rem 1.5rem 1.5rem;
  gap: 0.6rem;
  animation: fadeInDown 0.25s ease-out;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}
.public-menu-mobile.active {
  display: flex;
}
.public-mobile-link {
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.public-mobile-link:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #ffffff;
}
.public-btn-login-mobile {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ---- Public Hero Luxury Section ---- */
.public-hero {
  position: relative;
  padding: 5rem 1.5rem 5.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.public-hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
/* Background Watermark Logo RT */
.public-hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, 85vw);
  height: min(540px, 85vw);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.public-hero-watermark-img {
  width: 100%;
  height: 100%;
  max-width: 520px;
  max-height: 520px;
  object-fit: contain;
  opacity: 0.11;
  filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.35));
  animation: watermarkSubtlePulse 8s ease-in-out infinite alternate;
}
@keyframes watermarkSubtlePulse {
  0% {
    transform: scale(1);
    opacity: 0.09;
  }
  100% {
    transform: scale(1.04);
    opacity: 0.13;
  }
}

.public-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 36, 26, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.15);
}
/* ==========================================================================
   MAIN HEADER H1: PERPADUAN OPSI A + B (DUAL-TONE & FOKUS RT.001 RW.013)
   ========================================================================== */
.public-hero-title {
  font-family: var(--font-heading);
  margin-bottom: 0.95rem;
  text-align: center;
  position: relative;
}

.public-hero-dual-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Bagian 1: Web PORTAL DIGITAL (Titanium Platinum / White Pearl) */
.hero-title-prefix {
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
  display: inline-block;
  opacity: 0.95;
}

/* Bagian 2: RT.001 RW.013 (FOKUS UTAMA - Megah, Extra Bold, 24K Liquid Gold Shimmer + Denyut Elegan) */
.hero-title-highlight {
  font-size: clamp(2.35rem, 6.4vw, 4.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.035em;
  display: inline-block;
  transform-origin: center center;
}

/* Efek Mewah: Liquid Champagne Gold Shimmer + Breathing Pulse Glow */
.public-hero-gold-shimmer {
  /* Rich 24K Liquid Champagne Gold Multi-Stop Metallic Palette */
  background: linear-gradient(
    115deg,
    #cf9d34 0%,
    #dfb755 18%,
    #fef7cd 28%,
    #ffffff 34%,
    #fef7cd 40%,
    #dfb755 50%,
    #b88628 68%,
    #f3d882 82%,
    #9a6b18 100%
  );
  background-size: 260% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Multi-animation: Sapuan kilatan emas + Denyut napas ritmis */
  animation: liquidGoldSweep 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite,
             goldBreathingPulse 3.6s ease-in-out infinite;
  will-change: transform, filter, background-position;
}

/* Animasi 1: Sapuan Cahaya Emas 24K */
@keyframes liquidGoldSweep {
  0% {
    background-position: 180% center;
  }
  35%, 100% {
    background-position: -80% center;
  }
}

/* Animasi 2: Efek Denyut Berpendar (Breathing Pulse) */
@keyframes goldBreathingPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
  }
  50% {
    transform: scale(1.038);
    filter: drop-shadow(0 0 38px rgba(251, 191, 36, 0.85)) drop-shadow(0 0 55px rgba(212, 175, 55, 0.5)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95));
  }
}

.public-hero-subtitle-h2 {
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.8vw, 1.22rem);
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.public-hero-subtitle-h2 .public-hero-h2-row {
  display: inline-block;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.public-hero-slogan {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Quick Interactive Feature Pills (6 Kapsul Interaktif) */
.public-hero-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 0.95rem;
  margin: 0 auto 1.5rem;
  max-width: 920px;
}
.public-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(6, 32, 22, 0.72);
  border: 1.5px solid rgba(16, 185, 129, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.public-hero-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}
.public-hero-pill:hover::before {
  left: 140%;
}
.public-hero-pill:hover {
  border-color: rgba(52, 211, 153, 0.85);
  background: rgba(10, 48, 34, 0.94);
  color: #ffffff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 
              0 0 20px rgba(16, 185, 129, 0.4), 
              inset 0 0 12px rgba(255, 255, 255, 0.12);
}
.public-hero-pill:hover i {
  transform: scale(1.24) rotate(-6deg);
}
.public-hero-pill:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.public-hero-pill i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.public-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}
.public-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 30px -4px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}
.public-btn-hero-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -4px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}
.public-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(8, 36, 26, 0.85);
  color: #fbbf24;
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.1);
  transition: var(--transition);
}
.public-btn-hero-secondary:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.35);
}

/* ---- Common Section Utilities (Dark Emerald) ---- */
.public-section {
  padding: 5.5rem 1.5rem;
  position: relative;
}
.public-bg-dark {
  background: transparent;
}
.public-bg-darker {
  background: rgba(2, 16, 10, 0.65);
  border-top: 1px solid rgba(16, 185, 129, 0.14);
  border-bottom: 1px solid rgba(16, 185, 129, 0.14);
}
.public-bg-emerald-gradient {
  background: radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.18) 0%, transparent 65%),
              linear-gradient(180deg, #031a11 0%, #062e1d 50%, #031a11 100%);
  border-top: 1px solid rgba(52, 211, 153, 0.25);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
}

.public-container {
  max-width: 1240px;
  margin: 0 auto;
}
.public-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}
.public-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.public-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.public-section-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
}
.public-section-text {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* Profil Wilayah Narasi & Motto Callout */
.public-tentang-header {
  max-width: 920px;
  margin-bottom: 2.75rem;
}

.public-section-desc-group {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.public-tentang-header .public-section-desc {
  font-size: 1.04rem;
  color: #cbd5e1;
  line-height: 1.75;
  text-align: center;
}

.public-tentang-callout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.65rem auto 0;
  padding: 0.85rem 1.6rem;
  background: rgba(8, 36, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  color: #f1f5f9;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(245, 158, 11, 0.1);
  line-height: 1.5;
  max-width: 860px;
}

.public-tentang-callout i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .public-tentang-callout {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}

/* Grid 2 Column */
.public-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

/* Tentang Section Grid (Level & Balanced Height) */
.public-tentang-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Map Card Luxury Satellite RT.001 (Equal Height) */
.public-map-card {
  background: rgba(6, 32, 22, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 1.35rem 1.45rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(16, 185, 129, 0.08);
  margin-top: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.public-map-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.public-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.public-map-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.public-map-badge {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fb7185;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.public-map-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  background: #000;
  cursor: pointer;
  display: flex;
}

.public-map-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.public-map-wrapper:hover .public-map-img {
  transform: scale(1.03);
}

.public-map-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 28, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 63, 94, 0.6);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.public-map-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(8, 36, 26, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  z-index: 2;
}
.public-map-zoom-btn:hover {
  background: #f59e0b;
  color: #031810;
  transform: scale(1.05);
}

.public-map-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.public-map-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.legend-dot.border-rose-dashed {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px dashed #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  flex-shrink: 0;
  display: inline-block;
}

/* Feature Cards on Right of Tentang */
.public-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  justify-content: space-between;
  height: 100%;
}
.public-feature-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.45rem;
  background: rgba(6, 30, 21, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}
.public-feature-card:hover {
  transform: translateY(-3px);
  border-color: #34d399;
  background: rgba(8, 42, 28, 0.85);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}
.public-feature-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.public-feature-body h4 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.public-feature-body p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* ---- Public Roads Overview (Daftar Jalan RT.001) ---- */
.public-roads-overview {
  background: rgba(6, 32, 22, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 1.35rem 1.45rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(245, 158, 11, 0.05);
  transition: var(--transition);
}
.public-roads-overview:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
}

.public-roads-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roads-overview-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.roads-overview-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.public-roads-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.public-road-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: rgba(4, 22, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.22s ease;
}
.public-road-item:hover {
  background: rgba(8, 42, 28, 0.8);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(4px);
}

.public-road-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.public-road-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.public-road-info strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.public-road-info span {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ---- Agenda Section (Dark Luxury) ---- */
.public-agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.public-agenda-card {
  background: rgba(6, 32, 22, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-top: 3px solid #10b981;
  border-radius: 20px;
  padding: 1.85rem 1.45rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}
.public-agenda-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(16, 185, 129, 0.22);
}
.public-agenda-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.public-agenda-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.public-agenda-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.public-agenda-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.1rem;
}
.public-agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}
.public-agenda-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.public-agenda-list li i {
  color: #34d399;
  margin-top: 0.22rem;
  font-size: 0.85rem;
}
.public-agenda-list li strong {
  color: #e2e8f0;
}

/* Link Button inside Agenda Card 1 to Jadwal Ronda */
.btn-card-ronda-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
}
.btn-card-ronda-link:hover {
  background: #10b981;
  color: #022c22;
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   JADWAL RONDA MALAM & JIMPITAN WARGA (LUXURY INTERACTIVE DARK GLASS)
   ========================================================================== */

.ronda-schedule-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Header Card & Live Status */
.ronda-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  background: linear-gradient(135deg, rgba(6, 44, 30, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

.ronda-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ronda-header-content {
  flex: 1;
}

.ronda-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.ronda-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ronda-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.55;
  max-width: 680px;
}

/* Live Status Indicator Pill */
.ronda-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.45rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.22);
  white-space: nowrap;
}

.ronda-status-pulse {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ronda-status-pulse .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #34d399;
  opacity: 0.75;
  animation: rondaRingPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.ronda-status-pulse .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #34d399;
}

@keyframes rondaRingPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.ronda-status-text {
  display: flex;
  flex-direction: column;
}

.ronda-status-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ronda-status-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Toolbar: Search, Filters & Actions */
.ronda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0.85rem 1.15rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ronda-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(6, 32, 22, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
  transition: all 0.25s ease;
}

.ronda-search-box:focus-within {
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.ronda-search-box .search-icon {
  color: #34d399;
  font-size: 0.9rem;
}

.ronda-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  width: 100%;
}

.ronda-search-box input::placeholder {
  color: #64748b;
}

.ronda-search-box .btn-clear-search {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.ronda-search-box .btn-clear-search:hover {
  color: #f87171;
}

/* Filter Tabs */
.ronda-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ronda-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ronda-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ronda-tab-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.ronda-tab-btn.tab-highlight {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.ronda-tab-btn.tab-highlight.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Quick Action Buttons */
.ronda-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ronda-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ronda-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ronda-action.btn-ronda-wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.35);
  color: #4ade80;
}

.btn-ronda-action.btn-ronda-wa:hover {
  background: #25d366;
  color: #064e3b;
  border-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-ronda-action.btn-ronda-manage {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-ronda-action.btn-ronda-manage:hover {
  background: #f59e0b;
  color: #451a03;
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* Search Alert */
.ronda-search-alert {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* 4 Cards Grid */
.ronda-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ronda-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 32, 22, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-top: 3px solid rgba(52, 211, 153, 0.45);
  border-radius: 20px;
  padding: 1.65rem 1.35rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ronda-card:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.22);
}

/* Card Current Week Highlight */
.ronda-card.is-current-week {
  border-color: rgba(52, 211, 153, 0.85);
  border-top: 4px solid #34d399;
  background: linear-gradient(180deg, rgba(16, 55, 38, 0.9) 0%, rgba(6, 35, 24, 0.92) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 32px rgba(16, 185, 129, 0.32);
}

.ronda-card.is-current-week::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Card Header */
.ronda-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.ronda-week-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ronda-week-tag {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ronda-week-cycle {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ronda-badge-status-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.ronda-badge-status-current .dot-pulse {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34d399;
}

/* Leader / Komandan Box */
.ronda-leader-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  position: relative;
  transition: all 0.25s ease;
}

.ronda-leader-box:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
}

.ronda-leader-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.ronda-leader-crown {
  position: absolute;
  top: -8px;
  right: -6px;
  color: #fcd34d;
  font-size: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.ronda-leader-info {
  flex: 1;
  min-width: 0;
}

.ronda-leader-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ronda-leader-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ronda-leader-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Members Wrap */
.ronda-members-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.ronda-members-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ronda-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ronda-member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  transition: all 0.25s ease;
}

.ronda-member-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(4px);
}

.ronda-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ronda-member-detail {
  flex: 1;
  min-width: 0;
}

.ronda-member-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ronda-member-role {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

.ronda-member-check {
  color: #34d399;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Highlight match on search */
.ronda-highlight-match {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.ronda-highlight-match .ronda-member-name,
.ronda-highlight-match.ronda-leader-name {
  color: #fef08a !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Card Footer */
.ronda-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ronda-card-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.ronda-card-tasks span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.ronda-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-card-action-wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #4ade80;
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action-wa:hover {
  background: #25d366;
  color: #064e3b;
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.btn-card-action-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tradisi Jimpitan & SOP Luxury Showcase */
.ronda-info-box-luxury {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(6, 44, 30, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
}

.ronda-jimpitan-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ronda-jimpitan-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ronda-jimpitan-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.ronda-jimpitan-header h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.ronda-jimpitan-header p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.ronda-jimpitan-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ronda-jimpitan-feature-item {
  display: flex;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.ronda-jimpitan-feature-item i {
  font-size: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ronda-jimpitan-feature-item strong {
  display: block;
  font-size: 0.92rem;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.ronda-jimpitan-feature-item span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* 3 Langkah SOP Ronda */
.ronda-sop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ronda-sop-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  transition: all 0.25s ease;
}

.ronda-sop-step-card:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.sop-step-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
  opacity: 0.85;
}

.sop-step-content strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.sop-step-content p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* Responsive Media Queries for Ronda Schedule */
@media (max-width: 1200px) {
  .ronda-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .ronda-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ronda-live-status-pill {
    width: 100%;
    justify-content: flex-start;
  }
  .ronda-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ronda-search-box {
    max-width: 100%;
  }
  .ronda-filter-tabs {
    justify-content: flex-start;
  }
  .ronda-jimpitan-features,
  .ronda-sop-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ronda-cards-grid {
    grid-template-columns: 1fr;
  }
  .ronda-card {
    padding: 1.35rem 1.15rem;
  }
  .ronda-header-card {
    padding: 1.5rem 1.25rem;
  }
  .ronda-info-box-luxury {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   MODAL KELOLA JADWAL RONDA (PENGURUS RT)
   ========================================================================== */

.modal-ronda-dialog {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(6, 32, 22, 0.98) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15) !important;
  border-radius: 24px;
}

.modal-title-wrap {
  flex: 1;
}

.modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* Week Selector Tabs in Modal */
.ronda-manage-week-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ronda-manage-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.ronda-manage-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ronda-manage-tab.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.ronda-manage-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ronda-manage-info-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.65rem 1rem;
  border-radius: 12px;
}

.ronda-edit-cycle-text {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.ronda-form-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
}

.ronda-members-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.btn-add-member-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-member-mini:hover {
  background: #10b981;
  color: #022c22;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.ronda-members-edit-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.ronda-member-edit-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  transition: all 0.2s ease;
}

.ronda-member-edit-row:focus-within {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.ronda-member-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  width: 22px;
  text-align: center;
}

.ronda-member-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  padding: 0.3rem 0.45rem !important;
  box-shadow: none !important;
  outline: none !important;
}

.ronda-member-input::placeholder {
  color: #64748b;
}

.btn-edit-ronda-member,
.btn-remove-ronda-member {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-edit-ronda-member:hover,
.btn-remove-ronda-member:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* ---- Transparansi & Digitalisasi Section (Luxury Emerald Glow) ---- */
.public-header-light .public-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.public-header-light .public-title-light {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.public-header-light .public-desc-light {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.public-stat-box {
  background: rgba(4, 24, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 22px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}
.public-stat-box:hover {
  background: rgba(6, 36, 24, 0.9);
  border-color: #34d399;
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.25);
}
.public-stat-highlight {
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(4, 24, 16, 0.9) 75%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.18);
}
.public-stat-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #34d399;
}
.public-stat-highlight .public-stat-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}
.public-stat-box h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.public-stat-box p {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.public-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  color: #a7f3d0;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Call to action inside transparansi */
.public-cta-card {
  background: rgba(3, 18, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 2.25rem 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(245, 158, 11, 0.08);
}
.public-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}
.public-cta-text h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.public-cta-text p {
  font-size: 0.94rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
}
.public-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #03140e;
  border: none;
  padding: 0.95rem 1.85rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}
.public-btn-cta:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.55);
}

/* ---- Pengurus Section (Dark Luxury) ---- */
.public-officers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.public-officer-card {
  background: rgba(6, 32, 22, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 22px;
  padding: 2.25rem 1.45rem;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.public-officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
}
.public-officer-avatar-wrap {
  position: relative;
  margin-bottom: 1.35rem;
}
.public-officer-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.25) 0%, rgba(3, 24, 16, 0.95) 100%);
  border: 2.5px solid rgba(52, 211, 153, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transition: var(--transition);
}
.public-officer-card:hover .public-officer-avatar {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}
.public-officer-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  border: 2px solid #02140d;
}
.public-officer-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.public-officer-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.45rem;
}
.public-officer-note {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 1.35rem;
  flex-grow: 1;
  line-height: 1.45;
}
.public-officer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.public-officer-wa:hover {
  background: #10b981;
  color: #02140d;
  border-color: #10b981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

/* ---- Public Footer Luxury ---- */
.public-footer {
  background: #010c07;
  color: #f8fafc;
  padding: 5rem 1.5rem 2.2rem;
  border-top: 1px solid rgba(16, 185, 129, 0.22);
}
.public-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}
.public-footer-brand {
  max-width: 440px;
}
.public-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.public-footer-logo-ring {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6, 32, 22, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.public-footer-logo {
  height: 42px;
  width: auto;
}
.public-footer-logo-row h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #34d399;
  margin: 0;
}
.public-footer-logo-row p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}
.public-footer-address {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.public-footer-social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.public-footer-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.public-footer-links h5,
.public-footer-portal-inner h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}
.public-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.public-footer-links a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.public-footer-links a:hover {
  color: #34d399;
  transform: translateX(4px);
}

.public-footer-portal-inner {
  background: rgba(6, 32, 22, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 1.65rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.public-footer-portal-inner p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.public-btn-footer-login {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.public-btn-footer-login:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.public-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: #64748b;
}
.public-footer-version {
  color: #34d399;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---- Public Responsive Styles ---- */
@media (max-width: 1024px) {
  .public-grid-2 {
    gap: 2rem;
    align-items: start;
  }
  .public-tentang-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .public-map-wrapper {
    min-height: 320px;
  }
  .public-map-img {
    min-height: 320px;
    max-height: 380px;
  }
  .public-map-card {
    padding: 1.25rem;
  }
  .public-agenda-grid,
  .public-stats-grid,
  .public-officers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .public-menu-desktop {
    display: none;
  }
  .public-hamburger-btn {
    display: block;
  }
  .public-grid-2,
  .public-tentang-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .public-tentang-grid .public-map-card {
    height: auto;
    padding: 1.25rem 1.15rem;
    margin-top: 0;
  }
  .public-map-wrapper {
    flex: none;
    min-height: auto;
    height: 290px;
  }
  .public-map-img {
    min-height: auto;
    height: 100%;
    max-height: 290px;
  }
  .public-feature-cards {
    height: auto;
    justify-content: flex-start;
    gap: 1.15rem;
  }
  .public-feature-card {
    padding: 1.35rem 1.15rem;
  }
  .public-roads-overview {
    padding: 1.25rem 1.15rem;
  }
  .public-agenda-grid,
  .public-stats-grid,
  .public-officers-grid {
    grid-template-columns: 1fr;
  }
  .public-footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .public-hero {
    padding: 3.5rem 1rem 4rem;
  }
  .public-section {
    padding: 3.75rem 1rem;
  }
  .public-cta-card {
    padding: 1.6rem;
  }
}

@media (max-width: 480px) {
  .public-grid-2,
  .public-tentang-grid {
    gap: 1.5rem;
  }
  .public-map-card {
    padding: 1rem;
    border-radius: 18px;
    margin-top: 0;
  }
  .public-map-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
  }
  .public-map-title {
    font-size: 0.92rem;
  }
  .public-map-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .public-map-wrapper {
    height: 230px;
  }
  .public-map-img {
    min-height: auto;
    max-height: 230px;
  }
  .public-map-overlay-badge {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }
  .public-map-zoom-btn {
    bottom: 8px;
    right: 8px;
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
  }
  .public-map-legend {
    font-size: 0.76rem;
    gap: 0.5rem;
    line-height: 1.35;
  }
  .public-feature-card {
    padding: 1.15rem 1rem;
    gap: 0.95rem;
    border-radius: 16px;
  }
  .public-feature-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 12px;
  }
  .public-feature-body h4 {
    font-size: 1.05rem;
  }
  .public-feature-body p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .public-roads-overview {
    padding: 1.15rem 1rem;
    border-radius: 16px;
  }
  .roads-overview-title {
    font-size: 0.88rem;
  }
  .roads-overview-badge {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
  }
  .public-road-item {
    padding: 0.65rem 0.8rem;
    gap: 0.75rem;
    border-radius: 10px;
  }
  .public-road-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .public-road-info strong {
    font-size: 0.86rem;
  }
  .public-road-info span {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   STATISTIK DEMOGRAFI WARGA RT.001 RW.013
   ========================================================================== */
.demografi-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.demografi-last-updated {
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-demografi-edit {
  background: rgba(8, 36, 26, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(245, 158, 11, 0.15);
}
.btn-demografi-edit:hover {
  background: #f59e0b;
  color: #031810;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Demografi KPI Cards Grid */
.demografi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.demografi-kpi-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(8, 30, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.demografi-kpi-card:hover {
  transform: translateY(-4px);
}
.demografi-kpi-card.border-emerald:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}
.demografi-kpi-card.border-cyan:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}
.demografi-kpi-card.border-pink:hover {
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 10px 25px rgba(244, 114, 182, 0.15);
}
.demografi-kpi-card.border-purple:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.demografi-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.bg-emerald-glow {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.bg-cyan-glow {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.bg-pink-glow {
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.bg-purple-glow {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.text-pink { color: #f472b6 !important; }
.text-purple { color: #c084fc !important; }
.text-amber { color: #fbbf24 !important; }

.demografi-kpi-content {
  flex: 1;
  min-width: 0;
}
.demografi-kpi-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.demografi-kpi-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}
.demografi-kpi-val .unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}
.demografi-kpi-sub {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Usia Quick Pills Row */
.demografi-age-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.demografi-age-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}
.demografi-age-pill:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}
.demografi-age-pill strong {
  color: #ffffff;
}

/* Charts Grid */
.demografi-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.demografi-chart-card {
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(6, 24, 18, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
}
.demografi-chart-header {
  margin-bottom: 1.25rem;
}
.demografi-chart-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}
.demografi-chart-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}
.demografi-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
.demografi-chart-legend-custom {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #94a3b8;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.demografi-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.demografi-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Modal Demografi Tabs & Controls */
.demografi-modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}
.demografi-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.demografi-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.demografi-form-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.demografi-live-summary {
  display: flex;
  justify-content: space-around;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.summary-item strong {
  font-size: 1.05rem;
  color: #34d399;
}

@media (max-width: 992px) {
  .demografi-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demografi-charts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .demografi-kpi-grid {
    grid-template-columns: 1fr;
  }
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .demografi-live-summary {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FLOATING LUXURY SCROLL-TO-TOP BUTTON (1-KLIK KEMBALI KE ATAS)
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(6, 32, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(245, 158, 11, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.88);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s,
              background 0.25s,
              border-color 0.25s,
              box-shadow 0.25s;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: rgba(10, 48, 34, 0.96);
  border-color: rgba(251, 191, 36, 0.9);
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.5);
}

.scroll-to-top-btn:hover .scroll-top-icon-wrapper {
  transform: translateY(-3px);
  color: #fde047;
}

.scroll-to-top-btn:active {
  transform: translateY(1px) scale(0.96);
}

.scroll-top-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.scroll-top-label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Responsif Mobile untuk Scroll-To-Top */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 5.2rem; /* Tepat di atas bar navigasi bawah mobile admin */
    right: 1.2rem;
    padding: 0.7rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
  }
  .scroll-to-top-btn .scroll-top-label {
    display: none; /* Bentuk lingkaran minimalis di HP */
  }
}

/* ==========================================================================
   LAYANAN PENGAJUAN DANA / PERBAIKAN FASILITAS (WARGA & PENGURUS RT)
   Desain Sesuai Ilustrasi Referensi Pengguna
   ========================================================================== */

.dana-public-page {
  background: #f8fafc;
  min-height: 100vh;
  padding: 32px 20px 80px;
  color: #0f172a;
  font-family: var(--font-body);
  position: relative;
  z-index: 100;
}

.dana-page-container {
  max-width: 980px;
  margin: 0 auto;
}

/* HEADER BOX (PERSIS SEPERTI GAMBAR DENGAN AKSEN BIRU MELENGKUNG) */
.dana-header-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  border-left: 7px solid #2563eb;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  gap: 1.5rem;
}

.dana-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #1d4ed8;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dana-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 5px 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.dana-subtitle {
  color: #64748b;
  font-size: 14.5px;
  margin: 0;
  font-weight: 400;
}

.dana-btn-back {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.dana-btn-back:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateX(-3px);
}

/* KARTU STEP 1: VERIFIKASI IDENTITAS PEMOHON (PERSIS SEPERTI GAMBAR) */
.dana-step-card {
  max-width: 580px;
  margin: 0 auto 48px auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 46px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  border: 1px solid #eef2f6;
}

.dana-card-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.dana-card-desc {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 auto 28px auto;
  max-width: 440px;
}

.dana-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.dana-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.dana-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 16px;
  font-size: 15px;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.dana-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dana-input-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.dana-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dana-pw-toggle:hover {
  color: #2563eb;
}

.dana-hint-row {
  margin-top: 8px;
  margin-bottom: 12px;
}

.dana-hint-tag {
  font-size: 12px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dana-hint-tag code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #2563eb;
  font-weight: 600;
}

.dana-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.dana-btn-submit {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 24px;
  font-family: inherit;
}

.dana-btn-submit:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 25px -4px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.dana-btn-submit:active {
  transform: translateY(0);
}

/* Quick Resident Selector Tags */
.dana-quick-residents {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}

.dana-quick-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 8px;
}

.dana-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dana-quick-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dana-quick-tag:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* STEP 2: FORMULIR PENGAJUAN (EXPANDED CARD) */
.dana-step-card.dana-form-card {
  max-width: 780px;
  padding: 36px 44px;
  animation: fadeInDown 0.35s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dana-verified-bar {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.dana-verified-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dana-verified-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dana-verified-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 4px;
}

.dana-verified-info h3 {
  margin: 3px 0 2px 0;
  font-size: 16px;
  font-weight: 700;
  color: #14532d;
  font-family: var(--font-heading);
}

.dana-verified-info p {
  margin: 0;
  font-size: 12.5px;
  color: #166534;
}

.dana-btn-change-user {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dana-btn-change-user:hover {
  background: #dcfce7;
}

.dana-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dana-select {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 14px;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dana-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.dana-currency-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: #10b981;
  font-size: 15px;
}

.dana-input-currency {
  padding-left: 44px !important;
  font-weight: 700;
  color: #059669;
  font-size: 16px;
}

.dana-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  padding: 12px 16px;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dana-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Upload Photo Zone */
.dana-upload-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.dana-upload-zone:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.dana-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dana-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.dana-upload-content i {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 4px;
}

.dana-upload-content span {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.dana-upload-content small {
  font-size: 12px;
  color: #94a3b8;
}

.dana-upload-preview {
  position: relative;
  display: inline-block;
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dana-upload-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.dana-remove-img {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.dana-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.dana-btn-whatsapp {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dana-btn-whatsapp:hover {
  background: #047857;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.4);
}

/* SECTION RIWAYAT TRANSPARANSI */
.dana-history-section {
  margin-top: 50px;
}

.dana-history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.dana-badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.dana-history-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.dana-history-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.dana-btn-refresh {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.dana-btn-refresh:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dana-history-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.dana-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dana-tab-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

.dana-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.dana-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.dana-card-item {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.dana-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.dana-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dana-item-id {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.dana-item-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.status-approved {
  background: #dcfce7;
  color: #15803d;
}

.status-disbursed {
  background: #e0f2fe;
  color: #0369a1;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.dana-item-category {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dana-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
  line-height: 1.35;
}

.dana-item-details {
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.dana-item-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dana-item-nominal {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
  font-family: var(--font-heading);
  margin-top: 6px;
}

.dana-item-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

/* BANNER LAYANAN MANDIRI DI PUBLIC PORTAL */
.public-dana-feature-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(8, 51, 38, 0.9) 0%, rgba(5, 36, 26, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 6px solid #2563eb;
  border-radius: 20px;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.public-dana-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.public-dana-feature-left h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.public-dana-feature-left p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

.btn-open-layanan-dana-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
  font-family: inherit;
}

.btn-open-layanan-dana-cta:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

.public-nav-highlight {
  background: rgba(37, 99, 235, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #60a5fa !important;
  border-radius: 10px !important;
  padding: 6px 14px !important;
}

.public-nav-btn-link {
  font-family: inherit;
  cursor: pointer;
  font-size: inherit;
}

/* MODAL DETAIL PENGAJUAN DANA ADMIN */
.dana-modal-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.dana-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.dana-modal-item label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dana-modal-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
}

.dana-modal-nominal-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 18px;
}

.dana-modal-nominal-box span {
  font-size: 12px;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dana-modal-nominal-box h2 {
  font-size: 28px;
  font-family: var(--font-heading);
  margin: 4px 0 0 0;
}

.dana-modal-desc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.dana-modal-desc-box label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dana-modal-desc-text {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-line;
  margin: 0;
}

.dana-modal-photo-wrap {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
  text-align: center;
}

.dana-modal-photo-wrap img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* RESPONSIVE LAYANAN PENGAJUAN DANA */
@media (max-width: 768px) {
  .dana-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 1rem;
  }
  .dana-btn-back {
    width: 100%;
    justify-content: center;
  }
  .dana-step-card {
    padding: 28px 20px;
  }
  .dana-form-grid-2 {
    grid-template-columns: 1fr;
  }
  .dana-modal-grid {
    grid-template-columns: 1fr;
  }
  .public-dana-feature-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .btn-open-layanan-dana-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   OFF-CANVAS DRAWER MENU & 1-SCREEN EXECUTIVE HUB (MODEL 1)
   RT.001 / RW.013 GRAHA ASRI
   ========================================================================== */

/* ---- Public Navbar Right Actions ---- */
.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 4;
  margin-left: auto;
}

/* Nav Portal Group (Warga & Pengurus) */
.nav-portal-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 20, 14, 0.6);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
}

.btn-nav-portal i {
  font-size: 0.85rem;
}

/* Portal Warga Button */
.btn-nav-portal.btn-nav-warga {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-nav-portal.btn-nav-warga:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #22d3ee;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

/* Portal Pengurus Button */
.btn-nav-portal.btn-nav-pengurus {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-nav-portal.btn-nav-pengurus:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-drawer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.15rem;
  background: linear-gradient(135deg, #008744 0%, #006837 100%); /* Hijau NU Khas & Berwibawa */
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 135, 68, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-drawer-trigger i,
.btn-drawer-trigger .drawer-trigger-text {
  color: #ffffff !important;
}

.btn-drawer-trigger:hover {
  background: linear-gradient(135deg, #009e4f 0%, #00783f 100%);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 158, 79, 0.7);
}

.drawer-trigger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #006837;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ---- Drawer Backdrop ---- */
.public-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.public-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ---- Off-canvas Drawer Panel ---- */
.public-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.16) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              linear-gradient(175deg, #03170e 0%, #062215 50%, #02110a 100%);
  border-left: 1.5px solid rgba(16, 185, 129, 0.28);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.1);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.public-drawer-panel.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 20, 13, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.drawer-orbital-wrap {
  width: 44px;
  height: 44px;
}

.drawer-brand:hover .brand-logo-circle {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 20px rgba(251, 191, 36, 0.55);
}

.drawer-brand:hover .brand-orbital-spinner {
  filter: drop-shadow(0 0 10px #ef4444) drop-shadow(0 0 16px #ffffff);
  animation-duration: 1.1s;
}

.drawer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #34d399 70%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-brand-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Drawer Body */
.drawer-body {
  padding: 1.25rem 1.25rem;
  flex: 1;
}

.drawer-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.85rem;
  padding-left: 0.4rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.drawer-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
}

.drawer-nav-item:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.drawer-nav-highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.drawer-nav-highlight:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(16, 185, 129, 0.18) 100%);
  border-color: #22d3ee;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.drawer-nav-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.drawer-nav-content {
  flex: 1;
  min-width: 0;
}

.drawer-nav-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.drawer-nav-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.drawer-nav-desc {
  font-size: 0.77rem;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-nav-arrow {
  color: #64748b;
  font-size: 0.82rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-nav-item:hover .drawer-nav-arrow {
  color: #34d399;
  transform: translateX(3px);
}

.drawer-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 12, 8, 0.6);
}

.drawer-footer-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 1rem;
}

.drawer-footer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.drawer-footer-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 0.85rem 0;
}

.drawer-btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #04140e;
  font-weight: 800;
  font-size: 0.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.drawer-btn-login:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   1-SCREEN EXECUTIVE HUB (HOMEPAGE VIEW)
   ========================================================================== */
.public-home-hub {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.25rem 1.5rem 1.25rem;
  z-index: 2;
}

.hub-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hub Hero Header - Tepat Merapat di Bawah Garis Bendera */
.hub-hero-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hub-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #34d399;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.hub-hero-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.01em;
}

.hub-title-prefix {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.hub-title-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.3));
}

/* ==================== BENDERA MERAH PUTIH BERKIBAR HERO BANNER ==================== */

.indonesia-flag-waving-banner,
.flag-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  width: 100%;
  max-width: 780px;
  min-height: 124px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(220, 38, 38, 0.28),
    0 0 45px rgba(255, 255, 255, 0.15);
  border: none;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  user-select: none;
  box-sizing: border-box;
}

.indonesia-flag-waving-banner:hover,
.flag-container:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 0 50px rgba(220, 38, 38, 0.4),
    0 0 60px rgba(255, 255, 255, 0.25);
}

/* Video Background Bendera Merah Putih (redwihite.mp4) */
.flag-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* Waving Flag Cloth Wrapper (Fallback) */
.flag-cloth-wave,
.flag-cloth {
  position: absolute;
  inset: -4px; /* Bleed slight offset to prevent filter edge transparency */
  display: flex;
  flex-direction: column;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  filter: url(#flag-wave-displacement);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Merah (Upper Half - 50%) */
.flag-stripe.flag-red,
.flag-red-half {
  flex: 1;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 45%, #991b1b 100%);
  position: relative;
}

/* Putih (Lower Half - 50%) */
.flag-stripe.flag-white,
.flag-white-half {
  flex: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #cbd5e1 100%);
  position: relative;
}

/* Realistic Waving Ripples (Gelombang Kain Sutra Berkibar) */
.flag-wave-ripple,
.flag-wave-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat-x;
}

/* Primary Wave Layer (Cahaya & Bayangan Lipatan Bendera) */
.flag-ripple-1,
.wave-primary {
  background-size: 260px 100%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.08) 22%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(0, 0, 0, 0.08) 78%,
    rgba(0, 0, 0, 0.4) 100%
  );
  mix-blend-mode: overlay;
  animation: flagWaveMotion 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Secondary Fast Wave (Riak Angin Menengah) */
.flag-ripple-2,
.wave-secondary {
  background-size: 170px 100%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(0, 0, 0, 0.24) 48%,
    rgba(255, 255, 255, 0.28) 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: flagWaveMotion 2.8s ease-in-out infinite reverse;
}

/* Third Micro Ripple (Tekstur Angin Kencang) */
.flag-ripple-3 {
  background-size: 380px 100%;
  background-image: repeating-linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 65%,
    rgba(0, 0, 0, 0.25) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
  animation: flagWaveMotion 6.5s ease-in-out infinite;
}

/* Specular Silk Shimmer Effect (Kilau Sutra Berkibar Bergerak) */
.flag-wind-shimmer,
.flag-specular-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.42) 48%,
    rgba(255, 255, 255, 0.68) 50%,
    rgba(255, 255, 255, 0.42) 52%,
    transparent 75%
  );
  background-size: 300% 100%;
  mix-blend-mode: screen;
  animation: flagShimmerFlow 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Edge & 3D Depth Vignette */
.flag-edge-crease,
.flag-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

/* Overlay Pelindung Kontras Semi-Transparan Tipis */
.flag-contrast-scrim,
.flag-contrast-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 70% at 50% 50%,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.18) 60%,
    rgba(15, 23, 42, 0.04) 100%
  );
}

/* Keyframes Wave Animation */
@keyframes flagWaveMotion {
  0% {
    background-position: 0 0;
    transform: skewY(-0.35deg);
  }
  50% {
    background-position: 260px 0;
    transform: skewY(0.4deg);
  }
  100% {
    background-position: 520px 0;
    transform: skewY(-0.35deg);
  }
}

@keyframes flagShimmerFlow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Content Container over Waving Flag (Persis di Tengah / Center Alignment) */
.flag-banner-overlay,
.flag-content-centered {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* ==================== SPLIT-TEXT REVEAL LUXURY COMPONENT ==================== */

.split-text-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  line-height: 1.15;
  user-select: none;
}

.split-line {
  display: block;
  text-align: center;
  position: relative;
}

/* Sub-title: Web Aplikasi Resmi */
.split-line-sub {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.92rem, 2.1vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fef08a; /* Soft elegant gold highlight */
  margin-bottom: 0.38rem;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(245, 158, 11, 0.7);
}

/* Main Title: WARGA RT.001 RW.013 - MaskingRenta Custom Font with High Contrast Deep Emerald (#006600) */
.split-line-main {
  font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;

  /* 1. Warna Utama Solid: Deep Emerald (#006600) pekat tanpa background-clip gradient */
  color: #006600;
  -webkit-text-fill-color: #006600;
  background: none;

  /* 2. Penyesuaian Kontras Tinggi di Atas Bendera Merah Putih: Stroke & Crisp Solid Text-Shadow */
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.95);
  text-shadow: 
    1.5px 1.5px 0px rgba(255, 255, 255, 0.95),
    -1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
    1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
    -1.5px 1.5px 0px rgba(255, 255, 255, 0.95),
    0px 3px 8px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));

  /* 3. Integrasi Animasi: Levitation Halus (Breathing Mulus 4 Detik) */
  animation: textLevitation 4s ease-in-out infinite;

  /* 3D Hover Tilt: Setup Prespektif & Transisi Halus */
  transform-style: preserve-3d;
  perspective: 900px;
  transform-origin: center center;
  transition: 
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: pointer;
}

/* Pastikan Elemen Kata & Huruf Split-Text Menggunakan Font MaskingRenta dan Warna Solid #006600 */
.split-line-main .word,
.split-line-main .char {
  font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif;
  color: #006600 !important;
  -webkit-text-fill-color: #006600 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-stroke: 0.75px rgba(255, 255, 255, 0.95);
  text-shadow: 
    1.5px 1.5px 0px rgba(255, 255, 255, 0.95),
    -1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
    1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
    -1.5px 1.5px 0px rgba(255, 255, 255, 0.95);
}

/* 3D Hover Tilt: Efek Reaktif Interaktif Saat Kursor Diarahkan */
.split-line-main:hover {
  transform: perspective(900px) rotateX(7deg) rotateY(-5deg) translateY(-5px) scale(1.025);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

/* 4. Animasi Levitation: Melayang Statis Naik-Turun (3-5px) Selaras dengan Gelombang Bendera */
@keyframes textLevitation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .split-line-main {
    animation: none !important;
  }
}

/* Masking Kata & Huruf (Word Masking Container) */
.split-text-reveal .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.28em;
  vertical-align: top;
}

.split-text-reveal .word:last-child {
  margin-right: 0;
}

/* Karakter Huruf: Posisi Awal Tersembunyi di Bawah Masking */
.split-text-reveal .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

/* Staggered Reveal Trigger saat .reveal-active Terpicu */
.split-text-reveal.reveal-active .char {
  transform: translateY(0);
  opacity: 1;
}

/* Fallback / Backward Compatibility for Cyber Badge */
.cyber-badge-h1 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 0.65rem auto;
  padding: 0.85rem 2rem 1.05rem 2rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(8, 20, 29, 0.72) 40%, rgba(6, 15, 23, 0.9) 100%);
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.hub-hero-subtitle {
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
  font-weight: 600;
  color: #fbbf24;
  margin: 0.05rem auto 0.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.hub-hero-subtitle span {
  color: #fcd34d;
}

.hub-sub-dot {
  color: #f59e0b;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.hub-hero-slogan {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slogan-cipta-karya {
  font-family: var(--font-heading, sans-serif);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.65), 0 2px 6px rgba(0, 0, 0, 0.9);
  display: inline-block;
  animation: sloganGentleBreathe 5.5s infinite ease-in-out;
  will-change: transform, filter, opacity;
}

@keyframes sloganGentleBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.25));
  }
  50% {
    transform: scale(1.022);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.55)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.25));
  }
}

/* Realtime Ticker Status RT */
.hub-ticker-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  background: rgba(3, 20, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hub-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hub-ticker-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.hub-ticker-info {
  display: flex;
  flex-direction: column;
}

.hub-ticker-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hub-ticker-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

/* ==================== BANNER IKLAN / BROADCAST EVENT TERDEKAT (POPUP MODAL) ==================== */
.hub-event-banner-wrap {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(3, 10, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
}

.hub-event-banner-wrap::-webkit-scrollbar {
  width: 6px;
}
.hub-event-banner-wrap::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
}

.hub-event-banner-wrap.show-popup {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.hub-event-banner-wrap.closing {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hub-event-banner {
  background: linear-gradient(168deg, rgba(8, 30, 22, 0.97) 0%, rgba(11, 23, 36, 0.98) 50%, rgba(6, 18, 14, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  padding: 1.85rem 2.2rem 1.65rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
  max-width: 620px;
  width: 100%;
  margin: auto;
  box-shadow: 
    0 28px 75px -12px rgba(0, 0, 0, 0.95),
    0 0 16px 2px rgba(239, 68, 68, 0.85),
    0 0 32px 5px rgba(255, 255, 255, 0.65),
    0 0 55px 10px rgba(220, 38, 38, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  animation: redWhiteOuterGlowPulse 3s ease-in-out infinite alternate;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

@keyframes redWhiteOuterGlowPulse {
  0% {
    box-shadow: 
      0 28px 75px -12px rgba(0, 0, 0, 0.95),
      0 0 14px 2px rgba(239, 68, 68, 0.8),
      0 0 26px 4px rgba(255, 255, 255, 0.6),
      0 0 50px 8px rgba(220, 38, 38, 0.38),
      inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.75);
  }
  50% {
    box-shadow: 
      0 28px 75px -12px rgba(0, 0, 0, 0.95),
      0 0 22px 3px rgba(255, 255, 255, 0.9),
      0 0 42px 7px rgba(239, 68, 68, 0.9),
      0 0 72px 14px rgba(220, 38, 38, 0.55),
      inset 0 1px 1px rgba(255, 255, 255, 0.75);
    border-color: #ffffff;
  }
  100% {
    box-shadow: 
      0 28px 75px -12px rgba(0, 0, 0, 0.95),
      0 0 18px 3px rgba(239, 68, 68, 0.85),
      0 0 34px 5px rgba(255, 255, 255, 0.68),
      0 0 58px 10px rgba(220, 38, 38, 0.42),
      inset 0 1px 1px rgba(255, 255, 255, 0.45);
    border-color: rgba(254, 202, 202, 0.85);
  }
}

.hub-event-banner-wrap.show-popup .hub-event-banner {
  animation: eventPopupBounceIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, redWhiteOuterGlowPulse 3s ease-in-out 0.45s infinite alternate;
}

.hub-event-banner-wrap.closing .hub-event-banner {
  transform: scale(0.92) translateY(16px);
  transition: transform 0.25s ease;
}

@keyframes eventPopupBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(24px);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tombol Tutup Banner (Tanda Silang Mewah) */
.btn-event-popup-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-event-popup-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.btn-event-popup-close:active {
  transform: rotate(90deg) scale(0.92);
}

/* Tombol Re-open Event di Ticker (Kontras Tinggi: Merah dengan Kuning & Putih) */
.btn-hub-event-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 50%, #991b1b 100%) !important;
  border: 2px solid #fef08a !important;
  color: #ffffff !important;
  padding: 0.42rem 1.05rem !important;
  border-radius: 9999px !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: auto !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.75), 0 0 8px rgba(254, 240, 138, 0.45), 0 3px 8px rgba(0, 0, 0, 0.4) !important;
  animation: fastPulseTrigger 1.25s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
  will-change: transform, box-shadow !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
}

.btn-hub-event-trigger i {
  color: #fef08a !important; /* Kuning cerah sangat kontras */
  font-size: 0.95rem !important;
  filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.8)) !important;
}

.btn-hub-event-trigger span:not(.event-trigger-dot) {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: 0.02em !important;
}

@keyframes fastPulseTrigger {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    border-color: #fef08a;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.95), 0 0 28px rgba(254, 240, 138, 0.6);
    border-color: #ffffff;
  }
}

.btn-hub-event-trigger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.9), 0 0 16px rgba(254, 240, 138, 0.7) !important;
}

.event-trigger-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #fef08a !important; /* Kuning terang menyala */
  box-shadow: 0 0 10px #fef08a, 0 0 16px #fef08a !important;
  display: inline-block !important;
  animation: beaconPing 1.8s infinite !important;
}

.hub-event-banner:hover {
  border-color: #ffffff;
  box-shadow: 
    0 32px 85px -10px rgba(0, 0, 0, 0.95),
    0 0 25px 4px rgba(255, 255, 255, 0.95),
    0 0 48px 8px rgba(239, 68, 68, 0.95),
    0 0 82px 16px rgba(220, 38, 38, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

/* Ambient glow & shimmer effect */
.event-banner-ambient {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 160%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(45px);
  z-index: 0;
}

.event-banner-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-25deg);
  animation: bannerShimmer 9s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes bannerShimmer {
  0%, 70% { left: -150%; }
  100% { left: 200%; }
}

/* Top Accent glowing line */
.event-flyer-top-accent {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, #10b981 25%, #fef08a 50%, #10b981 75%, transparent);
  box-shadow: 0 0 14px rgba(254, 240, 138, 0.7), 0 0 22px rgba(16, 185, 129, 0.6);
  z-index: 5;
}

/* Top Badges Row */
.event-flyer-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  padding-right: 3rem;
}

/* Event Live Beacon Capsule (Kontras Tinggi: Merah dengan Kuning Cerah & Putih) */
.event-live-beacon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 50%, #991b1b 100%) !important;
  border: 2px solid #fef08a !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 9999px !important;
  position: relative !important;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.75), 0 0 8px rgba(254, 240, 138, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  animation: fastPulseBeacon 1.15s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
  will-change: transform, box-shadow !important;
}

@keyframes fastPulseBeacon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.6), inset 0 0 6px rgba(254, 240, 138, 0.3);
    border-color: #fef08a;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 26px rgba(239, 68, 68, 0.95), 0 0 35px rgba(254, 240, 138, 0.6), inset 0 0 8px rgba(254, 240, 138, 0.4);
    border-color: #ffffff;
  }
}

.beacon-pulse {
  position: absolute !important;
  left: 0.65rem !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #fef08a !important;
  animation: beaconPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite !important;
}

.beacon-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #fef08a !important;
  display: inline-block !important;
  box-shadow: 0 0 10px #fef08a, 0 0 16px #fef08a !important;
}

@keyframes beaconPing {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.beacon-text {
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.09em !important;
  color: #fef08a !important; /* Kuning emas terang - super kontras dengan background merah */
  text-transform: uppercase !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.event-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.event-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Main Content */
.event-banner-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.event-banner-main.fade-transition {
  opacity: 0.2;
  transform: translateY(4px);
}

.event-banner-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.36;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.event-banner-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* 2x2 Meta Cards Grid */
.event-flyer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.event-meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-meta-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.event-meta-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.event-meta-card-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.event-meta-card-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.event-meta-card-icon.icon-rose {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.event-meta-card-icon.icon-gold {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.event-meta-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.event-meta-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

.event-meta-card-value {
  font-size: 0.84rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls: Counter + Dots + Nav (Carousel Bar) */
.event-flyer-carousel-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-counter-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
}

.event-dots-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-dot.active {
  width: 24px;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.event-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-event-nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-event-nav:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  transform: scale(1.05);
}

/* Footer Action Buttons */
.event-flyer-footer-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.btn-event-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-event-detail:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55);
}

.btn-event-detail i:last-child {
  transition: transform 0.2s ease;
}

.btn-event-detail:hover i:last-child {
  transform: translateX(4px);
}

.btn-event-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  border: 1.5px solid rgba(34, 197, 94, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-event-wa:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

/* Responsive adjustment for Mobile & Tablet */
@media (max-width: 640px) {
  .hub-event-banner {
    padding: 1.4rem 1.25rem;
    border-radius: 22px;
    gap: 1rem;
  }
  .event-flyer-topline {
    padding-right: 2.6rem;
  }
  .event-banner-title {
    font-size: 1.15rem;
  }
  .event-banner-desc {
    font-size: 0.84rem;
  }
  .event-flyer-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .event-flyer-footer-actions {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .btn-event-detail, .btn-event-wa {
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
  }
}

/* Hub Section Header & Badge */
.hub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.hub-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  text-transform: uppercase;
}

.hub-section-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   HUB COCKPIT & ORBITAL CIRCULAR WHEEL NAVIGATION
   Unified Executive Layout: Left Flank + Orbital Center Wheel + Right Flank
   ========================================================================== */
.hub-cockpit-section,
.hub-orbital-nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0.5rem auto 0.25rem;
}

.hub-cockpit-grid {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: start;
  gap: 1.5rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.hub-cockpit-flank {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 5;
  padding-top: 1.25rem;
}

.hub-cockpit-flank-right {
  align-items: flex-end;
}

.hub-cockpit-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(145deg, rgba(6, 34, 23, 0.82) 0%, rgba(4, 20, 13, 0.92) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 12px rgba(16, 185, 129, 0.08);
  width: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-cockpit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.25);
}

/* Interactive Cockpit Card (Performa Iuran Trigger) */
.hub-cockpit-card.hub-cockpit-card-interactive {
  cursor: pointer;
  position: relative;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(6, 28, 20, 0.82) 100%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-cockpit-card.hub-cockpit-card-interactive:hover,
.hub-cockpit-card.hub-cockpit-card-interactive:focus-visible {
  border-color: rgba(245, 158, 11, 0.75);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 158, 11, 0.28);
  outline: none;
}

.hub-cockpit-card.hub-cockpit-card-interactive:active {
  transform: translateY(0) scale(0.98);
}

.hub-card-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hub-cockpit-card.hub-cockpit-card-interactive:hover .hub-card-action-badge {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.hub-action-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: hubPulseDotAnim 1.6s infinite;
}

@keyframes hubPulseDotAnim {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px #fbbf24; }
}

.hub-action-arrow {
  font-size: 0.68rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.hub-cockpit-card.hub-cockpit-card-interactive:hover .hub-action-arrow {
  transform: translate(1.5px, -1.5px);
  opacity: 1;
}

.hub-cockpit-event-dock {
  margin-bottom: 0.85rem;
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.hub-cockpit-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hub-orbital-container {
  width: 100%;
  max-width: 610px;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin: 0 auto;
}

/* ==================== AMBIENT FINANCIAL PULSE BACKDROP (ZERO-SCROLL ORBITAL WHEEL) ==================== */
.hub-orbital-ambient-pulse {
  position: absolute;
  inset: -20px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  user-select: none;
}

.ambient-pulse-halo {
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.07) 45%, transparent 70%);
  filter: blur(30px);
  animation: ambientHaloBreathe 6s ease-in-out infinite alternate;
}

.ambient-pulse-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.ambient-radar-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.12);
  stroke-dasharray: 6 8;
  transform-origin: 300px 300px;
}

.ring-outer {
  stroke-width: 1.2;
  animation: ambientRadarRotate 45s linear infinite;
}

.ring-mid {
  stroke-width: 1.0;
  stroke: rgba(16, 185, 129, 0.14);
  stroke-dasharray: 4 6;
  animation: ambientRadarRotateRev 32s linear infinite;
}

.ambient-pulse-area {
  opacity: 0.65;
  filter: blur(8px);
  animation: ambientAreaPulse 5.5s ease-in-out infinite alternate;
}

.ambient-pulse-wave {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-primary {
  animation: ambientWaveFloat1 7s ease-in-out infinite alternate;
}

.wave-secondary {
  animation: ambientWaveFloat2 8.5s ease-in-out infinite alternate;
}

.ambient-data-dot {
  fill: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  animation: ambientDotPulse 2.5s ease-in-out infinite;
}

.ambient-data-dot.dot-peak {
  fill: #fbbf24;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.95));
  animation: ambientPeakPulse 2.2s ease-in-out infinite;
}

.ambient-data-dot.dot-1 { animation-delay: 0.2s; }
.ambient-data-dot.dot-2 { animation-delay: 0.7s; }
.ambient-data-dot.dot-3 { animation-delay: 1.2s; }
.ambient-data-dot.dot-4 { animation-delay: 1.8s; }

@keyframes ambientRadarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ambientRadarRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes ambientHaloBreathe {
  0% { transform: scale(0.92); opacity: 0.45; }
  100% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes ambientAreaPulse {
  0% { opacity: 0.4; transform: translateY(4px); }
  100% { opacity: 0.75; transform: translateY(-4px); }
}

@keyframes ambientWaveFloat1 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(-6px) scaleY(1.04); }
  100% { transform: translateY(3px) scaleY(0.97); }
}

@keyframes ambientWaveFloat2 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(5px) scaleY(0.96); }
  100% { transform: translateY(-4px) scaleY(1.03); }
}

@keyframes ambientDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes ambientPeakPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 16px rgba(251, 191, 36, 1)); }
}

.hub-orbital-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 2;
}

/* 6 Curved Arc Petals */
.orbital-petal-group {
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 300px 300px;
}

.orbital-petal-shape {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5px;
  transition: filter 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.orbital-petal-group:hover .orbital-petal-shape,
.orbital-petal-group.active .orbital-petal-shape {
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 26px rgba(16, 185, 129, 0.45));
  stroke: #ffffff;
  stroke-width: 2.2px;
}

.orbital-petal-group:hover,
.orbital-petal-group.active {
  transform: scale(1.025);
}

.orbital-petal-label {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  fill: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.85));
}

.orbital-petal-label.orbital-petal-label-compact {
  font-size: 13.8px;
  letter-spacing: 0.4px;
}

/* 6 Outer Satellite Node Buttons */
.orbital-fo-node {
  overflow: visible;
}

.orbital-sat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0e3b28, #051d13);
  border: 2.5px solid #38bdf8;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.3);
  outline: none;
  padding: 0;
  margin: 2px;
}

.orbital-sat-btn:hover,
.orbital-sat-btn.active {
  transform: scale(1.15);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75), 0 0 24px rgba(251, 191, 36, 0.7), 0 0 32px rgba(56, 189, 248, 0.4);
  background: radial-gradient(circle at 35% 35%, #134e35, #08291a);
}

.orbital-sat-vip {
  border-color: #22d3ee;
  color: #22d3ee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(34, 211, 238, 0.45);
}

/* Center Red Hub Circle containing RT.001 Logo */
.orbital-fo-center {
  overflow: visible;
}

.orbital-center-core {
  width: 195px;
  height: 195px;
  margin: 7px auto;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.orbital-center-core:hover {
  transform: scale(1.04);
}

.orbital-center-red-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.75), 0 0 45px rgba(255, 34, 34, 0.4);
  border: 3px solid #ffffff;
  z-index: 1;
}

.orbital-center-spinner {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-right-color: #ef4444;
  filter: drop-shadow(0 0 8px #ef4444) drop-shadow(0 0 14px #ffffff);
  animation: rotateOrbitalLight 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
  pointer-events: none;
}

.orbital-center-disc {
  position: relative;
  z-index: 3;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f1f5f9 80%, #e2e8f0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.15), 0 6px 18px rgba(0,0,0,0.5);
}

.orbital-center-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.orbital-center-core:hover .orbital-center-logo-img {
  transform: scale(1.08);
}

.orbital-center-badge {
  margin-top: 3px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(4, 19, 13, 0.94);
  border: 1.5px solid rgba(251, 191, 36, 0.95);
  font-family: var(--font-heading, sans-serif);
  font-size: 0.82rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.7px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6);
  white-space: nowrap;
}


@media (max-width: 1024px) {
  .hub-cockpit-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .hub-cockpit-flank {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 610px;
    gap: 0.75rem;
    padding-top: 0;
  }
  .hub-cockpit-flank-right {
    align-items: stretch;
  }
  .hub-cockpit-event-dock {
    grid-column: span 2;
    justify-content: center;
    margin-bottom: 0.45rem;
    margin-top: 0;
  }
  .hub-cockpit-event-dock .btn-hub-event-trigger {
    margin-left: 0 !important;
  }
}

@media (max-width: 600px) {
  .hub-cockpit-flank {
    grid-template-columns: 1fr;
  }
  .hub-cockpit-event-dock {
    grid-column: span 1;
    justify-content: center;
  }
  .hub-orbital-container {
    width: 100%;
    max-width: min(100%, 480px);
  }
  .orbital-petal-label {
    font-size: 13.8px;
    font-weight: 900;
    letter-spacing: 0.4px;
  }
  .orbital-petal-label.orbital-petal-label-compact {
    font-size: 12.2px;
    letter-spacing: 0.25px;
  }
  .orbital-sat-btn {
    width: 52px;
    height: 52px;
    font-size: 1.22rem;
  }
}

/* 6 Interactive Cards Grid */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.hub-card {
  background: rgba(6, 26, 17, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.18);
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hub-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hub-card:hover {
  transform: translateY(-5px);
  background: rgba(8, 35, 23, 0.8);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
}

.hub-card:hover::after {
  opacity: 1;
}

/* Featured VIP Card (Layanan Pengajuan Dana) */
.hub-card-featured {
  background: linear-gradient(145deg, rgba(6, 38, 32, 0.8) 0%, rgba(6, 26, 17, 0.85) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.38);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}

.hub-card-featured::after {
  background: linear-gradient(90deg, #06b6d4, #10b981, #fbbf24);
  opacity: 0.8;
}

.hub-card-featured:hover {
  border-color: #22d3ee;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.3);
}

.hub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hub-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-icon-wrap {
  transform: scale(1.1);
}

.hub-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.45rem 0;
  line-height: 1.25;
}

.hub-card-desc {
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.hub-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-card-action {
  font-size: 0.83rem;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.hub-card:hover .hub-card-action {
  gap: 0.7rem;
  color: #fbbf24;
}

.hub-card-featured .hub-card-action {
  color: #38bdf8;
}

/* Compact Bottom Footer on Hub */
.hub-mini-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hub-mini-footer-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hub-footer-brand {
  font-weight: 700;
  color: #94a3b8;
}

.hub-mini-footer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-hub-footer-login,
.btn-hub-footer-drawer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hub-footer-login {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.btn-hub-footer-login:hover {
  background: #f59e0b;
  color: #04140e;
}

.btn-hub-footer-chart {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-hub-footer-chart:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.btn-hub-footer-drawer {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.btn-hub-footer-drawer:hover {
  background: #10b981;
  color: #fff;
}

/* ==========================================================================
   MODULAR SUB-VIEWS (TENTANG, DEMOGRAFI, LAYANAN, KEGIATAN, PENGURUS)
   ========================================================================== */
.public-subview {
  animation: subviewFadeIn 0.3s ease-out both;
  min-height: 100vh;
  padding-bottom: 4rem;
}

@keyframes subviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subview Header Bar (Sticky) */
.subview-header-bar {
  position: sticky;
  top: 68px;
  z-index: 85;
  background: rgba(2, 16, 10, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 1.5rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.subview-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-subview-back,
.btn-subview-bottom-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-subview-back:hover,
.btn-subview-bottom-back:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  transform: translateX(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.subview-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #64748b;
}

.subview-breadcrumb i {
  font-size: 0.7rem;
}

.subview-breadcrumb-root {
  color: #94a3b8;
}

.subview-breadcrumb-current {
  color: #34d399;
  font-weight: 700;
}

.btn-subview-drawer,
.btn-subview-bottom-drawer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-subview-drawer:hover,
.btn-subview-bottom-drawer:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #34d399;
  color: #fff;
}

/* Subview Bottom Navigation Bar */
.subview-bottom-nav {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Color Glows & Badge Helpers */
.bg-cyan-glow {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.bg-emerald-glow {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bg-gold-glow {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.bg-rose-glow {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.bg-purple-glow {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   PUBLIC POS ANGGARAN & CASH LEDGER TABLE (SUBVIEW KEUANGAN RT)
   ========================================================================== */
.public-pos-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.public-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .public-pos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .public-pos-grid {
    grid-template-columns: 1fr;
  }
}

.public-pos-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(6, 28, 20, 0.75) 0%, rgba(3, 18, 12, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.public-pos-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}

.public-pos-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.public-pos-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.public-pos-percent {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-heading);
}

.public-pos-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.public-pos-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.public-pos-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.public-pos-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-pos-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #94a3b8;
}

.public-pos-footer strong {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.bg-cyan-gradient {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
}
.bg-gold-gradient {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.bg-rose-gradient {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}
.bg-purple-gradient {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}
.bg-blue-gradient {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Transaksi Terkini Table */
.public-tx-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.public-tx-table-wrap {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(6, 28, 20, 0.85) 0%, rgba(3, 18, 12, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.public-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.public-tx-table th {
  padding: 0.85rem 1rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.public-tx-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  vertical-align: middle;
}

.public-tx-table tr:hover td {
  background: rgba(16, 185, 129, 0.06);
}

.badge-tx-in {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-tx-out {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DRAWER & HUB)
   ========================================================================== */
@media (max-width: 1080px) {
  .hub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-ticker-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* ---- Mobile Navbar Optimization with Full-Width Flag ---- */
  .public-nav-container {
    padding: 0.55rem 0.85rem;
    gap: 0.6rem;
  }

  .public-brand {
    gap: 0.45rem;
  }

  .public-brand-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .brand-logo-circle {
    width: 40px;
    height: 40px;
    padding: 2.5px;
  }

  .brand-orbital-track,
  .brand-orbital-spinner {
    inset: -2px;
  }

  .nav-flag-title-sub {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .nav-flag-title-main {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    word-spacing: 0.16em;
  }

  .public-nav-actions {
    gap: 0.35rem;
  }

  .nav-portal-group {
    padding: 0.15rem;
    gap: 0.25rem;
  }

  .btn-nav-portal {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }

  .btn-nav-portal i {
    font-size: 0.78rem;
  }

  .btn-drawer-trigger {
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .drawer-trigger-badge {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }
}

@media (max-width: 680px) {
  .public-nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.35rem;
    padding: 0.45rem 0.65rem;
  }

  .navbar-center-title {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-flag-title-sub {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .nav-flag-title-main {
    font-size: 1.25rem;
    letter-spacing: 0.055em;
    word-spacing: 0.15em;
  }

  /* ---- Mobile Hub: Prioritaskan Menu Layanan Langsung di Atas ---- */
  .public-home-hub {
    padding: 1rem 0.85rem;
    min-height: auto;
  }

  .hub-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  /* Urutan Re-Ordering di HP:
     1. Header Banner Bendera & Judul Resmi (PALING ATAS)
     2. Cockpit Navigasi Lingkaran Orbital & Kartu Status Warga
     3. Event Banner Wrap
     4. Ticker Capaian Kas
     5. Grafik Penerimaan Iuran
     6. Mini Footer Warga
  */
  .hub-hero-header {
    order: 1 !important;
    margin-bottom: 0.85rem;
    width: 100%;
  }

  .hub-cockpit-section,
  .hub-orbital-nav-wrapper {
    order: 2 !important;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hub-grid-section {
    order: 3 !important;
    margin-bottom: 1.25rem;
  }

  .hub-event-banner-wrap {
    order: 4 !important;
    margin-bottom: 0.5rem;
  }

  .hub-ticker-bar {
    order: 5 !important;
    margin-bottom: 1.25rem;
  }

  .hub-chart-spotlight {
    order: 6 !important;
    margin-bottom: 1.25rem;
  }

  .hub-mini-footer {
    order: 7 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hub-hero-title {
    font-size: 1.7rem;
  }

  .indonesia-flag-waving-banner,
  .flag-container {
    min-height: 120px;
    border-radius: 18px;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .flag-banner-overlay,
  .flag-content-centered {
    padding: 0.75rem 0.85rem;
  }

  .flag-title-main,
  .flag-text-warga {
    font-size: 1.55rem;
    letter-spacing: 0.025em;
  }

  /* Optimasi Judul WARGA RT.001 RW.013 Khusus Layar Ponsel (Mobile 90% Pengguna) */
  .split-line-main {
    font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif !important;
    font-size: clamp(1.48rem, 6.2vw, 2.05rem) !important;
    letter-spacing: 0.025em;
    line-height: 1.2;
    white-space: nowrap; /* Teks satu baris utuh, tidak patah canggung di ponsel */
    max-width: 100%;
    -webkit-text-stroke: 0.75px rgba(255, 255, 255, 0.95);
    text-shadow: 
      1.5px 1.5px 0px rgba(255, 255, 255, 0.95),
      -1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
      1.5px -1.5px 0px rgba(255, 255, 255, 0.95),
      -1.5px 1.5px 0px rgba(255, 255, 255, 0.95),
      0px 3px 8px rgba(0, 0, 0, 0.7);
  }

  .split-line-main .word {
    font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif !important;
    margin-right: 0.22em; /* Jarak antar kata presisi di layar ponsel */
  }

  .split-line-main .char {
    font-family: 'MaskingRenta', 'Masking Renta', var(--font-heading, 'Plus Jakarta Sans'), sans-serif !important;
    -webkit-text-stroke: 0.7px rgba(255, 255, 255, 0.95);
  }

  .split-line-sub {
    font-size: clamp(0.85rem, 3.2vw, 1.05rem) !important;
    letter-spacing: 0.22em;
    font-weight: 800;
    margin-bottom: 0.38rem;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 1),
      0 2px 6px rgba(0, 0, 0, 0.95),
      0 0 16px rgba(245, 158, 11, 0.7);
  }

  .cyber-badge-h1 {
    padding: 0.65rem 0.85rem 0.75rem 0.85rem;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
  }

  .cyber-badge-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    gap: 0.3rem;
  }

  .cyber-text-glow {
    font-size: 1.4rem;
  }

  .cyber-corner-bracket {
    font-size: 1.2rem;
  }

  .hub-hero-subtitle {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* Grid Menu Layanan 2-Kolom di Layar HP agar Compact & Mudah Dijangkau */
  .hub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hub-card {
    padding: 1.1rem 0.95rem;
    border-radius: 16px;
  }

  .hub-card-header {
    margin-bottom: 0.65rem;
  }

  .hub-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .hub-card-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .hub-card-title {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .hub-card-desc {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hub-card-action {
    font-size: 0.74rem;
  }

  .hub-ticker-bar {
    grid-template-columns: 1fr;
    padding: 0.75rem 1rem;
  }

  .subview-header-bar {
    top: 60px;
    padding: 0.6rem 1rem;
  }

  .subview-breadcrumb {
    display: none;
  }

  .public-drawer-panel {
    width: 100%;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .public-nav-container {
    padding: 0.5rem 0.65rem;
    flex-wrap: wrap;
  }

  .public-brand-sub {
    display: none; /* Sembunyikan subtext 'Graha Asri' agar baris pertama sangat lega */
  }

  .btn-drawer-trigger .drawer-trigger-text {
    font-size: 0.74rem;
  }

  .hub-cards-grid {
    grid-template-columns: 1fr; /* Di layar HP yang sangat kecil (360px) 1 kolom elegan */
    gap: 0.85rem;
  }
}

/* ==========================================================================
   STRUKTUR KEPENGURUSAN RT.001 / RW.013 PERIODE 2022 - 2027
   Executive High-Tech / Glassmorphism Architecture & Org Tree Styles
   ========================================================================== */

/* Glow & Border Accents */
.luxury-purple-glow {
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 60%), rgba(17, 24, 39, 0.85) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 25px rgba(168, 85, 247, 0.08) !important;
}
.luxury-purple-border { border-color: rgba(168, 85, 247, 0.45) !important; }
.luxury-gold-border   { border-color: rgba(245, 158, 11, 0.45) !important; }
.luxury-rose-border   { border-color: rgba(244, 63, 94, 0.45) !important; }
.luxury-emerald-border{ border-color: rgba(16, 185, 129, 0.45) !important; }
.luxury-cyan-border   { border-color: rgba(6, 182, 212, 0.45) !important; }

.badge-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-purple-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Org Hero Card */
.org-hero-card {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.org-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.org-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.org-hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.4rem;
  background: linear-gradient(135deg, #ffffff 40%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.org-hero-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 680px;
  margin: 0;
}
.org-hero-subtitle .org-hero-loc {
  display: block;
}
.org-hero-subtitle .org-hero-serve {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}
.org-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* KPI Summary Strip */
.org-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.org-kpi-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: var(--transition);
}
.org-kpi-item:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(168, 85, 247, 0.3);
}
.org-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.org-kpi-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
}
.org-kpi-lbl {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* View Mode Controls & Search Bar */
.org-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.org-view-mode-switch {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-org-mode {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.btn-org-mode:hover {
  color: #ffffff;
}
.btn-org-mode.active {
  background: rgba(168, 85, 247, 0.25);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
.org-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  min-width: 290px;
  transition: var(--transition);
}
.org-search-box:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}
.org-search-box i {
  color: #94a3b8;
  font-size: 0.85rem;
}
.org-search-box input {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  width: 100%;
}
.org-search-box input::placeholder {
  color: #64748b;
}
.org-search-box button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

/* Category Filter Pills */
.org-cat-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.org-cat-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}
.org-cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.org-cat-pill.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.45);
  color: #f3e8ff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   CONTAINER 1: INTERACTIVE ORG CHART TREE (BAGAN ALUR)
   ========================================================================== */
.org-tree-view-wrapper {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 23, 42, 0.4);
}
.org-tree-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 2.25rem;
}
.legend-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.legend-item {
  font-size: 0.78rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legend-item strong {
  color: #e2e8f0;
}
.legend-line {
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
}
.line-komando {
  background: linear-gradient(90deg, #f59e0b, #a855f7);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.line-koordinasi {
  border-top: 2px dashed #06b6d4;
  height: 0;
}
.line-penasehat {
  border-top: 3px dotted #f43f5e;
  height: 0;
}

/* Canvas & Layout */
.org-chart-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 980px;
  margin: 0 auto;
}

/* Tier 1: Ketua & Penasehat */
.org-tier-1 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  position: relative;
}
.org-connector-penasehat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 3px dotted #f43f5e;
  align-self: center;
  width: 170px;
  margin: 0 1rem;
}
.connector-label {
  position: absolute;
  top: -12px;
  background: #0b0f19;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fb7185;
  letter-spacing: 0.04em;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 9999px;
  white-space: nowrap;
}

/* Command Stems */
.org-stem-cmd {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.4rem 0;
}
.stem-line {
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, #f59e0b, #a855f7);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.stem-arrow {
  color: #a855f7;
  font-size: 0.95rem;
  margin-top: -6px;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
}

/* Tier 2: BPH Cluster (Bendahara - Wakil - Sekretaris) */
.bph-cluster-wrap {
  width: 100%;
  position: relative;
}
.bph-coord-line {
  position: absolute;
  top: 50%;
  left: 14%;
  right: 14%;
  border-top: 2px dashed #06b6d4;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.bph-coord-label {
  position: absolute;
  top: -11px;
  background: #0b0f19;
  padding: 2px 12px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 9999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.bph-nodes-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.2rem;
  position: relative;
  z-index: 2;
}

/* Tier 3: Sections */
.org-tier-sections-label {
  text-align: center;
  margin: 1.5rem 0 1.25rem;
}
.sections-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.06em;
}
.org-tier-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  width: 100%;
  max-width: 1160px;
}

/* Generic Node Card */
.org-node-card {
  padding: 1.4rem 1.3rem;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.node-badge-tier {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-rose {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.node-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid;
}
.gold-glow    { border-color: #f59e0b; color: #fbbf24; box-shadow: 0 0 16px rgba(245, 158, 11, 0.35); }
.rose-glow    { border-color: #f43f5e; color: #fb7185; box-shadow: 0 0 16px rgba(244, 63, 94, 0.35); }
.emerald-glow { border-color: #10b981; color: #34d399; box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); }
.purple-glow  { border-color: #a855f7; color: #c084fc; box-shadow: 0 0 16px rgba(168, 85, 247, 0.35); }
.cyan-glow    { border-color: #06b6d4; color: #38bdf8; box-shadow: 0 0 16px rgba(6, 182, 212, 0.35); }

.node-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}
.node-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  display: block;
}
.node-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.4rem;
  line-height: 1.4;
}
.node-tupoksi-tag {
  margin-top: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.73rem;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.node-meta-pill {
  margin-top: 0.8rem;
  font-size: 0.73rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Multi-member chips */
.node-member-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.75rem;
}
.member-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  text-align: left;
}
.chip-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #cbd5e1;
}
.badge-role-sub {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Operational Sections Cards */
.node-seksi {
  align-items: stretch;
  text-align: left;
  padding: 1.25rem;
}
.node-seksi-wide {
  grid-column: span 2;
}
.seksi-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.seksi-icon-box {
  font-size: 1.3rem;
}
.seksi-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}
.seksi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}
.seksi-members-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.member-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #cbd5e1;
  flex-shrink: 0;
}
.member-info-mini {
  display: flex;
  flex-direction: column;
}
.member-info-mini strong {
  font-size: 0.85rem;
  color: #ffffff;
}
.member-info-mini span {
  font-size: 0.72rem;
  color: #94a3b8;
}
.member-highlight-asset {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}
.badge-asset-tag {
  color: #fbbf24 !important;
  font-weight: 700;
}
.seksi-footer-tag {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Humas Street Coordinators Grid */
.seksi-street-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  flex: 1;
}
.street-coord-item {
  padding: 0.65rem 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.street-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  align-self: flex-start;
}
.coord-person strong {
  font-size: 0.84rem;
  color: #ffffff;
  display: block;
}
.coord-person span {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Kerohanian Subdiv Rows */
.seksi-subdiv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  flex: 1;
}
.subdiv-box {
  padding: 0.75rem 0.9rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.subdiv-header {
  margin-bottom: 0.5rem;
}
.subdiv-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.subdiv-lead {
  display: block;
  font-size: 0.84rem;
  color: #ffffff;
}
.subdiv-members {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* ==========================================================================
   CONTAINER 2: EXECUTIVE CARDS GRID (MODE 2)
   ========================================================================== */
.org-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
}
.org-exec-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.org-exec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.exec-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.exec-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.exec-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.15rem;
}
.exec-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c084fc;
}
.exec-division {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}
.exec-tupoksi {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  padding: 0.85rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.exec-tupoksi strong {
  color: #ffffff;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.exec-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.btn-exec-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-exec-wa:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   PRINT STYLES FOR OFFICIAL ORG STRUCTURE
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #view-pengurus-struktur,
  #view-pengurus-struktur * {
    visibility: visible;
  }
  #view-pengurus-struktur {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .org-actions-bar,
  .org-controls-bar,
  .org-cat-pills {
    display: none !important;
  }
  .org-hero-title,
  .node-name,
  .seksi-title,
  .exec-info h4 {
    color: #000000 !important;
    -webkit-text-fill-color: initial !important;
  }
  .org-node-card,
  .org-hero-card,
  .org-tree-view-wrapper {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .org-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .org-tier-3 {
    grid-template-columns: 1fr;
  }
  .node-seksi-wide {
    grid-column: span 1;
  }
  .seksi-subdiv-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .org-hero-title {
    font-size: 1.45rem;
  }
  .org-kpi-grid {
    grid-template-columns: 1fr;
  }
  .org-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .org-view-mode-switch {
    width: 100%;
  }
  .btn-org-mode {
    flex: 1;
    justify-content: center;
  }
  .org-search-box {
    min-width: 100%;
  }
}

/* ==================== KREDENSIAL & PORTAL WARGA STYLING ==================== */
.badge-credential-user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-credential-pwd {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-wife {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #facc15;
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.badge-wife-bullet {
  color: #f59e0b;
  font-size: 0.7rem;
}

.btn-copy-cred {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
  padding: 0;
}

.btn-copy-cred:hover {
  background: #10b981;
  color: #02140d;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Warga Login Box */
.warga-login-welcome-banner {
  display: none !important;
}

.warga-login-ico-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Portal Warga Hero Card */
.portal-warga-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 78, 59, 0.35) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portal-warga-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.pw-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.pw-hero-profile-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 0 1 auto;
}

.pw-hero-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.2);
  border: 2px solid rgba(6, 182, 212, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.pw-hero-text {
  flex: 1;
  min-width: 200px;
}

.pw-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.pw-hero-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pw-hero-wife-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.pw-hero-wife-bullet {
  color: #facc15;
  margin: 0 8px;
  font-size: 0.95rem;
  display: inline-block;
  vertical-align: middle;
}

.pw-hero-wife-name {
  color: #facc15;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pw-hero-address {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin: 0;
}

/* Middle Container: Family Columns (Transparan & menyatu dengan info orang tua agar terlihat 1 keluarga) */
.pw-family-columns {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.1rem 0;
  min-height: auto;
  flex: 0 1 auto;
}

.pw-family-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-family-header-row {
  height: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.pw-family-col-header {
  font-size: 0.75rem;
  color: #ffffff; /* Putih bersih sesuai instruksi pengguna */
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.pw-family-name-item {
  font-size: 0.88rem;
  color: #fb923c; /* Orange/peach sesuai Gambar 2 Box 1 */
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.pw-family-rel-item {
  font-size: 0.88rem;
  color: #34d399; /* Hijau emerald sesuai Gambar 2 Box 2 */
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

/* Right Container: Username & Password Single Card (Box 3) */
.pw-hero-creds-card {
  background: rgba(10, 20, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  margin-left: auto;
}

.pw-cred-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-cred-label {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pw-cred-val-emerald {
  color: #34d399 !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.pw-cred-val-gold {
  color: #facc15 !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Bottom 4-Card Stats Bar (Box 4 & 5, WA, Ronda, Iuran) */
.pw-hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
  .pw-hero-top {
    gap: 1.25rem;
  }
  .pw-hero-creds-card {
    margin-left: 0;
  }
  .pw-hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .pw-hero-stats-bar {
    grid-template-columns: 1fr;
  }
}

.pw-stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(10, 20, 25, 0.65);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.pw-stat-item:hover {
  background: rgba(15, 28, 35, 0.85);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.pw-stat-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pw-stat-val {
  display: block;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.2;
}

.pw-stat-lbl {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Card 1: Jumlah Jiwa (Box 4) + Rincian L/P (Box 5) */
.pw-stat-members-item {
  justify-content: space-between;
}

.pw-stat-members-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pw-stat-gender-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.pw-gender-line {
  color: #facc15;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Family-row item in edit modal */
.family-member-row {
  display: grid;
  grid-template-columns: 1fr 85px 135px 32px;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.family-member-row select {
  min-width: 125px;
  max-width: 135px;
}

.family-member-row .btn-remove-family {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.family-member-row .btn-remove-family:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

/* 2-Column Grid (Kartu Iuran & Pemasukan Non Iuran Berdampingan Rapi) */
.portal-warga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.pw-col-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pw-card {
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
}

.pw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pw-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pw-card-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.pw-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

/* 12-Month Grid for Personal Dues */
.pw-months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.pw-month-cell {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  transition: var(--transition, all 0.2s ease);
}

.pw-month-cell.paid {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.pw-month-cell.unpaid {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.05);
}

.pw-month-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.pw-month-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.pw-month-status.status-paid {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.pw-month-status.status-unpaid {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.pw-iuran-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.pw-iuran-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pw-ronda-info-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}

.pw-jimpitan-reminder {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.pw-my-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pw-req-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .portal-warga-grid {
    grid-template-columns: 1fr;
  }
  .pw-hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .pw-months-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .pw-hero-stats-bar {
    grid-template-columns: 1fr;
  }
  .pw-months-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   PUBLIC ANNUAL DUES CHART (TRANSPARANSI KAS 1 TAHUN BERJALAN)
   ========================================================================== */

.hub-chart-spotlight {
  width: 100%;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ==================== LUXURY MODAL / BOTTOM SHEET: ANNUAL DUES CHART (ZERO-SCROLL) ==================== */
.modal-annual-chart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-annual-chart-backdrop.active {
  display: flex !important;
}

.modal-annual-chart-content {
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  background: linear-gradient(145deg, rgba(6, 32, 22, 0.96) 0%, rgba(3, 18, 12, 0.98) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 26px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUpAnnualModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpAnnualModal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-annual-chart-content .public-annual-dues-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  backdrop-filter: none !important;
}

.annual-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
}

.annual-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.03em;
}

.annual-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: hubPulseDotAnim 1.6s infinite;
}

.annual-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.annual-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .modal-annual-chart-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-annual-chart-backdrop .modal-annual-chart-content {
    width: 100%;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    max-height: 88vh;
    padding: 1.25rem 1rem 2rem;
  }
}

.public-annual-dues-card {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 1.85rem 2rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(6, 28, 20, 0.92) 0%, rgba(3, 18, 12, 0.96) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.public-annual-dues-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.annual-dues-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.annual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.annual-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.annual-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

.annual-controls-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.annual-chart-type-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(4, 20, 14, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  padding: 0.3rem;
  gap: 0.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.annual-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
}

.annual-toggle-btn:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.12);
}

.annual-toggle-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.45) 100%);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.annual-toggle-btn.active i {
  color: var(--gold-400);
}

.annual-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.annual-filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.annual-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.annual-year-select {
  appearance: none;
  background: transparent;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  outline: none;
  padding-right: 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
}

.annual-year-select option {
  background: #061f16;
  color: #f8fafc;
  padding: 0.5rem;
}

.annual-select-arrow {
  position: absolute;
  right: 0;
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--gold-400);
}

/* 4 Quick KPI Summary Cards */
.annual-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.annual-kpi-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(8, 36, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.annual-kpi-box:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}

.annual-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.annual-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.annual-kpi-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annual-kpi-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annual-kpi-sub {
  font-size: 0.72rem;
  color: #64748b;
}

/* Canvas Chart Container */
.annual-chart-container {
  background: rgba(2, 13, 9, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1rem 1.25rem;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.annual-chart-canvas-wrap {
  position: relative;
  height: 350px;
  width: 100%;
}

/* Chart Footer & Legend */
.annual-chart-footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.annual-legend-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94a3b8;
}

.annual-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.annual-legend-bar {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.bg-emerald-gradient {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.annual-legend-line {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.bg-gold-line {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.annual-chart-note {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Responsive Rules for Mobile Preview */
@media (max-width: 1024px) {
  .annual-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .public-annual-dues-card {
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
  }
  
  .annual-dues-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .annual-filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .annual-title {
    font-size: 1.2rem;
  }

  .annual-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .annual-chart-container {
    padding: 1rem 0.6rem 0.75rem 0.6rem;
  }

  .annual-chart-canvas-wrap {
    height: 270px;
  }

  .annual-chart-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   PENGURUS PORTAL OPERATIONAL TABS & VERIFIKASI
   ========================================================================== */

.pengurus-nav-tabs {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  flex-wrap: wrap;
  align-items: center;
}

.pengurus-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.pengurus-tab-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.pengurus-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(126, 34, 206, 0.4) 100%);
  border-color: rgba(168, 85, 247, 0.7);
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.pengurus-badge-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 700;
}

.pengurus-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filter-verifikasi {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-filter-verifikasi:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
}

.btn-filter-verifikasi.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #38bdf8;
}

.pengurus-proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.pengurus-prop-card {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s;
}

.pengurus-prop-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   FORMAL PRINTABLE SURAT PENGANTAR RT.001
   ========================================================================== */

.surat-kertas-formal {
  background: #ffffff;
  color: #0f172a;
  padding: 2.5rem 3rem;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.surat-kop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.surat-kop .kop-teks {
  text-align: center;
  flex-grow: 1;
}

.surat-kop-divider {
  height: 3px;
  background: #0f172a;
  border-bottom: 1px solid #0f172a;
  margin-bottom: 1.5rem;
}

.surat-nomor-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.surat-judul-utama {
  margin: 0;
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: underline;
  letter-spacing: 0.5px;
}

.surat-nomor-teks {
  font-size: 0.95rem;
  color: #334155;
  display: block;
  margin-top: 2px;
}

.surat-isi-teks {
  font-size: 1.05rem;
  text-align: justify;
}

.surat-data-table {
  width: 100%;
  margin: 0.85rem 0 0.85rem 1.25rem;
  font-size: 1.05rem;
}

.surat-data-table td {
  padding: 3px 0;
  vertical-align: top;
}

.surat-ttd-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  page-break-inside: avoid;
}

.surat-ttd-box {
  text-align: center;
  width: 250px;
}

.surat-ttd-box .ttd-space {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttd-stempel-digital {
  display: inline-block;
  padding: 4px 10px;
  border: 2px dashed #059669;
  color: #059669;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

/* Pastikan hanya 1 QR code tunggal (img) yang tampil, canvas qrcodejs disembunyikan agar tidak dobel/berdempetan */
#inpage-surat-qrcode.is-pending,
#print-surat-qrcode.is-pending {
  display: none !important;
}

#inpage-surat-qrcode canvas,
#print-surat-qrcode canvas {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#inpage-surat-qrcode img,
#print-surat-qrcode img {
  display: block !important;
  width: 96px !important;
  height: 96px !important;
  margin: 0 auto !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Print specific rules */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area-surat, #print-area-surat * {
    visibility: visible;
  }
  #print-area-surat {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body.print-inpage-surat-active * {
    visibility: hidden !important;
  }
  body.print-inpage-surat-active #inpage-surat-paper,
  body.print-inpage-surat-active #inpage-surat-paper * {
    visibility: visible !important;
  }
  body.print-inpage-surat-active #inpage-surat-paper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2rem 2.5rem !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .d-print-none {
    display: none !important;
  }
}

/* ==========================================================================
   WHATSAPP CHAT PREVIEW BUBBLE FOR PENGURUS
   ========================================================================== */

.wa-chat-preview-box {
  background: #0b141a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.wa-chat-header {
  background: #1f2c34;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-avatar-rt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 10px 10px 0 10px;
  padding: 1rem;
  margin: 1.25rem 1rem 1.5rem auto;
  max-width: 90%;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wa-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: #005c4b;
  border-bottom: 0;
}

.btn-purple {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-purple:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
  color: #fff;
}

.btn-outline-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-purple:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #ffffff;
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
  color: #fff;
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #ffffff;
}

/* Single KPI Box on Public Hub (Privacy Compliant) */
.annual-kpi-grid.public-kpi-single {
  grid-template-columns: 1fr;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.annual-kpi-grid.public-kpi-single .annual-kpi-box.single-box {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 78, 59, 0.25) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.annual-kpi-grid.public-kpi-single .annual-kpi-box.single-box .annual-kpi-val {
  font-size: 1.85rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MODUL INVENTARIS & ASET RT.001 / RW.013 GRAHA ASRI (LUXURY GLASSMORPHISM)
   ========================================================================== */

/* Dashboard Asset Overview Banner */
.dash-asset-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 40, 28, 0.85) 0%, rgba(10, 30, 48, 0.88) 50%, rgba(6, 26, 17, 0.9) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
}

.dash-asset-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, #fbbf24, transparent);
}

.dash-asset-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dash-asset-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #34d399;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
}

.dash-asset-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.badge-tag-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-tag-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.badge-tag-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.badge-tag-rose {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.dash-asset-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  font-family: var(--font-heading);
}

.dash-asset-sub {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.dash-asset-banner-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.dash-asset-mini-stats {
  display: flex;
  gap: 1.25rem;
}

.dash-asset-mini-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.dash-asset-mini-stat .val {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.dash-asset-mini-stat .lbl {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Toolbar Aset RT */
.aset-toolbar {
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(4, 26, 17, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.aset-toolbar-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}

.aset-toolbar-search i.fa-magnifying-glass {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  font-size: 0.95rem;
  pointer-events: none;
}

.aset-toolbar-search input {
  width: 100%;
  background: rgba(2, 18, 12, 0.85);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  padding: 0.65rem 2.4rem 0.65rem 2.6rem;
  color: #f8fafc;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.aset-toolbar-search input:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-clear-search {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.btn-clear-search:hover {
  color: #f87171;
}

.aset-toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 18, 12, 0.75);
  border: 1.2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
}

.filter-box label {
  font-size: 0.85rem;
}

.filter-box select.custom-select {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
  outline: none;
}

.filter-box select.custom-select option {
  background: #062419;
  color: #fff;
}

/* View Mode Toggles */
.view-mode-toggle-group {
  display: flex;
  align-items: center;
  background: rgba(2, 18, 12, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.btn-toggle-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-view.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-toggle-view:hover:not(.active) {
  color: #fff;
}

.aset-result-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.35rem;
}

.aset-result-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.btn-reset-filters {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-reset-filters:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

/* Asset Cards Grid */
.aset-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.aset-card {
  padding: 1.35rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 32, 22, 0.75) 0%, rgba(3, 20, 14, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.aset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.2);
}

.aset-card.border-defect {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.1);
}

.aset-card.border-warning {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.1);
}

.aset-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.aset-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
}

.badge-status-pill.pill-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.badge-status-pill.pill-warning {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.badge-status-pill.pill-danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.aset-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.aset-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.aset-header-info {
  flex: 1;
}

.aset-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.aset-qty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.aset-notes {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.85rem 0;
  border-left: 2.5px solid #fbbf24;
}

.aset-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 0.85rem;
}

.spec-col {
  display: flex;
  flex-direction: column;
}

.spec-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.82rem;
  color: #e2e8f0;
}

.aset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.aset-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.aset-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.btn-action-edit:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* Asset Table Wrapper */
.aset-table-wrap {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(6, 32, 22, 0.7);
}

.aset-table-tfoot-row td {
  background: rgba(2, 18, 12, 0.85) !important;
  border-top: 2px solid rgba(16, 185, 129, 0.4) !important;
  padding: 0.85rem 1rem !important;
}

/* Responsive Rules for Aset Module */
@media (max-width: 992px) {
  .dash-asset-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-asset-banner-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .dash-asset-banner-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .dash-asset-mini-stats {
    text-align: left;
    width: 100%;
    justify-content: space-between;
  }
  .dash-asset-mini-stat {
    text-align: left;
  }
  .dash-asset-banner-right .btn {
    width: 100%;
  }
  .aset-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .aset-toolbar-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-box {
    width: 100%;
    justify-content: space-between;
  }
  .filter-box select.custom-select {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .public-navbar,
  .sidebar,
  .top-header,
  .d-print-none,
  .scroll-to-top-btn,
  .toast-container,
  .modal-close,
  .banner-actions {
    display: none !important;
  }

  body, .main-content, .view-section {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .modal-backdrop.active {
    position: static !important;
    background: #fff !important;
  }

  .modal-content {
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   PORTAL WARGA: 8 REGU RONDA (11 ANGGOTA PER REGU)
   ========================================================================== */

.pw-ronda-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
}

.pw-ronda-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.pw-ronda-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.pw-ronda-chip-num {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  min-width: 14px;
}

.pw-ronda-chip-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.pw-ronda-chip.is-leader {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fef08a;
  font-weight: 600;
}

.pw-ronda-chip.is-me {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-me-tag {
  font-size: 0.62rem;
  background: #10b981;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* Modal Seluruh 8 Regu Ronda */
.pw-all-ronda-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .pw-all-ronda-container {
    grid-template-columns: 1fr;
  }
}

.pw-ronda-group-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.pw-ronda-group-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.pw-ronda-group-card.highlight-my-group {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 44, 30, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.pw-group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.pw-group-cycle-tag {
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
}

.pw-group-leader-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #f1f5f9;
  background: rgba(245, 158, 11, 0.08);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pw-group-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pw-group-members-title {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.pw-group-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pw-member-chip {
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #cbd5e1;
}

.pw-member-chip small {
  color: #64748b;
  margin-right: 2px;
}

.pw-member-chip.chip-leader {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fef08a;
  font-weight: 600;
}

.pw-member-chip.chip-me {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-weight: 700;
}

/* ==================== PORTAL PENGURUS: RONDA MANAGEMENT STYLING ==================== */

.dash-ronda-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.ronda-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.ronda-kpi-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.25rem;
}

.ronda-kpi-card .kpi-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ronda-kpi-card .kpi-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading, inherit);
}

.ronda-kpi-card small {
  font-size: 0.74rem;
  color: #64748b;
}

.pengurus-ronda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.pengurus-ronda-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pengurus-ronda-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.pengurus-ronda-card.is-active-week {
  border-width: 2px !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.28) !important;
}

/* ==================== 8 DISTINCT REGURONDA COLOR PALETTES ==================== */
/* Regu 1: Emerald Forest Glow (Hijau Zamrud Mewah) */
.pengurus-ronda-card[data-week="1"],
.pw-ronda-group-card[data-week="1"] {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.pengurus-ronda-card[data-week="1"]:hover,
.pw-ronda-group-card[data-week="1"]:hover {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.4);
}

/* Regu 2: Sapphire Oceanic Glow (Biru Safir Elegan) */
.pengurus-ronda-card[data-week="2"],
.pw-ronda-group-card[data-week="2"] {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.pengurus-ronda-card[data-week="2"]:hover,
.pw-ronda-group-card[data-week="2"]:hover {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
}

/* Regu 3: Royal Amethyst Glow (Ungu Ningrat Karismatik) */
.pengurus-ronda-card[data-week="3"],
.pw-ronda-group-card[data-week="3"] {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.pengurus-ronda-card[data-week="3"]:hover,
.pw-ronda-group-card[data-week="3"]:hover {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 10px 25px rgba(88, 28, 135, 0.4);
}

/* Regu 4: Golden Bronze / Amber Glow (Emas Tembaga Berwibawa) */
.pengurus-ronda-card[data-week="4"],
.pw-ronda-group-card[data-week="4"] {
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.pengurus-ronda-card[data-week="4"]:hover,
.pw-ronda-group-card[data-week="4"]:hover {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 10px 25px rgba(120, 53, 15, 0.4);
}

/* Regu 5: Cyber Teal / Turquoise Glow (Toska Laut Tropis) */
.pengurus-ronda-card[data-week="5"],
.pw-ronda-group-card[data-week="5"] {
  background: linear-gradient(145deg, rgba(19, 78, 74, 0.48) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(20, 184, 166, 0.32);
}
.pengurus-ronda-card[data-week="5"]:hover,
.pw-ronda-group-card[data-week="5"]:hover {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 10px 25px rgba(19, 78, 74, 0.4);
}

/* Regu 6: Ruby Crimson Wine (Merah Delima Mewah) */
.pengurus-ronda-card[data-week="6"],
.pw-ronda-group-card[data-week="6"] {
  background: linear-gradient(145deg, rgba(136, 19, 55, 0.42) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
}
.pengurus-ronda-card[data-week="6"]:hover,
.pw-ronda-group-card[data-week="6"]:hover {
  border-color: rgba(251, 113, 133, 0.65);
  box-shadow: 0 10px 25px rgba(136, 19, 55, 0.4);
}

/* Regu 7: Deep Indigo Glow (Biru Indigo Modern) */
.pengurus-ronda-card[data-week="7"],
.pw-ronda-group-card[data-week="7"] {
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.46) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.32);
}
.pengurus-ronda-card[data-week="7"]:hover,
.pw-ronda-group-card[data-week="7"]:hover {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 10px 25px rgba(49, 46, 129, 0.4);
}

/* Regu 8: Terracotta Copper (Oranye Tembaga Hangat) */
.pengurus-ronda-card[data-week="8"],
.pw-ronda-group-card[data-week="8"] {
  background: linear-gradient(145deg, rgba(124, 45, 18, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(249, 115, 22, 0.32);
}
.pengurus-ronda-card[data-week="8"]:hover,
.pw-ronda-group-card[data-week="8"]:hover {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.4);
}

.pengurus-ronda-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

/* 2-Baris Kapsul Siklus Ronda (Atas=SIKLUS, Bawah=KE x) */
.ronda-cycle-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  min-width: 72px;
  line-height: 1.15;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
  flex-shrink: 0;
}

.ronda-cycle-capsule .cycle-top {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ronda-cycle-capsule .cycle-bottom {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 2-Baris Kapsul Bertugas Pekan Ini (Atas=BERTUGAS, Bawah=PEKAN INI) */
.ronda-active-badge-2line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.85rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fbbf24;
  min-width: 86px;
  line-height: 1.15;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  animation: pulseActiveBorder 2.5s infinite;
}

.ronda-active-badge-2line .duty-top {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.ronda-active-badge-2line .duty-bottom {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fef08a;
  text-transform: uppercase;
}

/* Banner Peringatan Khusus untuk Regu Bertugas Pekan Ini */
.ronda-duty-alert-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
}

.ronda-duty-alert-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes pulseActiveBorder {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.65);
  }
}

.pengurus-ronda-title-wrap h4 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pengurus-ronda-cycle-lbl {
  font-size: 0.76rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.15rem;
}

.pengurus-ronda-leader-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.pengurus-ronda-leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pengurus-ronda-leader-meta {
  flex-grow: 1;
  min-width: 0;
}

.pengurus-ronda-leader-meta small {
  font-size: 0.72rem;
  color: #f59e0b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pengurus-ronda-leader-meta strong {
  color: #f8fafc;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pengurus-ronda-members-wrap {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.pengurus-ronda-members-title {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pengurus-ronda-members-title span {
  font-size: 0.72rem;
  color: #64748b;
}

.pengurus-ronda-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
}

.pengurus-ronda-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  color: #e2e8f0;
}

.pengurus-ronda-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.pengurus-ronda-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pengurus-ronda-card-actions .btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  position: relative;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

/* ==========================================================================
   INACTIVITY AUTO-LOGOUT SECURITY BANNER (ENTERPRISE FINTECH STYLE)
   ========================================================================== */
.inactivity-security-banner {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 100000;
  max-width: 540px;
  width: calc(100% - 2rem);
  background: rgba(6, 26, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.inactivity-security-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.inactivity-security-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inactivity-beacon-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  animation: beaconPulseAnim 1.8s infinite ease-in-out;
}

@keyframes beaconPulseAnim {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.inactivity-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.inactivity-title {
  font-size: 0.95rem;
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.inactivity-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.btn-stay-logged-in {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.btn-stay-logged-in:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .inactivity-security-banner {
    top: calc(0.75rem + var(--sat));
    padding: 0.85rem 1rem;
  }
  .inactivity-security-content {
    flex-wrap: wrap;
  }
  .btn-stay-logged-in {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* ==================== PORTAL WARGA EXECUTIVE DASHBOARD (READ-ONLY) ==================== */
.portal-warga-exec-dashboard {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}

.portal-warga-exec-dashboard .hero-balance-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-warga-exec-dashboard .collection-kpi-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .portal-warga-exec-dashboard {
    padding: 1rem !important;
  }
}

/* Sembunyikan tombol Bayar Cepat & Data Demografi saat berada di tampilan Jadwal Ronda */
body:has(#view-ronda-pengurus.active) #btn-quick-pay,
body:has(#view-ronda-pengurus.active) #btn-top-open-demografi,
.app-container:has(#view-ronda-pengurus.active) #btn-quick-pay,
.app-container:has(#view-ronda-pengurus.active) #btn-top-open-demografi,
main:has(#view-ronda-pengurus.active) #btn-quick-pay,
main:has(#view-ronda-pengurus.active) #btn-top-open-demografi {
  display: none !important;
}

/* ==================== ARSIP e-SURAT WARGA (ADMIN 1 & PENGURUS) ==================== */
.btn-filter-surat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-filter-surat:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #f8fafc;
}

.btn-filter-surat.active {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35) 0%, rgba(126, 34, 206, 0.25) 100%);
  border-color: #a855f7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.stat-card-clickable {
  cursor: pointer;
  user-select: none;
}

.stat-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ==================== PAYMENT GATEWAY PAKASIR STYLES ==================== */
.pakasir-method-card {
  transition: all 0.2s ease;
  user-select: none;
}
.pakasir-method-card:hover {
  border-color: rgba(168, 85, 247, 0.6) !important;
  background: rgba(168, 85, 247, 0.08) !important;
}
.pakasir-method-card.active {
  border-color: #c084fc !important;
  background: rgba(168, 85, 247, 0.18) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
.pakasir-month-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.pakasir-month-checkbox-label:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
  color: #f8fafc;
}
.pakasir-month-checkbox-label.selected {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
  color: #ffffff;
  font-weight: 700;
}
.pakasir-month-checkbox-label.already-paid {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* ==========================================================================
   PRIORITAS 1: PETA INTERAKTIF DIGITAL LINGKUNGAN RT (SMART CLUSTER GIS MAP)
   RT.001 / RW.013 Graha Asri - 112 Kavling, 4 Blok, 5 Jalan Resmi
   ========================================================================== */

.public-tentang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .public-tentang-grid {
    grid-template-columns: 1fr;
  }
}

.smart-map-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-map-header {
  padding: 1.15rem 1.4rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.smart-map-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.smart-map-icon-radar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.smart-map-icon-radar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid #10b981;
  animation: radarPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.6;
}

@keyframes radarPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.smart-map-title-text h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.smart-map-title-text p {
  margin: 0.15rem 0 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.smart-map-kpis {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.smart-map-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.smart-map-kpi-badge.kpi-total {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.smart-map-kpi-badge.kpi-paid {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.smart-map-kpi-badge.kpi-unpaid {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.smart-map-mode-toggle {
  display: inline-flex;
  padding: 3px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.smart-map-mode-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.smart-map-mode-btn:hover {
  color: #f8fafc;
}

.smart-map-mode-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Toolbar: Search, Filters & Controls */
.smart-map-toolbar {
  padding: 0.85rem 1.4rem;
  background: rgba(10, 15, 30, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.smart-map-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.smart-map-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.smart-map-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.88rem;
  pointer-events: none;
}

.smart-map-search-input {
  width: 100%;
  padding: 0.5rem 2.2rem 0.5rem 2.3rem;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.smart-map-search-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: rgba(2, 6, 23, 0.9);
}

.smart-map-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  display: none;
}

.smart-map-search-clear:hover {
  color: #f8fafc;
}

.smart-map-zoom-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.smart-map-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.smart-map-action-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.smart-map-action-btn.btn-fullscreen {
  width: auto;
  padding: 0 0.85rem;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.smart-map-action-btn.btn-fullscreen:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.smart-map-chips-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.smart-map-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.smart-map-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.smart-map-chip.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Viewport & SVG Container */
.smart-map-viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: radial-gradient(circle at 50% 30%, #0d1a33 0%, #030712 100%);
  overflow: hidden;
  touch-action: pan-x pan-y pinch-zoom;
  user-select: none;
}

.smart-map-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease-out;
  transform-origin: center center;
}

.smart-map-svg {
  width: 100%;
  height: auto;
  max-height: 720px;
  display: block;
}

/* Parcel SVG Styles */
.map-parcel {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-parcel rect {
  transition: fill 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.map-parcel:hover rect {
  stroke: #38bdf8 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

.map-parcel.selected rect {
  stroke: #c084fc !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.9));
}

.map-parcel.search-match rect {
  stroke: #06b6d4 !important;
  stroke-width: 2.8px !important;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.9));
  animation: parcelHighlight 1.5s infinite alternate ease-in-out;
}

@keyframes parcelHighlight {
  0% { stroke-opacity: 0.6; filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5)); }
  100% { stroke-opacity: 1; filter: drop-shadow(0 0 14px rgba(6, 182, 212, 1)); }
}

.map-parcel.dimmed {
  opacity: 0.22;
  transition: opacity 0.25s ease;
}

.map-parcel text {
  font-family: 'JetBrains Mono', 'Segoe UI Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  fill: #ffffff;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Floating Glass HUD Tooltip */
.smart-map-hud {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -14px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.25);
  padding: 12px 16px;
  min-width: 260px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.smart-map-hud.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.smart-map-hud::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.94);
  border-right: 1px solid rgba(16, 185, 129, 0.45);
  border-bottom: 1px solid rgba(16, 185, 129, 0.45);
}

.smart-map-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.smart-map-hud-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}

.smart-map-hud-dues {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.smart-map-hud-dues.lunas {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.smart-map-hud-dues.belum {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.smart-map-hud-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.smart-map-hud-wife {
  font-size: 0.78rem;
  color: #f472b6;
  margin: 2px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.smart-map-hud-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.smart-map-hud-hint {
  font-size: 0.7rem;
  color: #38bdf8;
  margin-top: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Footer & Legend */
.smart-map-footer {
  padding: 0.85rem 1.4rem;
  background: rgba(10, 15, 30, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.smart-map-legend-items {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: #94a3b8;
}

.smart-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.legend-swatch.swatch-lunas {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 1px solid #34d399;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.legend-swatch.swatch-belum {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  border: 1px solid #fbbf24;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.legend-swatch.swatch-match {
  background: #06b6d4;
  border: 1px solid #67e8f9;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.6);
}

.legend-swatch.swatch-boundary {
  background: transparent;
  border: 2px dashed #f43f5e;
}

/* Fullscreen Command Center Modal */
#modal-peta-wilayah .modal-content {
  width: 96vw;
  max-width: 1440px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

#modal-peta-wilayah .peta-fullscreen-body {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: #020617;
  display: flex;
  flex-direction: column;
}

#modal-peta-wilayah .peta-fullscreen-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Resident Quick-Detail Modal */
#modal-map-resident-detail .modal-content {
  max-width: 580px;
  padding: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(16, 185, 129, 0.15);
}

.resident-map-modal-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resident-map-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.resident-map-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.resident-map-header-info {
  flex: 1;
}

.resident-map-header-info h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

.resident-map-wife-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #f472b6;
  margin-top: 4px;
  font-weight: 600;
}

.resident-map-address {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.resident-map-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.resident-map-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.resident-map-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.resident-map-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.resident-map-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.resident-map-family-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resident-map-family-chip {
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.resident-map-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-whatsapp-resident {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whatsapp-resident:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}


