/* ===== متغيرات الألوان ===== */
:root {
    --green: #38A169;
    --green-dark: #2F855A;
    --blue: #3182CE;
    --blue-dark: #2C5282;
    --yellow: #ECC94B;
    --yellow-dark: #D69E2E;
    --red: #E53E3E;
    --red-dark: #C53030;
    --bg-dark: #1A202C;
    --bg-darker: #171923;
    --bg-card: #2D3748;
    --text-light: #E2E8F0;
    --text-muted: #A0AEC0;
}

/* ===== الأساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ألوان النصوص ===== */
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-red { color: var(--red); }

/* ===== شريط التنقل ===== */
.navbar {
    background: var(--bg-darker);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green);
    background: rgba(56, 161, 105, 0.1);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ===== الهيدر الرئيسي ===== */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--green);
    filter: blur(150px);
    opacity: 0.15;
    top: -100px;
    right: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--blue);
    filter: blur(150px);
    opacity: 0.15;
    bottom: -100px;
    left: -100px;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-green {
    background: var(--green);
    color: white;
}

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.4);
}

.btn-blue {
    background: var(--blue);
    color: white;
}

.btn-blue:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.4);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--bg-darker);
}

.btn-yellow:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 201, 75, 0.4);
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* ===== الأقسام العامة ===== */
.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== بطاقات الدفع ===== */
.payment-section {
    padding: 60px 0;
}

.payment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.payment-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--green);
}

.payment-card h3 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.payment-address {
    background: var(--bg-darker);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.payment-address code {
    color: var(--yellow);
    font-size: 14px;
    word-break: break-all;
}

.copy-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: var(--green-dark);
}

.payment-note {
    background: rgba(229, 62, 62, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--red);
}

/* ===== المميزات ===== */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.bg-green { background: var(--green); }
.bg-blue { background: var(--blue); }
.bg-yellow { background: var(--yellow); }
.bg-red { background: var(--red); }

/* ===== المنتجات ===== */
.products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.products-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.product-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--green);
}

.product-card.featured {
    border: 2px solid var(--green);
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--yellow);
    color: var(--bg-darker);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
}

.product-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.product-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.product-price {
    margin-bottom: 20px;
}

.product-price .amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--green);
}

.product-price .currency {
    font-size: 16px;
    color: var(--text-muted);
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: right;
}

.product-features li {
    margin: 10px 0;
    color: var(--text-muted);
}

.product-features i {
    margin-left: 8px;
}

/* ===== رأس الصفحات ===== */
.page-header {
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* ===== النوافذ المنبثقة ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    margin: 50px auto;
    animation: slideIn 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.modal-price {
    background: rgba(56, 161, 105, 0.1);
    color: var(--green);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

/* ===== النماذج ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group label i {
    margin-left: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.payment-summary {
    background: rgba(56, 161, 105, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.payment-summary h4 {
    margin-bottom: 10px;
    color: var(--green);
}

.payment-details p {
    margin: 5px 0;
    color: var(--text-muted);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.alert-red {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--red);
}

.alert i {
    margin-left: 8px;
}

/* ===== رسائل النجاح ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    border: 1px solid var(--green);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ===== الفوتر ===== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin: 8px 0;
}

.footer-contact a:hover {
    color: var(--green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .products-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        transform: none;
    }
}