@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-glow: #3b82f6;
    --neon-cyan: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { background-color: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* --- Navigation --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.logo { 
    font-size: 1.5rem; font-weight: 800; text-decoration: none;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    z-index: 1001; /* ليبقى فوق القائمة المنسدلة */
}

/* القائمة في وضع الكمبيوتر */
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: #64748b; margin-left: 30px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-btn { 
    background: var(--gradient); color: white !important; padding: 10px 25px; border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    -webkit-text-fill-color: white;
}

/* زر القائمة (مخفي في الكمبيوتر) */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--dark); cursor: pointer; z-index: 1001; }

/* --- Hero Section --- */
.hero {
    text-align: center; padding: 80px 20px 60px;
    background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.1) 0%, rgba(248,250,252,0) 70%);
    position: relative;
}

.hero h1 { 
    font-size: 3.5rem; margin-bottom: 20px; color: var(--dark); line-height: 1.1; letter-spacing: -1px;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: #475569; max-width: 600px; margin: 0 auto 30px; }

.cta-btn { 
    display: inline-block; padding: 15px 40px; 
    background: var(--gradient); color: white; 
    text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4); 
    transition: 0.3s;
}

/* --- Sections & Cards --- */
.section { padding: 60px 5%; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; letter-spacing: -1px; }

/* الشبكة (Grid) */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* تحسين التجاوب */
    gap: 25px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; align-items: center; 
}

.card {
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px);
    padding: 30px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: center; /* توسيط محتوى البطاقات للموبايل */
}

.card i { 
    font-size: 2.5rem; margin-bottom: 20px; display: inline-block;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.card h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; }

/* --- Checkout Page --- */
.checkout-bg { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); padding: 20px; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.checkout-container { width: 100%; max-width: 500px; background: white; border-radius: 15px; box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15); overflow: hidden; }
.order-summary { background: var(--dark); color: white; padding: 25px; }
.payment-methods { padding: 25px; }
.crypto-box { background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px solid #e2e8f0; overflow-x: hidden; }
.copy-input { display: flex; gap: 5px; margin-top: 5px; }
.copy-input input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.8rem; }

/* --- Footer --- */
footer { background: var(--dark); color: #94a3b8; padding: 60px 5% 30px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; text-align: left; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; }

/* =========================================
   MEDIA QUERIES (تعديلات الموبايل) 📱
   ========================================= */
@media (max-width: 768px) {
    /* 1. القائمة العلوية (Mobile Menu) */
    .menu-toggle { display: block; } /* إظهار زر القائمة */
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%; /* مخفية خارج الشاشة */
        width: 80%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active { right: 0; /* إظهار القائمة */ }
    .nav-links a { margin: 0; font-size: 1.2rem; }

    /* 2. النصوص */
    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }

    /* 3. الشبكات */
    .grid-3, .grid-2 { grid-template-columns: 1fr; } /* عمود واحد */
    
    /* 4. الفوتر */
    .footer-grid { text-align: center; }
    
    /* 5. صفحة الدفع */
    .checkout-container { border-radius: 10px; }
    .copy-input { flex-direction: column; }
    .copy-input button { width: 100%; margin-top: 5px; }
}