/* ===================================
   MODERN SYSTEM CSS - BPPRD MERANGIN
   =================================== */

/* ===================================
   CSS VARIABLES - REFACTORED SYSTEM
   =================================== */

:root {
  /* ===================================
     COLOR SYSTEM - REFACTORED
     =================================== */
  
  /* Primary Color Palette */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --color-accent: #f59e0b;
  
  /* Neutral Color Scale */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-black: #000000;
  
  /* ===================================
     THEME SYSTEM - REFACTORED
     =================================== */
  
  /* Background System */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-glass: rgba(30, 41, 59, 0.8);
  --bg-glass-border: rgba(30, 41, 59, 0.2);
  
  /* Text System */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  /* Border System */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-tertiary: #1e293b;
  --border-glass: rgba(30, 41, 59, 0.2);
  
  /* ===================================
     SHADOW SYSTEM - REFACTORED
     =================================== */
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* ===================================
     SPACING SYSTEM - REFACTORED
     =================================== */
  
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1-5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2-5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-3-5: 0.875rem;  /* 14px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-7: 1.75rem;     /* 28px */
  --space-8: 2rem;        /* 32px */
  --space-9: 2.25rem;     /* 36px */
  --space-10: 2.5rem;     /* 40px */
  --space-11: 2.75rem;    /* 44px */
  --space-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-28: 7rem;       /* 112px */
  --space-32: 8rem;       /* 128px */
  
  /* Legacy Spacing (for backward compatibility) */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);
  --spacing-2xl: var(--space-12);
  --spacing-3xl: var(--space-16);
  
  /* ===================================
     BORDER RADIUS SYSTEM - REFACTORED
     =================================== */
  
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* ===================================
     TYPOGRAPHY SYSTEM - REFACTORED
     =================================== */
  
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  --font-family-serif: 'Playfair Display', 'Times New Roman', Times, serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */
  --text-9xl: 8rem;        /* 128px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Font Weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* ===================================
     TRANSITION SYSTEM - REFACTORED
     =================================== */
  
  --transition-none: none;
  --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Legacy Transitions (for backward compatibility) */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* ===================================
     Z-INDEX SYSTEM - REFACTORED
     =================================== */
  
  --z-auto: auto;
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  --z-floating: 1090;
  
  /* ===================================
     LEGACY COMPATIBILITY
     =================================== */
  
  /* Primary Colors (legacy) */
  --primary-color: var(--color-primary-500);
  --primary-dark: var(--color-primary-600);
  --primary-light: var(--color-primary-400);
  --secondary-color: var(--color-success);
  --accent-color: var(--color-accent);
  --success-color: var(--color-success);
  --warning-color: var(--color-warning);
  --danger-color: var(--color-danger);
  --info-color: var(--color-info);
  
  /* Glassmorphism (legacy) */
  --glass-bg: var(--bg-glass);
  --glass-border: var(--bg-glass-border);
  --glass-shadow: var(--shadow-glass);
  
  /* Neumorphism (legacy) */
  --neu-light: var(--bg-secondary);
  --neu-dark: var(--bg-primary);
  --neu-shadow-light: 5px 5px 10px rgba(0, 0, 0, 0.3);
  --neu-shadow-dark: -5px -5px 10px rgba(30, 41, 59, 0.8);
}

/* ===================================
   DARK THEME - REFACTORED
   =================================== */

[data-theme="dark"] {
  /* Background System Override */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(0, 0, 0, 0.3);
  --bg-glass: rgba(30, 41, 59, 0.8);
  --bg-glass-border: rgba(148, 163, 184, 0.2);
  
  /* Text System Override */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  /* Border System Override */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-tertiary: #1e293b;
  --border-glass: rgba(148, 163, 184, 0.2);
  
  /* Legacy Compatibility */
  --border-color: var(--border-primary);
  --border-light: var(--border-secondary);
  --border-dark: var(--border-tertiary);
  --glass-bg: var(--bg-glass);
  --glass-border: var(--bg-glass-border);
}


/* ===================================
   BASE STYLES
   =================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
  }
  
  /* ===================================
     HEADER STYLES
     =================================== */
  
  .header-ultra-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    padding: var(--spacing-md) 0;
  }
  
  .header-ultra-modern.scrolled {
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
  }
  
  /* Main Navigation */
  .navbar-modern {
    padding: 0;
    background: transparent;
  }
  
  .logo-container-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-normal);
  }
  
  .logo-container-modern:hover {
    transform: scale(1.05);
  }
  
  .logo-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
  }
  
  .logo-img-modern {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
  }
  
  .logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: var(--radius-lg);
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.6; transform: scale(1.1); }
  }
  
  .logo-text-modern {
    display: flex;
    flex-direction: column;
  }
  
  .logo-primary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
  }
  
  .logo-secondary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
  }
  
  .logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
  }
  
  /* Navigation Links */
  .navbar-nav {
    gap: var(--spacing-lg);
  }
  
  .nav-link-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
  }
  
  .nav-link-modern:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
  }
  
  .nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
  }
  
  .nav-link-modern:hover::after {
    width: 80%;
  }
  
/* Mega Menu */
.mega-menu {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-md);
  min-width: 700px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mega-menu-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.mega-menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.mega-menu-item:active {
  transform: translateX(5px) scale(0.98);
}

.mega-menu-item i {
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mega-menu-item div {
  flex: 1;
}

.mega-menu-item h6 {
  margin: 0 0 var(--spacing-xs) 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.mega-menu-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mega-menu-item:hover h6 {
  color: var(--primary-color);
}

.mega-menu-item:hover i {
  transform: scale(1.1);
}

.mega-menu-cta {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
}

.mega-menu-cta h6 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.mega-menu-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* User Menu */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
}

.avatar-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.user-name {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  color: var(--text-primary);
}

.user-name:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.user-name-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-name .bi-chevron-down {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.user-name:hover .bi-chevron-down {
  transform: rotate(180deg);
}

.user-avatar:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.user-status.online {
  background: var(--success-color);
}

.user-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  min-width: 250px;
  margin-top: var(--spacing-sm);
}

.dropdown-header {
  padding: var(--spacing-md);
  margin: calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md)) var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.user-info h6 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.user-role {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* User Menu */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
}

.avatar-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.user-name {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  color: var(--text-primary);
}

.user-name:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.user-name-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-name .bi-chevron-down {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.user-name:hover .bi-chevron-down {
  transform: rotate(180deg);
}

.user-avatar:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.user-status.online {
  background: var(--success-color);
}

.user-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  min-width: 250px;
  margin-top: var(--spacing-sm);
}

.dropdown-header {
  padding: var(--spacing-md);
  margin: calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md)) var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.user-info h6 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.user-role {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Guest Actions */
.guest-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.guest-actions .btn {
  transition: all var(--transition-normal);
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.guest-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Toggle */
.navbar-toggler-modern {
  border: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: none;
}

.navbar-toggler-modern:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.navbar-toggler-modern:active {
  transform: scale(0.95);
}

/* Navbar Collapse - Mobile Navigation */
.navbar-collapse {
  transition: all var(--transition-normal);
}

/* Ensure navbar-collapse is properly hidden by default on mobile */
@media (max-width: 1199.98px) {
  .navbar-collapse:not(.show) {
    display: none !important;
  }
}

/* Responsive Navigation */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
  }
  
  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: block !important;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .nav-link-modern {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-normal);
  }
  
  .nav-link-modern:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(10px);
  }
  
  .navbar-actions {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }
  
  .guest-actions {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .guest-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Hide mega menu on mobile */
  /* Mega Menu Mobile Responsive */
  .mega-menu {
    position: static;
    min-width: auto;
    max-width: 100%;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    --mega-menu-padding: var(--spacing-md);
  }
  
  .mega-menu .container {
    padding: 0;
  }
  
  .mega-menu .row {
    margin: 0;
  }
  
  .mega-menu .col-lg-3 {
    padding: var(--spacing-sm);
  }
  
  .mega-menu-item {
    --item-padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .mega-menu-item i {
    font-size: 1.25rem;
    margin-top: 0;
  }
  
  .mega-menu-item h6 {
    font-size: 0.9rem;
  }
  
  .mega-menu-item p {
    font-size: 0.8rem;
  }
  
  .mega-menu-cta {
    padding: var(--spacing-sm);
  }
  
  /* Ensure toggle button is visible */
  .navbar-toggler-modern {
    display: block !important;
    order: 3;
  }
}

@media (min-width: 1200px) {
  .navbar-toggler-modern {
    display: none !important;
  }
  
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
  }
}

/* Progress Bar */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-fast);
}

/* ===================================
   BUTTON STYLES
   =================================== */

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-primary-modern .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn-primary-modern:hover .btn-glow {
  left: 100%;
}

.btn-outline-modern {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.btn-outline-modern:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   UTILITY CLASSES - REFACTORED SYSTEM
   =================================== */

/* ===================================
   DISPLAY UTILITIES
   =================================== */

.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }

/* ===================================
   FLEX UTILITIES - ESSENTIAL ONLY
   =================================== */

.flex-column { flex-direction: column !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.flex-1 { flex: 1 1 0% !important; }

/* ===================================
   SPACING UTILITIES
   =================================== */

/* Margin Utilities - Essential Only */
.m-0 { margin: var(--space-0) !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-auto { margin: auto !important; }

/* Margin X-axis - Essential Only */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Margin Y-axis - Essential Only */
.my-0 { margin-top: var(--space-0) !important; margin-bottom: var(--space-0) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }

/* Margin Top - Essential Only */
.mt-0 { margin-top: var(--space-0) !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }

/* ===================================
   TYPOGRAPHY UTILITIES
   =================================== */

/* Typography Utilities - Essential Only */
.text-center { text-align: center !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ===================================
   BACKGROUND UTILITIES - ESSENTIAL ONLY
   =================================== */

.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-warning { background-color: var(--color-warning) !important; }
.bg-danger { background-color: var(--color-danger) !important; }

/* ===================================
   POSITION UTILITIES - ESSENTIAL ONLY
   =================================== */

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }

/* ===================================
   Z-INDEX UTILITIES - ESSENTIAL ONLY
   =================================== */

.z-10 { z-index: var(--z-10) !important; }
.z-30 { z-index: var(--z-30) !important; }

/* ===================================
   HERO SECTION
   =================================== */

.hero-ultra-modern {
  position: relative;
  min-height: 80vh;
  height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
  padding: 100px 0 60px 0;
}


.hero-content-modern {
  position: relative;
  z-index: 2;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Allow AOS animations to work */
  padding: 20px 0;
  color: var(--text-primary);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: 100%;
}

.hero-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  /* Allow AOS animations to work */
  text-align: center;
}

.title-line-1,
.title-line-3 {
  display: block;
  color: var(--text-primary);
}

.title-line-2 {
  display: block;
  color: var(--text-secondary);
}


.hero-description-modern {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  /* Allow AOS animations to work */
  text-align: center;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  /* Allow AOS animations to work */
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

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

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
  /* Allow AOS animations to work */
  justify-content: center;
}

.hero-visual-modern {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0px;
}



.hero-img-modern {
  width: 100%;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 20;
}

/* Video hero styling */
.hero-img-modern[src*=".mp4"],
.hero-img-modern[src*=".webm"],
.hero-img-modern[src*=".ogg"],
.hero-img-modern video {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 600px;
  max-height: 750px;
  z-index: 30;
  /* Allow AOS animations to work */
}


/* Ensure all video elements are above particles */
.hero-visual-modern video,
.hero-visual-modern .hero-img-modern {
  z-index: 30 !important;
}

/* Responsive video sizing */
@media (max-width: 1200px) {
  .hero-img-modern[src*=".mp4"],
  .hero-img-modern[src*=".webm"],
  .hero-img-modern[src*=".ogg"],
  .hero-img-modern video {
    min-height: 550px;
    max-height: 650px;
  }
}

@media (max-width: 992px) {
  .hero-img-modern[src*=".mp4"],
  .hero-img-modern[src*=".webm"],
  .hero-img-modern[src*=".ogg"],
  .hero-img-modern video {
    min-height: 500px;
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .hero-img-modern[src*=".mp4"],
  .hero-img-modern[src*=".webm"],
  .hero-img-modern[src*=".ogg"],
  .hero-img-modern video {
    min-height: 450px;
    max-height: 550px;
  }
}

@media (max-width: 576px) {
  .hero-img-modern[src*=".mp4"],
  .hero-img-modern[src*=".webm"],
  .hero-img-modern[src*=".ogg"],
  .hero-img-modern video {
    min-height: 400px;
    max-height: 500px;
  }
}

/* AOS Overrides for All Section Elements */
.layanan-modern [data-aos],
.tentang-modern [data-aos],
.cara-bayar-modern [data-aos],
.kontak-modern [data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Enable AOS for Hero Section with proper styling */
.hero-ultra-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero elements base styling - allow AOS to work */
.hero-content-modern,
.hero-title-modern,
.hero-description-modern,
.hero-stats,
.hero-actions,
.hero-visual-modern,
.hero-img-modern {
  position: relative;
  z-index: 2;
}

/* AOS Animation Support for Hero Section */
.hero-ultra-modern [data-aos] {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-ultra-modern [data-aos].aos-animate {
  opacity: 1;
  visibility: visible;
}

/* Specific AOS animations for hero elements */
.hero-ultra-modern [data-aos="fade-up"] {
  transform: translateY(30px);
}

.hero-ultra-modern [data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

.hero-ultra-modern [data-aos="fade-right"] {
  transform: translateX(-30px);
}

.hero-ultra-modern [data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

.hero-ultra-modern [data-aos="fade-left"] {
  transform: translateX(30px);
}

.hero-ultra-modern [data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

.hero-ultra-modern [data-aos="zoom-in"] {
  transform: scale(0.8);
}

.hero-ultra-modern [data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* Ensure hero stats have proper hover effects */
.hero-stats .stat-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-stats .stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Ensure hero buttons have proper hover effects */
.hero-actions .btn {
  transition: all 0.3s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}


/* Toast Notifications */
.toast-container {
  z-index: var(--z-floating);
}

.toast {
  min-width: 250px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.toast.bg-success {
  background-color: var(--success-color) !important;
}

.toast.bg-info {
  background-color: var(--info-color) !important;
}

.toast.bg-warning {
  background-color: var(--warning-color) !important;
}

.toast.bg-danger {
  background-color: var(--danger-color) !important;
}


/* All New Sections Base Style */
.layanan-modern,
.tentang-modern,
.cara-bayar-modern,
.kontak-modern {
  position: relative;
  min-height: 80vh;
  height: auto;
  width: 100%;
  display: flex;
  overflow: visible;
  margin: 0;
  padding: 80px 0 60px 0;
  scroll-margin-top: 0;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  align-items: center;
  justify-content: center;
}

/* Neural Network Background for all sections */
.layanan-modern .neural-network-bg,
.tentang-modern .neural-network-bg,
.cara-bayar-modern .neural-network-bg,
.kontak-modern .neural-network-bg,
.hero-ultra-modern .neural-network-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Ensure all sections have proper background for neural network */
.layanan-modern,
.tentang-modern,
.cara-bayar-modern,
.kontak-modern,
.hero-ultra-modern {
  position: relative;
  overflow: hidden;
}

/* Layanan Section */
.layanan-modern {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

/* Tentang Section */
.tentang-modern {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  align-items: center;
  justify-content: center;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

/* Cara Bayar Section */
.cara-bayar-modern {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

/* Kontak Section */
.kontak-modern {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

/* Neural Network Animation */
.neural-network-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.neural-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Neural Network Nodes */
.neural-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 255, 255, 0.2) 50%, transparent 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 10px rgba(0, 255, 255, 0.5),
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 30px rgba(0, 255, 255, 0.1);
  animation: nodePulse 3s ease-in-out infinite;
}

.neural-node:nth-child(2n) {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 100%);
  box-shadow: 
    0 0 10px rgba(138, 43, 226, 0.5),
    0 0 20px rgba(138, 43, 226, 0.3),
    0 0 30px rgba(138, 43, 226, 0.1);
  animation-delay: 1s;
}

.neural-node:nth-child(3n) {
  background: radial-gradient(circle, rgba(0, 191, 255, 0.8) 0%, rgba(0, 191, 255, 0.2) 50%, transparent 100%);
  box-shadow: 
    0 0 10px rgba(0, 191, 255, 0.5),
    0 0 20px rgba(0, 191, 255, 0.3),
    0 0 30px rgba(0, 191, 255, 0.1);
  animation-delay: 2s;
}

/* Neural Network Connections */
.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 255, 0.3) 20%, 
    rgba(0, 255, 255, 0.8) 50%, 
    rgba(0, 255, 255, 0.3) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  animation: connectionFlow 4s linear infinite;
  transform-origin: left center;
}

.neural-connection:nth-child(2n) {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(138, 43, 226, 0.3) 20%, 
    rgba(138, 43, 226, 0.8) 50%, 
    rgba(138, 43, 226, 0.3) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
  animation-delay: 1s;
}

.neural-connection:nth-child(3n) {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 191, 255, 0.3) 20%, 
    rgba(0, 191, 255, 0.8) 50%, 
    rgba(0, 191, 255, 0.3) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
  animation-delay: 2s;
}

/* Data Flow Particles */
.data-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
  animation: dataFlow 6s linear infinite;
}

.data-particle:nth-child(2n) {
  background: rgba(138, 43, 226, 0.9);
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.8);
  animation-delay: 1s;
}

.data-particle:nth-child(3n) {
  background: rgba(0, 191, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
  animation-delay: 2s;
}

/* Animations */
@keyframes nodePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes connectionFlow {
  0% { 
    opacity: 0;
    transform: scaleX(0);
  }
  10% { 
    opacity: 1;
  }
  90% { 
    opacity: 1;
  }
  100% { 
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes dataFlow {
  0% { 
    opacity: 0;
    transform: translateX(0) scale(0);
  }
  10% { 
    opacity: 1;
    transform: scale(1);
  }
  90% { 
    opacity: 1;
  }
  100% { 
    opacity: 0;
    transform: translateX(100px) scale(0);
  }
}

/* Holographic Grid Overlay - Disabled */
.holographic-grid {
  display: none;
}

/* Section Content */
.section-content-modern {
  position: relative;
  z-index: 3;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  opacity: 1 !important;
  visibility: visible !important;
  padding: 20px 0;
  pointer-events: auto !important;
  width: 100%;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.section-content-modern.text-center {
  text-align: center;
  align-items: center;
}

/* Layanan Content Top */
.layanan-content-top {
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 0;
}

.layanan-title-top {
  margin-bottom: var(--spacing-lg);
  font-size: 3.5rem;
  margin-top: 0;
}

.layanan-links-top {
  margin-top: var(--spacing-lg);
}

/* Tentang Content Top */
.tentang-content-top {
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 0;
}

.tentang-title-top {
  margin-bottom: var(--spacing-lg);
  font-size: 3.5rem;
  margin-top: 0;
}

/* Cara Bayar Content Top */
.cara-bayar-content-top {
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 0;
}

.cara-bayar-title-top {
  margin-bottom: var(--spacing-lg);
  font-size: 3.5rem;
  margin-top: 0;
}

/* Kontak Content Top */
.kontak-content-top {
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 0;
}

.kontak-title-top {
  margin-bottom: var(--spacing-lg);
  font-size: 3.5rem;
  margin-top: 0;
}

/* Section Title */
.section-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  position: relative;
  z-index: 4;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.section-title-modern .title-main {
  display: block;
  color: var(--text-primary);
  position: relative;
  z-index: 4;
}

.section-title-modern .title-accent {
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Description */
.section-description-modern {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 4;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}



/* Section Visual */
.section-visual-modern {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-img-modern {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

/* Section Visual Placeholder */
.section-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  height: 100%;
  min-height: 400px;
  transition: all var(--transition-normal);
}

.section-visual-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.placeholder-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.section-visual-placeholder h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
}

.section-visual-placeholder p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-lg) 0;
  opacity: 0.8;
}


/* Tentang Placeholder */
.tentang-placeholder .placeholder-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.stat-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-preview i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.stat-preview span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Payment Placeholder */
.payment-placeholder .placeholder-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  width: 100%;
}

.payment-method-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all var(--transition-normal);
}

.payment-method-preview:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.05);
}

.payment-method-preview i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.payment-method-preview span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
}

/* Contact Placeholder */
.contact-placeholder .placeholder-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.contact-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.contact-preview:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.contact-preview i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-preview span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Layanan Links */
.layanan-links {
  margin-top: 0;
  width: 100%;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.layanan-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.layanan-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.layanan-item:hover::before {
  left: 100%;
}

.layanan-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.layanan-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.layanan-item:hover::after {
  opacity: 1;
}

.layanan-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  height: 100%;
  padding: var(--spacing-sm);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.layanan-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.layanan-link:active {
  transform: scale(0.98);
}

/* Make sure all child elements inherit cursor */
.layanan-item * {
  cursor: pointer;
}

.layanan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  margin-bottom: var(--spacing-sm);
}

.layanan-item:hover .layanan-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.layanan-icon i {
  font-size: 2rem;
  color: var(--white);
}

.layanan-content {
  flex: 1;
  min-width: 0;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.layanan-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  transition: color var(--transition-normal);
  text-align: center;
}

.layanan-item:hover .layanan-content h4 {
  color: var(--primary-color);
}

.layanan-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-normal);
  margin-top: auto;
}

.layanan-arrow i {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

.layanan-item:hover .layanan-arrow {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.layanan-item:hover .layanan-arrow i {
  color: var(--white);
  transform: translateX(3px);
}

/* Section Stats */
.section-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  position: relative;
  z-index: 4;
  justify-content: center;
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
}


/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.payment-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.payment-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.payment-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.payment-item span {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 24px;
}

.contact-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Container for New Sections */
.hero-ultra-modern .container,
.layanan-modern .container,
.tentang-modern .container,
.cara-bayar-modern .container,
.kontak-modern .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Row and Column Visibility */
.hero-ultra-modern .row,
.layanan-modern .row,
.tentang-modern .row,
.cara-bayar-modern .row,
.kontak-modern .row {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin: 0;
}

.hero-ultra-modern .col-lg-6,
.layanan-modern .col-lg-6,
.tentang-modern .col-lg-6,
.cara-bayar-modern .col-lg-6,
.kontak-modern .col-lg-6 {
  position: relative;
  z-index: 3;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  padding: 20px 15px;
}

/* Visual columns (right side) should be centered */
.hero-ultra-modern .col-lg-6:last-child,
.layanan-modern .col-lg-6:last-child,
.tentang-modern .col-lg-6:last-child,
.cara-bayar-modern .col-lg-6:last-child,
.kontak-modern .col-lg-6:last-child {
  align-items: center;
  justify-content: center;
}

/* Enable smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

/* Enable smooth scrolling for better section navigation */
body {
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Ensure no extra padding/margin that affects document height */
* {
  box-sizing: border-box;
}

/* Fix document height calculation */
main {
  padding: 0;
  margin: 0;
}

/* Ensure proper document height */
.container-fluid,
.container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .hero-title-modern { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 576px) {
  .hero-title-modern { font-size: 2rem; }
  
  .section-title-modern {
    font-size: 1.75rem;
  }
  
  .navbar-modern {
    padding: var(--spacing-xs) 0;
  }
  
  .logo-container-modern {
    gap: var(--spacing-xs);
  }
  
  .logo-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .logo-primary {
    font-size: 1rem;
  }
  
  .logo-secondary {
    font-size: 0.75rem;
  }
  
  .logo-tagline {
    font-size: 0.625rem;
  }
  
  .guest-actions {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .guest-actions .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
  }
  
  

}

/* ===================================
   CHAT SYSTEM - GLASSMORPHISM THEME
   =================================== */

/* Chat Modal Glassmorphism */
.chat-modal.glamorphine-transparent {
  background: rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.2),
    0 15px 50px rgba(99, 102, 241, 0.1) !important;
}

.chat-modal.glamorphine-transparent .modal-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.chat-modal.glamorphine-transparent .modal-body {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.chat-container {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(99, 102, 241, 0.02) 50%,
    rgba(99, 102, 241, 0.05) 100%
  );
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.chat-container:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.chat-messages {
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Pastikan scrollbar terlihat dengan jelas */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  position: relative;
  z-index: 1;
}

/* Custom scrollbar untuk webkit browsers dengan glassmorphism */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.8),
    rgba(99, 102, 241, 0.6)
  );
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 1),
    rgba(99, 102, 241, 0.8)
  );
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}



/* Styling untuk scrollbar yang terlihat */
.scrollbar-visible {
  overflow-y: scroll !important;
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
}

/* Indicator untuk content yang overflow */
.has-overflow::before {
          content: 'Scroll untuk melihat lebih';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}


/* Visual feedback untuk scroll */
.scrolled-to-top::after {
  content: '⬆️';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.6;
}

.scrolled-to-bottom::after {
  content: '⬇️';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.6;
}

.message {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  max-width: 80%;
  position: relative;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(99, 102, 241, 0.1);
}

.message.system {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid rgba(99, 102, 241, 0.6);
  margin: 0 auto var(--spacing-md) 0;
  text-align: center;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.message.user {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(0, 86, 179, 0.8));
  color: var(--text-white);
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 6px;
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.3),
    0 2px 8px rgba(0, 123, 255, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.message.agent {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(30, 126, 52, 0.8));
  color: var(--text-white);
  margin-right: auto;
  margin-left: 0;
  border-bottom-left-radius: 6px;
  box-shadow: 
    0 4px 16px rgba(40, 167, 69, 0.3),
    0 2px 8px rgba(30, 126, 52, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.message-content p {
  margin-bottom: var(--spacing-xs);
}

.message-content small {
  opacity: 0.7;
}

.chat-input {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  flex-shrink: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 -4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-input .form-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-input .form-control:focus {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 
    0 0 0 0.2rem rgba(99, 102, 241, 0.25),
    0 4px 16px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.chat-input .btn {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.3s ease;
  background: rgba(99, 102, 241, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chat-input .btn:hover {
  transform: scale(1.05);
  background: rgba(99, 102, 241, 1);
  box-shadow: 
    0 8px 24px rgba(99, 102, 241, 0.4),
    0 4px 16px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}


/* Responsive Chat */
@media (max-width: 768px) {
  .message {
    max-width: 90%;
  }
  
  .chat-container {
    height: 350px;
  }
  
  .chat-messages {
    padding: var(--spacing-md);
  }
  
  .chat-input .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

@media (max-width: 480px) {
  .chat-container {
    height: 300px;
  }
}



/* Scroll Arrow Animation - Modern Design */
.scroll-arrow-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1100;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.scroll-arrow-animation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.scroll-arrow-arrow {
  position: relative;
  z-index: 2;
  color: var(--primary-color);
  font-size: 28px;
  animation: scrollBounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-arrow-arrow i {
  transition: all 0.3s ease;
}


.scroll-arrow-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: scrollGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Hover Effects */
.scroll-arrow-container:hover .scroll-arrow-animation {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
}

.scroll-arrow-container:hover .scroll-arrow-arrow {
  animation-duration: 1s;
}

/* Animations */
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes scrollGlowPulse {
  0%, 100% { 
    opacity: 0.3; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1.2); 
  }
}

/* Enhanced hover effects */
.scroll-arrow-container:hover .scroll-arrow-pulse {
  opacity: 1;
}

/* Focus states for accessibility */
.scroll-arrow-container:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.scroll-arrow-container:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scroll-arrow-container {
    bottom: 15px;
    left: 15px;
  }
  
  .scroll-arrow-animation {
    width: 55px;
    height: 55px;
  }
  
  .scroll-arrow-arrow {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .scroll-arrow-container {
    bottom: 10px;
    left: 10px;
  }
  
  .scroll-arrow-animation {
    width: 50px;
    height: 50px;
  }
  
  .scroll-arrow-arrow {
    font-size: 22px;
  }
}

.accessibility-controls {
  display: flex;
  gap: var(--spacing-sm);
}

.font-size-controls {
  display: flex;
  gap: var(--spacing-xs);
}

.font-size-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.font-size-btn:hover {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

.font-size-btn.active {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

/* ===================================
   REGISTRATION MODAL - GLAMORPHINE TRANSPARENT
   =================================== */

.modal-content.glamorphine-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

/* ===================================
   CHAT MODAL STYLING
   =================================== */

/* Modal Structure */
#liveChatModal .modal-body {
  padding: 0;
  overflow: visible;
}

#liveChatModal .modal-dialog {
  max-height: 90vh;
}

#liveChatModal .modal-content {
  height: 100%;
  max-height: 90vh;
  overflow: visible;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 10px 40px rgba(99, 102, 241, 0.1);
}

/* Chat Container */
#liveChatModal .chat-container {
  height: 100%;
  min-height: 400px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Chat Messages */
#liveChatModal .chat-messages {
  overflow-y: scroll !important;
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
  max-height: 350px;
  position: relative;
}

/* Custom Scrollbar */
#liveChatModal .chat-messages::-webkit-scrollbar {
  width: 12px !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

#liveChatModal .chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#liveChatModal .chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary-color) !important;
  border-radius: 6px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
}

#liveChatModal .chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--success-color) !important;
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.8) !important;
}

#liveChatModal .chat-messages::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Modal Header */
.modal-header.glamorphine-modal-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: var(--spacing-lg);
  position: relative;
}

.glamorphine-modal-title-container {
  text-align: center;
  flex: 1;
}

.glamorphine-modal-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.glamorphine-modal-accent {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

/* Close Button */
.btn-close.glamorphine-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: relative;
  transition: all 0.3s ease;
}

.btn-close.glamorphine-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.glamorphine-close-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

/* Modal Body */
.modal-body.glamorphine-modal-body {
  padding: var(--spacing-xl);
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Form Sections */
.form-section.glamorphine-section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section.glamorphine-section:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.glamorphine-section-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
}

.glamorphine-section-title i {
  margin-right: var(--spacing-sm);
  font-size: 1.2rem;
}

/* Form Groups */
.form-group.glamorphine-form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

/* Form Inputs */
.glamorphine-input,
.glamorphine-select,
.glamorphine-textarea {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  padding: var(--spacing-md);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glamorphine-input::placeholder,
.glamorphine-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.glamorphine-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.glamorphine-label i {
  margin-right: var(--spacing-xs);
  color: var(--primary-color);
  font-size: 1rem;
}

/* Dropdown Options */
.glamorphine-select option {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  font-size: 0.95rem;
}

.glamorphine-select option:hover {
  background: rgba(99, 102, 241, 0.3);
  color: var(--white);
}

.glamorphine-select option:checked {
  background: rgba(99, 102, 241, 0.5);
  color: var(--white);
  font-weight: 600;
}

.glamorphine-select {
  padding-right: var(--spacing-md);
}

/* Focus States */
.glamorphine-input:focus,
.glamorphine-select:focus,
.glamorphine-textarea:focus {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  transform: translateY(-1px);
}


/* Input Glow Effect */
.glamorphine-input-glow,
.glamorphine-select-glow,
.glamorphine-textarea-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.glamorphine-input:focus ~ .glamorphine-input-glow,
.glamorphine-select:focus ~ .glamorphine-select-glow,
.glamorphine-textarea:focus ~ .glamorphine-textarea-glow {
  opacity: 1;
}


/* Checkbox */
.glamorphine-check {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glamorphine-check-input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.glamorphine-check-input:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(30, 41, 59, 0.9);
}

.glamorphine-check-input:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.glamorphine-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.glamorphine-check-label {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
}

/* Links */
.glamorphine-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.glamorphine-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Modal Footer */
.modal-footer.glamorphine-modal-footer {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
}

/* Buttons */
.glamorphine-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glamorphine-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.glamorphine-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glamorphine-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.glamorphine-btn-primary:hover::before {
  left: 100%;
}

.glamorphine-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.glamorphine-btn-primary:active {
  transform: translateY(0);
}

/* Loading State */
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loading.d-none {
  display: none !important;
}

/* Error Messages */
.invalid-feedback.glamorphine-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-dialog.glamorphine-modal {
    margin: 1rem;
  }
  
  .modal-body.glamorphine-modal-body {
    padding: var(--spacing-lg);
  }
  
  .form-section.glamorphine-section {
    padding: var(--spacing-md);
  }
  
  .glamorphine-section-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-body.glamorphine-modal-body {
    padding: var(--spacing-md);
  }
  
  .form-section.glamorphine-section {
    padding: var(--spacing-sm);
  }
  
  .glamorphine-modal-title {
    font-size: 1.1rem;
  }
}

/* Form Validation States */
.glamorphine-input.is-valid,
.glamorphine-select.is-valid,
.glamorphine-textarea.is-valid {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.glamorphine-input.is-invalid,
.glamorphine-select.is-invalid,
.glamorphine-textarea.is-invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Validation Visual Feedback */
.glamorphine-input.is-valid::before,
.glamorphine-select.is-valid::before,
.glamorphine-textarea.is-valid::before {
  content: '✓';
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}

.glamorphine-input.is-invalid::before,
.glamorphine-select.is-invalid::before,
.glamorphine-textarea.is-invalid::before {
  content: '✗';
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Focus States */
.form-group.glamorphine-form-group.focused .glamorphine-input-glow,
.form-group.glamorphine-form-group.focused .glamorphine-select-glow,
.form-group.glamorphine-form-group.focused .glamorphine-textarea-glow {
  opacity: 1;
}

/* ===================================
   GLAMORPHINE LOGIN BUTTONS
   =================================== */

/* Header Login Button */
.glamorphine-login-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.glamorphine-login-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

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

.glamorphine-login-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.glamorphine-login-btn:hover .glamorphine-login-glow {
  opacity: 1;
}

.glamorphine-login-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.glamorphine-login-btn:active .glamorphine-login-ripple {
  width: 300px;
  height: 300px;
}

/* Login Submit Button */
.glamorphine-login-submit {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.glamorphine-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

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

.glamorphine-login-submit-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.glamorphine-login-submit:hover .glamorphine-login-submit-glow {
  transform: translateX(100%);
}

.glamorphine-login-submit-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.glamorphine-login-submit:active .glamorphine-login-submit-ripple {
  width: 400px;
  height: 400px;
}

/* Register Button in Login Modal */
.glamorphine-register-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.glamorphine-register-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.glamorphine-register-btn:active {
  transform: translateY(0);
}

.glamorphine-register-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.glamorphine-register-btn:hover .glamorphine-register-glow {
  opacity: 1;
}

.glamorphine-register-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.glamorphine-register-btn:active .glamorphine-register-ripple {
  width: 300px;
  height: 300px;
}


/* ===================================
   BACK TO TOP
   =================================== */

.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: var(--z-floating);
}

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

.back-to-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===================================
   ENHANCED LAYANAN SECTION STYLING
   =================================== */

/* Enhanced Title Container */
.title-container {
  margin-bottom: 0;
  margin-top: var(--spacing-sm);
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.title-badge i {
  font-size: 1rem;
}

.title-subtitle {
  display: block;
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: var(--spacing-sm);
}

.title-description {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
  line-height: 1.6;
}

/* Enhanced Layanan Container */
.layanan-container {
  margin-bottom: var(--spacing-3xl);
  margin-top: 0;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* Enhanced Layanan Cards */
.layanan-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.layanan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.layanan-card:hover::before {
  left: 100%;
}

.layanan-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
  background: rgba(30, 41, 59, 0.9);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.layanan-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.card-icon i {
  font-size: 1.75rem;
  color: var(--white);
}

.card-badge {
  background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Body */
.card-body {
  flex: 1;
  margin-bottom: var(--spacing-xs);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
  opacity: 0.9;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.card-features .feature-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.card-features .feature-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: scale(1.05);
}

/* Card Footer */
.card-footer {
  margin-top: var(--spacing-xs);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  text-decoration: none;
}

.card-link span {
  font-size: 0.9rem;
}

.card-link i {
  font-size: 1rem;
  transition: transform var(--transition-normal);
}

.card-link:hover i {
  transform: translateX(4px);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.layanan-card:hover .card-glow {
  opacity: 1;
}

/* Call to Action */
.layanan-cta {
  background: linear-gradient(135deg, var(--glass-bg), rgba(30, 41, 59, 0.8));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  text-align: center;
  margin-top: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
}

.cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}



/* Responsive Design */
@media (max-width: 1200px) {
  .layanan-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .layanan-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .layanan-card {
    min-height: 220px;
    padding: var(--spacing-md);
  }
  
  .title-subtitle {
    font-size: 1.125rem;
  }
  
  .title-description {
    font-size: 1rem;
  }
  
  .cta-content h3 {
    font-size: 1.5rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .layanan-card {
    padding: var(--spacing-sm);
    min-height: 200px;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
  }
  
  .card-icon i {
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  .card-description {
    font-size: 0.9rem;
  }
}


/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.glamorphine-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  min-width: 300px;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glamorphine-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.glamorphine-toast-success {
  border-left: 4px solid var(--color-success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--glass-bg));
}

.glamorphine-toast-error {
  border-left: 4px solid var(--color-danger);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--glass-bg));
}

.glamorphine-toast-warning {
  border-left: 4px solid var(--color-warning);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--glass-bg));
}

.glamorphine-toast-info {
  border-left: 4px solid var(--color-info);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--glass-bg));
}

.toast-body {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-weight: 500;
}

.toast-body i {
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
}

.glamorphine-toast-success .toast-body i {
  color: var(--color-success);
}

.glamorphine-toast-error .toast-body i {
  color: var(--color-danger);
}

.glamorphine-toast-warning .toast-body i {
  color: var(--color-warning);
}

.glamorphine-toast-info .toast-body i {
  color: var(--color-info);
}

/* ===================================
   FLOATING ACTION BUTTONS
   =================================== */

/* FAB Container */
.floating-action-buttons.glamorphine-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.1));
}

/* FAB Base */
.fab.glamorphine-fab-item {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--text-white);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.08);
}

/* FAB Variants */
.fab-chat.glamorphine-fab-item {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(99, 102, 241, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

/* FAB Hover States */
.fab-chat.glamorphine-fab-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.15) 50%, rgba(99, 102, 241, 0.25) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.25), 0 8px 24px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fab.glamorphine-fab-item:hover {
  transform: scale(1.12) translateY(-4px) rotate(2deg);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.1);
}

.fab.glamorphine-fab-item:active {
  transform: scale(0.96) translateY(0) rotate(0deg);
  transition: all 0.1s ease;
}

/* FAB Effects */
.glamorphine-fab-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: glamorphineFabPulseModern 4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(0.5px);
}

.glamorphine-fab-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.glamorphine-fab-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  filter: blur(1px);
}

/* FAB Hover Effects */
.fab.glamorphine-fab-item:hover .glamorphine-fab-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.fab.glamorphine-fab-item:active .glamorphine-fab-ripple {
  width: 240px;
  height: 240px;
  opacity: 0;
}

.fab.glamorphine-fab-item:hover .glamorphine-fab-glow {
  animation: glamorphineFabFloatModern 3s ease-in-out infinite, glamorphineFabScaleModern 2s ease-in-out infinite;
}

/* FAB Tooltip */
.fab-tooltip.glamorphine-tooltip {
  position: absolute;
  right: 85px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.025em;
}

.fab.glamorphine-fab-item:hover .fab-tooltip.glamorphine-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* FAB Animations */
@keyframes glamorphineFabPulseModern {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  25% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
  75% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes glamorphineFabFloatModern {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
  25% { transform: translate(-50%, -50%) translateY(-2px) rotate(1deg); }
  50% { transform: translate(-50%, -50%) translateY(-4px) rotate(0deg); }
  75% { transform: translate(-50%, -50%) translateY(-2px) rotate(-1deg); }
}

@keyframes glamorphineFabScaleModern {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}