/* CSS الرئيسي للموقع */

/* إعادة تعيين الأنماط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* المتغيرات العامة */
:root {
    /* Core palette */
    --primary-color: #6c5ce7;
    --primary-color-strong: #5a4fd3;
    --secondary-color: #45aaf2;
    --secondary-color-strong: #1b9af0;
    --accent-color: #ff6b6b;
    --accent-color-strong: #ff4757;
    --support-color: #f8c291;
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --error-color: #ff4757;

    /* Typography */
    --font-family-primary: 'Cairo', 'Hacen Casablanca', sans-serif;
    --font-family-display: 'Cairo', 'Montserrat', sans-serif;
    --font-size-base: clamp(15px, 1.15vw, 17px);
    --heading-weight: 800;
    --body-weight: 500;

    /* Surfaces */
    --text-color: #f8f9ff;
    --text-muted: rgba(248, 249, 255, 0.7);
    --bg-color: #06070e;
    --bg-secondary: #0f1121;
    --surface-glass: rgba(14, 18, 33, 0.72);
    --surface-glass-strong: rgba(19, 23, 38, 0.92);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-strong: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.55);
    --border-radius: 18px;
    --border-radius-lg: 28px;

    /* FX */
    --transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --glow-primary: 0 0 25px rgba(108, 92, 231, 0.55);
    --glow-accent: 0 0 30px rgba(255, 107, 107, 0.5);
    --glass-blur: saturate(180%) blur(18px);

    /* Spacing helpers */
    --space-xs: 0.35rem;
    --space-sm: 0.65rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
}

:root[data-theme='light'],
.light-theme {
    --text-color: #1b1f2f;
    --text-muted: rgba(27, 31, 47, 0.65);
    --bg-color: #f5f7ff;
    --bg-secondary: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-glass-strong: rgba(255, 255, 255, 0.94);
    --border-color: rgba(5, 10, 27, 0.08);
    --border-color-strong: rgba(5, 10, 27, 0.16);
    --shadow-soft: 0 12px 35px rgba(27, 31, 47, 0.12);
    --shadow-strong: 0 30px 65px rgba(27, 31, 47, 0.22);
    --glow-primary: 0 0 25px rgba(90, 79, 211, 0.35);
    --glow-accent: 0 0 28px rgba(255, 107, 107, 0.35);
}

html {
    font-size: var(--font-size-base);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    /* إصلاح iOS Safari - منع الشاشة البيضاء عند فتح الكيبورد */
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
}

/* الخطوط */
body {
    font-family: var(--font-family-primary);
    font-weight: var(--body-weight);
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    /* إصلاح iOS Safari - استخدام CSS variable للارتفاع */
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
    position: relative;
    overflow-x: hidden;
    /* إصلاح iOS Safari - التأكد من أن background موجود دائماً */
    background-attachment: fixed;
    /* إصلاح iOS Safari - منع الشاشة البيضاء */
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(69, 170, 242, 0.18), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(108, 92, 231, 0.25), transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(255, 107, 107, 0.16), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(46, 213, 115, 0.12), transparent 60%),
        linear-gradient(135deg, rgba(6, 7, 14, 0.92), rgba(6, 11, 24, 0.96));
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-display);
    font-weight: var(--heading-weight);
    color: var(--text-color);
    letter-spacing: 0.02em;
}

p {
    color: var(--text-muted);
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted) !important;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.35rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-muted);
}

.glass-panel {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.glow-border {
    position: relative;
    border-radius: inherit;
}

.glow-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.8), rgba(69, 170, 242, 0.8), rgba(255, 107, 107, 0.85));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    backdrop-filter: blur(8px);
}

/* تصغير الموقع على الموبايل */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* تقليل المسافات العامة */
    * {
        --space-xs: 0.2rem;
        --space-sm: 0.4rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 1.25rem;
        --space-2xl: 1.75rem;
        --space-3xl: 2.5rem;
    }

    /* تقليل حجم العناوين */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    /* تقليل المسافات في الحاويات */
    .container,
    .epic-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* تقليل المسافات في الصفحات */
    .epic-page {
        padding-inline: clamp(12px, 3vw, 20px) !important;
        padding-bottom: clamp(32px, 5vw, 64px) !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    body {
        font-size: 13px;
        line-height: 1.4;
    }

    /* تقليل أكثر للمسافات */
    * {
        --space-xs: 0.15rem;
        --space-sm: 0.3rem;
        --space-md: 0.6rem;
        --space-lg: 0.85rem;
        --space-xl: 1rem;
        --space-2xl: 1.5rem;
        --space-3xl: 2rem;
    }

    /* تقليل أكثر للعناوين */
    h1 {
        font-size: 1.35rem !important;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    h3 {
        font-size: 1.05rem !important;
    }

    h4 {
        font-size: 0.95rem !important;
    }

    .container,
    .epic-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .epic-page {
        padding-inline: clamp(10px, 2.5vw, 16px) !important;
        padding-bottom: clamp(24px, 4vw, 48px) !important;
    }
}

/* تطبيق الألوان حسب الثيم */
body,
.dark-theme body,
.light-theme body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.light-theme .epic-page,
.light-theme main,
.dark-theme .epic-page,
.dark-theme main {
    background: transparent;
}

/* استثناءات للألوان المحددة */
.price,
.game-price,
.service-price,
.card-price {
    color: var(--accent-color);
}

.light-theme .price,
.light-theme .game-price,
.light-theme .service-price,
.light-theme .card-price {
    color: var(--accent-color);
}

.dark-theme .price,
.dark-theme .game-price,
.dark-theme .service-price,
.dark-theme .card-price {
    color: var(--primary-color);
}

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

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

.btn-outline:hover {
    color: var(--text-color);
}

/* تطبيق الألوان على عناصر محددة */
.footer h3,
.footer p,
.footer a,
.footer li,
.footer span,
.footer-content h3,
.footer-content p,
.footer-links a,
.service-card h3,
.service-card p,
.service-card a,
.game-card h3,
.game-card p,
.game-card a,
.banner-content h1,
.banner-content p,
.page-title,
.page-description,
.section-title {
    color: var(--text-color);
}

/* تطبيق الألوان على عناصر إضافية */
.services-grid .service-card h3,
.services-grid .service-card p,
.services-grid .service-card a,
.games-grid .game-card h3,
.games-grid .game-card p,
.games-grid .game-card a,
.cards-grid .card h3,
.cards-grid .card p,
.cards-grid .card a,
.footer-section h3,
.footer-section p,
.footer-section a,
.footer-section li {
    color: var(--text-color);
}

/* تطبيق الألوان على جميع العناصر */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
li,
ul,
ol,
label,
small,
strong,
em,
b,
i {
    color: var(--text-color);
}

/* أسعار محمية */
.price-locked {
    color: var(--error-color);
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    display: block;
    margin: 0.5rem 0;
}

.light-theme .price-locked {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--error-color);
}

.dark-theme .price-locked {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--error-color);
}

.price-locked::before {
    content: "🔒 ";
    margin-left: 0.25rem;
}

/* تأثيرات للأسعار المحمية */
.game-card .price-locked,
.service-card .price-locked,
.card .price-locked {
    margin: 0.75rem 0;
    font-size: 0.85em;
}

/* تأثيرات للأزرار المحمية */
.btn-buy:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-buy:disabled:hover {
    background: var(--bg-tertiary);
    transform: none;
}


@media (max-width: 480px) {
    .live-chat-btn {
        inset-inline-end: 0.75rem;
        bottom: 0.5rem;
        width: 52px;
        height: 52px;
    }

    .live-chat-btn i {
        font-size: 1.1rem;
    }

    .live-chat-btn.chat-open {
        bottom: calc(100vh - 90px) !important;
    }
}

/* تطبيق الألوان على عناصر محددة */
.service-title,
.service-description,
.game-title,
.card-title,
.footer-title,
.footer-description,
.footer-link,
.service-link,
.game-link,
.card-link {
    color: var(--text-color);
}

/* الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* الهيدر */
.header {
    background: var(--primary-gradient);
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.light-theme .header {
    background: var(--primary-gradient);
}

.dark-theme .header {
    background: #1a2622;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* التنقل */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* شريط البحث */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem;
    min-width: 300px;
}

.search-input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    flex: 1;
    font-size: 0.9rem;
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* إجراءات الهيدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-selector select,
.language-selector button,
.theme-toggle button,
.user-profile a,
.cart a {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-selector select:hover,
.language-selector button:hover,
.theme-toggle button:hover,
.user-profile a:hover,
.cart a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-count {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* البانر الرئيسي */
.main-banner {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    text-align: center;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* المحتوى الرئيسي */
.main-content {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* قسم الألعاب المميزة */
.featured-section {
    margin-bottom: 4rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.game-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.game-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
}

.game-btn:hover {
    background: var(--secondary-color);
}

/* قسم الخدمات */
.services-section {
    margin-bottom: 4rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
}

.service-link:hover {
    background: var(--secondary-color);
}

/* الفوتر */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: white;
    padding: 3.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--accent-color) 50%,
            var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-about {
    max-width: 350px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-title::before {
    content: '🎮';
    font-size: 1.5rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    border-color: var(--primary-color);
}

.social-link:nth-child(2):hover {
    background: #1da1f2;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.social-link:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.social-link:nth-child(4):hover {
    background: #0088cc;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.social-link:nth-child(5):hover {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-subtitle::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-right: 0.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.9rem;
    width: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links a:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* الاستجابة للهاتف */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    .header {
        padding: 1rem 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .header-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .theme-toggle,
    .currency-toggle {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .main-banner {
        padding: 1.25rem 0;
        text-align: center;
    }

    .banner-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .banner-content p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .banner-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 220px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.05rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .game-card {
        padding: 0.85rem;
    }

    .game-image {
        height: 100px;
    }

    .game-title {
        font-size: 0.8rem;
    }

    .game-price {
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-about {
        max-width: 100%;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        justify-content: center;
        font-size: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-subtitle {
        justify-content: center;
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .footer-links a {
        padding: 0.5rem 0;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.25rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .nav-list {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .main-banner {
        padding: 1.5rem 0;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 0.8rem;
    }

    .services-grid {
        padding: 1.5rem 0;
    }

    .service-card {
        padding: 1rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .game-card {
        padding: 0.8rem;
    }

    .game-image {
        height: 100px;
    }

    .game-title {
        font-size: 0.8rem;
    }

    .game-price {
        font-size: 0.9rem;
    }

    .btn-buy {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* التنبيهات */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-warning {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

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

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

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-color);
}

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

.btn-success:hover {
    background: #00a085;
}

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

.btn-warning:hover {
    background: #f39c12;
}

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

.btn-error:hover {
    background: #d63031;
}

/* النماذج */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* البطاقات */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* الجداول */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-color);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* الاستجابة */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-container {
        min-width: 250px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .games-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .search-container {
        min-width: 200px;
    }
}

/* Live Chat Styles - Added per user request */
.live-chat-btn {
    height: 60px !important;
    border-radius: 50% !important;
    border: 2px solid #25d366;
    background: #000;
    color: #25d366;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    animation: buttonColorSwap 3s infinite alternate;
}

@keyframes buttonColorSwap {
    0% {
        background: #000;
        color: #25d366;
        border-color: #25d366;
    }

    45% {
        background: #000;
        color: #25d366;
        border-color: #25d366;
    }

    55% {
        background: #25d366;
        color: #000;
        border-color: #000;
    }

    100% {
        background: #25d366;
        color: #000;
        border-color: #000;
    }
}

.live-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #fff;
    z-index: 10002;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}