/* 👇 when fading out, preloader grows slightly and disappears */
transform: scale(1.6); /* bigger expansion for dramatic fade */
/* Alpine.js x-cloak directive */
/* Custom scrollbar for dark mode */
/* Form elements styling */
/* Navbar and mobile menu animations */
/* Light mode overrides */
// Utility function for mobile menu
// Theme toggler
// Initialize theme from local storage
-->
-->
// Language to country code mapping for flags
// Select language, save preference, and update UI
// 1. Save to localStorage for persistence
// 2. Update Alpine state AND close dropdown
// Update Alpine reactive state
// ✅ Close dropdown via Alpine
// 3. ✅ Fallback: Force-close dropdown via direct DOM manipulation
// This ensures closure even if Alpine isn't ready
// 4. Update flag directly (extra safety)
// 5. Trigger Google Translate
/* Hide Google Translate toolbar and branding */
/* Hover effect for dropdown items */
/* Dark mode hover */
/* Scrollbar styling for dropdown */
/* Mobile: Ensure dropdown stays within viewport */
/* Center dropdown on small screens if it would overflow */
/* Ensure dropdown doesn't get cut off at bottom */
/* Dark mode adjustments */
/* Mobile responsiveness */
/* Animation keyframes */
this.displayDuration = 45000; // 45 seconds - much longer than before
this.intervalRange = { min: 8000, max: 20000 }; // 8-20 seconds between notifications
// Update content
// Update icon color based on transaction type
icon.style.background = transaction.color + '40'; // 40 for opacity
// Show notification with animation
// Progress bar animation
// Auto hide after display duration
// Clear any existing timeout
// Hide with animation
// Reset progress bar
// Schedule next notification
// Global functions for notification control
// Initialize when DOM is ready
// Small delay to ensure everything is loaded
}, 500); // Reduced from 2000ms to 500ms
// Pause notifications when user is inactive
}, 300000); // Pause after 5 minutes of inactivity
// Listen for user activity
// Initialize user activity timer
// Live Chat Function
// Implement your live chat functionality here
// Theme toggle functionality
// Initialize any custom components
// Analytics (preserved from original)
// Fade out with zoom effect when page finishes loading
// Show loader instantly when internal link clicked
preloader.style.transform = 'scale(1)'; // reset zoom
// var _smartsupp = _smartsupp || {};
// _smartsupp.key = '5bd6c6922b9cfda7bb6ee60b90baf97b6ac863b5';
// window.smartsupp||(function(d) {
// var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
// s=d.getElementsByTagName('script')[0];c=d.createElement('script');
// c.type='text/javascript';c.charset='utf-8';c.async=true;
// c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
// })(document);
//