<?php
// Ensure session handling is correct.
include('inc/session.php');
?> 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Investment Plans - Copy Trading Platform</title>
    <!-- IonIcons CDN (Version 4) -->
    <link href="https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css" rel="stylesheet">
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionic/1.3.2/css/ionic.min.css">
    <style>
    
    /* --- Base Styles --- */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; height: 100%; }
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #02101c; 
        color: #fff; line-height: 1.6;
        overflow-x: hidden; min-height: 100%; position: relative;
    }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }

    /* --- Sidebar CSS --- */
    .dashboard-container { display: flex; min-height: 100vh; position: relative; }
    .sidebar-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
    
    .sidebar {
        width: 250px; background-color: #2c3e50; color: #ecf0f1;
        display: flex; flex-direction: column; transition: left 0.3s ease;
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
        overflow-y: auto;
    }
    
    .main-content { 
        flex-grow: 1; display: flex; flex-direction: column; 
        margin-left: 250px; 
        background-color: #02101c; 
        min-height: 100vh;
        transition: margin-left 0.3s ease;
    }

    .sidebar-header { 
        padding: 20px 10px; text-align: center; border-bottom: 1px solid #34495e; 
        flex-shrink: 0; position: relative; 
    }
    
    /* Gold Logo Style (Consistent across pages) */
    .brand-logo {
        width: 50px; height: 50px;
        background: linear-gradient(135deg, #f1c40f, #f39c12);
        color: #fff; font-size: 24px; line-height: 50px; text-align: center;
        border-radius: 50%; margin: 0 auto 10px auto;
        box-shadow: 0 0 15px rgba(241, 196, 15, 0.5); display: block;
    }
    .sidebar-header h2 { font-size: 1.2em; font-weight: 600; color: #fff; margin: 0; }
    .mobile-close-btn { display: none; position: absolute; right: 15px; top: 15px; font-size: 1.5em; cursor: pointer; color: #fff; }
    
    .sidebar-nav { padding-top: 20px; }
    .sidebar-nav a { display: flex; align-items: center; padding: 15px 25px; color: #bdc3c7; transition: 0.3s; border-left: 4px solid transparent; }
    .sidebar-nav a i { margin-right: 15px; font-size: 1.3em; width: 25px; text-align: center; }
    .sidebar-nav a:hover, .sidebar-nav a.active { background-color: #34495e; color: #ffffff; border-left-color: #3d85c6; }
    
    /* Submenu Styling */
    .sidebar-nav .submenu { background-color: #243342; padding-left: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
    .sidebar-nav .submenu.open { max-height: 300px; }
    .sidebar-nav .submenu a { padding-left: 55px; font-size: 0.9em; }
    .sidebar-nav .submenu-indicator { margin-left: auto; font-size: 0.8em; transition: transform 0.3s; }
    .has-submenu.open > a .submenu-indicator { transform: rotate(180deg); }

    .logout { margin-top: auto; border-top: 1px solid #34495e; }

    /* --- Header --- */
    .main-header { 
        background-color: #02101c; padding: 15px 30px; 
        display: flex; justify-content: space-between; align-items: center; 
        border-bottom: 1px solid #1f293a; position: sticky; top: 0; z-index: 900; 
    }
    .header-left h1 { font-size: 1.5em; color: #fff; font-weight: 600; margin: 0; }
    .menu-toggle { color: #fff; font-size: 1.8em; display: none; cursor: pointer; }

    /* --- PRICING PAGE SPECIFIC CSS --- */
    .page-content { padding: 40px 30px; }
    
    .pricing-header { text-align: center; margin-bottom: 40px; }
    .pricing-header h2 { font-size: 2.2em; color: #fff; margin-bottom: 10px; }
    .pricing-header p { color: #a0aab5; font-size: 1em; max-width: 600px; margin: 0 auto; }

    /* Wrapper for 4 columns */
    .pricing-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        align-items: stretch;
    }

    .plan-card {
        background-color: #161925;
        border: 1px solid #2c3e50;
        border-radius: 12px;
        /* Adjusted width to fit 4 on large screens */
        flex: 1 1 250px; 
        max-width: 280px; 
        text-align: center;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .plan-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        border-color: #3d85c6;
    }

    /* Popular/VIP Plan Styling */
    .plan-card.popular {
        border: 2px solid #f1c40f;
        box-shadow: 0 0 20px rgba(241, 196, 15, 0.1);
        transform: scale(1.03);
        z-index: 2;
        background-color: #1a1d2e;
    }
    .plan-card.popular:hover {
        transform: scale(1.03) translateY(-8px);
        box-shadow: 0 20px 40px rgba(241, 196, 15, 0.2);
    }
    
    .badge-popular {
        background-color: #f1c40f;
        color: #000;
        text-transform: uppercase;
        font-size: 0.65em;
        font-weight: 800;
        padding: 5px 30px;
        position: absolute;
        top: 20px;
        right: -30px;
        transform: rotate(45deg);
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    /* Card Content */
    .plan-header { padding: 30px 15px; border-bottom: 1px solid #2c3e50; }
    .plan-name { font-size: 1.2em; font-weight: 700; color: #fff; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
    
    .plan-price { font-size: 2.2em; font-weight: 700; color: #fff; margin: 5px 0; }
    .plan-price small { font-size: 0.4em; color: #888; font-weight: 400; vertical-align: middle; }
    
    .plan-roi { font-size: 1em; color: #2ecc71; font-weight: 600; margin-top: 5px; }

    .plan-features { padding: 20px; flex-grow: 1; text-align: left; }
    .plan-features ul { list-style: none; padding: 0; }
    .plan-features li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #bdc3c7; font-size: 0.85em; display: flex; align-items: center; }
    .plan-features li:last-child { border-bottom: none; }
    .plan-features li i { margin-right: 10px; color: #3d85c6; font-size: 1.1em; min-width: 20px; }
    
    .plan-features li.unavailable { color: #555; text-decoration: line-through; }
    .plan-features li.unavailable i { color: #555; }

    /* Footer & Buttons */
    .plan-footer { padding: 20px; }
    
    .btn-plan {
        display: block; width: 100%; padding: 10px; border-radius: 50px;
        font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
        transition: 0.3s; cursor: pointer; text-align: center; font-size: 0.9em;
    }
    
    /* Button Colors */
    .btn-basic { border: 2px solid #3d85c6; color: #3d85c6; background: transparent; }
    .btn-basic:hover { background: #3d85c6; color: #fff; }

    .btn-classic { border: 2px solid #95a5a6; color: #95a5a6; background: transparent; }
    .btn-classic:hover { background: #95a5a6; color: #fff; }
    
    .btn-vip { background: linear-gradient(135deg, #f1c40f, #e67e22); color: #1a1d2e; border: none; }
    .btn-vip:hover { box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4); color: #000; }
    
    .btn-premium { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; border: none; }
    .btn-premium:hover { box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); }

    /* Responsive */
    @media (max-width: 1200px) {
        /* On medium screens, 2x2 grid */
        .plan-card { flex: 1 1 40%; max-width: 45%; }
    }
    
    @media (max-width: 768px) {
        .sidebar { left: -250px; }
        .main-content { margin-left: 0; }
        
        #sidebar-toggle:checked ~ .dashboard-container .sidebar { left: 0; }
        #sidebar-toggle:checked ~ .dashboard-container .main-content::after {
            content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5); z-index: 999;
        }

        .menu-toggle { display: block; }
        .pricing-header h2 { font-size: 1.8em; }
        .pricing-wrapper { flex-direction: column; align-items: center; }
        .plan-card { width: 100%; max-width: 100%; margin-bottom: 20px; }
        .plan-card.popular { transform: scale(1); }
    }
    </style> 
</head>
<body>

    <!-- Hidden Checkbox for Mobile Sidebar Toggle -->
    <input type="checkbox" id="sidebar-toggle" class="sidebar-toggle-checkbox">

    <div class="dashboard-container">
        <!-- Sidebar -->
        <?php 
include('inc/sidebar.php');
?>

        <!-- Main Content -->
        <main class="main-content">
            <!-- Header -->
            <header class="main-header">
                <div class="header-left">
                    <label for="sidebar-toggle" class="menu-toggle">
                        <i class="ion-md-menu"></i>
                    </label>
                    <h1>Upgrade Pricing</h1>
                </div>
            </header>

                       <div class="page-content">
                
                <div class="pricing-header">
                    <h2>Choose Your Investment Plan</h2>
                    <p>Select from our specialized investment sectors for optimal returns.</p>
                </div>

                <div class="pricing-wrapper">
                    
                    <!-- PLAN 1: AGRICULTURAL -->
                    <div class="plan-card">
                        <div class="plan-header">
                            <div class="plan-name" style="color:#4caf50">Real Estate</div>
                            <div class="plan-price">$100</div>
                            <div class="plan-roi" style="color:#4caf50">+1.5% Daily</div>
                        </div>
                        <div class="plan-features">
                            <ul>
                                <li><i class="ion-md-checkmark-circle-outline"></i> 447 Days Duration</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Min: $100</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Max: $1,000</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Stable Farming Returns</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Low Risk Investment</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Sustainable Growth</li>
                            </ul>
                        </div>
                        <div class="plan-footer">
                            <a href="deposit-request.php?plan=Agricultural" class="btn-plan btn-basic" style="border-color:#4caf50; color:#4caf50">Select Agricultural</a>
                        </div>
                    </div>

                    <!-- PLAN 2: MINING -->
                    <div class="plan-card">
                        <div class="plan-header">
                            <div class="plan-name" style="color:#ff9800">Mining</div>
                            <div class="plan-price">$1,001</div>
                            <div class="plan-roi" style="color:#ff9800">+2% Daily</div>
                        </div>
                        <div class="plan-features">
                            <ul>
                                <li><i class="ion-md-checkmark-circle-outline"></i> 365 Days Duration</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Min: $1,001</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Max: $2,500</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Mineral Resources</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Medium Risk</li>
                                <li><i class="ion-md-checkmark-circle-outline"></i> Resource-backed</li>
                            </ul>
                        </div>
                        <div class="plan-footer">
                            <a href="deposit-request.php?plan=Mining" class="btn-plan btn-classic" style="border-color:#ff9800; color:#ff9800">Select Mining</a>
                        </div>
                    </div>

                    <!-- PLAN 3: TRADING (Highlighted) -->
                    <div class="plan-card popular">
                        <div class="badge-popular">Most Popular</div>
                        <div class="plan-header">
                            <div class="plan-name" style="color: #3d85c6;">Trading</div>
                            <div class="plan-price">$2,501</div>
                            <div class="plan-roi" style="color:#3d85c6;">+2.8% Daily</div>
                        </div>
                        <div class="plan-features">
                            <ul>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> 90 Days Duration</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> Min: $2,501</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> Max: $10,000</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> Active Management</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> Higher Liquidity</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#3d85c6"></i> Market Analysis</li>
                            </ul>
                        </div>
                        <div class="plan-footer">
                            <a href="deposit-request.php?plan=Trading" class="btn-plan btn-vip">Select Trading</a>
                        </div>
                    </div>

                    <!-- PLAN 4: REAL ESTATE -->
                    <div class="plan-card">
                        <div class="plan-header">
                            <div class="plan-name" style="color:#9c27b0">Real Estate</div>
                            <div class="plan-price">$10k+</div>
                            <div class="plan-roi" style="color:#9c27b0;">+5% Daily</div>
                        </div>
                        <div class="plan-features">
                            <ul>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> 60 Days Duration</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> Min: $10,000</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> Unlimited Max</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> Premium Properties</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> Asset-backed Security</li>
                                <li><i class="ion-md-checkmark-circle-outline" style="color:#9c27b0"></i> VIP Priority Support</li>
                            </ul>
                        </div>
                        <div class="plan-footer">
                            <a href="deposit-request.php?plan=Real_Estate" class="btn-plan btn-premium" style="background:linear-gradient(135deg, #9c27b0, #673ab7); color:#fff;">Select Real Estate</a>
                        </div>
                    </div>

                </div> <!-- End Pricing Wrapper -->

                <!-- Plan Comparison Table -->
                <div style="background: #1a1d2e; border-radius: 12px; padding: 30px; margin-top: 50px; border: 1px solid #2c3e50;">
                    <h3 style="text-align: center; color: #fff; margin-bottom: 30px; font-size: 1.5em;">Plan Comparison Summary</h3>
                    <div style="overflow-x: auto;">
                        <table style="width: 100%; border-collapse: collapse;">
                            <thead>
                                <tr style="background: rgba(61, 133, 198, 0.1);">
                                    <th style="padding: 15px; text-align: left; border-bottom: 2px solid #3d85c6; color: #fff;">Plan</th>
                                    <th style="padding: 15px; text-align: center; border-bottom: 2px solid #3d85c6; color: #fff;">Investment Range</th>
                                    <th style="padding: 15px; text-align: center; border-bottom: 2px solid #3d85c6; color: #fff;">Daily ROI</th>
                                    <th style="padding: 15px; text-align: center; border-bottom: 2px solid #3d85c6; color: #fff;">Duration</th>
                                    <th style="padding: 15px; text-align: center; border-bottom: 2px solid #3d85c6; color: #fff;">Total Return*</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr style="border-bottom: 1px solid rgba(255,255,255,0.1);">
                                    <td style="padding: 15px;"><span style="color: #4caf50; font-weight: bold;">●</span> Agricultural</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">$100 - $1,000</td>
                                    <td style="padding: 15px; text-align: center; color: #4caf50; font-weight: bold;">1.5%</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">447 days</td>
                                    <td style="padding: 15px; text-align: center; color: #4caf50; font-weight: bold;">Up to 670.5%</td>
                                </tr>
                                <tr style="border-bottom: 1px solid rgba(255,255,255,0.1);">
                                    <td style="padding: 15px;"><span style="color: #ff9800; font-weight: bold;">●</span> Mining</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">$1,001 - $2,500</td>
                                    <td style="padding: 15px; text-align: center; color: #ff9800; font-weight: bold;">2%</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">365 days</td>
                                    <td style="padding: 15px; text-align: center; color: #ff9800; font-weight: bold;">Up to 730%</td>
                                </tr>
                                <tr style="border-bottom: 1px solid rgba(255,255,255,0.1);">
                                    <td style="padding: 15px;"><span style="color: #3d85c6; font-weight: bold;">●</span> Trading</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">$2,501 - $10,000</td>
                                    <td style="padding: 15px; text-align: center; color: #3d85c6; font-weight: bold;">2.8%</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">90 days</td>
                                    <td style="padding: 15px; text-align: center; color: #3d85c6; font-weight: bold;">Up to 252%</td>
                                </tr>
                                <tr>
                                    <td style="padding: 15px;"><span style="color: #9c27b0; font-weight: bold;">●</span> Real Estate</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">$10,000+</td>
                                    <td style="padding: 15px; text-align: center; color: #9c27b0; font-weight: bold;">5%</td>
                                    <td style="padding: 15px; text-align: center; color: #bdc3c7;">60 days</td>
                                    <td style="padding: 15px; text-align: center; color: #9c27b0; font-weight: bold;">Up to 300%</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <p style="text-align: center; color: #a0aab5; font-size: 0.9em; margin-top: 15px;">
                        *Total Return calculation based on daily compounding of returns over the full duration
                    </p>
                </div>

            </div>
        </main>
    </div>
    
    <!-- Scripts -->
    <script>
        function toggleSubmenu(linkElement) {
            const parentLi = linkElement.parentElement;
            parentLi.classList.toggle('open');
            const submenu = parentLi.querySelector('.submenu');
            if (parentLi.classList.contains('open')) {
                submenu.classList.add('open');
            } else {
                submenu.classList.remove('open');
            }
        }
    </script>
    
   
</body>
</html>