/* ============ HOME PAGE VIP EDITION ============ */
.home-page {
    margin: 0; padding: 0; direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: 
        radial-gradient(1200px 600px at 70% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(900px 500px at 10% 10%, rgba(255, 0, 0, 0.08), transparent 55%),
        linear-gradient(180deg, #050505 0%, #0f0f0f 50%, #050505 100%);
    color: #f8f9fa; min-height: 100vh; overflow-x: hidden;
}

/* شريط الإعلانات الذهبي */
.top-announcement {
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
    color: #000; padding: 12px 0; overflow: hidden; position: relative;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); z-index: 999;
}

.ticker-wrapper {
    display: flex; width: max-content; white-space: nowrap;
    animation: marquee-fix 25s linear infinite;
}

.top-announcement span { padding: 0 40px; font-size: 14px; font-weight: 900; }

@keyframes marquee-fix {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* --- الهيدر --- */
.home-header {
    background:
        radial-gradient(ellipse at top, rgba(255, 0, 0, 0.15), transparent 70%),
        linear-gradient(180deg, #111 0%, #050505 100%);
    padding: 40px 20px 28px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 -4px 15px rgba(255,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.home-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: scanline-header 3s linear infinite;
}

@keyframes scanline-header {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.home-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.home-logo {
    width: 90px; height: 90px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #ff0000;
    border-radius: 24px;
    padding: 8px;
    transition: 0.4s ease;
    animation: logo-pulse-red 2s infinite;
    box-shadow: 0 0 20px rgba(255,0,0,0.4);
}

.home-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.home-brand-text h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(to bottom, #fff 0%, #bbb 50%, #888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

.home-brand-text h1::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shine-ping-pong 6s infinite ease-in-out;
}

.home-brand-text p {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd700;
    margin-top: 6px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    padding: 6px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 8px rgba(255,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

@keyframes shine-ping-pong {
    0% { left: -150%; transform: skewX(-25deg); }
    25% { left: 150%; transform: skewX(-25deg); }
    30% { left: 150%; transform: skewX(25deg); }
    55% { left: -150%; transform: skewX(25deg); }
    100% { left: -150%; transform: skewX(-25deg); }
}

@keyframes logo-pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* عداد الثقة */
.trust-bar {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff0000;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    max-width: 300px;
    margin: 0 auto 30px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    animation: pulse-red-glow 2s infinite;
}

@keyframes pulse-red-glow {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    70% { transform: scale(1.03); box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
}

/* --- قسم الترحيب الـ VIP --- */
.user-welcome-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin: 10px 15px 30px;
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.8s ease-out;
}

.user-info { display: flex; align-items: center; gap: 12px; }
.user-info img { 
    width: 45px; height: 45px; border-radius: 50%; 
    border: 2px solid #ff0000; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}
.user-text span { font-size: 11px; color: #888; display: block; }
.user-text h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 700; }
.user-status { 
    background: linear-gradient(90deg, #d4af37, #f1c40f); 
    color: #000; padding: 5px 12px; border-radius: 10px; 
    font-size: 11px; font-weight: 900; box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   شبكة المنصات - محسّنة
   ============================== */
.section-title {
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 15px;
}

/* PS4 يمتد على العرض كله في الموبايل */
.platforms .platform-card:first-of-type {
    grid-column: 1 / -1;
}

.platform-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 22px 18px;
    text-decoration: none;
    color: #fff;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: block;
}

/* شريط لوني سفلي */
.platform-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 0 0 24px 24px;
    transition: height 0.3s ease;
}

/* PS4 - أزرق */
.ps4-card::before  { background: linear-gradient(90deg, #0070cc, #00aaff); }
.ps4-card:hover    { border-color: #0070cc; box-shadow: 0 0 25px rgba(0,112,204,0.5), 0 15px 35px rgba(0,0,0,0.6); }

/* PS5 - بنفسجي */
.ps5-card::before  { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.ps5-card:hover    { border-color: #7c3aed; box-shadow: 0 0 25px rgba(124,58,237,0.5), 0 15px 35px rgba(0,0,0,0.6); }

/* الاكسسوارات - ذهبي */
.accessory-card::before { background: linear-gradient(90deg, #d4af37, #f1c40f); }
.accessory-card:hover   { border-color: #d4af37; box-shadow: 0 0 25px rgba(212,175,55,0.5), 0 15px 35px rgba(0,0,0,0.6); }

/* نظام الإدارة - أخضر */
.admin-card::before { background: linear-gradient(90deg, #00b359, #00d966); }
.admin-card:hover   { border-color: #00b359; box-shadow: 0 0 25px rgba(0,179,89,0.5), 0 15px 35px rgba(0,0,0,0.6); }

.admin-card .platform-tag { color: #00d966; }

.platform-card:hover { transform: translateY(-6px) scale(1.02); }
.platform-card:hover::before { height: 6px; }

.platform-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.platform-info { flex: 1; }

.platform-tag {
    font-size: 11px;
    font-weight: 900;
    display: block;
    margin-bottom: 6px;
}

.ps4-card .platform-tag      { color: #00aaff; }
.ps5-card .platform-tag       { color: #a855f7; }
.accessory-card .platform-tag { color: #d4af37; }

.platform-info h3 {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 6px;
    color: #fff;
}

.platform-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* سهم الدخول */
.platform-arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 900;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    color: #fff;
}

.platform-card:hover .platform-arrow {
    opacity: 1;
    transform: translateX(0);
}

.platform-icon img {
    width: 80px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6));
    transition: 0.4s ease;
}

.platform-card:hover .platform-icon img {
    transform: scale(1.1) rotate(-5deg);
}

/* موبايل */
@media (max-width: 480px) {
    .platforms { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; }
    .platform-info h3 { font-size: 14px; }
    .platform-icon img { width: 55px; }
    .platform-card { padding: 16px 12px; border-radius: 18px; }
}

/* شاشات كبيرة - الـ 3 في صف واحد */
@media (min-width: 768px) {
    .platforms { grid-template-columns: 1fr 1fr 1fr; }
    .platforms .platform-card:first-of-type { grid-column: auto; }
    .home-wrap { max-width: 900px; margin: 0 auto; }
    .platform-icon img { width: 90px; }
}

/* قسم التواصل الاجتماعي */
.home-footer {
    background: linear-gradient(180deg, transparent, #0a0a0a);
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 30px;
}

.social-item {
    width: 55px; height: 55px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-item.facebook:hover { background: #1877f2; box-shadow: 0 0 20px rgba(24,119,242,0.6); transform: translateY(-8px) rotate(8deg); }
.social-item.youtube:hover  { background: #ff0000; box-shadow: 0 0 20px rgba(255,0,0,0.6); transform: translateY(-8px) rotate(-8deg); }
.social-item.whatsapp:hover { background: #25d366; box-shadow: 0 0 20px rgba(37,211,102,0.6); transform: translateY(-8px) rotate(8deg); }

/* --- نافذة التسجيل --- */
.reg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center; z-index: 10000;
}

.reg-modal {
    background: #111; border: 2px solid #ff0000; padding: 35px 20px;
    border-radius: 30px; width: 90%; max-width: 400px; text-align: center;
    display: flex; flex-direction: column; gap: 15px;
}

.reg-input {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.reg-input:focus { border-color: #ff0000; }

.reg-btn {
    background: linear-gradient(145deg, #ff0000, #a00000);
    color: #fff; border: none; padding: 18px; width: 100%;
    border-radius: 15px; font-weight: 900; cursor: pointer;
    font-size: 20px;
    box-shadow: 0 8px 0 #600000, 0 0 20px rgba(255, 0, 0, 0.5);
    animation: glow-pulse 1.5s infinite alternate;
}

@keyframes glow-pulse {
    from { box-shadow: 0 8px 0 #600000, 0 0 15px rgba(255, 0, 0, 0.4); }
    to   { box-shadow: 0 8px 0 #600000, 0 0 35px rgba(255, 0, 0, 0.8); }
}

/* قسم المميزات */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
    padding: 20px 10px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 16px 6px;
    text-align: center;
    transition: 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-4px);
}

.f-icon { font-size: 28px; display: block; margin-bottom: 8px; }

/* --- قسم الهيرو --- */
.home-hero {
    text-align: center;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    position: relative;
    background: linear-gradient(145deg, #111, #000);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 25px;
    display: inline-block;
    border: 2px solid #ff0000;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    animation: logo-pulse-red 2s infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine-ping-pong 4s infinite ease-in-out;
}

.home-hero h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(to bottom, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.home-hero p {
    font-size: 17px;
    color: #bbb;
    max-width: 450px;
    line-height: 1.7;
    margin: 0 auto;
}

/* صف تذكرني في نموذج التسجيل */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #ddd;
}

.remember-row input {
    width: 18px;
    height: 18px;
}

/* تحسين الموبايل للمميزات والهيدر/الهيرو */
@media (max-width: 480px) {
    .home-header {
        padding: 25px 10px 15px;
    }

    .home-brand-text h1 {
        font-size: 24px;
    }

    .home-hero {
        padding: 40px 16px 30px;
    }

    .home-hero h2 {
        font-size: 24px;
    }

    .home-hero p {
        font-size: 15px;
        padding: 0 4px;
    }

    .features-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px 12px 25px;
    }

    .feature-item {
        padding: 12px 4px;
        border-radius: 14px;
    }

    .f-icon {
        font-size: 22px;
        margin-bottom: 6px;
    }
}

/* ===== تحسينات عالمية وواجهات احترافية مضافة أسفل الملف ===== */

/* خلفية أعمق مع لمسة أهلاوية أقوى */
.home-page {
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(900px 500px at 10% 10%, rgba(255, 0, 0, 0.14), transparent 55%),
        linear-gradient(180deg, #020202 0%, #050505 40%, #000000 100%);
}

/* أوزان الخطوط العامة */
h1, h2, h3, h4, h5 {
    font-weight: 900;
}

body, p, span, small {
    font-weight: 400;
}

/* شريط الترحيب أعلى الصفحة مع تأثير Glow */
.user-welcome-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(20, 2, 2, 0.96));
    border-bottom: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
}

.user-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ff0000;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.06),
        0 0 18px rgba(255, 0, 0, 0.7);
}

.user-status {
    background: linear-gradient(90deg, #d4af37, #f1c40f);
    color: #000;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Glassmorphism للكروت مع Hover قوي */
.platform-card {
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.75), rgba(0, 0, 0, 0.9));
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(18px);
    border-radius: 26px;
}

.ps4-card:hover {
    border-color: #0070cc;
    box-shadow: 0 0 35px rgba(0,112,204,0.7), 0 18px 40px rgba(0,0,0,0.8);
}

.ps5-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 35px rgba(124,58,237,0.7), 0 18px 40px rgba(0,0,0,0.8);
}

.accessory-card:hover {
    border-color: #d4af37;
    box-shadow: 0 0 35px rgba(212,175,55,0.7), 0 18px 40px rgba(0,0,0,0.8);
}

/* أزرار احترافية بحواف ناعمة */
.reg-btn {
    border-radius: 12px;
    box-shadow: 0 8px 0 #600000, 0 0 22px rgba(255, 0, 0, 0.6);
}

.btn-logout {
    background: transparent;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.btn-logout:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff0000;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.55);
}

/* تحسين بسيط للتابلت */
@media (min-width: 481px) and (max-width: 1024px) {
    .home-wrap {
        max-width: 720px;
        margin: 0 auto;
    }

    .platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 0 20px;
    }

    .features-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 20px 30px;
    }
}