* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #2b0000 0%, #090909 65%);
    background-attachment: fixed;
    color: white;
    overflow-x: clip;
    opacity: 1 !important;
    transition: opacity 0.8s ease;
    min-height: 100vh;
}

body.loaded {
    opacity: 1;
}

/* ================= MOUSE GLOW ================= */
.mouse-light {
    position: fixed;
    width: 350px;
    height: 350px;
    background: #E50914;
    border-radius: 50%;
    filter: blur(180px);
    opacity: .12;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: .05s ease-out;
}

/* ================= PARTICLES BACKGROUND ================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none !important;
}

/* ================= NAVBAR ================= */
header {
    position: relative;
    z-index: 1000;
}

nav {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(9, 9, 9, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.25);
    transition: 0.4s;
}

.logo img {
    width: 65px;
    border-radius: 50%;
    display: block;
    transition: 0.4s;
}

.logo img:hover {
    transform: rotate(360deg) scale(1.08);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

nav ul a:hover {
    color: #E50914;
}

nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #E50914;
    transition: 0.35s;
}

nav ul a:hover::after {
    width: 100%;
}

/* ================= HERO SECTION ================= */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
    pointer-events: none;
}

.hero .buttons, .hero h1, .hero h2, .hero p {
    pointer-events: auto;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #E50914;
    filter: blur(220px);
    opacity: .18;
    animation: floatGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatGlow {
    0%, 100% { transform: translateY(-20px); }
    50% { transform: translateY(40px); }
}

.hero h1 {
    font-size: 85px;
    font-weight: 900;
    color: #E50914;
    letter-spacing: 6px;
    opacity: 0;
    transform: translateY(70px);
    animation: fadeUp .9s ease forwards 0.5s, heroGlow 3s ease-in-out infinite alternate 1.4s;
}

/* توهج العنوان الأصلي */
@keyframes heroGlow {
    0% {
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    }
    50% {
        text-shadow: 0 0 25px #E50914, 0 0 50px #ff1a1a, 0 0 80px #E50914;
    }
    100% {
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    }
}

.hero h2 {
    margin-top: 15px;
    font-size: 34px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(70px);
    animation: fadeUp .9s ease forwards 0.7s;
}

.hero p {
    margin-top: 18px;
    font-size: 20px;
    color: #c7c7c7;
    opacity: 0;
    transform: translateY(70px);
    animation: fadeUp .9s ease forwards 0.9s;
}

/* ================= BUTTONS ================= */
.buttons {
    margin-top: 45px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(70px);
    animation: fadeUp .9s ease forwards 1.1s;
}

.buttons a {
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: bold;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

/* لمعان الضوء الأبيض الممر فوق الأزرار */
.buttons a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    animation: buttonShine 4s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { left: -150%; }
    20% { left: 180%; }
    100% { left: 180%; }
}

.btn-live {
    background: #E50914;
    color: white;
}

.btn-live:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 20px #E50914, 0 0 45px #E50914;
}

.btn-support {
    border: 2px solid #E50914;
    color: white;
}

.btn-support:hover {
    background: #E50914;
    transform: translateY(-6px) scale(1.03);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= SECTIONS ================= */
.about, .journey, .socials {
    padding: 100px 8%;
    position: relative;
    z-index: 2;
}

.about-container, .journey-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.about h2, .journey h2, .socials h2 {
    font-size: 45px;
    color: #E50914;
    margin-bottom: 25px;
}

.about p, .journey p {
    max-width: 850px;
    margin: auto;
    line-height: 1.8;
    color: #d6d6d6;
    font-size: 18px;
}

.stats, .journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.card, .journey-card {
    background: #141414;
    border: 1px solid rgba(229, 9, 20, .25);
    border-radius: 18px;
    padding: 30px;
    transition: .35s;
}

.card:hover, .journey-card:hover {
    transform: translateY(-10px);
    border-color: #E50914;
    box-shadow: 0 0 25px rgba(229, 9, 20, .35);
}

.card h3 { font-size: 40px; margin-bottom: 10px; }
.card h4 { font-size: 18px; }
.journey-card h3 { font-size: 22px; margin-bottom: 15px; }

/* ================= SOCIALS ================= */
.socials { text-align: center; }
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-buttons a {
    background: #E50914;
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: .35s;
}

.social-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #E50914;
}

/* ================= FOOTER (FIXED TRANSPARENCY) ================= */
footer {
    padding: 60px 8%;
    background: transparent !important; /* خلفية شفافة لإظهار Particles */
    border-top: 1px solid rgba(229, 9, 20, .25);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-container img {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.footer-container h2 { font-size: 30px; color: #E50914; margin-bottom: 10px; }
.footer-container p { color: #cfcfcf; margin-bottom: 25px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a { text-decoration: none; color: white; transition: .3s; }
.footer-links a:hover { color: #E50914; }

/* ================= SUPPORT PAGE ================= */
.support-page {
    padding: 150px 8% 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.support-page h1 { font-size: 50px; color: #E50914; margin-bottom: 20px; }
.support-page > p { max-width: 800px; margin: 0 auto 50px; font-size: 18px; color: #d6d6d6; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.support-card {
    background: #141414;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(229, 9, 20, .25);
}

.support-card p {
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 20px;
    color: #d7d7d7;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
}

.support-card button {
    background: #E50914;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* ================= TOAST ================= */
#toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #E50914;
    color: white;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 9999;
    transition: .45s;
}

#toast.show { top: 30px; }

/* ================= LOADER ================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #2b0000 0%, #090909 65%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: forceHideLoader 0.5s 1.2s forwards;
}

@keyframes forceHideLoader {
    to { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

.loader-content { text-align: center; }
.loader-logo { width: 120px; border-radius: 50%; margin-bottom: 15px; }
.loader-bar { width: 200px; height: 5px; background: #222; border-radius: 10px; overflow: hidden; margin: auto; }
.loader-bar span { display: block; width: 0%; height: 100%; background: #E50914; animation: loading 1.2s forwards; }

@keyframes loading { to { width: 100%; } }

/* ================= LANGUAGE TOGGLE ================= */
.lang-btn {
    background: transparent;
    border: 1px solid #E50914;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
}

html[dir="rtl"] body { font-family: 'Cairo', sans-serif; }

/* ================= RESPONSIVE FIXES (MOBILE & TABLET) ================= */
@media (max-width: 768px) {
    /* توحيد الخلفية وإلغاء قيود الارتفاع لمنع قص كارت BEP20 */
    html, body {
        background: #090909 !important;
        background-color: #090909 !important;
        overflow-x: hidden;
        min-height: 100% !important;
        height: auto !important;
    }

    #particles-js canvas {
        opacity: 0.5;
    }

    /* شريط القائمة العلوية واختصار مسافات اللمس */
    nav {
        position: fixed;
        height: 65px;
        padding: 0 10px;
        justify-content: space-between;
        background: rgba(9, 9, 9, 0.95) !important;
    }

    .logo img { 
        width: 40px; 
    }

    nav ul {
        gap: 6px;
        flex-wrap: nowrap;
    }

    /* تسريع الاستجابة على Safari وإلغاء تأخير الـ 300ms فوراً */
    nav ul a, .buttons a, .support-card button, .lang-btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
    }

    nav ul a {
        font-size: 12px;
        padding: 10px 6px;
        display: inline-block;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* ================= ترتيب كروت About و Journey عمودياً ================= */
    .stats, .journey-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 30px auto 0 !important;
    }

    .card, .journey-card {
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* إصلاح أيقونات الألعاب والرموز العادية على Safari */
    .fa-solid, .fa-gamepad, .fa-futbol, .fa-crosshairs, .fa-comments, .fa-laptop, .fa-microchip, .fa-rocket, .fa-heart {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
    }

    /* إصلاح شعارات الماركات (Discord و TikTok) لتظهر بوضوح على الآيفون */
    .fa-brands, .fa-discord, .fa-tiktok {
        font-family: "Font Awesome 6 Brands" !important;
        font-weight: 400 !important;
        display: inline-block !important;
    }

    /* ================= إصلاح صفحة الدعم لإظهار الـ 3 كروت كاملاً ================= */
    .support-page {
        padding-top: 90px !important;
        padding-bottom: 140px !important;
        height: auto !important;
        min-height: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    .support-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin-bottom: 40px !important;
        max-width: 100% !important;
    }

    .support-card {
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .support-card p {
        font-size: 13px;
        word-break: break-all;
    }

    /* إلغاء أي تأثير مخفي على الموبايل لتسهيل التفاعل والسكرول */
    .hidden {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}
/* ================= iOS / SAFARI SPECIFIC FIXES ================= */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    /* تسريع معالجة الرسوميات والسكرول على الآيفون */
    * {
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-font-smoothing: antialiased;
        transform: translateZ(0);
    }

    /* تسريع استجابة اللمس الفورية */
    a, button, input {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation !important;
    }

    /* إصلاح أيقونات FontAwesome العادية */
    .fa, .fas, .fa-solid {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        -webkit-font-smoothing: antialiased;
    }

    /* إصلاح أيقونات الماركات (Discord / TikTok) */
    .fab, .fa-brands, .fa-discord, .fa-tiktok {
        font-family: "Font Awesome 6 Brands" !important;
        font-weight: 400 !important;
        -webkit-font-smoothing: antialiased;
    }

    /* ضمان ترتيب الكروت عمودياً وعدم خروجها لليمين */
    .stats, .journey-grid, .support-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* إشعار النسخ - نظيف وخفيف للأداء */
#toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #E50914;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#toast.show {
    opacity: 1;
    visibility: visible;
    
}
/* إلغاؤها للموبايل فقط لرفع التقييم وحل مشكلة الـ Toast */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* خفيف جداً على الموبايل */
    }
}
/* ضبط حجم اللوجو وشكله وتموضعه بالمنتصف */
.loader-logo, 
.logo-img,
img[src*="logo"] {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin-top: 8px !important; /* نزل اللوجو 8 بكسل لتحت */
}

/* محاذاة حاوية اللوجو بالمنتصف */
.logo, 
header .logo,
nav .logo {
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .loader-logo, 
    .logo-img,
    img[src*="logo"] {
        width: 55px !important;
        height: 55px !important;
        max-width: 55px !important;
        margin-top: 6px !important; /* إنزال مناسب لشاشات الموبايل */
    }
}
