/* === تصميم مكنون الفاخر (Ultimate Luxury Edition) === */
:root {
    --primary-gold: #C19A6B; 
    --light-gold: #D4AF37;
    --dark-gold: #A37F55;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C19A6B 50%, #A37F55 100%);
/* ألوان الوضع النهاري (الافتراضي) */
--bg-main: #FCFAF5;
--surface: #ffffff;
--dark-gray: #1A1A1A;
--text-muted: #666666;
--border-color: rgba(193, 154, 107, 0.15);
--header-bg: rgba(255, 255, 255, 0.85);
--input-bg: #FAFAFA;

/* ظلال ذهبية دافئة */
--shadow-sm: 0 4px 15px rgba(193, 154, 107, 0.08);
--shadow-md: 0 12px 35px rgba(193, 154, 107, 0.15);
--shadow-lg: 0 20px 50px rgba(193, 154, 107, 0.2);

--radius-xl: 36px;
--radius-lg: 24px;
--radius-md: 16px;
--radius-pill: 50px;

}
/* ألوان الوضع الليلي (Dark Mode) */
body.dark-mode {
    --bg-main: #121212;
    --surface: #1E1E1E;
    --dark-gray: #F5F5F5;
    --text-muted: #A0A0A0;
    --border-color: rgba(193, 154, 107, 0.2);
    --header-bg: rgba(30, 30, 30, 0.85);
    --input-bg: #2C2C2C;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.7);
}
html, body { overflow-x: hidden; max-width: 100vw; box-sizing: border-box; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* تخصيص شريط التمرير (Custom Scrollbar) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-gold); }
body, button, input, select, textarea { font-family: 'Tajawal', sans-serif; }
body {
    margin: 0;
    background-color: var(--bg-main);
    color: var(--dark-gray);
    display: flex; flex-direction: column; min-height: 100vh; line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}
/* حركات انسيابية */
.add-btn, .auth-btn, .filter-btn, .whatsapp-checkout-btn, .promo-btn, .profile-btn, .product-card, .offer-card, .close-btn {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.add-btn:active, .whatsapp-checkout-btn:active { transform: scale(0.97) !important; opacity: 0.9; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
/* تأثير الأكريليك المصقول للهيدر (3. التنقية الزجاجية) */
header { 
    background: var(--header-bg); 
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; 
    box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; width: 100%; 
    border-bottom: 1px solid var(--border-color); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 1px solid rgba(255,255,255,0.4); /* حافة الزجاج المضيئة */
    transition: background 0.4s ease;
}
body.dark-mode header { border-top: 1px solid rgba(255,255,255,0.05); }
.logo-img { height: 65px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end;}
/* 1. اللمعان المعدني على الأزرار (Shimmer) */
.auth-btn, .add-btn, .whatsapp-checkout-btn { position: relative; overflow: hidden; }
.auth-btn::after, .add-btn::after, .whatsapp-checkout-btn::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.auth-btn:hover::after, .add-btn:hover::after, .whatsapp-checkout-btn:hover::after { left: 150%; }
.auth-btn { background: transparent; color: var(--dark-gold); border: 1px solid var(--primary-gold); padding: 8px 20px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; font-size: 0.9em; white-space: nowrap; }
.auth-btn:hover { background: var(--gold-gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
#orders-btn { background: var(--dark-gray); color: var(--bg-main); border-color: var(--dark-gray); display: none; }
#admin-btn { background: #8B4513; color: #fff; border-color: #8B4513; display: none; }
.main-content { flex: 1; padding-bottom: 100px; width: 100%; }

/* === تصميم سلايدر البانرات الفاخر === */
.hero-slider { 
    position: relative; width: 100%; max-width: 100%; 
    height: 450px; overflow: hidden; background: var(--bg-main); 
    box-shadow: var(--shadow-sm); margin-bottom: 35px;
}
.hero-slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    /* تأثير الفخامة: انتقال ناعم للشفافية مع تقريب بطيء جداً للصورة */
    transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* حاوية الوسائط الجديدة (تدعم الصور، الفيديو، والـ GIF بدون قص أو تمطيط) */
.hero-media {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain; /* يمنع القص والتمطيط نهائياً للصور والفيديو */
    z-index: 1;
    transform: scale(1); transition: transform 6s linear;
}
.hero-slide.active .hero-media { transform: scale(1.05); }

/* أزرار التنقل والدوائر */
.slider-nav-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.7); backdrop-filter: blur(5px); border: none; 
    color: var(--dark-gold); width: 45px; height: 45px; border-radius: 50%; 
    font-size: 1.2em; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 5; box-shadow: var(--shadow-sm); transition: 0.3s; 
}
.slider-nav-btn:hover { background: var(--primary-gold); color: #fff; }
.slider-nav-btn.prev { right: 25px; }
.slider-nav-btn.next { left: 25px; }
.hero-dots { 
    position: absolute; bottom: 20px; left: 0; right: 0; 
    display: flex; justify-content: center; gap: 8px; z-index: 5; 
}
.hero-dot { 
    width: 10px; height: 10px; border-radius: 50%; 
    background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.4s; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); border: 1px solid rgba(193, 154, 107, 0.3);
}
.hero-dot.active { background: var(--primary-gold); transform: scale(1.4); border-color: transparent; }

/* المحتوى الافتراضي (للنص القديم) */
.hero-content { 
    position: absolute; z-index: 3; text-align: center; background: rgba(255,255,255,0.75); 
    backdrop-filter: blur(10px); padding: 30px 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); 
}
body.dark-mode .hero-content { background: rgba(30,30,30,0.75); }
.hero-content h1 { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0 0 10px 0; font-size: 2.4em; font-weight: 800; }
.hero-content p { margin: 0; font-size: 1.1em; color: var(--dark-gray); font-weight: 700; }

/* توافق الجوال */
@media (max-width: 768px) { 
    .hero-slider { height: auto; aspect-ratio: 16 / 9; margin-bottom: 25px; } 
    .hero-slide { transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
    .hero-slide.active .hero-media { transform: scale(1); }
    
    /* التعديل هنا لفك ارتباط الأزرار */
    .slider-nav-btn { width: 35px; height: 35px; font-size: 1em; }
    .slider-nav-btn.prev { right: 10px; left: auto; }
    .slider-nav-btn.next { left: 10px; right: auto; }
    
    .hero-content { padding: 20px; width: 85%; } 
    .hero-content h1 { font-size: 1.8em; } 
}

/* شريط البحث */
.search-container { max-width: 550px; margin: 0 auto 35px auto; padding: 0 25px; width: 100%; }
.search-input { width: 100%; padding: 18px 28px; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-pill); font-size: 1.05em; outline: none; box-shadow: var(--shadow-sm); color: var(--dark-gray); transition: 0.4s; }
.search-input:focus { box-shadow: var(--shadow-md); border-color: var(--primary-gold); transform: translateY(-2px); }
/* التحميل الذكي للصور */
.img-container { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--input-bg); }
.product-card .img-container { height: 220px; }
.offer-card .img-container { height: 190px; }
.img-container img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.img-container img.loaded { opacity: 1; transform: scale(1); }
.product-card:hover .img-container img.loaded { transform: scale(1.08); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); backdrop-filter: blur(5px); border: none; color: var(--dark-gold); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2em; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: var(--shadow-sm); }
.slider-btn.prev { right: 15px; } .slider-btn.next { left: 15px; }  
.slider-dots { position: absolute; bottom: 15px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; background: rgba(0, 0, 0, 0.25); padding: 8px 12px; width: fit-content; margin: 0 auto; border-radius: var(--radius-pill); backdrop-filter: blur(5px); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: 0.4s; }
.dot.active { background: #fff; transform: scale(1.6); }

/* الأقسام والبطاقات */
.offers-section, .reviews-section { display: none; padding: 30px 0; margin-bottom: 30px; }
.offers-header, .reviews-header { text-align: right; padding-right: 25px; color: var(--dark-gold); margin-top: 0; margin-bottom: 20px; font-size: 1.6em; font-weight: 800; }
.offers-scroll-container, .reviews-scroll-container { display: flex; overflow-x: auto; overflow-y: hidden; gap: 20px; padding: 15px 25px 30px 25px; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.offers-scroll-container::-webkit-scrollbar, .reviews-scroll-container::-webkit-scrollbar { display: none; }
.offer-card { scroll-snap-align: start; min-width: 220px; max-width: 220px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); flex-shrink: 0; display: flex; flex-direction: column; position: relative; border: 1px solid var(--border-color); }
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.offer-badge, .discount-badge { background: #D32F2F; color: white; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.8em; font-weight: 800; position: absolute; top: 15px; right: 15px; z-index: 10; box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3); }
.offer-info, .product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.offer-title, .product-title { font-size: 1.1em; font-weight: 800; margin-bottom: 6px; line-height: 1.5; color: var(--dark-gray); }

/* تنسيق الوصف الجديد (للمنتجات والعروض) */
.product-desc { 
    font-size: 0.85em; 
    color: var(--text-muted); 
    line-height: 1.6; 
    margin-top: 4px; 
    margin-bottom: 12px; 
    white-space: pre-line; /* يُحافظ على ترتيب الأسطر كما كُتبت */
    font-weight: 500; 
}

.offer-price-container, .price-container { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.offer-new-price, .new-price, .product-price { color: var(--dark-gold); font-weight: 800; font-size: 1.3em; margin-bottom: 15px; }
.offer-old-price, .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.9em; font-weight: 500; }
.review-card { scroll-snap-align: start; min-width: 320px; max-width: 320px; background: var(--surface); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; }
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.review-author { font-weight: 800; font-size: 1.1em; color: var(--dark-gray); }
.review-stars { color: #D4AF37; font-size: 1em; letter-spacing: 2px; }
.review-text { font-size: 1em; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; flex-grow: 1; font-weight: 500; }
.review-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-md); cursor: zoom-in; margin-top: 10px; opacity:0; transition: opacity 0.5s; }
.review-img.loaded { opacity:1; }

/* الفلاتر */
.category-filters { display: flex; justify-content: right; overflow-x: auto; gap: 12px; margin: 10px 0 30px 0; padding: 0 25px 15px 25px; }
.category-filters::-webkit-scrollbar { display: none; }
.filter-btn { background: var(--surface); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 22px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; font-size: 0.95em; box-shadow: var(--shadow-sm); white-space: nowrap; }
.filter-btn.active, .filter-btn:hover { background: var(--gold-gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 0 25px 50px 25px; max-width: 1400px; margin: 0 auto; width: 100%; }
.product-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.add-btn { background: var(--gold-gradient); color: #fff; border: none; padding: 14px; border-radius: var(--radius-pill); cursor: pointer; font-size: 1.05em; font-weight: 800; margin-top: auto; width: 100%; box-shadow: 0 6px 20px rgba(193, 154, 107, 0.25); }

/* التحميل الوهمي (Skeleton Loaders) */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 0 25px 50px 25px; max-width: 1400px; margin: 0 auto; width: 100%; }
.skeleton-card { background: var(--surface); border-radius: var(--radius-lg); height: 380px; display: flex; flex-direction: column; border: 1px solid var(--border-color); overflow: hidden;}
.skeleton-img { height: 220px; background: var(--input-bg); animation: shimmer 1.5s infinite linear; }
.skeleton-info { padding: 20px; }
.skeleton-text { height: 15px; background: var(--input-bg); border-radius: 4px; margin-bottom: 15px; animation: shimmer 1.5s infinite linear; }
.skeleton-btn { height: 45px; background: var(--input-bg); border-radius: var(--radius-pill); margin-top: 10px; animation: shimmer 1.5s infinite linear; }
@keyframes shimmer { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

/* النوافذ المنبثقة مع تأثير الزجاج المنعكس (Clear Edge) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 1001; justify-content: center; align-items: flex-end; padding: 0; transition: 0.3s; }
/* === التعديل المطلوب لعرض الصورة بالحجم الطبيعي بدون قص === */
#image-modal { z-index: 4000; align-items: center; padding: 0 !important; background: rgba(0,0,0,0.95); backdrop-filter: none; cursor: pointer; } 
#policy-modal, #admin-modal, #about-modal, #privacy-modal, #terms-modal { z-index: 3000; }
.custom-modal { 
    background: var(--surface); width: 100%; max-width: 650px; 
    border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 40px 30px 30px 30px; 
    max-height: 88vh; overflow-y: auto; position: relative; box-sizing: border-box; 
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -10px 40px rgba(0,0,0,0.2); 
    border-top: 1px solid rgba(255,255,255,0.4); /* حافة الزجاج المضيئة */
}
body.dark-mode .custom-modal { border-top: 1px solid rgba(255,255,255,0.05); }
.custom-modal::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 50px; height: 5px; background: var(--border-color); border-radius: 10px; }
@media (min-width: 768px) {
    .modal-overlay { align-items: center; padding: 20px; }
    .custom-modal { border-radius: var(--radius-xl); animation: popIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); padding: 35px; border-top: 1px solid rgba(255,255,255,0.4); }
    body.dark-mode .custom-modal { border-top: 1px solid rgba(255,255,255,0.05); }
    .custom-modal::before { display: none; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.admin-modal-wide { max-width: 950px; }
.close-btn { position: absolute; top: 22px; left: 22px; background: var(--input-bg); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2em; cursor: pointer; color: var(--text-muted); z-index: 10; border: 1px solid var(--border-color);}
.close-btn:hover { background: var(--primary-gold); color: #fff; transform: rotate(90deg); border-color:transparent;}

/* المدخلات العائمة (Floating Labels) */
.floating-group { position: relative; margin-bottom: 20px; }
.floating-input { 
    width: 100%; padding: 22px 22px 10px 22px; 
    background: var(--input-bg); border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); font-size: 1.05em; color: var(--dark-gray); 
    transition: 0.3s; font-family: inherit; font-weight: 500;
}
.floating-input:focus { background: var(--surface); border-color: var(--primary-gold); outline: none; box-shadow: var(--shadow-sm); }
.floating-label { 
    position: absolute; top: 18px; right: 22px; color: var(--text-muted); 
    pointer-events: none; transition: 0.3s ease-in-out; font-size: 0.95em; font-weight: 700;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 6px; font-size: 0.75em; color: var(--primary-gold);
}
select.floating-input { padding: 16px 22px; }

.cart-item { border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.cart-item-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.cart-item-details h4 { margin: 0 0 8px 0; font-size: 1.1em; color: var(--dark-gray); font-weight: 800; }
.cart-item-custom { font-size: 0.9em; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.qty-controls button { background: var(--bg-main); color: var(--dark-gold); border: 1px solid var(--border-color); padding: 6px 14px; cursor: pointer; border-radius: var(--radius-pill); font-weight: 800; font-size: 1.1em; }
.checkout-section { margin-top: 25px; border-top: none; padding-top: 20px; }
.checkout-label { font-weight: 800; display: block; margin-bottom: 10px; font-size: 0.95em; color: var(--dark-gray); }
.promo-container { display: flex; gap: 12px; margin-bottom: 20px; }
.promo-container .floating-group { margin-bottom: 0; flex-grow: 1; }
.promo-btn { background: var(--dark-gray); color: var(--bg-main); border: none; padding: 0 25px; border-radius: var(--radius-md); cursor: pointer; font-weight: 800; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.address-grid .floating-group { margin-bottom: 0; }
.terms-checkbox-container { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; background: var(--bg-main); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.terms-checkbox-container input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--dark-gold); cursor: pointer; margin-top: 2px; flex-shrink: 0; border-radius: 6px; }
.terms-checkbox-container label { font-size: 0.95em; color: var(--text-muted); line-height: 1.6; cursor: pointer; font-weight: 500; }
.terms-checkbox-container a { color: var(--dark-gold); text-decoration: underline; font-weight: 800; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.05em; color: var(--text-muted); font-weight: 700; }
.summary-total { font-size: 1.4em; font-weight: 800; color: var(--dark-gold); border-top: 2px dashed var(--border-color); padding-top: 20px; margin-top: 20px; }
.whatsapp-checkout-btn { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white; border: none; width: 100%; padding: 18px; border-radius: var(--radius-pill); font-size: 1.15em; cursor: pointer; font-weight: 800; margin-top: 15px; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35); }
.whatsapp-checkout-btn:disabled { background: #A5D6A7; box-shadow: none; }
.order-card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 25px; margin-bottom: 20px; background: var(--input-bg); position: relative; }
.admin-card { border-right: 6px solid var(--primary-gold); }

/* الأزرار العائمة */
.floating-buttons-container { position: fixed; bottom: 30px; left: 25px; display: flex; flex-direction: column; gap: 18px; z-index: 999; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: var(--shadow-md); cursor: pointer; border: none; }
.float-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.whatsapp-btn { background-color: #25D366; }
.instagram-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.cart-float-btn { background-color: var(--surface); border: 1px solid var(--border-color); }
.cart-float-btn svg { fill: var(--dark-gold) !important; width: 28px; height: 28px; }
.float-cart-count { position: absolute; top: -2px; right: -2px; background-color: #D32F2F; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 800; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
footer { text-align: center; padding: 40px 25px; margin-top: auto; background-color: var(--surface); width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); }
.footer-links a { color: var(--dark-gold); text-decoration: none; font-weight: 800; font-size: 1em; cursor: pointer; }
.footer-bottom-links { display: flex; justify-content: center; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 25px; border-top: 1px solid var(--border-color); padding-top: 25px; }
.footer-bottom-links a { color: var(--text-muted); font-weight: 700; transition: color 0.3s; cursor: pointer; }
.footer-bottom-links a:hover { color: var(--primary-gold); }

/* ميديا كويري للهواتف (إصلاح محاذاة الهيدر) */
@media (max-width: 600px) {
    header { padding: 10px 15px; }
    .logo-img { height: 45px; }
    .auth-btn { padding: 6px 12px; font-size: 0.8em; }
}

/* التحكم في عرض البنرات حسب الوضع */
.hero-media.light-banner { display: block; }
.hero-media.dark-banner { display: none; }

/* عند تفعيل الوضع الليلي */
body.dark-mode .hero-media.light-banner { display: none; }
body.dark-mode .hero-media.dark-banner { display: block; }
