<?php require ("config.php") ?>


<!DOCTYPE html>
<html lang="en">

<<meta http-equiv="content-type" content="text/html;charset=UTF-8" />


<head>
    <script type="text/javascript" src="https://js.stripe.com/v3/"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
   <meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
            <meta name="robots" content="index, follow">

	<title><?php echo $title ?></title>
    <meta name="title" Content="<?php echo $title ?>">
    <meta name="description" content="<?php echo $about_msg ?>">
    <meta name="keywords" content="<?php echo $keyword ?>">
    <link rel="shortcut icon" href="<?php echo $url ?>/img/favicon.png" type="image/x-icon">
    
    
     <meta itemprop="name" content="<?php echo $title ?>">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="<?php echo $url ?>img/LOGO.png">
    
    
    <meta property="og:type" content="website">
    <meta property="og:title" content="<?php echo $title ?>">
    <meta property="og:description" content="<?php echo $about_msg ?>">
    <meta property="og:image" content="<?php echo $url ?>img/LOGO.png"/>
    <meta property="og:image:type" content="image/png" />
        <meta property="og:image:width" content="600" />
    <meta property="og:image:height" content="315" />
    <meta property="og:url" content="<?php echo $url ?>">

	<!-- Open Graph / Facebook -->
	<meta property="og:type" content="website">
	<meta property="og:url" content="<?php echo $url ?>">
	<meta property="og:title" content="<?php echo $title ?>">
	<meta property="og:description" content="<?php echo $about_msg ?>">
	<meta property="og:image" content="<?php echo $url ?>/img/LOGO.png">
	
	
	<link rel="apple-touch-icon" href="<?php echo $url ?>/img/favicon.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="<?php echo $title ?>">

	<!-- Twitter -->
	<meta property="twitter:card" content="summary_large_image">
	<meta property="twitter:url" content="<?php echo $url ?>">
	<meta property="twitter:title" content="<?php echo $title ?>">
	<meta property="twitter:description" content="<?php echo $about_msg ?>">
	<meta property="twitter:image" content="<?php echo $url ?>/img/LOGO.png">
	
	
    <link rel="icon" href="img/favicon.png" type="image/png" />
    <script src="https://cdn.tailwindcss.com/"></script>
    <link rel="stylesheet" href="cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
    <link rel="stylesheet" href="cdn.jsdelivr.net/npm/flatpickr/dist/themes/dark.css">
    <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
    <script src="cdn.jsdelivr.net/npm/pako%402.1.0/dist/pako.min.js"></script>
    <script src="cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <script src="https://unpkg.com/lucide@latest"></script>
    <link href="cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
    <script type="text/javascript" src="s3.tradingview.com/tv.js"></script>








<?php

// Fetch the site name from the database
$stmt = $pdo->prepare("SELECT * FROM settings WHERE id = 21"); // Change ID if needed
$stmt->execute();
$row = $stmt->fetch();

$siteName = $row ? $row['domain_name'] : 'MySite';
?>

<style>
    /* Logo container */
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 4px;
    }

    /* Dynamic logo styling */
    .logo {
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 800;
        background: linear-gradient(135deg, #42f5d4, #4242f5);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 2px 2px 15px rgba(0,0,0,0.2);
        letter-spacing: 2px;
        transition: transform 0.3s, text-shadow 0.3s;
        cursor: default;
    }

    /* Hover effect */
    .logo:hover {
        transform: scale(1.1) rotate(-2deg);
        text-shadow: 4px 4px 25px rgba(0,0,0,0.4);
    }
</style>

    













    <style>
    #site-loader {
    transition: opacity 0.5s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(0.98); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

    </style>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&amp;display=swap');

        :root {
            --primary-bg: #0A0714;
            --secondary-bg: #0D091C;
            --card-bg: #1A1428;
            --accent-color: #2FE6DE;
            --accent-hover: rgba(47, 230, 222, 0.8);
            --accent-light: rgba(47, 230, 222, 0.1);
            --text-primary: #FFFFFF;
            --text-secondary: #A0AEC0;
            --border-color: rgba(47, 230, 222, 0.1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-primary);
        }

        /* Custom Scrollbar Styling */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(47, 230, 222, 0.2) #1A1428;
        }

        *::-webkit-scrollbar {
            width: 8px;
        }

        *::-webkit-scrollbar-track {
            background: #1A1428;
            border-radius: 10px;
        }

        *::-webkit-scrollbar-thumb {
            background-color: rgba(47, 230, 222, 0.2);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: content-box;
        }

        *::-webkit-scrollbar-thumb:hover {
            background-color: rgba(47, 230, 222, 0.4);
        }

        /* Animations */
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        
        .animate-bounce-slow {
            animation: bounce 2s ease-in-out infinite;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .animate-ping-slow {
            animation: ping 2s ease-in-out infinite;
        }
        
        @keyframes ping {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Navbar styles */
        .navbar-item {
            position: relative;
        }

        .navbar-item::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s ease;
        }

        .navbar-item:hover::after,
        .navbar-item.active::after {
            width: 100%;
        }

        /* Card styles */
        .card {
            background-color: var(--card-bg);
            border-radius: 0.75rem;
            border: 1px solid var(--border-color);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        /* Button styles */
        .btn-primary {
            background-color: var(--accent-color);
            color: var(--primary-bg);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        /* Mobile navigation */
        .mobile-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--secondary-bg);
            z-index: 50;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .mobile-nav.active {
            transform: translateX(0);
        }

        /* Market ticker */
        .market-ticker {
            overflow: hidden;
            white-space: nowrap;
            position: relative;
        }

        .ticker-content {
            display: inline-block;
            animation: ticker 30s linear infinite;
        }

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

        /* Dropdown styles */
        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background-color: var(--secondary-bg);
            min-width: 200px;
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
            z-index: 10;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }
    </style>
        <!-- Livewire Styles --><style >[wire\:loading][wire\:loading], [wire\:loading\.delay][wire\:loading\.delay], [wire\:loading\.inline-block][wire\:loading\.inline-block], [wire\:loading\.inline][wire\:loading\.inline], [wire\:loading\.block][wire\:loading\.block], [wire\:loading\.flex][wire\:loading\.flex], [wire\:loading\.table][wire\:loading\.table], [wire\:loading\.grid][wire\:loading\.grid], [wire\:loading\.inline-flex][wire\:loading\.inline-flex] {display: none;}[wire\:loading\.delay\.none][wire\:loading\.delay\.none], [wire\:loading\.delay\.shortest][wire\:loading\.delay\.shortest], [wire\:loading\.delay\.shorter][wire\:loading\.delay\.shorter], [wire\:loading\.delay\.short][wire\:loading\.delay\.short], [wire\:loading\.delay\.default][wire\:loading\.delay\.default], [wire\:loading\.delay\.long][wire\:loading\.delay\.long], [wire\:loading\.delay\.longer][wire\:loading\.delay\.longer], [wire\:loading\.delay\.longest][wire\:loading\.delay\.longest] {display: none;}[wire\:offline][wire\:offline] {display: none;}[wire\:dirty]:not(textarea):not(input):not(select) {display: none;}:root {--livewire-progress-bar-color: #ffffff;}[x-cloak] {display: none !important;}</style>
        
        
        
        <style>
    #site-loader {
        transition: opacity 0.5s ease-in-out;
    }

    @keyframes pulse {
        0% { opacity: 0.6; transform: scale(0.98); }
        50% { opacity: 1; transform: scale(1); }
        100% { opacity: 0.6; transform: scale(0.98); }
    }

    .animate-pulse { animation: pulse 2s infinite; }

    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

    :root {
        --primary-bg: #0A0714;
        --secondary-bg: #0D091C;
        --card-bg: #1A1428;
        --accent-color: #2FE6DE;
        --accent-hover: rgba(47, 230, 222, 0.8);
        --accent-light: rgba(47, 230, 222, 0.1);
        --text-primary: #FFFFFF;
        --text-secondary: #A0AEC0;
        --border-color: rgba(47, 230, 222, 0.1);
    }

    body {
        font-family: 'Inter', sans-serif;
        background-color: var(--primary-bg);
        color: var(--text-primary);
    }

    /* Scrollbar */
    * { scrollbar-width: thin; scrollbar-color: rgba(47, 230, 222, 0.2) #1A1428; }
    *::-webkit-scrollbar { width: 8px; }
    *::-webkit-scrollbar-track { background: #1A1428; border-radius: 10px; }
    *::-webkit-scrollbar-thumb {
        background-color: rgba(47, 230, 222, 0.2);
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
    *::-webkit-scrollbar-thumb:hover { background-color: rgba(47, 230, 222, 0.4); }

    /* Animations */
    .animate-float { animation: float 3s ease-in-out infinite; }
    @keyframes float { 0% {transform:translateY(0);}50%{transform:translateY(-10px);}100%{transform:translateY(0);} }

    /* Navbar underline */
    .navbar-item { position: relative; }
    .navbar-item::after {
        content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
        background-color: var(--accent-color); transition: width 0.3s ease;
    }
    .navbar-item:hover::after, .navbar-item.active::after { width: 100%; }

    /* Card */
    .card {
        background-color: var(--card-bg);
        border-radius: 0.75rem;
        border: 1px solid var(--border-color);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

    /* Buttons */
    .btn-primary {
        background-color: var(--accent-color);
        color: var(--primary-bg);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-weight: 600;
        transition: all 0.2s;
    }
    .btn-primary:hover { background-color: var(--accent-hover); }
    .btn-secondary {
        background-color: white;
        color: #16a34a;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-weight: 600;
        transition: all 0.2s;
    }
    .btn-secondary:hover { background-color: #f0fdf4; }
</style>

</head>

<body class="bg-gray-100">






<!-- Add this loader HTML right after the body tag -->
<div id="site-loader" class="fixed inset-0 flex items-center justify-center bg-[#0A0714] z-50">
    <div class="flex flex-col items-center">
        <div class="w-32 h-32 mb-4">
           <div class="logo-container">
    <h3 class="logo"><?php echo htmlspecialchars($siteName); ?></h3>
</div>
        </div>
        
    </div>
</div>

    <!-- Market Ticker -->
<div class="bg-[#0A0714] py-2 overflow-hidden border-b border-[#2FE6DE]/10">
    <div class="ticker-wrap">
        <div class="ticker" id="crypto-ticker">
            <div class="ticker-item flex items-center">
                <span class="loading-ticker">Loading market data...</span>
            </div>
        </div>
    </div>
</div>
    <!-- Main Header -->
    <header class="bg-[#0D091C] border-b border-[#2FE6DE]/10 shadow-lg sticky top-0 z-40">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center">
                    <a href="index.php" class="flex items-center">
                        <div class="logo-container">
    <h3 class="logo"><?php echo htmlspecialchars($siteName); ?></h3>
</div>
                    </a>
                    <nav class="hidden lg:flex ml-10 space-x-6">
                        <a href="index.php" class="navbar-item text-white hover:text-[#2FE6DE] transition-colors py-2 active">Home</a>
                        <a href="markets.php" class="navbar-item text-white hover:text-[#2FE6DE] transition-colors py-2 flex items-center ">
                                Markets
                            </a>
                        <div class="dropdown">
                            <a href="#" class="navbar-item text-white hover:text-[#2FE6DE] transition-colors py-2 flex items-center">
                                Trade
                                <i class="fas fa-chevron-down text-xs ml-1"></i>
                            </a>
                            <div class="dropdown-content py-2">
                                <a href="login.php" class="block px-4 py-2 hover:bg-[#1A1428] text-white hover:text-[#2FE6DE]">Spot</a>
                                <a href="login.php" class="block px-4 py-2 hover:bg-[#1A1428] text-white hover:text-[#2FE6DE]">Margin</a>
                                <a href="login.php" class="block px-4 py-2 hover:bg-[#1A1428] text-white hover:text-[#2FE6DE]">Bot Trading</a>
                                <a href="login.php" class="block px-4 py-2 hover:bg-[#1A1428] text-white hover:text-[#2FE6DE]">Copy Trading</a>
                            </div>
                        </div>
                        <a href="about.php" class="navbar-item text-white hover:text-[#2FE6DE] transition-colors py-2 ">About</a>
                        <a href="contact.php" class="navbar-item text-white hover:text-[#2FE6DE] transition-colors py-2 ">Contact</a>
                    </nav>
                </div>
                
                <div class="hidden lg:flex items-center space-x-4">
                                            <a href="login.php" class="btn-secondary">Login</a>
                        <a href="register.php" class="btn-primary">Sign Up</a>
                                    </div>
                
                <!-- Mobile menu button -->
                <div class="lg:hidden flex items-center">
                                        <button id="mobileMenuBtn" class="text-white focus:outline-none">
                        <i class="fas fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
        </div>
    </header>
    
    <!-- Mobile menu -->
    <div id="mobileMenu" class="mobile-nav lg:hidden">
        <div class="flex justify-between items-center p-4 border-b border-[#2FE6DE]/10">
            <a href="index.php">
                <div class="logo-container">
    <h1 class="logo"><?php echo htmlspecialchars($siteName); ?></h1>
</div>
            </a>
            <button id="closeMenuBtn" class="text-white focus:outline-none">
                <i class="fas fa-times text-xl"></i>
            </button>
        </div>
        
        <div class="p-4">
                            <div class="flex space-x-2 mb-6">
                    <a href="login.php" class="btn-secondary flex-1 text-center">Login</a>
                    <a href="register.php" class="btn-primary flex-1 text-center">Sign Up</a>
                </div>
                        
            <nav class="space-y-1">
                <a href="index.php" class="block py-3 px-4 rounded-lg bg-[#1A1428] text-[#2FE6DE]">
                    <i class="fas fa-home mr-2"></i> Home
                </a>
                <a href="markets.php" class="block py-3 px-4 rounded-lg text-white">
                    <i class="fas fa-chart-bar mr-2"></i> Markets
                </a>
                <div class="mobile-dropdown">
                    <button class="w-full text-left py-3 px-4 rounded-lg flex items-center justify-between text-white">
                        <span><i class="fas fa-exchange-alt mr-2"></i> Trade</span>
                        <i class="fas fa-chevron-down text-xs"></i>
                    </button>
                    <div class="pl-8 pb-2 hidden">
                        <a href="login.php" class="block py-2 text-gray-400 hover:text-white">Spot</a>
                        <a href="login.php" class="block py-2 text-gray-400 hover:text-white">Margin</a>
                        <a href="login.php" class="block py-2 text-gray-400 hover:text-white">Signal Trading</a>
                        <a href="login.php" class="block py-2 text-gray-400 hover:text-white">Copy Trading</a>
                    </div>
                </div>
                
                <a href="about.php" class="block py-3 px-4 rounded-lg text-white">
                    <i class="fas fa-info-circle mr-2"></i> About
                </a>
                
                <a href="plans.php" class="block py-3 px-4 rounded-lg text-white">
                    <i class="fas fa-info-circle mr-2"></i> Signal Plans
                </a>
                
                <a href="contact.php" class="block py-3 px-4 rounded-lg text-white">
                    <i class="fas fa-envelope mr-2"></i> Contact
                </a>
            </nav>
            
            <div class="mt-8 pt-6 border-t border-[#2FE6DE]/10">
                <div class="flex justify-center space-x-4">
                    <a href="#" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">
                        <i class="fab fa-twitter text-xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">
                        <i class="fab fa-facebook text-xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">
                        <i class="fab fa-instagram text-xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-[#2FE6DE] transition-colors">
                        <i class="fab fa-telegram text-xl"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
