/*
Theme Name: Aknour Portfolio
Theme URI: https://aknour.com
Author: Abdallah Kamal
Description: Custom Glassmorphism & Neon UI Theme
Version: 1.0
*/

:root {
    /* الألوان الأساسية للموقع الداكن */
    --bg-color: #0b0e14; /* لون الخلفية الكحلي الداكن جداً */
    --text-main: #ffffff;
    --text-muted: #8b95a5;

    /* تأثير الزجاج (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* تأثير النيون */
    --neon-glow: rgba(45, 255, 196, 0.12); /* توهج تيل/أخضر فسفوري خفيف جداً */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    direction: rtl;
    /* إضافة إضاءة نيون خفيفة في خلفية الموقع لكسر الملل */
    background-image: radial-gradient(circle at 10% 20%, var(--neon-glow), transparent 30%), 
                      radial-gradient(circle at 90% 80%, var(--neon-glow), transparent 30%);
    background-attachment: fixed;
    animation: pageFadeIn 0.4s ease-out forwards; /* حركة دخول الصفحة */
}

/* حركة الدخول (تظهر من الأسفل للأعلى بنعومة) */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* كلاس الخروج (يُضاف بالجافاسكريبت قبل مغادرة الصفحة) */
body.page-leaving {
    opacity: 0;
    transform: translateY(-15px); /* ترتفع للأعلى وتختفي */
    transition: all 0.3s ease-in;
}
/* ====================================================
   1. الهيدر (شريط التنقل العلوي)
==================================================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 24px;
    color: var(--text-main);
}

.menu-icon {
    cursor: pointer;
}

.cart-icon a {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #2dffc4; /* لون النيون */
    color: #0b0e14; /* لون كحلي داكن للرقم */
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================
   2. منطقة البروفايل (الإحصائيات والصورة)
==================================================== */
.profile-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px 20px;
    gap: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* تأثير زجاجي خفيف لمكان الصورة */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

/* ====================================================
   3. البايو (السيرة الذاتية)
==================================================== */
.profile-bio {
    padding: 0 20px 20px;
    text-align: center;
}

.profile-bio h1 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.experience-badge {
    display: inline-block;
    background: rgba(45, 255, 196, 0.1);
    border: 1px solid #2dffc4;
    color: #2dffc4;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    backdrop-filter: blur(5px);
}

.profile-bio p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.profile-bio span {
    font-size: 13px;
    color: var(--text-main);
}

/* ====================================================
   4. الأزرار وتأثير الجلاسي (Glassmorphism)
==================================================== */
.action-buttons {
    padding: 0 20px 20px;
}

.btn-message {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
    /* السحر كله هنا: تأثير الزجاج */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* لدعم سفاري */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-message:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ====================================================
   5. شريط الأقسام (تصميم أيقونات انستجرام)
==================================================== */
.tabs-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* لجعل كل الأيقونات تأخذ مساحة متساوية */
    border-top: 2px solid transparent !important; /* مساحة محجوزة لخط التحديد */
    margin-top: -1px; /* لسحب الزر فوق خط الحدود (Border) الخاص بالشريط */
    border-radius: 0;
}

.tab-btn svg {
    width: 26px;
    height: 26px;
}

/* الأيقونة النشطة (اللي مفتوحة حالياً) */
.tab-btn.active {
    color: var(--text-main) !important;
    border-top: 2px solid var(--text-main) !important; /* خط علوي زي انستجرام */
}

.tab-btn:hover {
    color: #2dffc4 !important;
}
/* ====================================================
   6. شبكة الأعمال (Portfolio Grid 9:16)
==================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة للديسك توب */
    gap: 2px;
    padding-bottom: 40px;
}

.grid-item {
    aspect-ratio: 9 / 16; /* السحر هنا: إجبار العنصر على مقاس الريلز */
    background: var(--glass-bg); /* لون مؤقت حتى نضع الصور */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* خلفية العنصر التجريبية (لإعطاء تأثير التدرج) */
.grid-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    transition: transform 0.3s ease;
}

/* التأثير الزجاجي عند تمرير الماوس (Hover) */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.6); /* كحلي داكن شفاف */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* مخفي في الوضع الطبيعي */
    transition: opacity 0.3s ease;
}

.grid-item:hover .glass-overlay {
    opacity: 1; /* يظهر عند مرور الماوس */
}

.grid-item:hover .grid-bg {
    transform: scale(1.05); /* تكبير الصورة قليلاً كنوع من التفاعل */
}

.project-hover-title {
    color: var(--text-main);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 10px;
}

/* ====================================================
   تجاوب الشاشات (Responsive)
==================================================== */
/* للشاشات المتوسطة والصغيرة (التابلت والموبايل) */
@media (max-width: 768px) {
    /* شبكة المشاريع: 3 أعمدة على الموبايل */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* شبكة المتجر والمدونة: عمود واحد فقط على الموبايل */
    .store-grid,
    .blog-list {
        grid-template-columns: 1fr !important;
        padding: 0 !important; /* إزالة الحشو الجانبي لكي تأخذ الكروت الهامش الخاص بها */
    }

    /* استعادة الهوامش للكروت لتكون هناك مسافة بينها عمودياً */
    .store-item,
    .blog-card {
        margin: 0 20px 20px !important; /* استعادة الهامش ليكون هناك فراغ بين الكروت */
    }
}
/* ====================================================
   7. تأثيرات تبديل الأقسام (Tabs Animation)
==================================================== */
.tab-content {
    display: none; /* إخفاء كل الأقسام افتراضياً */
    animation: fadeIn 0.4s ease; /* حركة ظهور ناعمة جداً */
}

.tab-content.active {
    display: block; /* إظهار القسم النشط فقط */
}

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

/* ====================================================
   8. تصميم الأقسام المخفية (الخدمات والمتاجر وغيرها)
==================================================== */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    margin: 0 20px 20px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 منتجات بجوار بعضها */
    gap: 10px; /* تقليل المسافة بين الكروت لتناسب الحجم */
    padding: 0 10px;
}

.store-item {
    margin: 0; /* إزالة الـ margin الافتراضي لأننا نستخدم gap */
    text-align: center;
}

.store-item h4 {
    font-size: 13px; /* تصغير حجم اسم المنتج */
    margin-bottom: 5px;
}

.product-img {
    width: 100%;
    aspect-ratio: 1; /* جعل الصورة مربعة تماماً */
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

.price {
    color: #2dffc4; /* لون النيون الأخضر الخفيف للتسعير */
    font-weight: bold;
    font-size: 14px;
}

/* ====================================================
   9. النافذة المنبثقة للمشاريع (Lightbox Modal)
==================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85); /* تعتيم داكن للخلفية */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 450px; /* عرض مناسب للموبايل والكمبيوتر */
    position: relative;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px; /* موضع الزر على اليسار للغة العربية */
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-video-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 400px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-info h3 {
    margin-bottom: 10px;
}

.modal-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ====================================================
   10. المدونة (Blog) واتفاقية التعامل
==================================================== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.blog-card {
    padding: 15px;
    margin: 0; /* إزالة الهامش الافتراضي ليتناسب مع الشبكة */
}

.blog-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px !important;
    color: #2dffc4 !important; /* لون النيون */
    margin-bottom: 10px;
    opacity: 0.8;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ====================================================
   11. تنسيقات صفحات ووكومرس (المنتج الفردي والسلة)
==================================================== */
/* ضبط لون عنوان المنتج والسعر */
.woocommerce div.product .product_title {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 15px;
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: #2dffc4 !important; /* لون النيون */
    font-weight: bold;
    font-size: 20px;
}

/* زر الإضافة للسلة داخل صفحة المنتج */
.woocommerce div.product form.cart .button {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease !important;
    font-weight: bold;
}

.woocommerce div.product form.cart .button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* ====================================================
   12. إشعارات ووكومرس (Notices) وتنسيق المقال الفردي
==================================================== */
/* تحويل رسائل ووكومرس لإشعارات عائمة (Toast Notifications) */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px);
    width: 90% !important;
    max-width: 450px !important;
    background: var(--glass-bg) !important;
    border: 1px solid #2dffc4 !important;
    color: var(--text-main) !important;
    border-radius: 50px !important; /* شكل الكبسولة */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(45, 255, 196, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    animation: toastSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    font-size: 14px !important;
}

.woocommerce-error {
    border-color: #ff2d55 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 45, 85, 0.1) !important;
}

@keyframes toastSlideUp {
    to { transform: translateX(-50%) translateY(0); }
}

.toast-fade-out {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(50px) !important;
    transition: all 0.5s ease !important;
}

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
    color: #2dffc4 !important; /* أيقونة النيون */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 0 0 10px !important;
    display: inline-block !important;
}

/* زر الإجراء داخل الإشعار (مثل: عرض السلة) */
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button {
    background: rgba(45, 255, 196, 0.1) !important;
    color: #2dffc4 !important;
    border: 1px solid #2dffc4 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    margin: 0 15px 0 0 !important;
    white-space: nowrap !important;
}

.woocommerce-error::before { color: #ff2d55 !important; }
.woocommerce-error a.button {
    background: rgba(255, 45, 85, 0.1) !important;
    color: #ff2d55 !important;
    border-color: #ff2d55 !important;
}

.woocommerce-message a.button:hover, .woocommerce-info a.button:hover {
    background: #2dffc4 !important; color: #0b0e14 !important;
}
.woocommerce-error a.button:hover {
    background: #ff2d55 !important; color: #fff !important;
}

/* تنسيقات نصوص المقال الفردي (المدونة) */
.single-post-content {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.single-post-content h1, 
.single-post-content h2, 
.single-post-content h3 {
    color: var(--text-main);
    margin: 20px 0 12px;
}

.single-post-content p {
    margin-bottom: 15px;
}

.single-post-content a {
    color: #2dffc4;
    text-decoration: none;
}

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

/* ====================================================
   13. أيقونات السوشيال ميديا
==================================================== */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.social-icons a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.social-icons a:hover {
    background: #2dffc4;
    color: #0b0e14;
    border-color: #2dffc4;
}

/* ====================================================
   14. القائمة الجانبية للموبايل (Sidebar Drawer)
==================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.active {
    opacity: 1; visibility: visible;
}
.sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100%;
    margin: 0; border-radius: 0;
    z-index: 1001;
    transform: translateX(100%); /* مخفية خارج الشاشة جهة اليمين */
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.sidebar.active {
    transform: translateX(0); /* تظهر بالدخول من اليمين */
}
.close-sidebar {
    font-size: 32px; cursor: pointer; color: var(--text-muted);
    align-self: flex-start; margin-bottom: 20px; transition: 0.3s;
}
.close-sidebar:hover { color: #2dffc4; }
.sidebar-menu { list-style: none; margin-top: 10px; }
.sidebar-menu li { margin-bottom: 20px; }
.sidebar-menu a { color: var(--text-main); text-decoration: none; font-size: 18px; transition: 0.3s; display: flex; align-items: center; gap: 12px; }
.sidebar-menu a:hover { color: #2dffc4; }
.sidebar-footer { margin-top: auto; font-size: 13px; color: var(--text-muted); text-align: center; border-top: 1px solid var(--glass-border); padding-top: 15px;}

/* ====================================================
   15. حسابي (My Account) ونماذج تسجيل الدخول
==================================================== */
/* حقول الإدخال (Inputs) */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    outline: none !important;
    border-color: #2dffc4 !important;
    box-shadow: 0 0 5px rgba(45, 255, 196, 0.3) !important;
}

.woocommerce form.login, .woocommerce form.register {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* تحسين تخطيط نماذج تسجيل الدخول والتسجيل (كروت زجاجية) */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1;
    min-width: 280px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.woocommerce-account h2 {
    color: var(--text-main);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.woocommerce form .form-row label {
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

/* أزرار الدخول والتسجيل */
.woocommerce form .button {
    background: rgba(45, 255, 196, 0.1) !important;
    border: 1px solid #2dffc4 !important;
    color: #2dffc4 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    width: 100%;
    margin-top: 15px;
}

/* روابط التنقل داخل حسابي (لوحة التحكم، طلباتي، تفاصيل الحساب) */
.woocommerce-MyAccount-navigation ul {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px;
}

.woocommerce-MyAccount-navigation ul li a {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px; border-radius: 20px;
    color: var(--text-main); text-decoration: none;
    display: inline-block; transition: all 0.3s; font-size: 14px;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #2dffc4; color: #0b0e14; border-color: #2dffc4; font-weight: bold;
}

/* جداول الطلبات (Orders Table) */
.woocommerce table.shop_table {
    border-color: var(--glass-border) !important; border-radius: 8px; overflow: hidden;
}

.woocommerce table.shop_table th, .woocommerce table.shop_table td {
    border-color: var(--glass-border) !important; color: var(--text-main);
}

/* تنسيق رابط "نسيت كلمة المرور" */
.woocommerce-LostPassword {
    margin-top: 15px;
    text-align: center;
}

.woocommerce-LostPassword a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.woocommerce-LostPassword a:hover {
    color: #2dffc4;
}

/* ====================================================
   16. السلة (Cart) وإتمام الطلب (Checkout)
==================================================== */
/* جدول السلة وملخص الطلب */
.woocommerce-cart .shop_table.cart,
.woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    margin-top: 20px;
}

/* صفحة إتمام الطلب (Checkout) */
.woocommerce-checkout form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    flex: 1;
    min-width: 300px;
    background: var(--glass-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 0;
}

.woocommerce-checkout h3 {
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* طرق الدفع في إتمام الطلب */
.woocommerce-checkout #payment {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px;
    margin-top: 20px;
}

.woocommerce-checkout #payment div.payment_box {
    background: var(--glass-bg) !important;
    color: var(--text-muted) !important;
}

/* ====================================================
   17. تنسيقات سطح المكتب (Desktop Layout / Margins)
==================================================== */
@media (min-width: 850px) {
    /* تجميع محتوى الموقع في المنتصف مع هوامش جانبية متساوية */
    .top-nav,
    .profile-section,
    .profile-bio,
    .action-buttons,
    .tabs-nav,
    .content-area {
        max-width: 800px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* تحسين شكل شبكة الفيديوهات على الشاشات الكبيرة */
    .portfolio-grid {
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .grid-item {
        border-radius: 12px;
    }
}

/* ====================================================
   18. نافذة نموذج التواصل (Contact Form)
==================================================== */
/* استخدام نفس تنسيقات حقول حسابي */
.wpcf7-form-control:not(.wpcf7-submit) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    width: 100% !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none !important;
    border-color: #2dffc4 !important;
    box-shadow: 0 0 5px rgba(45, 255, 196, 0.3) !important;
}

/* تنسيق زر الإرسال */
.wpcf7-submit {
    background: rgba(45, 255, 196, 0.1) !important;
    border: 1px solid #2dffc4 !important;
    color: #2dffc4 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wpcf7-submit:hover {
    background: #2dffc4 !important;
    color: #0b0e14 !important;
}

/* إزالة المسافات الافتراضية للفقرات */
.wpcf7-form p {
    margin-bottom: 15px;
}

/* شبكة للحقول الأولى */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* رسائل الخطأ والنجاح */
.wpcf7-response-output {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    color: var(--text-muted) !important;
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
}

/* تجاوب الشبكة على الموبايل */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
   19. زر الرجوع (Back Button)
==================================================== */
.back-button a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.back-button a:hover {
    color: #2dffc4;
}

/* ====================================================
   20. السلة الجانبية المصغرة (Mini Cart Drawer)
==================================================== */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 14, 20, 0.8); backdrop-filter: blur(5px);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.mini-cart-sidebar {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; /* شاشة كاملة */
    margin: 0; border-radius: 0; z-index: 1001;
    opacity: 0; visibility: hidden; /* إخفاء تام لتجنب أي مشاكل في العرض */
    transform: translateY(20px); transition: all 0.3s ease;
    display: flex; flex-direction: column; padding: 20px;
}
.mini-cart-sidebar.active { opacity: 1; visibility: visible; transform: translateY(0); }

.mini-cart-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; margin-bottom: 15px;
    width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
}
.close-mini-cart { font-size: 28px; cursor: pointer; color: var(--text-muted); transition: 0.3s; }
.close-mini-cart:hover { color: #2dffc4; }

/* تنسيقات عناصر ووكومرس داخل السلة المصغرة */
.widget_shopping_cart_content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; width: 100%; max-width: 800px; margin-left: auto; margin-right: auto; }
.woocommerce-mini-cart__empty-message { color: var(--text-muted); text-align: center; margin-top: 20px; }
.woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; flex: 1; }
.woocommerce-mini-cart-item { 
    display: flex !important; align-items: center; gap: 10px; 
    margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--glass-border); 
}
.woocommerce-mini-cart-item img { width: 60px !important; height: 60px !important; border-radius: 8px; object-fit: cover; margin: 0 !important; }
.woocommerce-mini-cart-item a { color: var(--text-main); text-decoration: none; font-size: 14px; transition: 0.3s; display: block; font-weight: normal !important; }
.woocommerce-mini-cart-item a:hover { color: #2dffc4; }
.woocommerce-mini-cart-item .quantity { color: #2dffc4; font-size: 13px; font-weight: bold; margin-top: 5px; display: block; }
.woocommerce-mini-cart-item a.remove { 
    color: #ff2d55 !important; font-size: 20px !important; text-decoration: none; 
    margin-right: auto !important; background: rgba(255,45,85,0.1); border-radius: 50%; 
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.woocommerce-mini-cart-item a.remove:hover { background: #ff2d55; color: #fff !important; }

.woocommerce-mini-cart__total { 
    border-top: 1px solid var(--glass-border); padding-top: 15px; margin-top: auto; 
    display: flex; justify-content: space-between; color: var(--text-main); font-weight: bold; 
}
.woocommerce-mini-cart__total .amount { color: #2dffc4; }

.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; margin-bottom: 0; }
.woocommerce-mini-cart__buttons .button { 
    text-align: center; padding: 12px !important; border-radius: 8px !important; 
    font-weight: bold !important; text-decoration: none; transition: 0.3s !important; display: block;
}
.woocommerce-mini-cart__buttons .button:not(.checkout) { 
    background: rgba(255,255,255,0.05) !important; color: var(--text-main) !important; 
    border: 1px solid var(--glass-border) !important; margin: 0 !important;
}
.woocommerce-mini-cart__buttons .button.checkout { 
    background: rgba(45, 255, 196, 0.1) !important; border: 1px solid #2dffc4 !important; 
    color: #2dffc4 !important; 
}
.woocommerce-mini-cart__buttons .button:hover { 
    background: #2dffc4 !important; color: #0b0e14 !important; 
}

/* ====================================================
   21. زر الواتساب العائم (Floating WhatsApp)
==================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(11, 14, 20, 0.8);
    border: 2px solid #2dffc4;
    color: #2dffc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(45, 255, 196, 0.3);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background: #2dffc4;
    color: #0b0e14;
    transform: scale(1.1);
    animation: none; /* إيقاف النبض عند تمرير الماوس */
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(45, 255, 196, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(45, 255, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 255, 196, 0); }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

/* ====================================================
   22. تخصيص شريط التمرير (Custom Scrollbar)
==================================================== */
/* يعمل على متصفحات كروم، إيدج، وسفاري */
::-webkit-scrollbar {
    width: 8px; /* عرض الشريط */
}

::-webkit-scrollbar-track {
    background: var(--bg-color); /* لون مسار الشريط مطابق للخلفية */
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1); /* لون الشريط نفسه (زجاجي خفيف) */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dffc4; /* يضيء بلون النيون عند تمرير الماوس عليه */
}
