﻿/* ======================= */
/*       ROOT VARIABLES    */
/* ======================= */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #343a40;
    --footer-text: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --menu-bg: #6c5ce7;
    --menu-text: #ffffff;
    --border-radius: 8px;
    --title-color: #6c5ce7;
    --primary: #6c5ce7;
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --muted: #a0a0a0;
    --bg: #0b1220;
    --card: #131c2f;
    --radius: 18px;
    --tr: .25s ease;
}

[data-theme="dark"] {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --text-color: #f8f9fa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: rgba(30, 30, 30, 0.95);
    --footer-bg: #000000;
    --footer-text: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --menu-bg: #1e1e1e;
    --menu-text: #a29bfe;
    --color: var(--title-color);
}

[dir="ltr"] {
    text-align: left;
}

[dir="rtl"] {
    text-align: right;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

    .logo i {
        margin: 0 10px;
    }

.top-nav {
    display: flex;
    list-style: none;
    color: #8a2be2; /* اللون الجديد عند المرور */
}

    .top-nav li {
        margin: 0 10px;
    }

    .top-nav a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        font-size: 0.9rem;
        cursor: pointer;
    }

.controls {
    display: flex;
    align-items: center;
    margin-right: 25px; /* حرك العناصر شوية ناحية الشمال */
    gap: 15px; /* مسافة بين الزرارين */
}

.theme-toggle, .lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    color: var(--text-color);
    font-size: 1.2rem;
}

/* Main Navigation */
.main-nav {
    background-color: var(--menu-bg);
    margin-top: 70px;
    padding: 15px 0;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
}

    .nav-links a:hover {
        transform: translateY(-3px);
    }

    .nav-links a {
        text-decoration: none;
        color: var(--menu-text);
        font-weight: 500;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .nav-links i {
        margin: 0 5px;
    }


/* Hero Section */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
    margin: 5px;
    cursor: pointer;
    border: none;
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

    .section-title:after {
        content: '';
        position: absolute;
        width: 100px;
        height: 4px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--accent-color);
        border-radius: 2px;
    }

section {
    padding: 50px 0;
    min-height: 50vh;
}

/* PC Specs Section */
.specs-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.specs-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* نخلي الكاتيجوريز جوه فليكس عشان يترتبوا في النص */
.spec-categories {
    display: flex;
    flex-wrap: wrap; /* يخليهم ينزلوا تحت لو في موبايل */
    justify-content: center; /* في النص */
    gap: 10px; /* مسافة بينهم */
    margin-bottom: 20px;
}

/* زرار الكاتيجوري */
/* الأب اللي فيه الكاتيجوري */
.specs-categories {
    display: flex;
    justify-content: center; /* يحطهم في النص أفقياً */
    align-items: center; /* يحطهم في النص عمودياً */
    flex-wrap: wrap; /* يخليهم يلتفوا لو الشاشة صغيرة */
    gap: 10px; /* مسافة بين الأزرار */
    margin-bottom: 20px; /* مسافة تحتهم */
}

/* زرار الكاتيجوري */
.spec-category {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(162, 155, 254, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

    /* Hover */
    .spec-category:hover {
        background: linear-gradient(135deg, #6c5ce7, #8c7ae6);
        transform: translateY(-4px) scale(1.05);
    }

    /* Active */
    .spec-category.active {
        background: linear-gradient(135deg, #6c5ce7, #6c5ce7);
        transform: scale(1.03);
    }

@media (max-width: 768px) {
    .spec-category {
        width: 100%; /* ياخد عرض الشاشة كله */
        max-width: 100%; /* يلغي أي فراغ */
        margin: 2px 0; /* مسافة بسيطة جدًا بين الأزرار */
        font-size: 1.1rem; /* خط أوضح للموبايل */
        text-align: center; /* يوسّط النص */
        display: block;
    }
}



.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.spec-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, var(--card-bg), #f0f0f0);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

    .spec-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

        .spec-card:hover .spec-img {
            transform: scale(1.05);
        }

[data-theme="dark"] .spec-card {
    background: linear-gradient(135deg, var(--card-bg), #2a2a2a);
}
.discount {
    color: #00ff80;
    font-weight: bold;
    margin-left: 5px;
}
.spec-title {
    font-size: 1.5rem; /* كان 1.2rem */
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold; /* يخليه أوضح */
    text-align: center; /* يخليه في النص لو تحب */
}

.spec-details {
    margin-bottom: 15px;
}

.spec-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.spec-rating {
    color: #ffc107;
    font-size: 1rem;
}

.spec-price {
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0;
}

/* شاشة */
.spec-detail i.monitor {
    color: #06b6d4;
}
/* سماوي */

/* بروسيسور */
.spec-detail i.processor {
    color: #1e90ff;
}
/* أزرق */

/* رام */
.spec-detail i.ram {
    color: #a020f0;
}
/* بنفسجي */

/* GPU icon */
.spec-detail img.graphics-icon {
    filter: invert(48%) sepia(92%) saturate(367%) hue-rotate(92deg) brightness(92%) contrast(91%);
}

/* ماوس */
.spec-detail i.mouse {
    color: #f97316;
}
/* برتقالي */

/* كيبورد */
.spec-detail i.keyboard {
    color: #eab308;
}
/* أصفر */

/* هيدسيت */
.spec-detail i.headset {
    color: #ec4899;
}
/* بينك */

/* كرسي */
.spec-detail i.chair {
    color: #ef4444;
}
/* أحمر */
/* كارت شاشة */
.spec-detail .graphics {
    color: #22c55e !important;
}
/* أيقونة كارت الشاشة (Base64 SVG) */
.spec-detail img.graphics-icon {
    width: 16px; /* العرض */
    height: 16px; /* الطول */
    vertical-align: middle;
}

.spec-price ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-price {
    text-align: center;
}

.hourly-rate {
    font-weight: bold;
    font-size: 1.3rem;
    color: #6c5ce7; /* أصفر ذهبي ثابت */
}

/* Responsive for Mobile */
@media screen and (max-width: 768px) {
    .specs-container {
        padding: 20px;
    }

    .spec-category {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .spec-title {
        font-size: 1.5rem; /* كان 1.2rem */
    }

    .spec-detail {
        font-size: 0.85rem;
    }

    .spec-price {
        font-size: 0.95rem;
    }
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .location-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

.location-img {
    height: 200px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-img {
    transform: scale(1.05);
}

.location-info {
    padding: 20px;
}

.location-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.location-card:hover .location-title {
    color: var(--primary-color);
}

.location-desc {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Forms */
.form-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: var(--card-bg);
        color: var(--text-color);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

/* Gallery */
/* تحسينات معرض الصور */
.branch-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.branch-btn {
    background: linear-gradient(135deg, #a29bfe, #b388ff);
    color: #f5f5f5;
    border: none;
    padding: 12px 28px;
    border-radius: 50px; /* 🔥 كيرف كامل */
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(162, 155, 254, 0.3);
    transition: all 0.3s ease;
}

    .branch-btn:hover {
        background: linear-gradient(135deg, #6c5ce7, #8c7ae6);
        color: #fff;
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
    }

    .branch-btn.active {
        background: linear-gradient(135deg, #6c5ce7, #6c5ce7);
        color: #fff;
        box-shadow: 0 6px 15px rgba(108, 92, 231, 0.5);
        transform: scale(1.03);
    }

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 10000px;
    margin: 0 auto;
    padding: 5px;
    margin-top: 10px;
    height: auto; /* ✅ ارتفاع ديناميكي */
}
/* Media Query للموبايل */
@media (max-width: 768px) {
    .branch-selector {
        flex-direction: column; /* الأعمدة تحت بعض */
        align-items: center; /* في النص */
        gap: 10px; /* مسافة بين الأزرار */
    }

    .branch-btn {
        width: 90%; /* تقريباً عرض الشاشة */
        max-width: 300px; /* حد أقصى للعرض */
        font-size: 1.1rem; /* تكبير شويه الخط */
        padding: 12px 0; /* padding رأسي مناسب */
    }

    .gallery-slider {
        width: 95%; /* تقريباً عرض الشاشة */
        padding: 5px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* ✅ عشان السلايد المخفي مينفعش يتكلك عليه */
}

    .slide.active {
        opacity: 1;
        position: relative; /* ✅ تخلي الصورة النشطة تاخد ارتفاعها الطبيعي */
        pointer-events: auto;
    }

    .slide img {
        display: block;
        width: 100%;
        height: auto; /* ✅ يخلي ارتفاع الصورة طبيعي */
        object-fit: contain;
        cursor: pointer;
        transition: transform 0.3s;
    }

        .slide img:hover {
            transform: scale(1.03);
        }


.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

    .slider-controls button {
        background: linear-gradient(135deg, #6c5ce7, #9c6bff);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s;
    }

        .slider-controls button:hover {
            background: linear-gradient(135deg, #9c6bff, #6c5ce7);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(156, 107, 255, 0.4);
        }

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

    .modal-content img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

.close-modal:hover {
    color: #9c6bff;
}

/* ====== دعم جميع شاشات الموبايل ====== */
@media screen and (max-width: 1024px) {
    .gallery-slider {
        height: 400px;
    }

    .branch-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .slider-controls button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-slider {
        height: 300px;
    }

    .branch-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .slider-controls button {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-slider {
        height: 200px;
    }

    .branch-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .slider-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .close-modal {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
}


.footer-item h4 {
    margin-bottom: 5px;
    color: white;
    font-size: 19px;
}

.footer-item p {
    margin: 0 0 10px;
    font-size: 16px;
}

.footer-item hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

    .modal-content img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: var(--footer-text);
        text-decoration: none;
        opacity: 0.8;
        transition: var(--transition);
        display: flex;
        align-items: center;
        cursor: pointer;
    }

        .footer-links a:hover {
            opacity: 1;
            padding-right: 5px;
        }

    .footer-links i {
        margin: 0 10px;
    }

footer p {
    color: white; /* اللون أبيض */
    font-size: 15px; /* حجم الخط أصغر */
    margin: 10px 0 0; /* مسافة بسيطة من فوق وتحت */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        color: white;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    #copyright-text {
        font-size: 0.7rem; /* أصغر للموبايل */
    }
    .social-links {
        justify-content: center;
    }
}
/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

    .notification.show {
        transform: translateY(0);
        opacity: 1;
    }

/* تصميم حاوية البحث */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    padding: 0 15px;
}

.search-box {
    position: relative;
    width: 100%;
}

/* تصميم شريط البحث */
.search-bar {
    width: 100%;
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    color: #fff; /* لون النص أبيض */
    background-color: var(--card-bg);
    border: 2px solid #2faa49;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(47, 170, 73, 0.2);
    transition: all 0.3s ease;
    outline: none;
}

    .search-bar:focus {
        border-color: #89c64c;
        box-shadow: 0 4px 20px rgba(137, 198, 76, 0.3);
        background-color: var(--card-bg);
    }

    .search-bar,
    .search-bar::placeholder {
        background-color: var(--card-bg);
        color: #fff; /* لون النص */
    }

        .search-bar::placeholder {
            color: #aaa; /* لون placeholder */
        }

/* أيقونة البحث */
.search-icon {
    position: absolute;
    right: 100px; /* تقليل المسافة من اليمين لتحريكها شمال */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.3s ease;
}


.search-bar:focus + .search-icon {
    stroke: #2faa49;
}

.clear-search {
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    opacity: 0; /* مخفي بشكل افتراضي */
    transition: all 0.3s ease;
    padding: 0 5px;
}


.search-bar:not(:placeholder-shown) + .search-icon + .clear-search {
    opacity: 1;
}

.clear-search:hover {
    color: #ff6b6b;
    transform: translateY(-50%) scale(1.2);
}
/* أيقونة البحث */
html[dir="ltr"] .search-icon {
    right: 100px; /* حسب المكان اللي حددته للـ LTR */
    left: auto;
}

html[dir="rtl"] .search-icon {
    left: 100px; /* نفس المسافة لكن من الشمال */
    right: auto;
}

/* زر مسح البحث */
html[dir="ltr"] .clear-search {
    right: 180px; /* حسب المكان اللي حددته للـ LTR */
    left: auto;
}

html[dir="rtl"] .clear-search {
    left: 180px; /* نفس المسافة لكن من الشمال */
    right: auto;
}

/* تفاعلات التركيز */
.search-bar:focus + .search-icon {
    stroke: #2faa49;
}

.search-bar:focus ~ .clear-search {
    opacity: 1;
}

/* تأثيرات للجوال */
@media (max-width: 768px) {
    .search-bar {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }

/*    .search-icon {
        right: 25px;
        width: 18px;
        height: 18px;
    }

    .clear-search {
        left: 200px;
        font-size: 20px;
    }*/
    html[dir="ltr"] .search-icon {
        right: 25px;
        left: auto;
        width: 18px;
        height: 18px;
    }

    html[dir="rtl"] .search-icon {
        left: 25px;
        right: auto;
        width: 18px;
        height: 18px;
    }

    /* زر مسح البحث */
    html[dir="ltr"] .clear-search {
        right: 120px;
        left: auto;
        font-size: 20px;
    }

    html[dir="rtl"] .clear-search {
        left: 120px;
        right: auto;
        font-size: 20px;
    }
}

/* شبكة الألعاب */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--text-color);
}

    .game-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

.game-card:hover .game-img {
            transform: scale(1.05);
        }

.game-img {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-desc {
    color: #FFD700; /* لون أصفر */
    margin-bottom: 15px;
    opacity: 0.8;
    flex-grow: 1;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.game-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-align: center;
}

.game-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

/* نسخة الموبايل */
/*@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));*/ /* عمودين أو حسب العرض */
        /*gap: 15px;*/ /* فراغ أصغر */
    /*}

    .game-card {
        height: auto;*/ /* السماح للكرت بالارتفاع حسب المحتوى */
        /*display: flex;
        flex-direction: column;
    }

    .game-img {
        width: 100%;
        height: 100%;*/ /* ارتفاع ثابت لكل الصور */
        /*overflow: hidden;
    }

        .game-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;*/ /* الصورة تملأ الكرت بدون تشويه */
            /*display: block;
            transition: transform 0.3s ease;
        }
}*/


@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }

    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

        .nav-links li {
            margin: 5px 0;
            width: 100%;
            text-align: center;
        }

    .main-nav {
        margin-top: 160px;
    }

    .gallery-slider {
        position: relative;
        width: 100%;
        max-width: 800px; /* عرض السلايدر */
        margin: auto;
        overflow: hidden;
    }

    .slide {
        display: none; /* اخفي كل الصور */
        text-align: center;
    }

        .slide img {
            width: 100%;
            height: auto;
            border-radius: 10px;
        }

        .slide.active {
            display: block; /* بس الصورة اللي فيها active تبان */
        }

    .slide-caption {
        margin-top: 10px;
        color: #fff;
        font-size: 18px;
    }

    /**/
  /*  :root {
        --primary-color: #6c5ce7;
        --secondary-color: #2575fc;
        --accent-color: #ff416c;
        --dark-color: #1a1a2e;
        --light-color: #f8f9fa;
        --success-color: #2ecc71;
        --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        --transition: all 0.3s ease;
    }*/

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
        background-color: var(--dark-color);
        color: var(--light-color);
        line-height: 1.6;
        overflow-x: hidden;
        padding-top: 140px; /* تعويض للقائمة الثابتة */
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    /* Header Styles */
/*    header {
        background: rgba(26, 26, 46, 0.9);
        backdrop-filter: blur(10px);
        color: white;
        padding: 15px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        transition: var(--transition);
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-nav {
        display: flex;
        list-style: none;
        gap: 20px;
    }

        .top-nav a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
            font-weight: 100;
            position: relative;
        }

            .top-nav a:after {
                content: '';
                position: absolute;
                width: 0;
                height: 2px;
                bottom: -5px;
                left: 0;
                background-color: var(--secondary-color);
                transition: var(--transition);
            }

            .top-nav a:hover {
                color: var(--secondary-color);
            }

                .top-nav a:hover:after {
                    width: 100%;
                }

    .controls {
        display: flex;
        gap: 10px;
    }*/

   /* .theme-toggle, .lang-toggle {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        transition: var(--transition);
    }

        .theme-toggle:hover, .lang-toggle:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }*/
}

/*@media (max-width: 768px) {
    .header-content 
    {
        flex-direction: column;
        gap: 15px;
    }
}
*/
.features {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .section-title p {
        color: var(--text-color);
        max-width: 600px;
        margin: 0 auto;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .feature-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    }

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--primary);
}

/* قائمة الموبايل - مخفية على الكمبيوتر */
.mobile-nav-toggle {
    display: none;
    background: var(--primary-color); /* يعتمد على الثيم */
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 15px;
    background: var(--bg-color); /* حسب الثيم */
    border-radius: 16px;
    padding: 15px;
    width: 260px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .mobile-nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .mobile-nav-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        margin: 10px 0;
        text-align: right;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

        .mobile-nav-menu li:last-child {
            border-bottom: none;
        }

    .mobile-nav-menu a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        padding: 12px 15px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .mobile-nav-menu a:hover {
            background: linear-gradient(45deg, #2575FC, #6A11CB);
            color: white;
            transform: translateX(-5px);
        }

    .mobile-nav-menu i {
        margin-right: 10px;
        font-size: 1.1rem;
        background: linear-gradient(45deg, #2575FC, #6A11CB);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* التكيف مع الشاشات المختلفة */
@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }

    body {
        padding-top: 180px;
    }
}

.mobile-nav-menu .controls {
    display: flex; /* صف أفقي */
    gap: 5px; /* مسافة بينهم */
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0; /* مسافة فوق وتحت */
}

/* استعلام الوسائط للشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    /* إخفاء قائمة الكمبيوتر */
    .main-nav {
        display: none;
    }

    /* إظهار زر قائمة الموبايل */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        top: 10px;
    }

    .top-nav {
        display: none;
    }

    /* إظهار قائمة الموبايل عند تفعيلها */
    .mobile-nav-menu {
        display: block;
    }

    body {
        padding-top: 120px;
    }

    /* ✅ اللوجو في النص بالضبط */
    .header-content {
        position: relative; /* عشان نتحكم في مكان الكنترولز */
        justify-content: center;
        align-items: center;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

        .logo img {
            display: block;
            margin: 0 auto;
        }

    /* ✅ نخلي الكنترولز تفضل فوق على اليمين */

}

/* 📱 الموبايل */
@media (max-width: 768px) {
    .controls {
        position: absolute;
        top: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        transition: all 0.3s ease;
    }

    /* 🔹 الإنجليزية (يسار → يمين) */
    html[dir="ltr"] .controls {
        right: clamp(5px, 4vw, 5px);
        left: auto;
        flex-direction: row;
    }

    /* 🔹 العربية (يمين → يسار) */
    html[dir="rtl"] .controls {
        left: clamp(-5px, 0vw, 5px); /* أقرب للنص */
        right: auto;
        flex-direction: row-reverse;
    }

    /* إعادة ترتيب الأزرار في العربية */
    html[dir="rtl"] .lang-toggle {
        order: 1; /* اللغة أولًا */
        margin-left: 0;
        margin-right: 15px;
    }

    html[dir="rtl"] .theme-toggle {
        order: 2; /* الثيم ثاني */
        margin-left: 0;
        margin-right: 0;
    }

    /* المسافات الافتراضية للزرارار */
    .theme-toggle,
    .lang-toggle {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-color);
        font-size: 1.2rem;
        margin-left: 15px;
        margin-right: 0;
        transition: all 0.3s ease;
    }
}



@media (max-width: 400px) {
    .mobile-nav-menu {
        width: 250px;
        right: 15px;
    }

    .mobile-nav-toggle {
        right: 15px;
    }
}

/* أنيميشن للزر */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-nav-toggle {
    animation: pulse 2s infinite;
}

/* محتوى الصفحة للتجربة */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: var(--dark-color);
    margin-bottom: 30px;
}

p {
    line-height: 1.8;
    color: #444;
    font-size: 18px;
}
.bar {
    height: 12px;
    background: #e0e0e0; /* خلفية فاتحة تظهر في لايت ثيم */
    border: 1px solid #aaa; /* حد واضح */
    border-radius: 10px;
    overflow: hidden;
}

    .bar > span {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transition: width .8s ease;
        border-radius: 10px;
    }


/* ======================= */
/*       ABOUT AREA        */
/* ======================= */
.about-area {
    color: var(--text-color);
    padding: 1rem 0; /* قلل من 5rem إلى 3rem */
    position: relative;
    overflow: hidden;
}


    .about-area::before {
        content: "";
        position: absolute;
        width: 150%;
        height: 150%;
        top: -25%;
        left: -25%;
        transform: rotate(45deg);
        animation: rotateBG 60s linear infinite;
        z-index: 0;
    }

@keyframes rotateBG {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.about-area .container {
    position: relative;
    z-index: 1;
}

.about-area h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #6c5ce7;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

    .about-area h2:hover {
        transform: scale(1.05);
    }

.about-area h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #6c5ce7;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.about-area p,
.about-area li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.about-area li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

    .about-area li::before {
        content: "✔";
        position: absolute;
        left: 0;
        color: #6c5ce7;
        font-weight: bold;
        animation: bounce 2s infinite;
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .about-area h2 {
        font-size: 2.5rem;
    }

    .about-area h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .about-area {
        padding: 3rem 1rem;
    }

        .about-area h2 {
            font-size: 2rem;
        }

        .about-area h3 {
            font-size: 1.5rem;
        }

        .about-area p,
        .about-area li {
            font-size: 1rem;
        }
}

@media (max-width: 480px) {
    .about-area h2 {
        font-size: 1.7rem;
    }

    .about-area h3 {
        font-size: 1.3rem;
    }

    .about-area p,
    .about-area li {
        font-size: 0.95rem;
    }
}

/* إصلاح مشكلة الثيم في الموبايل */
@media (max-width: 576px) {
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .mobile-nav-menu {
        background-color: var(--card-bg);
    }

        .mobile-nav-menu a {
            color: var(--text-color);
        }

            /* إصلاح ألوان النص في القائمة المتنقلة */
            .mobile-nav-menu a:hover {
                color: white;
            }
}
.section-title {
    margin-top: 40px; /* مسافة من فوق */
    text-align: center; /* يخلي العنوان في النص */
}

/* للموبايل أقل من 768px */
@media (max-width: 768px) {
    .section-title {
        margin-top: 70px; /* زود المسافة أكتر للموبايل */
        font-size: 1.5rem; /* صغر الخط شوية علشان يبقى مناسب */
    }
}
/* الجدول الأساسي - Dark Theme */
.wrap .card {
    margin-top: 15px; /* أقل من قبل */
    padding: 12px; /* تصغير البادينج */
    border-radius: 8px;
    background-color: var(--card-bg, #1e1e2f);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2); /* خفيف */
   
    color: var(--primary-color);
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    text-align: center;
    background-color: var(--card-bg, #1e1e2f);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 10px rgba(0,0,0,0.3));
    font-size: 13px; /* أصغر شوية */
    color: var(--text-color);
}

  

    /* هيدر */
    .rating-table thead {
        background: #6c5ce7; /* موف */
        color: #fff;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* hover effect */
    .rating-table tbody tr:hover {
        background: rgba(106,13,173,0.08);
    }

/* 📱 موبايل */
@media (max-width: 768px) {
    .rating-table thead {
        display: none;
    }

    .rating-table,
    .rating-table tbody,
    .rating-table tr,
    .rating-table td {
        display: block;
        width: 100%;
    }

        .rating-table tr {
            margin-bottom: 12px;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px 10px;
            font-size: 12px;
            text-align: left;
            background-color: var(--card-bg, #fff);
        }

        .rating-table td {
            text-align: right;
            padding: 4px 0;
            position: relative;
            padding-left: 50%;
            border: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            .rating-table td:last-child {
                border-bottom: none;
            }

            .rating-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                font-weight: bold;
                color: #6c5ce7;
                font-size: 11px;
            }
}
.pagination button {
    background: linear-gradient(135deg, #6a0dad, #9b30ff);
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 5px;
    transition: 0.3s ease;
    font-size: 12px;
}
/* أزرار التنقل */
.pagination button {
    padding: 5px 10px;
    font-size: 12px;
}

.brand-name {
    color: #a29bfe; /* غير اللون حسب ذوقك */
    font-weight: bold;
}
/* ==================== الجدول ==================== */
.registrations {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent; /* شفاف حسب الخلفية */
}

.registrations th,
.registrations td {
    padding: 14px 12px;
    text-align: center;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.registrations th {
    font-weight: 600;
    font-size: 16px;
    background: var(--primary-color);
    color: #fff;
}

.registrations tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.registrations tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.game-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .game-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    }

/* ==================== الموبايل ==================== */
@media (max-width: 768px) {
    .registrations, .registrations thead, .registrations tbody,
    .registrations th, .registrations td, .registrations tr {
        display: block;
        width: 100%;
    }

        .registrations thead {
            display: none;
        }

        .registrations tr {
            margin-bottom: 12px;
            padding: 12px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            background: var(--card-bg);
        }

        .registrations td {
            display: flex;
            justify-content: space-between;
            padding: 8px 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

            .registrations td:last-child {
                border-bottom: none;
            }

            .registrations td:before {
                content: attr(data-label);
                font-weight: bold;
                color: var(--accent-color);
                margin-right: 10px;
            }
}

/* ==================== الفورم ==================== */
.tournament-register {
    max-width: 900px;
    margin: auto;
    padding: 25px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    margin-top: 40px;


}

    .tournament-register h2 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--title-color);
        font-size: 28px;
        font-weight: 700;
    }

.register-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: transparent;
}

    .register-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text-color);
    }

    .register-form select,
    .register-form input {
        width: 100%;
        padding: 12px;
        margin-bottom: 18px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--border-radius);
        background: transparent;
        color: var(--text-color);
        font-size: 16px;
    }

        .register-form select:focus,
        .register-form input:focus {
            border-color: var(--primary-color);
            outline: none;
        }
[data-theme="dark"] select option {
    background-color: #1e1e1e;
    color: var(--text-color);
}
.register-form h2:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.register-form h2:hover {
    background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
    .tournament-register {
        margin-top: 30px; /* نزّل الجدول أقل */
        padding: 12px;
        transform: scale(0.9); /* يصغر الجدول بنسبة 90% */
        transform-origin: top center; /* يفضل ثابت من فوق */
    }

        .tournament-register .container h2 {
            font-size: 0.85rem; /* العنوان أصغر */
        }

        .tournament-register table {
            font-size: 0.75rem; /* محتوى الجدول أصغر */
        }

            .tournament-register table th,
            .tournament-register table td {
                padding: 6px; /* يقلل الفراغات داخل الجدول */
            }
}


/* ==================== حاوية اللاعبين ==================== */
#playersContainer {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    #playersContainer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    #playersContainer {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ==================== البحث ==================== */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 25px;
}

    .search-box input {
        width: 100%;
        max-width: 400px;
        padding: 12px 18px;
        font-size: 16px;
        border: 2px solid #444;
        border-radius: 50px;
        color: var(--text-color);
        background-color: var(--card-bg);
        outline: none;
        transition: all 0.3s ease;
    }

        .search-box input::placeholder {
            color: var(--muted);
            font-size: 14px;
        }

        .search-box input:focus {
            border-color: var(--primary-color);
        }

/* ==================== Pagination ==================== */
#pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

    #pagination button {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 8px 12px;
        margin: 0 4px;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

        #pagination button:hover:not(:disabled) {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }

        #pagination button:disabled {
            opacity: 0.6;
            cursor: default;
        }



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 20px;
    border-radius: var(--radius);
    max-width: 400px;
    text-align: center;
    color: var(--text-color);
    box-shadow: var(--shadow);
}

    .modal-content input {
        width: 90%;
        padding: 10px;
        margin: 15px 0;
        border-radius: var(--border-radius);
        border: 1px solid rgba(0,0,0,0.2);
        background: var(--card-bg);
        color: var(--text-color);
    }

    .modal-content .close {
        float: right;
        font-size: 24px;
        cursor: pointer;
    }
/* 📱 تصميم الموبايل */
@media (max-width: 768px) {
    .wheel-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 20px;
    }

    .number-panel {
        width: 95%; /* تاخد عرض الموبايل */
        max-height: none; /* تلغي حد الطول عشان تكون مرنة */
    }

    .wheel {
        width: 80vw;
        height: 80vw;
    }

    .wheel-card {
        padding: 20px;
    }

    .title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        text-align: center;
    }
}
.privacy-area {
    color: var(--text-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    .privacy-area::before {
        content: "";
        position: absolute;
        width: 150%;
        height: 150%;
        top: -25%;
        left: -25%;
        transform: rotate(45deg);
        animation: rotateBG 60s linear infinite;
        z-index: 0;
       
    }

@keyframes rotateBG {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.privacy-area .container {
    position: relative;
    z-index: 1;
}

.privacy-area h1,
.privacy-area h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #6c5ce7;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  
}

.privacy-area h1 {
    font-size: 3rem;
}

.privacy-area h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

    .privacy-area h1:hover,
    .privacy-area h2:hover {
        transform: scale(1.05);
    }

.privacy-area p,
.privacy-area li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-align: justify;
}

.privacy-area ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.privacy-area li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

    .privacy-area li::before {
        content: "✔";
        position: absolute;
        left: 0;
        color: #6c5ce7;
        font-weight: bold;
        animation: bounce 2s infinite;
    }



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}
.privacy-area p,
.privacy-area li {
    font-size: 1rem;
    line-height: 1.6; /* مسافة طبيعية للقراءة */
    margin-bottom: 0.8rem; /* نفس الفراغ لكل العناصر */
    text-align: justify;
}

.privacy-area ul {
    margin: 0.8rem 0 0.8rem 1.2rem; /* يظبط الليستة */
    padding: 0;
}

.privacy-area li {
    position: relative;
    padding-left: 1.2rem;
}

    .privacy-area li::before {
        content: "✔";
        position: absolute;
        left: 0;
        color: #6c5ce7;
        font-weight: bold;
        animation: bounce 2s infinite;
        line-height: 1; /* يمنع الأيقونة من تكبير السطر */
    }

/* موبايل */
@media (max-width: 768px) {
    .privacy-area p,
    .privacy-area li {
        font-size: 0.95rem; /* أصغر سنة للموبايل */
        line-height: 1.5; /* يقلل المسافة بين السطور */
        margin-bottom: 0.6rem;
    }

    .privacy-area h1 {
        font-size: 2rem;
    }

    .privacy-area h2 {
        font-size: 1.4rem;
    }
}

/* يطبق فقط على الموبايل */
@media (max-width: 768px) {
    /* لو الموقع عربي (rtl) */
    [dir="rtl"] .mobile-nav-toggle {
        right: 15px;
        left: auto;
    }

    [dir="rtl"] .mobile-nav-menu {
        right: 15px;
        left: auto;
        text-align: right;
    }

        [dir="rtl"] .mobile-nav-menu li {
            text-align: right;
        }

        [dir="rtl"] .mobile-nav-menu a {
            justify-content: flex-end; /* النص والإيقونة ييجوا يمين */
        }

    /* لو الموقع إنجليزي (ltr) */
    [dir="ltr"] .mobile-nav-toggle {
        left: 15px;
        right: auto;
    }

    [dir="ltr"] .mobile-nav-menu {
        left: 15px;
        right: auto;
        text-align: left;
    }

        [dir="ltr"] .mobile-nav-menu li {
            text-align: left;
        }

        [dir="ltr"] .mobile-nav-menu a {
            justify-content: flex-start; /* النص والإيقونة ييجوا شمال */
        }
}
/* لو عندك بادينغ كبير دايمًا، خففه على الموبايل */
@media (max-width: 768px) {
    /* تأكد إن القائمة مخفية */
    .main-nav, .top-nav {
        display: none !important;
    }

    /* قلّل المساحة اللي كانت محفوظة للهيدر/القائمة */
    body {
        padding-top: 60px; /* جرب 70 أو 60 أو 56 حسب الارتفاع اللي عايزه */
    }

    /* اختياري: تخفيف الـ header نفسه على الموبايل */
    header {
        padding: 8px 0;
    }
}

/* يشيل أي فراغ زائد من الأعلى لكل الصفحات */
body, html {
    margin: 0;
    padding: 0;
}

/* يطبق على كل الـ sections */
section {
    padding-top: 1rem; /* قلل الفراغ العلوي */
    padding-bottom: 2rem; /* للفضاء تحت */
}

    /* يقلل أي margin افتراضي للعناوين داخل الـ sections */
    section h1,
    section h2,
    section h3,
    section h4,
    section h5,
    section h6 {
        margin-top: 0;
        margin-bottom: 1rem; /* ممكن تعدل حسب الحاجة */
    }
.about-area {
    color: var(--text-color);
    padding: 5rem 0; /* قلل من 5rem إلى 3rem */
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .spec-card {
        font-size: 0.75rem;
        padding: 8px;
    }

        .spec-card .spec-detail span {
            font-size: 0.7rem;
        }

        .spec-card .spec-price {
            font-size: 0.75rem;
        }

        .spec-card .game-btn {
            font-size: 0.8rem;
            padding: 6px 10px;
        }
}
/*@media (max-width: 1024px) {
    #ratingsTable tr {
        display: flex;
        flex-wrap: wrap;
    }

    #ratingsTable td:nth-child(11),
    #ratingsTable td:nth-child(12) {
        flex: 1 1 100%;*/ /* ياخد السطر كله */
        /*white-space: normal;
        word-break: break-word;
        min-width: 100%;
        padding: 8px 4px;
    }
}*/
/*@media (max-width: 1024px) {
    #ratingsTable td:nth-child(11),
    #ratingsTable td:nth-child(12) {
        display: inline-block;*/ /* يسمح باللف الطبيعي */
        /*white-space: normal !important;*/ /* لف النص */
        /*word-break: break-word !important;*/ /* يكسر الكلمة لو طويلة */
        /*grid-column: span 2 !important;
        width: 100% !important;*/ /* ياخد كامل العرض */
        /*overflow: visible;*/ /* يظهر كل النص */
        /*text-overflow: unset;*/ /* نشيل النقاط ... */
        /*line-height: 1.5;*/ /* مسافة بين السطور */
    /*}
}*/

