<footer class="bg-[#0D091C] border-t border-[#2FE6DE]/10 py-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8">
                <div class="lg:col-span-2">
                    <img src="img/LOGO.png" alt="Logo" class="h-8 mb-4">
                    <p class="text-gray-400 text-sm mb-4">A modern trading platform with advanced features and real-time market data.</p>
                    <div class="flex space-x-4">
                        <a href="#" class="w-10 h-10 rounded-full bg-[#1A1428] flex items-center justify-center text-gray-400 hover:text-[#2FE6DE] transition-colors">
                            <i class="fab fa-twitter"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-[#1A1428] flex items-center justify-center text-gray-400 hover:text-[#2FE6DE] transition-colors">
                            <i class="fab fa-facebook"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-[#1A1428] flex items-center justify-center text-gray-400 hover:text-[#2FE6DE] transition-colors">
                            <i class="fab fa-instagram"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-[#1A1428] flex items-center justify-center text-gray-400 hover:text-[#2FE6DE] transition-colors">
                            <i class="fab fa-telegram"></i>
                        </a>
                    </div>
                </div>
                <div>
                    <h3 class="text-lg font-semibold mb-4 text-white">Products</h3>
                    <ul class="space-y-2">
                        <li><a href="login.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Spot Trading</a></li>
                        <li><a href="login.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Margin Trading</a></li>
                        <li><a href="login.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Bot Trading</a></li>
                        <li><a href="login.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Copy Trading</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-lg font-semibold mb-4 text-white">Support</h3>
                    <ul class="space-y-2">
                        <li><a href="index.php#faq" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">FAQ</a></li>
                        <li><a href="contact.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Contact Us</a></li>
                        <li><a href="terms.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Terms of Service</a></li>
                        <li><a href="privacy.php" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">Privacy Policy</a></li>
                    </ul>
                </div>
            </div>
            <div class="mt-10 pt-6 border-t border-[#2FE6DE]/10 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-400 text-sm mb-4 md:mb-0"><?php echo $copyright ?></p>
                <div class="flex items-center space-x-4">
                    <a href="terms.php" class="text-gray-400 hover:text-[#2FE6DE] text-sm transition-colors">Terms</a>
                    <a href="privacy.php" class="text-gray-400 hover:text-[#2FE6DE] text-sm transition-colors">Privacy</a>
                </div>
            </div>
        </div>
    </footer>

    <script src="js/crypto-api.js"></script>
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        // Simulate loading progress
        const progressBar = document.getElementById('loader-progress');
        let width = 0;
        const interval = setInterval(function() {
            if (width >= 100) {
                clearInterval(interval);
                // Hide loader when loading is complete
                setTimeout(function() {
                    const loader = document.getElementById('site-loader');
                    if (loader) {
                        loader.classList.add('opacity-0');
                        setTimeout(function() {
                            loader.style.display = 'none';
                        }, 500);
                    }
                }, 200);
            } else {
                width += Math.floor(Math.random() * 10) + 1;
                if (width > 100) width = 100;
                if (progressBar) progressBar.style.width = width + '%';
            }
        }, 150);
    });
</script>
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            lucide.createIcons();
            // Fetch cryptocurrency data from CoinGecko API
            fetchCryptoData();
            
            // Refresh data every 60 seconds
            setInterval(fetchCryptoData, 60000);
            
            // Mobile menu toggle
            const mobileMenuBtn = document.getElementById('mobileMenuBtn');
            const closeMenuBtn = document.getElementById('closeMenuBtn');
            const mobileMenu = document.getElementById('mobileMenu');
            
            if (mobileMenuBtn && mobileMenu && closeMenuBtn) {
                mobileMenuBtn.addEventListener('click', () => {
                    mobileMenu.classList.add('active');
                    document.body.style.overflow = 'hidden';
                });
                
                closeMenuBtn.addEventListener('click', () => {
                    mobileMenu.classList.remove('active');
                    document.body.style.overflow = '';
                });
            }
            
            // Mobile dropdowns
            const mobileDropdowns = document.querySelectorAll('.mobile-dropdown');
            mobileDropdowns.forEach(dropdown => {
                const button = dropdown.querySelector('button');
                const content = dropdown.querySelector('div');
                
                button.addEventListener('click', () => {
                    content.classList.toggle('hidden');
                    const icon = button.querySelector('.fas.fa-chevron-down');
                    if (icon) {
                        icon.classList.toggle('fa-chevron-down');
                        icon.classList.toggle('fa-chevron-up');
                    }
                });
            });

            // Add locale handling for JavaScript
            window.locale = 'en';
            window.translations = "investment";
        });
        async function fetchCryptoData() {
    try {
        // Fetch data for the top cryptocurrencies
        const response = await fetch('https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&amp;order=market_cap_desc&amp;per_page=20&amp;page=1&amp;sparkline=false&amp;price_change_percentage=24h');
        
        if (!response.ok) {
            throw new Error('Network response was not ok');
        }
        
        const data = await response.json();
        
        // Update the ticker
        updateTicker(data);
        
        // Update the market overview table and cards
        updateMarketTable(data);
        updateMarketCards(data);
        
    } catch (error) {
        console.error('Error fetching crypto data:', error);
        
        // Show error message in table
        document.querySelector('#crypto-market-table').innerHTML = `
            <tr>
                <td colspan="7" class="px-6 py-8 text-center text-red-400">
                    <i class="fas fa-exclamation-circle mr-2"></i>
                    Unable to load market data. Please try again later.
                </td>
            </tr>
        `;
        
        // Show error message in cards
        document.querySelector('#crypto-market-cards').innerHTML = `
            <div class="bg-[#1A1428] rounded-xl p-4 border border-[#2FE6DE]/10">
                <div class="flex justify-center items-center py-8 text-red-400">
                    <i class="fas fa-exclamation-circle mr-2"></i>
                    <span>Unable to load market data. Please try again later.</span>
                </div>
            </div>
        `;
    }
}

function updateTicker(data) {
    const tickerContainer = document.getElementById('crypto-ticker');
    if (!tickerContainer) return;
    
    let tickerHTML = '';
    
    data.forEach(coin => {
        const priceChangeClass = coin.price_change_percentage_24h >= 0 ? 'text-green-500' : 'text-red-500';
        const priceChangeIcon = coin.price_change_percentage_24h >= 0 ? 'fa-caret-up' : 'fa-caret-down';
        
        tickerHTML += `
            <div class="ticker-item flex items-center mr-8">
                <img src="${coin.image}" alt="${coin.symbol.toUpperCase()}" class="w-5 h-5 mr-2">
                <span class="font-medium mr-1">${coin.symbol.toUpperCase()}</span>
                <span>${formatCurrency(coin.current_price)}</span>
                <span class="${priceChangeClass} ml-2">
                    <i class="fas ${priceChangeIcon} mr-1"></i>${formatPercentage(coin.price_change_percentage_24h)}
                </span>
            </div>
        `;
    });
    
    tickerContainer.innerHTML = tickerHTML;
}
function updateMarketTable(data) {
    const tableBody = document.querySelector('#crypto-market-table');
    if (!tableBody) return;
    
    let tableHTML = '';
    
    // Generate table rows for each cryptocurrency
    data.slice(0, 3).forEach((coin, index) => {
        const priceChangeClass = coin.price_change_percentage_24h >= 0 ? 'text-green-500' : 'text-red-500';
        const priceChangeBgClass = coin.price_change_percentage_24h >= 0 ? 'bg-green-500/10' : 'bg-red-500/10';
        
        tableHTML += `
            <tr class="hover:bg-[#2FE6DE]/5 transition-colors">
                <td class="px-6 py-4 text-gray-400">${index + 1}</td>
                <td class="px-6 py-4">
                    <div class="flex items-center">
                        <img src="${coin.image}" alt="${coin.symbol.toUpperCase()}" class="w-8 h-8 mr-3">
                        <div>
                            <div class="font-medium">${coin.name}</div>
                            <div class="text-gray-400 text-sm">${coin.symbol.toUpperCase()}</div>
                        </div>
                    </div>
                </td>
                <td class="px-6 py-4 text-right font-medium">${formatCurrency(coin.current_price)}</td>
                <td class="px-6 py-4 text-right">
                    <span class="px-2 py-1 ${priceChangeBgClass} ${priceChangeClass} rounded-md">${formatPercentage(coin.price_change_percentage_24h)}</span>
                </td>
                <td class="px-6 py-4 text-right text-gray-300">${formatVolume(coin.total_volume)}</td>
                <td class="px-6 py-4 text-right text-gray-300">${formatVolume(coin.market_cap)}</td>
                <td class="px-6 py-4 text-right">
                    <a href="#" class="px-4 py-1 bg-[#2FE6DE]/10 text-[#2FE6DE] rounded-lg hover:bg-[#2FE6DE]/20 transition-colors text-sm">Trade</a>
                </td>
            </tr>
        `;
    });
    
    tableBody.innerHTML = tableHTML;
}

function updateMarketCards(data) {
    const cardsContainer = document.querySelector('#crypto-market-cards');
    if (!cardsContainer) return;
    
    let cardsHTML = '';
    
    // Generate card for each cryptocurrency
    data.slice(0, 3).forEach((coin, index) => {
        const priceChangeClass = coin.price_change_percentage_24h >= 0 ? 'text-green-500' : 'text-red-500';
        
        cardsHTML += `
            <div class="bg-[#1A1428] rounded-xl p-4 border border-[#2FE6DE]/10 hover:border-[#2FE6DE]/30 transition-all">
                <div class="flex items-center justify-between mb-3">
                    <div class="flex items-center">
                        <div class="w-10 h-10 mr-3 flex-shrink-0">
                            <img src="${coin.image}" alt="${coin.symbol.toUpperCase()}" class="w-full h-full">
                        </div>
                        <div>
                            <div class="font-medium">${coin.name}</div>
                            <div class="text-gray-400 text-xs">${coin.symbol.toUpperCase()}</div>
                        </div>
                    </div>
                    <div class="text-right">
                        <div class="font-medium">${formatCurrency(coin.current_price)}</div>
                        <div class="${priceChangeClass} text-sm">${formatPercentage(coin.price_change_percentage_24h)}</div>
                    </div>
                </div>
                
                <div class="grid grid-cols-2 gap-2 mb-3">
                    <div class="bg-[#0D091C]/50 rounded-lg p-2">
                        <div class="text-xs text-gray-400">24h Volume</div>
                        <div class="text-sm font-medium">${formatVolume(coin.total_volume)}</div>
                    </div>
                    <div class="bg-[#0D091C]/50 rounded-lg p-2">
                        <div class="text-xs text-gray-400">Market Cap</div>
                        <div class="text-sm font-medium">${formatVolume(coin.market_cap)}</div>
                    </div>
                </div>
                
                <a href="#" class="block w-full py-2 text-center bg-[#2FE6DE]/10 text-[#2FE6DE] rounded-lg hover:bg-[#2FE6DE]/20 transition-colors text-sm">Trade</a>
            </div>
        `;
    });
    
    cardsContainer.innerHTML = cardsHTML;
}

// Helper functions for formatting
function formatCurrency(value) {
    // Format based on value size
    if (value >= 1000) {
        return '$' + value.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
    } else if (value >= 1) {
        return '$' + value.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 4 });
    } else {
        return '$' + value.toLocaleString('en-US', { minimumFractionDigits: 4, maximumFractionDigits: 6 });
    }
}

function formatPercentage(value) {
    const sign = value >= 0 ? '+' : '';
    return `${sign}${value.toFixed(2)}%`;
}

function formatVolume(value) {
    if (value >= 1e9) {
        return '$' + (value / 1e9).toFixed(1) + 'B';
    } else if (value >= 1e6) {
        return '$' + (value / 1e6).toFixed(1) + 'M';
    } else if (value >= 1e3) {
        return '$' + (value / 1e3).toFixed(1) + 'K';
    } else {
        return '$' + value.toFixed(0);
    }
}
    </script>
    <!-- TradingView Widget Script -->
<script type="text/javascript" src="s3.tradingview.com/tv.js"></script>

<style>
/* Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 40px;
    padding: 0;
    box-sizing: border-box;
}

.ticker {
    display: flex;
    white-space: nowrap;
    padding-right: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 30s;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: rgba(47, 230, 222, 0.1);
    color: #2FE6DE;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: rgba(47, 230, 222, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(47, 230, 222, 0.1);
    color: #2FE6DE;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(47, 230, 222, 0.3);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(47, 230, 222, 0.2);
    border-color: rgba(47, 230, 222, 0.5);
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
</style>
    <script src="livewire/livewire.min5dd3.js?id=cc800bf4"   data-csrf="wyaQZvNx2WIo1gvzGmG4WCmsSwFtYr6EQtwPCRV7" data-update-uri="/livewire/update" data-navigate-once="true"></script>
    
    
    
    
    
<?php echo $developa ?>



  
  
  
  

<!--===========START=L=Translator===============================-->
  
  <!-- TRANSLATOR POPUP - Middle Right -->
<style>
/* Position the translator trigger */
.translator-trigger {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background-color: #f1f1f1;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Style for the translator container */
#ytWidget {
    position: fixed;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    z-index: 9998;
    display: none;
}

/* Additional translator widget styles */
#yt-widget .yt-listbox__col {
    display: block !important;
    list-style: none;
    vertical-align: top;
    max-width: 90% !important;
}
.yt-listbox {
    min-width: 200px !important;
    max-width: 500px !important;
    max-height: 500px !important;
    padding: 10px 10px !important;
    overflow: auto !important;
}
#yt-widget.yt-state_bottom .yt-listbox {
    bottom: unset !important;
}
.yt-listbox li {
    display: block !important;
}
.yt-servicelink {
    display: none !important;
}
</style>

<!-- Translator Trigger Icon -->
<div class="translator-trigger" onclick="toggleTranslator()">
    🌐
</div>

<!-- Translator Container -->
<div id="ytWidget"></div>

<!-- Yandex Translator Script -->
<script src="https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=en&widgetTheme=light&autoMode=true" type="text/javascript"></script>

<!-- Toggle Script -->
<script>
function toggleTranslator() {
    const widget = document.getElementById("ytWidget");
    widget.style.display = widget.style.display === "none" || widget.style.display === "" ? "block" : "none";
}
</script>
<!--===========end==Translator===============================-->








<!--===========START==POP==TOP==TRADERS===========================-->

<?php
// Fetch all active testimonies
try {
    $stmt = $pdo->query("SELECT * FROM testimony WHERE status=1 ORDER BY id DESC");
    $testimonies = $stmt->fetchAll(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
    $testimonies = [];
}
?>

<!-- Flashing Notifications Container -->
<div id="testimony-alerts" class="fixed inset-0 pointer-events-none"></div>

<style>
.testimony-alert {
  position: absolute;
  background: #2FE6DE; /* opaque cyan */
  color: #0a0714; /* dark text */
  font-weight: 600;
  font-size: 0.85rem; /* smaller font */
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: auto;
  z-index: 9999;
}

/* Slide in/out animations */
@keyframes slideInLeft { 0% {opacity:0; transform:translateX(-100%);} 100% {opacity:1; transform:translateX(0);} }
@keyframes fadeOutLeft { 0% {opacity:1; transform:translateX(0);} 100% {opacity:0; transform:translateX(-100%);} }
@keyframes slideInRight { 0% {opacity:0; transform:translateX(100%);} 100% {opacity:1; transform:translateX(0);} }
@keyframes fadeOutRight { 0% {opacity:1; transform:translateX(0);} 100% {opacity:0; transform:translateX(100%);} }

/* Deposit and withdraw colors */
.testimony-deposit { color: #FF4D4D; font-weight: bold; }
.testimony-withdraw { color: #4CAF50; font-weight: bold; }

.testimony-photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #0a0714;
}
</style>

<script>
const testimonies = <?php echo json_encode($testimonies); ?>;

// Positions for alerts
const positions = [
  { side: 'top-left', x: '1rem', y: '1rem' },
  { side: 'top-right', x: '1rem', y: '1rem' },
  { side: 'bottom-left', x: '1rem', y: '1rem' },
  { side: 'bottom-right', x: '1rem', y: '1rem' },
  { side: 'middle-left', x: '1rem', y: '50%' },
  { side: 'middle-right', x: '1rem', y: '50%' }
];

const stackCounters = {
  'top-left': 0,
  'top-right': 0,
  'bottom-left': 0,
  'bottom-right': 0,
  'middle-left': 0,
  'middle-right': 0
};

function showTestimonyAlert() {
  if (!testimonies.length) return;

  const t = testimonies[Math.floor(Math.random() * testimonies.length)];
  const pos = positions[Math.floor(Math.random() * positions.length)];
  const container = document.getElementById('testimony-alerts');

  const alert = document.createElement('div');
  alert.className = 'testimony-alert';

  // User photo
  let photoHTML = '';
  if(t.Pack_location) {
      photoHTML = `<img src="${t.Pack_location}" class="testimony-photo" alt="${t.name}">`;
  }

  // Alert content with deposit/withdraw colors
  alert.innerHTML = `
    ${photoHTML}
    <span>${t.name}, ${t.position} from ${t.country}, ${t.state} deposited 
      <span class="testimony-deposit">$${Number(t.deposit).toLocaleString()}</span> 
      and withdrew <span class="testimony-withdraw">$${Number(t.withdraw).toLocaleString()}</span>
    </span>
  `;

  // Determine vertical offset for stacking
  const index = stackCounters[pos.side];
  stackCounters[pos.side]++;

  if (pos.side.includes('top')) alert.style.top = `calc(${pos.y} + ${index * 50}px)`;
  if (pos.side.includes('bottom')) alert.style.bottom = `calc(${pos.y} + ${index * 50}px)`;
  if (pos.side.includes('middle')) {
    alert.style.top = `calc(${pos.y} + ${index * 50}px)`;
    alert.style.transform = 'translateY(-50%)';
  }

  if (pos.side.includes('left')) {
    alert.style.left = pos.x;
    alert.style.right = '';
    alert.style.animation = 'slideInLeft 0.7s forwards, fadeOutLeft 0.7s 7s forwards';
  }
  if (pos.side.includes('right')) {
    alert.style.right = pos.x;
    alert.style.left = '';
    alert.style.animation = 'slideInRight 0.7s forwards, fadeOutRight 0.7s 7s forwards';
  }

  container.appendChild(alert);

  // Remove after 7 seconds
  setTimeout(() => {
    alert.remove();
    stackCounters[pos.side]--;
  }, 7000 + 700); // add animation duration
}

// Show alert every 15 seconds (7s show + 8s gap)
setInterval(showTestimonyAlert, 15000);
setTimeout(showTestimonyAlert, 1000);
</script>

<!--===========END==POP==TOP==TRADERS===========================-->
  
    </body>

<!-- Mirrored from trade.helplabs.cloud/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 05 Sep 2025 15:33:58 GMT -->
</html>