/**
 * SilsilahKu - Design System & Dynamic Theme CSS
 * Mendukung CSS Custom Properties, Dark/Light Mode, dan Kustomisasi Warna
 */

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

:root {
  /* Dynamic Theme Variables (overridden by server-side ThemeService) */
  --theme-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --theme-primary: #2563eb;
  --theme-primary-hover: #1d4ed8;
  --theme-primary-light: #eff6ff;
  --theme-sidebar-bg: #0f172a;
  --theme-sidebar-text: #f8fafc;
  --theme-navbar-bg: #ffffff;
  --theme-navbar-text: #0f172a;

  /* Surface & Base Tokens (Light Mode) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Text Tokens */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-info: #06b6d4;
  --color-info-bg: #ecfeff;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Layout dimensions */
  --sidebar-width: 260px;
  --navbar-height: 68px;
}

/* ========================================================
   DARK MODE OVERRIDES
   ======================================================== */
[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1a243b;
  --bg-input: #101726;
  --border-color: #23304b;
  --border-focus: #60a5fa;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --theme-primary-light: rgba(37, 99, 235, 0.15);
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger-bg: rgba(239, 68, 68, 0.15);
  --color-info-bg: rgba(6, 182, 212, 0.15);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* ========================================================
   RESET & BASE
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--theme-font);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--theme-primary-hover);
}

/* ========================================================
   LAYOUT CONTAINER
   ======================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* SIDEBAR */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--theme-sidebar-bg);
  color: var(--theme-sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  height: var(--navbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--theme-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
}

.nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  padding: 12px 12px 6px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: inherit;
  opacity: 0.78;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.nav-link:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  color: inherit;
  transform: translateX(2px);
}

.nav-link.active {
  opacity: 1;
  background-color: var(--theme-primary);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* MAIN WRAPPER */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  transition: margin-left 0.25s ease;
}

/* NAVBAR */
.app-navbar {
  height: var(--navbar-height);
  background-color: var(--theme-navbar-bg);
  color: var(--theme-navbar-text);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  max-width: 100%;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.navbar-logo-img {
  max-height: 28px;
  max-width: 120px;
  object-fit: contain;
}

.navbar-app-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar-role-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-user-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.navbar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--theme-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.navbar-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

/* CONTENT BODY - FULL WIDTH */
.app-content {
  flex: 1;
  padding: 20px 28px;
  width: 100%;
  margin: 0;
}

/* ========================================================
   COMPONENTS: BUTTONS (Theme Primary Buttons)
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--theme-primary) !important;
  color: #ffffff !important;
  border-color: var(--theme-primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--theme-primary-hover) !important;
  border-color: var(--theme-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-body);
  border-color: var(--border-focus);
}

.btn-success {
  background-color: var(--color-success);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-icon:hover {
  background: var(--bg-body);
  color: var(--theme-primary);
}

/* ========================================================
   CARDS & SURFACES
   ======================================================== */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ========================================================
   STATS WIDGET
   ======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-primary-light);
  color: var(--theme-primary);
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================================
   TABLES
   ======================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.table th {
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ========================================================
   BADGES & TAGS
   ======================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-primary { background: var(--theme-primary-light); color: var(--theme-primary); }

/* ========================================================
   FORMS & INPUTS
   ======================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--theme-primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-control {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1;
}

.password-toggle-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-hover, rgba(0, 0, 0, 0.05));
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 1px;
}

/* ========================================================
   SUGGESTION CHIPS (PILIHAN SARAN PEKERJAAN / FORM)
   ======================================================== */
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.btn-suggestion-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-suggestion-chip:hover {
  background-color: var(--theme-primary-light, rgba(37, 99, 235, 0.1));
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.btn-suggestion-chip:active {
  transform: scale(0.96);
}

/* ========================================================
   WHATSAPP QUICK LINK BADGE
   ======================================================== */
.wa-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.wa-link-btn:hover {
  background-color: #1ebc57;
  transform: translateY(-1px);
}

/* ========================================================
   FAMILY TREE CANVAS & NODES (Dynamic Silsilah Tree)
   ======================================================== */
.tree-viewport {
  position: relative;
  width: 100%;
  height: 700px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.tree-viewport:active {
  cursor: grabbing;
}

.tree-canvas-container {
  transform-origin: 0 0;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
}

.tree-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

/* TREE NODE CARD */
.tree-node-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  width: 220px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tree-node-card:hover {
  border-color: var(--theme-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.tree-node-card.male {
  border-top: 4px solid #3b82f6;
}

.tree-node-card.female {
  border-top: 4px solid #ec4899;
}

.tree-node-card.deceased {
  opacity: 0.85;
  filter: grayscale(0.2);
}

.tree-node-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  margin: 0 auto 10px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
}

.tree-node-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-node-years {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tree-node-job {
  font-size: 0.75rem;
  color: var(--theme-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TREE DRAWER / DETAIL MODAL */
.tree-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tree-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ========================================================
   THEME COLOR PREVIEW PICKER
   ======================================================== */
.color-picker-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-input-preview {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: none;
}

.preset-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-card:hover, .preset-card.active {
  border-color: var(--theme-primary);
  background: var(--theme-primary-light);
}

.theme-settings-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.theme-preview-sticky {
  position: sticky;
  top: 85px;
}

@media (max-width: 1024px) {
  .theme-settings-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .theme-preview-sticky {
    position: static !important;
  }
}

@media (max-width: 640px) {
  .theme-settings-layout .card {
    padding: 18px 14px !important;
  }
  .color-picker-box {
    gap: 8px;
  }
  .color-input-preview {
    width: 38px;
    height: 38px;
  }
}


/* ========================================================
   GREETING HERO BANNER
   ======================================================== */
.greeting-hero {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.greeting-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.greeting-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.greeting-subtitle {
  font-size: 0.92rem;
  opacity: 0.92;
  margin-top: 6px;
  max-width: 680px;
  line-height: 1.45;
}

/* ========================================================
   MODERN FAMILY HERO CARD (Dual-mode Adaptive)
   ======================================================== */
.family-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08) 0%, rgba(var(--theme-primary-rgb), 0.02) 45%, var(--bg-surface) 100%), var(--bg-surface);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.16);
  box-shadow: 0 10px 30px -10px rgba(var(--theme-primary-rgb), 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

[data-theme="dark"] .family-hero-card {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.18) 0%, rgba(15, 23, 42, 0.9) 45%, var(--bg-surface) 100%), var(--bg-surface);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Ambient Radial Glow & Watermark */
.family-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.family-hero-watermark {
  position: absolute;
  right: -20px;
  bottom: -25px;
  width: 280px;
  height: 280px;
  opacity: 0.07;
  color: var(--theme-primary);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .family-hero-watermark {
  opacity: 0.12;
}

/* Layout Content */
.family-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 28px;
}

.family-hero-main {
  flex: 1;
  min-width: 0;
}

/* Chip/Badge Row */
.family-hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.family-hero-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-primary);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px -1px rgba(var(--theme-primary-rgb), 0.4);
}

.family-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .family-hero-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.family-hero-pill .hero-dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.family-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
}

/* Typography */
.family-hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 8px;
}

.family-hero-greeting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(245, 158, 11, 0.35);
}

.family-hero-greeting-icon svg {
  width: 22px;
  height: 22px;
}

.hero-name-highlight {
  color: var(--theme-primary);
  font-weight: 800;
}

[data-theme="dark"] .hero-name-highlight {
  color: #60a5fa;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.family-hero-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 650px;
  margin-bottom: 20px;
}

.family-hero-desc strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Hero Action Buttons */
.family-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.hero-btn-primary {
  background: var(--theme-primary);
  color: #ffffff !important;
  border: 1px solid var(--theme-primary);
}

.hero-btn-primary:hover {
  background: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(var(--theme-primary-rgb), 0.45);
}

.hero-btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
}

.hero-btn-secondary:hover {
  background: var(--theme-primary-light);
  border-color: var(--theme-primary);
  color: var(--theme-primary) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .hero-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9 !important;
}

[data-theme="dark"] .hero-btn-secondary:hover {
  background: rgba(var(--theme-primary-rgb), 0.2);
  border-color: var(--theme-primary);
  color: #ffffff !important;
}

/* Sisi Kanan: Mini Insight Box */
.family-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: 250px;
}

.hero-insight-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.16);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

[data-theme="dark"] .hero-insight-card {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -3px rgba(0, 0, 0, 0.4);
}

.hero-insight-header {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-insight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--border-color);
}

.hero-insight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-insight-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-insight-value {
  color: var(--text-main);
  font-weight: 700;
}

/* Responsivitas Layar Kecil / Mobile */
@media (max-width: 900px) {
  .family-hero-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .family-hero-content {
    flex-direction: column;
    gap: 18px;
  }
  .family-hero-title {
    font-size: 1.28rem;
    flex-wrap: wrap;
  }
  .family-hero-date {
    margin-left: 0;
    width: 100%;
  }
  .family-hero-side {
    width: 100%;
  }
  .family-hero-actions {
    width: 100%;
  }
  .hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* ========================================================
   STEPPER WIZARD (Multi-Step Form)
   ======================================================== */
.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.stepper-progress-bar {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 3px;
  background: var(--theme-primary);
  z-index: 2;
  transition: width 0.3s ease;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.step-item.active .step-circle {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--theme-primary-light);
}

.step-item.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--text-main);
  font-weight: 700;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* ========================================================
   CUSTOM MODAL & CONFIRMATION
   ======================================================== */
.custom-modal-backdrop,
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.custom-modal-backdrop.active,
.modal-overlay.active {
  display: flex !important;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.modal-header-clean {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-body-clean {
  padding: 24px;
}

.modal-footer-clean {
  padding: 16px 24px;
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION & APPS SHEET
   ======================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  z-index: 80;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  min-width: 0;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--theme-primary);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

/* ========================================================
   HOME FLOATING CENTER CIRCLE (Mobile App Style)
   ======================================================== */
.mobile-nav-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  position: relative;
  flex: 1;
  min-width: 58px;
  user-select: none;
  padding-bottom: 4px;
}

.mobile-nav-center-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 4px var(--bg-surface);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-center-circle svg {
  width: 25px;
  height: 25px;
  stroke: #ffffff;
}

.mobile-nav-center-wrap:active .mobile-nav-center-circle {
  transform: scale(0.92);
}

.mobile-nav-center-wrap span {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 30px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.mobile-nav-center-wrap.active .mobile-nav-center-circle {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 4px var(--bg-surface);
  transform: translateY(-2px);
}

.mobile-nav-center-wrap.active span {
  color: var(--theme-primary);
  font-weight: 700;
}

/* Mobile Apps Bottom Sheet Drawer */
.mobile-apps-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
}

.mobile-apps-backdrop.open {
  display: block;
}

.mobile-apps-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  z-index: 95;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.mobile-apps-sheet.open {
  transform: translateY(0);
}

.apps-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 10px auto 6px;
}

.apps-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px 8px;
  padding: 14px 12px 30px;
  overflow-y: auto;
}

.apps-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}

.apps-grid-btn:hover, .apps-grid-btn:active {
  border-color: var(--theme-primary);
  transform: scale(0.96);
  color: var(--theme-primary);
}

.apps-grid-btn .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--theme-primary-light);
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   PRINT & EXPORT STYLING
   ======================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-sidebar, .app-navbar, .mobile-bottom-nav, .tree-controls, .tree-drawer, .no-print, .btn, form {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-content {
    padding: 0 !important;
  }

  .tree-viewport {
    height: auto !important;
    border: none !important;
    overflow: visible !important;
  }

  .tree-canvas-container {
    transform: none !important;
    position: static !important;
  }

  .tree-node-card {
    border: 1px solid #333 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
  }
}

/* ========================================================
   RESPONSIVE OVERRIDES (MOBILE & TABLET SUPPORT)
   ======================================================== */
@media (max-width: 1024px) {
  /* Alihkan ke mobile app navigation pada tablet dan smartphone */
  .app-sidebar {
    display: none !important;
  }

  .btn-sidebar-toggle {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    margin-bottom: 68px !important; /* Ruang untuk mobile bottom nav */
  }

  .mobile-bottom-nav {
    display: flex !important;
    overflow: visible !important;
  }

  .app-content {
    padding: 14px 14px 84px 14px !important;
  }

  .apps-sheet-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .apps-sheet-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .apps-sheet-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Dukungan PWA Terinstal (HP & Tablet) */
body.pwa-installed .mobile-bottom-nav,
body.pwa-mode .mobile-bottom-nav {
  display: flex !important;
}

@media (max-width: 1024px) {
  body.pwa-installed .app-sidebar,
  body.pwa-mode .app-sidebar {
    display: none !important;
  }
  body.pwa-installed .app-main,
  body.pwa-mode .app-main {
    margin-left: 0 !important;
    margin-bottom: 68px !important;
  }
}

/* ========================================================
   FULLSCREEN KIOSK / TREE PRESENTER MODE (Bukan PWA)
   Khusus saat URL menyertakan view=fullscreen
   ======================================================== */
.fullscreen-kiosk-mode .app-sidebar,
.fullscreen-kiosk-mode .mobile-bottom-nav {
  display: none !important;
}

.fullscreen-kiosk-mode .app-main {
  margin-left: 0 !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

.fullscreen-kiosk-mode .btn-sidebar-toggle {
  display: none !important;
}

/* ========================================================
   SPINNER & LOADING OVERLAY
   ======================================================== */
.export-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--border-color);
  border-top-color: var(--theme-primary);
  border-radius: 50%;
  animation: exportSpin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes exportSpin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   DASHBOARD MOBILE RESPONSIVENESS
   ======================================================== */
.dashboard-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
}

.recent-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Mobile Quick Access Tiles */
.app-tile-card {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background-color 0.15s ease;
}

.app-tile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--theme-primary) !important;
}

.app-tile-card:active {
  transform: scale(0.96);
  opacity: 0.9;
}

@media (max-width: 992px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .app-navbar {
    padding: 0 10px !important;
    height: 54px !important;
    overflow: hidden !important;
  }

  .btn-sidebar-toggle {
    display: inline-flex !important;
    padding: 6px !important;
  }

  .navbar-left {
    gap: 8px !important;
    min-width: 0 !important;
  }

  .navbar-brand-wrap {
    gap: 4px !important;
    min-width: 0 !important;
  }

  .navbar-logo-img {
    max-height: 24px !important;
    max-width: 90px !important;
  }

  .navbar-app-title {
    font-size: 0.95rem !important;
  }

  /* Sembunyikan subtitle role pada navbar mobile untuk mencegah teks membungkus */
  .navbar-role-badge {
    display: none !important;
  }

  .navbar-right {
    gap: 4px !important;
  }

  /* Sembunyikan tombol teks Bagan Silsilah di navbar mobile karena sudah ada di Bottom Nav & Hero Card */
  .navbar-tree-btn {
    display: none !important;
  }

  /* Sembunyikan teks nama dan role user di navbar mobile */
  .navbar-user-text {
    display: none !important;
  }

  .navbar-user-block {
    margin-left: 2px !important;
    gap: 4px !important;
  }

  .navbar-user-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }

  .navbar-right .btn-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 6px !important;
  }

  .navbar-right .btn-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .app-content {
    padding: 12px 12px 84px 12px !important;
  }

  .mobile-bottom-nav {
    height: 62px;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-surface);
  }

  .mobile-nav-item {
    flex: 1;
    padding: 4px 2px;
    font-size: 0.7rem;
  }

  .mobile-nav-item.active {
    color: var(--theme-primary);
    font-weight: 700;
  }

  .mobile-nav-item.active svg {
    transform: scale(1.1);
    stroke-width: 2.4;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dashboard-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .dashboard-header-actions .btn {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .greeting-hero {
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .greeting-title {
    font-size: 1.15rem;
  }

  .greeting-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .greeting-badge-icon {
    display: none !important;
  }

  .mobile-app-tiles {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .app-tile-card {
    padding: 12px 10px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  .stat-card {
    padding: 12px 10px !important;
    gap: 8px !important;
    border-radius: var(--radius-md) !important;
  }

  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
  }

  .stat-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .stat-value {
    font-size: 1.2rem !important;
  }

  .stat-label {
    font-size: 0.7rem !important;
  }

  .recent-members-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}


