/* إعدادات الصفحة */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #282c34;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* الشريط العلوي */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: rgba(40, 44, 52, 0.9);
    color: white;
    z-index: 1001;
    transition: all 0.3s ease;
}

.top-bar.hidden {
    display: none;
}

.social-icons a,
.auth-buttons a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-icons a:hover,
.auth-buttons a:hover {
    color: #ff6b6b;
}

/* اللودر */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
    object-fit: contain;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid currentColor;
    animation: blink 0.7s steps(2, start) infinite;
    max-width: 80%;
}

/* تأثيرات اللودر */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    from {
        border-right-color: transparent;
    }

    to {
        border-right-color: currentColor;
    }
}

/* الخلفية */
.header-image {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.golden-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    animation: golden-shine 3s infinite;
    mix-blend-mode: overlay;
}

@keyframes golden-shine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* القائمة الرئيسية */
.menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
    background: rgba(40, 44, 52, 0.9);
    z-index: 1000;
    height: 150px;
    /* زيادة الارتفاع لتوفير مساحة للدائرة */
    transition: top 0.3s ease, opacity 0.5s ease;
}

.menu-wrapper.show {
    opacity: 1;
    visibility: visible;
    /* أظهر العنصر عند إضافة كلاس show */
}

.menu-wrapper.sticky {
    position: fixed;
    top: 40px;
    /* تحت الشريط العلوي */
}

/* القائمة */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
}


/* الأزرار */

.menu-item {
    flex: 0 1 calc(10% - 20px);
    min-width: 120px;
    max-width: 180px;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), #34ace0, rgba(255, 215, 0, 0.7));
    color: white;
    text-align: center;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير hover */
.menu-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), #706fd3, rgba(255, 215, 0, 0.8));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


/* تأثير ظهور الأزرار */
@keyframes button-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* القائمة الجانبية */
.side-menu-button {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(45deg, #34ace0, #706fd3);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 250px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.side-menu.open {
    left: 0;
}

.side-menu-item {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    background: linear-gradient(45deg, #ff6b81, #f78fb3);
    color: white;
    cursor: pointer;
}

/* لضمان أن الدائرة تظهر في منتصف الأزرار */
.menu-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1f1f1f, #292929);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* تضمن تمركز الدائرة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.menu-circle h1 {
    margin: 0;
    padding: 0;
    color: gold;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    text-align: center;
    line-height: 1.2;
    /* يضمن أن النص لا يمتد خارج الدائرة */
}


/* تأثير الإطار */
.menu-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.8));
    z-index: 1;
    animation: rotate-border 6s linear infinite;
}

/* تأثير النبض الخارجي */
.menu-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.5);
    z-index: 0;
    animation: outer-pulse 2.5s infinite ease-in-out;
}


/* لتجنب الحركة غير المتوقعة أثناء التمرير */
.menu-wrapper.sticky .menu-circle {
    position: fixed;
    top: 80px;
    /* ارتفاع ثابت بعد التمرير */
    left: 50%;
    transform: translateX(-50%);
}

/* نبض خفيف حول الدائرة */
@keyframes outer-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* دوران الإطار الذهبي */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* تأثير النص عند المرور */
.menu-circle:hover h1 {
    color: #feca57;
    transition: color 0.3s ease;
}

/* تأثير النبض */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-item,
    .menu-circle {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {

    .menu-item,
    .menu-circle {
        flex: 1 1 100%;
    }
}

/* استجابة للشاشات الكبيرة (لابتوب) */
@media (max-width: 1200px) {
    .menu-item {
        flex: 1 1 calc(15% - 20px);
        /* الأزرار تأخذ 15% من العرض */
    }
}

/* استجابة للشاشات المتوسطة (تابلت) */
@media (max-width: 900px) {
    .menu-item {
        flex: 1 1 calc(20% - 20px);
        /* الأزرار تأخذ 20% */
    }
}

/* استجابة للشاشات الصغيرة (هواتف) */
@media (max-width: 600px) {
    .menu-item {
        flex: 1 1 calc(45% - 20px);
        /* الأزرار تأخذ نصف الشاشة تقريبًا */
    }
}

/* استجابة للشاشات الضيقة جدًا */
@media (max-width: 400px) {
    .menu-item {
        flex: 1 1 calc(90% - 20px);
        /* زر واحد في السطر */
    }
}

/* تخصيص خلفية الظلال */
.modal-backdrop {
    background: none;
    /* خلفية داكنة مع شفافية للـ backdrop */
    z-index: 1080;
    /* يجعل الخلفية أسفل الـ modal */
    pointer-events: none;
    /* يتيح التفاعل مع العناصر تحت الـ modal */
}

/* تخصيص الـ modal */
.modal-content {
    background: rgba(0, 0, 0, 0.85);
    /* خلفية داكنة مع الشفافية */
    color: #fff;
    /* لون النص أبيض */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* ظل ناعم */
    position: relative;
    z-index: 1050;
    /* تأكد من أن الـ modal أعلى من باقي العناصر */
}

/* تخصيص العنوان داخل الـ modal */
.modal-header {
    border-bottom: 1px solid #444;
    /* تحديد حافة خفيفة أسفل العنوان */
    background: linear-gradient(135deg, #ffc400, #cbbb04);
    /* تأثير تدرج لوني */
    color: #fff;
    /* لون العنوان أبيض */
    text-align: center;
}

/* تخصيص النص داخل الـ modal */
.modal-body {
    color: #ddd;
    /* لون النص داخل الـ modal فاتح */
    font-size: 1.1rem;
    text-align: center;
}

/* تخصيص الأزرار داخل الـ modal */
.modal-footer button {
    background: #f9c300;
    /* لون خلفية الزر */
    color: #fff;
    /* لون النص في الزر أبيض */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-footer button:hover {
    background: #34ace0;
    /* تغيير اللون عند المرور على الزر */
}



/* تخصيص تأثير التحميل داخل الـ modal */
.modal-content .loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.modal-content .loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: #da9a0f;
    /* لون مؤثرات التحميل */
}

/* تخصيص الـ modal dialog */
.modal-dialog {
    z-index: 1060;
    /* تأكد من أن الـ modal dialog يظهر فوق أي عنصر آخر */
}



.table-dark th {
    background-color: #1e1e1e;
    color: #ffc107;
}

.table-dark td {
    background-color: #121212;
    color: #fff;
}


.top-1 {
    background-color: #ffd700 !important;
    /* Gold */
    color: #000 !important;
    font-weight: bold;
}

.top-2 {
    background-color: #c0c0c0 !important;
    /* Silver */
    color: #000 !important;
}

.top-3 {
    background-color: #cd7f32 !important;
    /* Bronze */
    color: #fff !important;
}

.rank-1 {
    color: gold;
    text-shadow: 0 0 10px gold, 0 0 20px #ffbf00, 0 0 30px #ffbf00;
}

.rank-2 {
    color: silver;
    text-shadow: 0 0 10px silver, 0 0 20px #b3b3b3, 0 0 30px #b3b3b3;
}

.rank-3 {
    color: #cd7f32;
    text-shadow: 0 0 10px #cd7f32, 0 0 20px #b87333, 0 0 30px #b87333;
}

.rank-default {
    color: white;
}

.countdown-wrapper {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.7);
    display: inline-block;
}

.countdown-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.9);
}

.countdown-text {
    font-size: 1.8rem;
}

.countdown-ending {
    color: #dc3545;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-yellow {
    color: yellow;
    font-weight: bold;
    text-shadow: 0 0 10px yellow;
}

.countdown-orange {
    color: orange;
    font-weight: bold;
    text-shadow: 0 0 10px orange;
}

.countdown-red {
    color: red;
    font-weight: bold;
    text-shadow: 0 0 15px red;
}



.top3-card {
    width: 100%;
    max-width: 33%;
    /* تقليل العرض على الشاشات الصغيرة */
    height: 25em;
    transition: transform 0.3s ease;
    border-radius: 20px;
    background-color: #1e1e1e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top3-card:hover {
    transform: translateY(-8px);
    /* حركة خفيفة عند تمرير الماوس */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* تصميم مخصص لكل مركز */
.rank-1 {
    border: 4px solid #ffd700;
    /* ذهبي */
    background: linear-gradient(145deg, #ffea00, #ffcc00);
    color: #1c1c1c;
}

.rank-2 {
    border: 3px solid #c0c0c0;
    /* فضي */
    background: linear-gradient(145deg, #d9d9d9, #bfbfbf);
    color: #2c2c2c;
}

.rank-3 {
    border: 3px solid #cd7f32;
    /* برونزي */
    background: linear-gradient(145deg, #e0a96b, #d08642);
    color: #3c3c3c;
}

.rank-1 .avatar-img {
    border: 4px solid #ffcc00;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #ffc107;
}

.rank-2 .avatar-img {
    border: 3px solid #c0c0c0;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #ffc107;
}

.rank-3 .avatar-img {
    border: 3px solid #cd7f32;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #ffc107;
}

/* تخصيص بادج لكل رتبة */
.rank-1 .rank-badge {
    background-color: #ffcc00;
    color: #1c1c1c;
    font-size: 1.2rem;
}

.rank-2 .rank-badge {
    background-color: #c0c0c0;
    color: #1c1c1c;
    font-size: 1.1rem;
}

.rank-3 .rank-badge {
    background-color: #cd7f32;
    color: #1c1c1c;
    font-size: 1.1rem;
}

.avatar-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.rank-badge {
    font-size: 1.2rem;
    background-color: #343a40;
    color: white;
}

/* تصميم مرن للشاشات الصغيرة */
@media (max-width: 768px) {
    .top3-card {
        width: 100% !important;
        /* أو 90% لو حابب */
        max-width: 100% !important;
        height: auto !important;
        /* لإلغاء الـ 25em */
        margin-bottom: 20px;

        /* مسافة تحت الكارت بين بعضهم */
        /* صغّر أبعاد صورة الأفاتار على الشاشات الصغيرة */
        .avatar-img {
            width: 80px !important;
            height: 80px !important;
        }

        /* لو عاوز تصغّر الخط داخل الكارت شوية */
        .rank-badge {
            font-size: 1rem !important;
        }
    }

    .avatar-img {
        width: 90px;
        height: 90px;
    }
}

/* شاشات أكبر من 1200px */
@media (min-width: 1200px) {
    .top3-card {
        width: 300px;
    }

    .avatar-img {
        width: 140px;
        height: 140px;
    }
}


.point-change {
    animation: point-flash 1s ease-in-out;
}

@keyframes point-flash {
    0% {
        background-color: rgba(255, 193, 7, 0.8);
    }

    50% {
        background-color: rgba(255, 193, 7, 0.3);
    }

    100% {
        background-color: transparent;
    }
}






.payment-card.hidden {
    display: none;
}


.payment-card {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.payment-card.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.payment-logo {
    width: 80px;
    margin-bottom: 15px;
}

.payment-info p {
    margin: 5px 0;
    font-size: 16px;
}

.paypal-card {
    background-color: #0070ba;
    color: white;
}

.vodafone-card {
    background-color: #e60000;
    color: white;
}

.payment-btn {
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.payment-btn.paypal-btn {
    background-color: #013354;
    /* PayPal الأزرق */
}

.payment-btn.vodafone-btn {
    background-color: #390101;
    /* Vodafone الأحمر */
}

.payment-btn:hover {
    opacity: 0.9;
}

.payment-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}




/* تنسيق الكروت */
/* الكارت الأساسي */
.market-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* تحريك الكارت عند تمرير الماوس */
.market-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* تحسين مظهر صورة العنصر داخل الكارت */
.market-card-img {
    width: 100%;
    /* جعل العرض يمتد تلقائيًا داخل الكارت */
    height: 140px;
    /* ارتفاع ثابت */
    object-fit: contain;
    /* عرض الصورة بالكامل بدون اقتطاع */
    border-radius: 10px;
    /* حواف مستديرة */
    border: 0.5px solid #ddd;
    /* إطار خفيف */
    padding: 5px;
    /* مساحة داخلية بين الصورة والإطار */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* تأثير تكبير الصورة عند تمرير الماوس */
.market-card:hover .market-card-img {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* إضافة ظل عند التحويم */
}

/* نصوص العنوان والوصف */
.market-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.market-card-description {
    color: #c2c2c2;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* السعر */
.market-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* زر الشراء */
.market-btn {
    transition: background-color 0.3s ease, transform 0.2s;
    border-radius: 30px;
    padding: 14px 35px;
    font-size: 1rem;
    margin-top: 15px;
}

/* تأثير hover على الأزرار */
.market-btn:hover {
    transform: scale(1.1);
}

/* أزرار بألوان مختلفة */
.market-btn-primary {
    background-color: #007bff;
    color: #fff;
}

.market-btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.market-btn-warning {
    background-color: #ffc107;
    color: #fff;
}

.market-btn-success {
    background-color: #28a745;
    color: #fff;
}

/* تأثيرات الدخول (Fade-in) */
.market-fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: marketFadeInUp 0.6s forwards;
}

@keyframes marketFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ألوان نصوص */
/* أنماط كروت حسب النوع */

/* الكارت الخاص بمدة صلاحية (مرصع بالذهب) */
.market-card-limited-time {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border: 4px solid #ffd700;
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.6);
}

/* الكارت الخاص بالمخزون المحدود (ذهبي بأزرق غامق) */
.market-card-limited-stock {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 3px solid #ffc107;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}

/* الكارت الخاص بالمنتجات غير المحدودة (لون داكن) */
.market-card-unlimited {
    background: linear-gradient(135deg, #3a3d40 0%, #18181b 100%);
    border: 2px solid #495057;
    box-shadow: 0 8px 16px rgba(33, 37, 41, 0.5);
}

/* نصوص مخصصة */
.market-text-danger {
    color: #ff4d4f;
}

.market-text-warning {
    color: #ffc107;
}

.market-text-success {
    color: #28a745;
}

/* تصميم الفلتر */
.market-filter {
    border: 2px solid #007bff;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* تأثير عند تمرير الماوس */
.market-filter:hover {
    border-color: #0056b3;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* تغيير اللون عند التفاعل */
.market-filter:focus {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* سهم القائمة المنسدلة */
.market-filter::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    pointer-events: none;
}

.filter-container {
    max-width: 400px;
    min-width: 400px;
    margin: 0 auto;
}


.market-countdown {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* الأخضر: الوقت المتبقي أكثر من 24 ساعة */
.market-countdown-success {
    color: #28a745;
}

/* البرتقالي: الوقت المتبقي أقل من 24 ساعة */
.market-countdown-warning {
    color: #644b00;
}

/* الأحمر: الوقت المتبقي أقل من ساعة */
.market-countdown-danger {
    color: #dc3545;
}

/* الرمادي: انتهى الوقت */
.market-countdown-expired {
    color: #6c757d;
}

.purchase-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 300px;
    margin: 20px auto;
}

.purchase-form label {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.purchase-form input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.purchase-form input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.purchase-form .btn-primary {
    width: 100%;
    background-color: #007bff;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.purchase-form .btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 91, 187, 0.5);
}

.purchase-form .btn-primary:active {
    transform: translateY(2px);
}


.t-app-logo-icon img {
    width: 90px;
    /* نفس حجم الأيقونة الأصلية */
    height: 90px;
    object-fit: contain;
    /* يحافظ على تناسب الصورة */
    border-radius: 50%;
    /* يجعل الصورة دائرية */
    box-shadow: 0 0 20px rgba(72, 160, 255, 0.8);
    /* تأثير glow */
    transition: all 0.3s ease-in-out;
}

.t-app-logo-icon img:hover {
    box-shadow: 0 0 30px rgba(72, 160, 255, 1), 0 0 60px rgba(72, 160, 255, 0.9);
    /* تأثير أقوى عند التحويم */
    transform: scale(1.1);
    /* تكبير بسيط عند التحويم */
}

.t-app-box {
    background-color: #1e1e2f;
    /* نفس تصميم الصندوق */
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.t-app-box:hover {
    transform: translateY(-5px);
}

.App-4t {
    text-align: center;
}

.App-4t .gold-frame {
    border: 3px solid gold;
    padding: 20px;
    margin: 30px auto;
    border-radius: 12px;
    width: 60%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
}

.App-4t .charname-glow {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
    transition: transform 0.3s ease-in-out;
}

.App-4t .charname-glow:hover {
    transform: scale(1.1);
}

.countdown-frame {
    display: block;
    /* يجعل الفريم يأخذ سطر كامل */
    width: 100%;
    /* يمتد بكامل العرض */
    max-width: 600px;
    /* حد أقصى للعرض */
    padding: 20px;
    margin: 20px auto;
    /* توسيط الفريم في المنتصف */
    border: 3px solid gold;
    border-radius: 12px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    background-color: #000;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
    text-align: center;
    /* محاذاة النص في المنتصف */
}

.countdown-green {
    border-color: #28a745;
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.8);
}

.countdown-yellow {
    border-color: #ffc107;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
}

.countdown-orange {
    border-color: #fd7e14;
    box-shadow: 0 0 25px rgba(253, 126, 20, 0.8);
}

.countdown-dark-orange {
    border-color: #ff5722;
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.8);
}

.countdown-red {
    border-color: #dc3545;
    box-shadow: 0 0 25px rgba(220, 53, 69, 0.8);
}

.countdown-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.countdown-time div {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 40px;
    width: 100px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.App-4t-choose-char {
    display: block;
    /* يجعل الفريم يأخذ سطر كامل */
    width: 100%;
    /* يمتد بكامل العرض */
    max-width: 600px;
    /* حد أقصى للعرض */
    padding: 20px;
    margin: 20px auto;
    /* توسيط الفريم في المنتصف */

    font-size: 30px;
    font-weight: bold;

    text-align: center;
    /* محاذاة النص في المنتصف */
}

.App-4t-choose-char select {
    width: 100%;
    /* الحقل يأخذ العرض بالكامل */
    display: block;
    /* يجعل الحقل يظهر كسطر منفصل */
    padding: 12px;
    border: 2px solid gold;
    border-radius: 8px;
    background-color: #000;
    color: gold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    transition: all 0.3s ease;
}

.App-4t-choose-char select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
}

.App-4t-choose-char button {
    width: 100%;
    /* الزر يأخذ العرض بالكامل */
    background-color: gold;
    color: #000;
    font-weight: bold;
    padding: 15px 0;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.App-4t-choose-char button:hover {
    background-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.App-4t-choose-char h5 {
    text-align: center;
    /* محاذاة النص في المنتصف */
    font-size: 22px;
    /* حجم مناسب */
    color: gold;
    margin-bottom: 15px;
    /* مسافة بين النص وحقل الاختيار */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    letter-spacing: 1px;
    /* توسيع الحروف بشكل طفيف */
}

.market-filter {
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.5rem;
}

.filter-container label {
    color: #333;
}

.item-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.item-card[style*="display: none"] {
    transform: scale(0.8);
    opacity: 0;
}


.balance[data-value="0"] {
    color: red;
    font-weight: bold;
}

.balance[data-value]:not([data-value="0"]) {
    color: green;
    font-weight: bold;
    text-shadow: 0 0 10px #32CD32;
    /* Glow effect */
}

.quests-theme .quest-card {
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.quests-theme .quest-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.quests-theme .quest-completed {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #3e8e41;
}

.quests-theme .quest-pending {
    background-color: #f8f9fa;
    color: #343a40;
    border: 2px solid #e0e0e0;
}

.quests-theme .quest-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.quests-theme .quest-badge-completed {
    background-color: #28a745;
    color: white;
    font-size: 0.9rem;
}

.quests-theme .quest-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.quests-theme .quest-btn:hover {
    background-color: #0056b3;
}

#calendar {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.rewards-list {
    background-color: #0f0d0d;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
}

.list-group-item {
    font-size: 0.9rem;
}

.list-group-item .badge {
    font-size: 0.8rem;
}

/* الحاوية الرئيسية */
.quests-rewards-table-container {
    padding: 20px;
    background-color: #f5f5f5;
    /* لون خلفية فاتح */
    border-radius: 10px;
    color: #333;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* العنوان */
.quests-rewards-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* رأس الجدول */
.quests-rewards-table thead th {
    background-color: #212529;
    /* لون داكن */
    color: #fff;
    text-transform: uppercase;
    padding: 12px;
    font-size: 1.2rem;
}

.quests-days-header {
    background-color: #4caf50;
    /* لون أخضر */
    color: #fff;
}

.quests-normal-header {
    background-color: #2196f3;
    /* لون أزرق */
    color: #fff;
}

.quests-vip-header {
    background-color: #ff5722;
    /* لون برتقالي */
    color: #fff;
}

/* خلايا الجدول */
.quests-rewards-table tbody td {
    vertical-align: middle;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* الألوان للحالات المختلفة */
.quests-completed-day {
    background-color: #d4edda;
    /* لون أخضر فاتح */
    color: #155724;
    /* نص أخضر داكن */
    font-weight: bold;
}

.quests-upcoming-day {
    background-color: #f0f0f0;
    /* لون رمادي فاتح */
    color: #6c757d;
    /* نص رمادي */
    font-weight: bold;
}

/* تأثير التمرير فوق الخلايا */
.quests-rewards-table tbody tr:hover {
    background-color: #e9ecef;
    /* لون رمادي فاتح عند التمرير */
}

/* الأيقونات */
.quests-reward-icon {
    width: 60px;
    /* حجم أكبر قليلاً */
    height: 60px;
    margin-bottom: 5px;
    border-radius: 10px;
    /* زوايا مستديرة */
    border: 2px solid #ddd;
    /* إطار للأيقونة */
}

.quests-not-eligible-icon {
    width: 30px;
    height: 30px;
}

/* الأزرار */
.quests-btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.quests-btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
}

.quests-btn-success {
    background-color: #28a745;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
}

.quests-btn-success:hover {
    background-color: #218838;
    color: #fff;
}

/* النصوص التحذيرية */
.quests-text-warning {
    color: #ffc107;
    font-weight: bold;
}

.tasks-vip-button {
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0px 5px 15px rgba(255, 69, 0, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tasks-vip-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 25px rgba(255, 69, 0, 0.7);
}


/* تخصيص الـ VIP Rewards */
.vip-reward {
    background: linear-gradient(45deg, #ffb400, #ff4d00) !important;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 5px 10px rgba(255, 69, 0, 0.5);
}

.vip-reward img {
    border: 3px solid gold;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(255, 215, 0, 0.8);
}

.vip-reward p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.vip-reward .quests-btn-primary {
    background-color: gold;
    color: black;
    font-weight: bold;
    border: 2px solid white;
}

.vip-reward .quests-btn-primary:hover {
    background-color: darkgoldenrod;
    color: white;
}

.vip-reward .quests-btn-success {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}


/* Gift Card Styling */
.gift-card .card-header h6 {
    font-size: 18px;
    color: #007bff;
}

.gift-card .form-group label {
    font-weight: bold;
    color: #333;
}

.gift-card .form-control {
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.gift-card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.gift-card .submit-gift-btn {
    background-color: #28a745;
    border-color: #28a745;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
}

.gift-card .submit-gift-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Message Card Styling */
.message-card .card-header h6 {
    font-size: 18px;
    color: #007bff;
}

.message-card .form-group label {
    font-weight: bold;
    color: #333;
}

.message-card .form-control {
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.message-card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.message-card .submit-message-btn {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
}

.message-card .submit-message-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Increase space between cards */
.card {
    margin-bottom: 20px;
}

/* Custom styling for Select and Textarea */
.gift-select,
.message-type-select {
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
}


.gift-range-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gift-range-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.gift-range-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.gift-range-table th {
    background: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.gift-range-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.min-amount {
    color: green;
    font-weight: bold;
}

.max-amount {
    color: red;
    font-weight: bold;
}

.required-recharges {
    color: orange;
    font-weight: bold;
}

.gift-percentage {
    color: blue;
    font-weight: bold;
}



/* ✅ تصميم خاص بالأخبار - متناسق مع الثيم الداكن */
.news-card {
    background: #222;
    /* لون غامق للكارت */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(255, 215, 0, 0.2);
    /* ظل ذهبي */
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #444;
    /* إطار خفيف */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(255, 215, 0, 0.3);
    /* تأثير ذهبي عند الـ hover */
}

/* 🔹 تنسيق صورة الخبر */
.news-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 🔹 تنسيق محتوى الخبر */
.news-card-body {
    padding: 15px;
}

/* 🔹 عنوان الخبر */
.news-card-title a {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    /* ذهبي */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.news-card-title a:hover {
    color: #ffcc00;
    /* درجة أفتح للذهبي */
}

/* 🔹 تاريخ الخبر */
.news-card-date {
    font-size: 12px;
    color: #bbb;
    /* رمادي فاتح */
    margin-bottom: 8px;
}

/* 🔹 نص الخبر */
.news-card-content {
    font-size: 14px;
    color: #ddd;
    /* رمادي فاتح */
    line-height: 1.6;
}

/* 🔹 زر قراءة المزيد */
.news-card-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
    /* ذهبي */
    text-decoration: none;
    margin-top: 10px;
    padding: 5px 12px;
    border: 1px solid #FFD700;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.news-card-read-more:hover {
    background: #FFD700;
    color: #222;
    text-decoration: none;
}

.serverinfo-button {
    width: 100%;
    text-align: center;
    /* توسيط النص أفقيًا */
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border: 3px solid #d4af37;
    /* لون ذهبي قوي */
    border-radius: 8px;
    background: transparent;
    /* خلفية شفافة */
    color: #d4af37;
    /* لون النص ذهبي */
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    /* توسيط المحتوى */
    align-items: center;
    /* توسيط رأسي */
    position: relative;
}

.serverinfo-button:hover {
    background: rgba(212, 175, 55, 0.1);
    /* خلفية خفيفة عند الـ Hover */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    /* Glow ذهبي */
}

/* تنسيق الأيقونة (السهم) */
.serverinfo-button i {
    margin-left: 10px;
    /* مسافة بين النص والسهم */
    transition: transform 0.3s ease-in-out;
}

/* عند الفتح نخلي السهم يتقلب لفوق */
.serverinfo-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}
























/* إضافة كارت متحاوط بدهبي */
.userprev-item-details {
    display: block;
    /* يجعل الفريم يأخذ سطر كامل */
    width: 100%;
    /* يمتد بكامل العرض */
    max-width: 800px;
    /* حد أقصى للعرض */
    padding: 30px;
    margin: 20px auto;
    /* توسيط الفريم في المنتصف */
    background-color: #000;
    /* خلفية الكارت */
    border: 2px solid gold;
    /* الحدود بلون دهبي */
    border-radius: 12px;
    /* الزوايا منحنية */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    /* ظل دهبي خفيف */
}

/* تعديل لتوسيط الصورة */
.userprev-item-details .flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تخصيص للصور داخل الكارت */
.userprev-item-details img {
    max-width: 90%;
    /* تحديد العرض بحيث الصورة تأخذ 80% من عرض العنصر */
    height: auto;
    /* الحفاظ على النسبة الأصلية للصورة */
    border-radius: 12px;
    /* إضافة الزوايا المنحنية */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    /* تأثير الظل حول الصورة */
    transition: all 0.3s ease;
    /* إضافة تأثير سلس عند التغيير */
    object-fit: contain;
    /* الحفاظ على النسبة الأصلية للصورة */
    margin-bottom: 20px;
    /* إضافة مسافة أسفل الصورة */
}

/* تأثير عند مرور الماوس على الصورة */
.userprev-item-details img:hover {
    transform: scale(1.05);
    /* تكبير الصورة قليلاً عند مرور الماوس */
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
    /* زيادة الظل حول الصورة */
}


/* تخصيص للـ select */
.userprev-item-details select {
    width: 100%;
    /* الحقل يأخذ العرض بالكامل */
    padding: 15px;
    border: 2px solid gold;
    border-radius: 8px;
    background-color: #000;
    color: gold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    /* مسافة بين الاختيار والتفاصيل */
}

.userprev-item-details select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
}

/* تخصيص للزر */
.userprev-item-details button {
    width: 100%;
    /* الزر يأخذ العرض بالكامل */
    background-color: gold;
    color: #000;
    font-weight: bold;
    padding: 15px 0;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.userprev-item-details button:hover {
    background-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* تخصيص لتفاصيل النص */
.userprev-item-details p {
    font-size: 16px;
    color: gold;
    text-align: center;
}

/* تخصيص لتفاصيل الوصف */
.userprev-item-details .details-description {
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.userprev-item-details h4 {
    font-size: 22px;
    font-weight: bold;
    color: gold;
    margin-top: 20px;
}

/* تحسين العرض على الموبايل (Responsive) */
@media (max-width: 768px) {
    .userprev-item-details {
        padding: 15px;
        /* تقليل الحواف للموبايل */
        max-width: 100%;
        /* جعل الكارت يمتد بالكامل على الموبايل */
    }

    /* توسيط الصورة بشكل أفضل على الموبايل */
    .userprev-item-details img {
        max-width: 80%;
        /* تصغير الصورة قليلاً على الموبايل */
    }

    /* تحسين حجم الخط */
    .userprev-item-details h3 {
        font-size: 24px;
        /* تقليل حجم العنوان على الموبايل */
    }

    /* تحسين عرض select والزر */
    .userprev-item-details select,
    .userprev-item-details button {
        font-size: 14px;
        /* تقليل حجم الخط في select والزر */
    }
}









/* تنسيق الحقول في صف واحد */
.option-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* المسافات بين الحقول */
.option-box input,
.option-box textarea {
    width: 150px;
    /* تحديد عرض الحقول */
    margin-right: 10px;
    /* مسافة بين الحقول */
}

/* زر إضافة خيار */
.add-option {
    padding: 10px 20px;
    background-color: green;
    color: white;
    border: none;
    cursor: pointer;
}

/* إضافة تأثير عند المرور على زر + */
.add-option:hover {
    background-color: darkgreen;
}