:root {
    --bg-dark: #0a0b10;
    --bg-card: #12141d;
    --primary-purple: #7000ff;
    --primary-purple-glow: rgba(112, 0, 255, 0.4);
    --neon-green: #00ff88;
    --neon-green-glow: rgba(0, 255, 136, 0.3);
    --text-white: #ffffff;
    --text-muted: #a0a5ba;
    --border-color: #232738;
    --font-main: 'Tajawal', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: var(--font-main); 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-white); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

a { 
    color: inherit; 
    text-decoration: none; 
}

.accent-text { color: var(--neon-green); }
.glow-text { 
    color: var(--neon-green); 
    text-shadow: 0 0 12px var(--neon-green-glow); 
}

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer;
    transition: all 0.3s ease; 
    border: none; 
    font-size: 0.95rem;
}

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-primary { background-color: var(--primary-purple); color: var(--text-white); }
.btn-primary:hover { background-color: #5800cc; box-shadow: 0 0 15px var(--primary-purple-glow); }

.btn-glow {
    background: linear-gradient(135deg, var(--primary-purple), #4a00b3);
    color: var(--text-white); 
    box-shadow: 0 0 15px var(--primary-purple-glow);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--primary-purple-glow); }

.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-white); }
.btn-outline:hover { border-color: var(--neon-green); color: var(--neon-green); }

.badge {
    background-color: rgba(112, 0, 255, 0.2); 
    color: var(--neon-green);
    border: 1px solid var(--primary-purple); 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem;
    display: inline-block;
}

.navbar {
    background-color: rgba(10, 11, 16, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    padding: 15px 0;
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--primary-purple); }
.nav-links { display: flex; gap: 20px; }
.nav-links a:hover { color: var(--neon-green); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.currency-selector {
    display: flex; 
    align-items: center; 
    gap: 6px; 
    background: var(--bg-card);
    border: 1px solid var(--border-color); 
    padding: 5px 10px; 
    border-radius: 6px;
}
.currency-selector select { background: transparent; border: none; color: white; outline: none; cursor: pointer; }

.hero-section {
    padding: 80px 0; 
    text-align: center;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
}
.hero-content h1 { font-size: 2.5rem; margin: 20px 0; font-weight: 800; word-break: break-word; }
.hero-content p { color: var(--text-muted); max-width: 650px; margin: 0 auto 30px auto; font-size: 1.05rem; }
.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.section { padding: 50px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 30px; text-align: center; }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 20px; border-radius: 10px; text-align: center; font-weight: bold; }

.store-filter-bar { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 250px; }
.search-box i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input, .filter-selects select, .form-group input, .form-group textarea {
    width: 100%; 
    padding: 12px 40px 12px 15px; 
    background-color: var(--bg-card);
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    color: var(--text-white); 
    outline: none;
}
.filter-selects select { padding: 12px 15px; width: auto; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card {
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color);
    border-radius: 12px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    position: relative;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--primary-purple); box-shadow: 0 10px 20px rgba(112, 0, 255, 0.15); }
.product-badge-tag { position: absolute; top: 10px; right: 10px; background: var(--primary-purple); color: white; padding: 3px 8px; border-radius: 5px; font-size: 0.75rem; font-weight: bold; }
.product-img { width: 100%; height: 180px; object-fit: cover; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 1.2rem; margin-bottom: 8px; }
.product-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 0.85rem; color: var(--text-muted); }
.product-price { font-size: 1.4rem; font-weight: 800; color: var(--neon-green); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step-card { background: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; }
.step-num { width: 40px; height: 40px; background: var(--primary-purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; font-weight: bold; }

.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.faq-answer { padding: 0 20px 15px 20px; color: var(--text-muted); font-size: 0.95rem; }

.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px); 
    z-index: 1000;
    justify-content: center; 
    align-items: center; 
    padding: 15px;
}
.modal-content {
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color);
    width: 100%; 
    max-width: 500px; 
    padding: 25px; 
    border-radius: 12px; 
    position: relative;
    max-height: 90vh; 
    overflow-y: auto;
}
.close-modal { position: absolute; left: 20px; top: 15px; font-size: 1.8rem; cursor: pointer; color: var(--text-muted); }
.form-group { margin-bottom: 15px; text-align: right; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.9rem; }
.fill-btn { width: 100%; }

.floating-support { position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.float-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; position: relative; }
.float-sales { background-color: #25d366; }
.float-support { background-color: var(--primary-purple); }
.float-tooltip { position: absolute; left: 55px; background: var(--bg-card); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; border: 1px solid var(--border-color); display: none; white-space: nowrap; }
.float-btn:hover .float-tooltip { display: block; }

.footer { border-top: 1px solid var(--border-color); padding: 30px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 40px; }

/* ===================================================
   تجاوب الموبايل الشامل المباشر (Mobile Responsive Fix)
   =================================================== */

@media (max-width: 992px) {
    .container { width: 95%; }
    .hero-content h1 { font-size: 2.1rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
        padding: 0 5px;
    }
    .nav-links { display: none; }
    .navbar { padding: 10px 0; }
    .nav-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .logo { font-size: 1.3rem; margin-bottom: 5px; }
    .nav-actions {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }
    .currency-selector select {
        font-size: 0.75rem;
        padding: 4px;
    }
    .btn-sm, .nav-actions .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .hero-section { padding: 35px 0; }
    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.4;
    }
    .hero-content p {
        font-size: 0.88rem;
        padding: 0 10px;
        line-height: 1.5;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-btns .btn {
        width: 100%;
        box-sizing: border-box;
    }
    .store-filter-bar {
        flex-direction: column;
        gap: 10px;
    }
    .search-box {
        width: 100%;
        min-width: 100%;
    }
    .filter-selects {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .filter-selects select {
        width: 50%;
        font-size: 0.85rem;
    }
    .products-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px 15px; width: 95%; }
    .floating-support { bottom: 15px; left: 15px; }
    .float-btn { width: 40px; height: 40px; font-size: 1rem; }
}
