/* --- 1. الإعدادات العامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif !important;
}

:root {
    --beam-color: #d4af37;
    /* الأساس ذهبي */
}

body {
    background-color: #09090b;
    color: #fff;
    direction: rtl;
    overflow-x: hidden;
}

/* =========================================================
   PREMIUM HEADER
========================================================= */

/* =========================================
   MAIN NAVBAR
========================================= */

.main-nav {

    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;

    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    background:
        rgba(10, 10, 12, 0.72);

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.35);

    transition: all 0.4s ease;
}

.nav-container {

    max-width: 1350px;

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 28px;
}

/* =========================================
   LOGO
========================================= */

.logo-wrapper {

    display: flex;
    align-items: center;

    gap: 14px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.logo-wrapper:hover {

    transform: translateY(-2px);
}

.dynamic-logo {

    width: 58px !important;
    height: 58px !important;

    transition: all 0.4s ease;

    filter:
        drop-shadow(
            0 0 12px color-mix(in srgb, var(--beam-color) 35%, transparent)
        );
}

/* Dynamic Logo Color */

.dynamic-logo g {

    fill: var(--beam-color);
}

/* Brand */

.brand-name {

    font-size: 24px;

    font-weight: 900;

    color: #fff;

    letter-spacing: 0.5px;
}

.dynamic-color {

    color: var(--beam-color);
}

/* Mobile */

@media (max-width: 768px) {

    .hidden-mobile {

        display: none !important;
    }
}

/* =========================================
   MAIN LINKS
========================================= */

.nav-links {

    display: flex;
    align-items: center;

    list-style: none;

    gap: 10px;
}

.nav-links a {

    position: relative;

    padding: 12px 18px;

    border-radius: 14px;

    color: #d4d4d8;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.nav-links a:hover,
.active-link {

    color: #fff !important;

    background:
        color-mix(in srgb, var(--beam-color) 14%, transparent);

    box-shadow:
        0 8px 25px color-mix(in srgb, var(--beam-color) 15%, transparent);
}

/* =========================================
   CATEGORY NAV
========================================= */

#nav-wrapper {

    position: sticky;

    top: 9px;

    z-index: 999;

    padding-top: 2px;
}

#apf-category-nav {

    background: transparent !important;

    border: none;
}

.nav-inner-box {

    display: flex;
    justify-content: center;

    padding: 0 20px;
}

/* =========================================
   CATEGORY CONTAINER
========================================= */

#apf-nav-container {

    position: relative;

    width: 100%;
    max-width: 560px;

    display: flex;

    padding: 3px;

    border-radius: 999px;

    overflow: hidden;

    background:
        rgba(255,255,255,0.04);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 10px 35px rgba(0,0,0,0.35);

    animation: breathing-glow 4s ease-in-out infinite;
}

#apf-nav-container::before {

    content: "";

    position: absolute;

    width: 200%;
    height: 500%;

    top: -200%;
    left: -50%;

    background:
        conic-gradient(
            from 0deg,
            transparent 150deg,
            var(--beam-color) 180deg,
            transparent 210deg
        );

    animation:
        snake-rotate 6s linear infinite;

    z-index: -1;
}

#apf-nav-container::after {

    content: "";

    position: absolute;

    inset: 2px;

    background:
        #09090b;

    border-radius: 999px;

    z-index: -1;
}

/* =========================================
   CATEGORY BUTTONS
========================================= */

.apf-nav-item {

    flex: 1;

    height: 49px;

    border: none;
    background: transparent;

    color: #a1a1aa;
    font-size: 15px;
    font-weight: 900;

    border-radius: 999px;

    cursor: pointer;

    z-index: 10;

    transition: all 0.3s ease;
}

.apf-nav-item:hover {

    color: #fff;
}

/* Indicator */

#nav-indicator {

    position: absolute;

    height: 85%;

    top: 7.5%;

    border-radius: 9999px;

    z-index: 0;

    transition:
        all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow */

.glow-forex,
.glow-futures,
.glow-crypto {

    box-shadow:
        0 0 20px var(--beam-color);

    opacity: 0.6;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes snake-rotate {

    from {

        transform: rotate(0deg);
    }

    to {

        transform: rotate(360deg);
    }
}

@keyframes breathing-glow {

    0%,
    100% {

        box-shadow:
            0 0 10px rgba(0,0,0,0.5),
            0 0 5px var(--beam-color);
    }

    50% {

        box-shadow:
            0 0 25px rgba(0,0,0,0.7),
            0 0 15px var(--beam-color);
    }
}

/* =========================================
   BEAMS
========================================= */

#beams-container {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 700px;

    pointer-events: none;

    z-index: -1;

    overflow: hidden;
}

.beam-effect {

    position: absolute;

    width: 600px;
    height: 600px;

    opacity: 0.25;

    filter: blur(120px);

    transition: all 1s ease-in-out;

    border-radius: 50%;
}

.beam-effect.left {

    top: 50px;
    left: -250px;

    background:
        radial-gradient(
            circle,
            var(--beam-color) 0%,
            transparent 80%
        );
}

.beam-effect.right {

    top: 50px;
    right: -250px;

    background:
        radial-gradient(
            circle,
            var(--beam-color) 0%,
            transparent 80%
        );
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .beam-effect {

        width: 300px;
        height: 300px;

        opacity: 0.12;
    }

    .nav-container {

        padding: 12px 10px;

        gap: 8px;
    }

    /* تصغير اللوجو */

    .dynamic-logo {

        width: 42px !important;
        height: 42px !important;
    }

    /* تصغير القائمة الرئيسية */

    .nav-links {

        gap: 2px;

        flex-wrap: nowrap;
    }

    .nav-links a {

        padding: 8px 8px;

        font-size: 11px;

        border-radius: 10px;
    }

    /* القائمة الثلاثية */

    #nav-wrapper {

        top: 6px;
    }

    #apf-nav-container {

        max-width: 100%;
    }

    .apf-nav-item {

        height: 46px;

        font-size: 13px;
    }
}

/* --- 6. الكروت --- */
.card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    border-color: var(--beam-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px -15px var(--beam-color);
}

.btn-gold {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--beam-color);
    color: var(--beam-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-gold:hover {
    background: var(--beam-color);
    color: #000;
}

/* --- 7. الأنيميشن --- */
@keyframes snake-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes breathing-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 5px var(--beam-color);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 15px var(--beam-color);
    }
}

.main-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 15px;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #555;
    border: 1px dashed #333;
    border-radius: 15px;
}

/* --- نظام الأشعة الجانبية (يتحرك مع السكرول) --- */
#beams-container {
    position: absolute;
    /* يخليهم يصعدون وية الصفحة وما يبقون ثابتين */
    top: 0;
    left: 0;
    width: 100%;
    height: 700px;
    /* يغطي فقط منطقة الهيدر والأزرار */
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.beam-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    opacity: 0.25;
    filter: blur(120px);
    transition: all 1s ease-in-out;
    border-radius: 50%;
}

.beam-effect.left {
    top: 50px;
    left: -250px;
    background: radial-gradient(circle, var(--beam-color) 0%, transparent 80%);
}

.beam-effect.right {
    top: 50px;
    right: -250px;
    background: radial-gradient(circle, var(--beam-color) 0%, transparent 80%);
}

/* للموبايل: تقليل الحجم حتى ما يملي الشاشة */
@media (max-width: 768px) {
    .beam-effect {
        width: 300px;
        height: 300px;
        opacity: 0.12;
    }
}




/* --- التعديلات المطلوبة فقط على قسم الشعار --- */

.prop-logo-container {
    border-radius: 10px;
    /* الإطار بنفس نمط إطار الكرت (شعاع ذهبي باهت) */
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    /* تكبير الحجم */
    height: 125px;
    /* ضمان الشكل المربع */
    overflow: hidden;
}

.prop-logo-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: cover;
}




