/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7be5;
    --secondary-color: #6c757d;
    --success-color: #00d09c;
    --danger-color: #e63757;
    --warning-color: #f5a623;
    --light-bg: #f8f9fa;
    --dark-color: #12263f;
    --text-color: #12263f;
    --border-color: #e2e8f0;
}

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

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

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.3rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: white;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #1a5bbf);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: #1a5bbf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-disabled {
    background: var(--secondary-color);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.limited {
    background: var(--warning-color);
    color: white;
}

.out-of-stock {
    background: var(--danger-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.product-brand {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.product-info .btn {
    width: 100%;
    margin-top: 10px;
}

/* Features */
.features {
    padding: 60px 0;
    background: white;
}

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

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: right;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item img {
    border-radius: 5px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity button {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.cart-total-label {
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Checkout */
.checkout-page {
    padding: 40px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.checkout-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.payment-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + label {
    color: var(--primary-color);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(44, 123, 229, 0.05);
}

.payment-option img {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.order-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.total-price {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Success Page */
.success-page {
    padding: 80px 0;
    text-align: center;
}

.success-page .success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-page .order-number {
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin: 20px 0;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.payment-methods img {
    height: 30px;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

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

/* Filters */
.products-header {
    margin: 30px 0;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.search-form {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 10px 15px;
    width: 250px;
    font-size: 1rem;
}

.search-form button {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary-color);
}

/* Product Details */
.product-details {
    padding: 40px 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-gallery .main-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    color: var(--secondary-color);
}

.product-price-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.product-price-details .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

.product-description {
    margin: 20px 0;
}

.product-specs ul {
    list-style: none;
    margin: 10px 0;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.add-to-cart-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-selector button {
    background: var(--light-bg);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        overflow-x: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* إضافة إلى ملف style.css */

/* أنماط نموذج الدفع المحسن */
.input-group {
    position: relative;
}

.input-group input {
    padding-right: 45px;
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
    outline: none;
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.input-helper {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}

/* أنماط زر الدفع */
.btn-submit {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2c7be5, #1a5bbf);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 123, 229, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* أيقونة آمنة */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    padding: 12px 16px;
    border-radius: 8px;
    color: #16a34a;
    margin-top: 15px;
    font-size: 0.9rem;
}

.secure-badge i {
    font-size: 1.2rem;
}

.secure-payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    color: #16a34a;
    margin-top: 20px;
}

/* بطاقة المعاينة المطورة */
.card-preview {
    margin: 20px 0;
    perspective: 1000px;
}

.card-front {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border-radius: 16px;
    padding: 25px;
    color: white;
    min-height: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.card-brand {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-brand img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.card-number-display {
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.card-holder-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.card-holder-display span:last-child {
    font-weight: 600;
    text-transform: uppercase;
}

.card-expiry-display {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* خيارات الدفع */
.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.payment-option:hover {
    border-color: #2c7be5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.1);
}

.payment-option.active {
    border-color: #2c7be5;
    background: rgba(44, 123, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.payment-option img {
    height: 40px;
    max-width: 60px;
    object-fit: contain;
}

.payment-option span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #12263f;
}

@media (max-width: 768px) {
    .payment-option {
        padding: 12px;
    }
    
    .payment-option img {
        height: 30px;
    }
    
    .card-number-display {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .card-front {
        min-height: 180px;
        padding: 20px;
    }
}
/* رابط لوحة التحكم */
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e8f0fe;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}

.admin-link:hover {
    background: #d4e2fc;
    transform: translateY(-2px);
}

.admin-link i {
    font-size: 1rem;
}

/* أيقونة الإعدادات */
.admin-link .fa-cog {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* =============================================
   تذييل الصفحة (Footer)
   ============================================= */

/* =============================================
   تذييل الصفحة (Footer) - النسخة الجديدة
   ============================================= */

footer {
    background: #12263f;
    color: #fff;
    margin-top: 60px;
}

/* القسم الرئيسي للتذييل */
.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

/* الأعمدة */
.footer-column h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: #2c7be5;
    border-radius: 2px;
}

.footer-column p {
    color: #aab0b6;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #aab0b6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #2c7be5;
}

/* النشرة البريدية */
.newsletter-form {
    margin: 15px 0 25px;
}

.newsletter-input-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.newsletter-input-group input::placeholder {
    color: #8898aa;
}

.newsletter-input-group button {
    padding: 12px 24px;
    background: #2c7be5;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.newsletter-input-group button:hover {
    background: #1a5bbf;
}

/* شعار المؤسسة في التذييل */
.footer-logo {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo i {
    font-size: 32px;
    color: #2c7be5;
    margin-bottom: 5px;
}

.footer-logo span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.footer-logo small {
    font-size: 13px;
    color: #8898aa;
    margin-top: 2px;
}

/* أزرار تحميل التطبيق */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.app-btn i {
    font-size: 24px;
    color: #aab0b6;
}

.app-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* القسم السفلي من التذييل */
.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #8898aa;
    font-size: 13px;
    margin: 0;
}

.copyright strong {
    color: #fff;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-links a {
    color: #8898aa;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2c7be5;
}

.footer-links .separator {
    color: #444;
    font-size: 12px;
}

.footer-version {
    color: #444;
    font-size: 12px;
    font-family: monospace;
}

/* =============================================
   استجابة التذييل (Responsive)
   ============================================= */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }
    .footer-column:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .footer-column:first-child {
        grid-column: span 3;
    }
    .footer-column:last-child {
        grid-column: span 3;
    }
    .app-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-column:first-child {
        grid-column: span 2;
    }
    
    .footer-column:last-child {
        grid-column: span 2;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .newsletter-input-group input {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-input-group button {
        padding: 14px;
        width: 100%;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
    }
    
    .footer-column h4::after {
        right: 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column:first-child {
        grid-column: span 1;
    }
    
    .footer-column:last-child {
        grid-column: span 1;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .footer-links a {
        padding: 3px 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        font-size: 11px;
    }
}
/* =============================================
   القائمة المنسدلة للأقسام (Desktop)
   ============================================= */

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-menu .dropdown-toggle i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

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

.nav-menu .dropdown-menu li {
    padding: 0;
    margin: 0;
    border: none;
    list-style: none;
}

.nav-menu .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #12263f;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    text-decoration: none;
}

.nav-menu .dropdown-menu a:hover {
    background: #f0f7ff;
    color: #2c7be5;
    border-right-color: #2c7be5;
}

.nav-menu .dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

.nav-menu .dropdown-menu a:hover i {
    color: #2c7be5;
}

/* =============================================
   القائمة المنسدلة للجوال (Mobile)
   ============================================= */

@media (max-width: 768px) {
    .nav-menu .dropdown {
        position: static;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        background: transparent;
    }
    
    .nav-menu .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .mobile-menu .dropdown-mobile {
        position: relative;
    }
    
    .mobile-menu .dropdown-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        cursor: pointer;
        text-decoration: none;
        color: #12263f;
    }
    
    .mobile-menu .dropdown-toggle-mobile i.fa-chevron-down {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu .dropdown-toggle-mobile.active i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .mobile-menu .dropdown-menu-mobile {
        padding-right: 20px;
        list-style: none;
    }
    
    .mobile-menu .dropdown-menu-mobile li {
        padding: 0;
        border: none;
    }
    
    .mobile-menu .dropdown-menu-mobile a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        color: #6c757d;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    .mobile-menu .dropdown-menu-mobile a:hover {
        color: #2c7be5;
    }
    
    .mobile-menu .dropdown-menu-mobile a i {
        width: 20px;
        text-align: center;
    }
}


/* =============================================
   صفحة السياسات - Policy Pages
   ============================================= */
.page-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e94560;
}

.page-header h1 {
    color: #1a1a2e;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header h1 i {
    color: #e94560;
    margin-left: 10px;
}

.page-header p {
    color: #666;
    font-size: 14px;
}

.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content section {
    margin-bottom: 30px;
}

.page-content h2 {
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 15px;
    padding-right: 15px;
    border-right: 4px solid #e94560;
}

.page-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.page-content ul,
.page-content ol {
    padding-right: 25px;
    margin-bottom: 15px;
}

.page-content li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-content a {
    color: #e94560;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Alert Boxes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 3px;
}

.alert p {
    margin: 0;
    line-height: 1.7;
}

.alert-info {
    background: #e3f2fd;
    border-right: 4px solid #1976d2;
    color: #0d47a1;
}

.alert-info i {
    color: #1976d2;
}

.alert-warning {
    background: #fff3e0;
    border-right: 4px solid #f57c00;
    color: #e65100;
}

.alert-warning i {
    color: #f57c00;
}

.alert-danger {
    background: #ffebee;
    border-right: 4px solid #c62828;
    color: #b71c1c;
}

.alert-danger i {
    color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-company-info .company-info-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-content {
        padding: 20px 15px;
    }
}

/* ألوان كل منصة */
.social-icon.whatsapp {
    background: #25D366;
}
.social-icon.whatsapp:hover {
    background: #1da851;
}

.social-icon.facebook {
    background: #1877F2;
}
.social-icon.facebook:hover {
    background: #0d5bbd;
}

.social-icon.twitter {
    background: #1DA1F2;
}
.social-icon.twitter:hover {
    background: #0d8bd9;
}

.social-icon.snapchat {
    background: #FFFC00;
    color: #000;
}
.social-icon.snapchat:hover {
    background: #e6e300;
    color: #000;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #d87b1f 0%, #c9542a 25%, #c01f37 50%, #b01a55 75%, #a01577 100%);
}

.social-icon.tiktok {
    background: #000;
}
.social-icon.tiktok:hover {
    background: #333;
}
/* =============================================
   بيانات المؤسسة الرسمية - بشكل أفقي
   Footer Company Info - Horizontal Layout
   ============================================= */

/* الحاوية الرئيسية */
.footer-company-info {
    background: #1a1a2e;
    color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* ضمان عرض الحاوية بالكامل */
.footer-company-info .container {
    max-width: 100%;
    padding: 0 30px;
    margin: 0 auto;
}

/* الصف الأفقي */
.company-info-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    direction: rtl;
    width: 100%;
}

/* كل عنصر بيانات */
.company-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
    padding: 4px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.company-item:last-of-type {
    border-left: none;
}

.company-item i {
    color: #e94560;
    font-size: 14px;
}

.company-item a {
    color: #e94560;
    text-decoration: none;
}

.company-item a:hover {
    text-decoration: underline;
}

/* اسم المؤسسة */
.company-name-item span {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.company-name-item i {
    font-size: 16px;
}

/* أيقونات التواصل الاجتماعي */
.company-social-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.company-social-inline .social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.company-social-inline .social-icon:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
}

/* ألوان كل منصة */
.social-icon.whatsapp { background: #25D366; }
.social-icon.whatsapp:hover { background: #1da851; }

.social-icon.facebook { background: #1877F2; }
.social-icon.facebook:hover { background: #0d5bbd; }

.social-icon.twitter { background: #1DA1F2; }
.social-icon.twitter:hover { background: #0d8bd9; }

.social-icon.snapchat { background: #FFFC00; color: #000; }
.social-icon.snapchat:hover { background: #e6e300; color: #000; }

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #d87b1f 0%, #c9542a 25%, #c01f37 50%, #b01a55 75%, #a01577 100%);
}

.social-icon.tiktok { background: #000; }
.social-icon.tiktok:hover { background: #333; }

/* =============================================
   التجاوب (Responsive)
   ============================================= */

/* شاشات متوسطة (تابلت) */
@media (max-width: 992px) {
    .company-info-horizontal {
        gap: 10px;
    }
    
    .company-item {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .company-social-inline .social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* شاشات صغيرة (جوال) */
@media (max-width: 768px) {
    .company-info-horizontal {
        flex-direction: column;
        gap: 8px;
    }
    
    .company-item {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 0;
        width: 100%;
        justify-content: center;
    }
    
    .company-item:last-of-type {
        border-bottom: none;
    }
    
    .company-social-inline {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 10px;
        padding-right: 0;
        margin-top: 5px;
        justify-content: center;
        width: 100%;
    }
}