.contset {
    padding: 2% 7%
}

.price-contset {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column
}

.box-contset {
    background: #757575;
    color: #fff;
    padding: 10px 40px;
    border-radius: 5px
}

.chat-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #dfdfdf;
    display: block;
    overflow: scroll;
    height: 200px;
}

.message {
    margin-bottom: 10px;
}

.sender {
    font-weight: bold;
}

.timestamp {
    color: #888;
    font-size: 12px;
}

.message-content {
    margin-top: 5px;
}


/* ✅ تنسيق النص ليكون أكثر جاذبية */

.green {
    color: #7FFF00;
    /* لون نيون أخضر */
    font-weight: 700;
    text-shadow: 0px 0px 10px rgba(127, 255, 0, 0.8);
    /* توهج نيون */
    animation: glowing 1.5s infinite alternate;
    /* وميض مستمر */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}


/* ✅ تأثير عند تمرير الماوس */

.green:hover {
    color: #ADFF2F;
    /* لون أخضر أفتح */
    text-shadow: 0px 0px 20px rgba(127, 255, 0, 1), 0px 0px 40px rgba(127, 255, 0, 0.7);
    transform: scale(1.05);
    cursor: pointer;
}


/* ✅ تأثير الوميض المتحرك */

@keyframes glowing {
    0% {
        text-shadow: 0px 0px 10px rgba(127, 255, 0, 0.8);
    }
    50% {
        text-shadow: 0px 0px 20px rgba(127, 255, 0, 1), 0px 0px 40px rgba(127, 255, 0, 0.6);
    }
    100% {
        text-shadow: 0px 0px 10px rgba(127, 255, 0, 0.8);
    }
}

.text-contset {
    text-align: center;
    padding: 10px
}

.text-contset p {
    font-size: 14px;
    color: coral;
}

.set-p {
    align-self: start;
    margin: 0 5vw 10px 0;
    padding-bottom: 10px;
    width: 90%;
    border-bottom: 1px solid #f86633
}

.price-now-contset {
    display: flex;
    justify-content: space-around;
    align-items: center
}

.rep,
.rep-contset-one,
.rep-header,
.rep-x {
    display: grid
}

.price-now-contset div {
    background: #2f382b;
    color: #00ffd9;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px
}

.rep {
    background: #0b1b31;
    border: 1px solid #f86633;
    grid-template-columns: 50% 50%
}

.rep-header,
.rep-x {
    background: #8d8431;
}

.rep-x {
    border: 1px solid #fff;
    grid-template-columns: 10% 90%
}

.rep-header {
    grid-template-columns: auto auto;
    justify-content: space-around;
    width: 100%;
    color: #fff;
    padding: 20px 0
}

.rep-element-h {
    background-color: #8d8431;
    padding: 5px;
    color: #fff;
    display: flex;
    margin-top: 10px
}

.rep-element-p {
  background-color: #061114;
  border: 1px solid #f86633;
  padding: 3px 6px;
  margin: 4px;
  color: #f8f8f8;
  font-size: 12.5px;  /* 🔽 تم تصغيره من 14 إلى 12.5 */
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.4;
}


.ball-icon {
    width: 40px;
    height: 40px;
    background-color: gold;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    box-shadow: 0 0 5px #FFD700;
}

.rep-ball-flex {
    background-color: #8a2929;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /* يسمح بانتقال الكرات إلى سطر جديد */
    justify-content: center;
    /* محاذاة الكرات إلى المنتصف */
    gap: 10px;
    /* تباعد بين الكرات */
}


/* تصميم الكرة */

.rep-ball-flex .ball {
    width: 50px;
    /* الحجم الأساسي للكرة */
    height: 50px;
    background-color: #3477db;
    /* لون مميز */
    color: #fff;
    /* لون النص */
    font-size: 18px;
    /* تكبير الرقم */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* جعل الكرة دائرية */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* تأثير الظل */
}


/* تصغير الكرات حسب حجم الشاشة */


/* شاشات أقل من 1024px */

@media (max-width: 1024px) {
    .rep-ball-flex .ball {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* شاشات أقل من 768px (هواتف) */

@media (max-width: 768px) {
    .rep-ball-flex .ball {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}


/* شاشات أقل من 480px (هواتف صغيرة جدًا) */

@media (max-width: 480px) {
    .rep-ball-flex .ball {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}


/* ✅ تحسين الشبكة العامة بتدرجات داكنة فاخرة */

.line-contset {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(25vw, 1fr));
    text-align: center;
    margin: 0 auto;
    padding: 15px;
    background: linear-gradient(135deg, #0b1b31, #1a1f2b, #2c3e50);
    /* تدرج أزرق ملكي مع أسود */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}


/* ✅ تحسين تصميم البطاقات */

.line-contset-one {
    background: rgba(11, 27, 49, 0.95);
    padding: 12px;
    border-radius: 8px;
    max-width: 100%;
    margin-top: 20px;
    box-shadow: 0px 4px 12px rgba(255, 215, 0, 0.3);
    /* ظل ذهبي خفيف */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ✅ تأثير عند التفاعل */

.line-contset-one:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 18px rgba(241, 196, 15, 0.5);
}


/* ✅ شبكة داخلية */

.line-contset-one div {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 8px;
}


/* ✅ تحسين الفقرات */

.line-contset-one div p {
    background: rgba(255, 215, 0, 0.15);
    margin: 5px;
    color: #FFD700;
    /* لون ذهبي ملكي */
    padding: 7px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}


/* ✅ تأثير عند تمرير الفأرة */

.line-contset-one div p:hover {
    background: rgba(255, 215, 0, 0.35);
}


/* ✅ تحسين لون النصوص */

.line-contset-one div p span {
    color: #ffbb33;
}


/* ✅ تحسين الروابط */

.line-contset-one a {
    background-color: #222;
    color: #FFD700;
    padding: 5px 15px;
    margin-top: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}


/* ✅ تأثير عند تمرير الفأرة */

.line-contset-one a:hover {
    background-color: #FFD700;
    color: #0b1b31;
}


/* ✅ تحسين القسم العلوي */

.screen-contset {
    padding: 2% 7%;
    border-top: 2px solid #FFD700;
    /* خط علوي ذهبي */
}


/* ✅ تحسين الأرقام */

.line-one-contset {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px;
}


/* ✅ تصميم الأرقام */

.line-one-contset div {
    cursor: pointer;
    animation: background-pulse 1.5s infinite alternate;
    background: #0a1723;
    margin: 5px;
    color: #FFD700;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}


/* ✅ تأثير عند الضغط */

.line-one-contset div:active {
    transform: scale(0.95);
    background: #ff8c00;
    color: white;
    box-shadow: 0px 4px 10px rgba(255, 140, 0, 0.6);
}

.line-one-contset .color-screen-contset {
    background: #af00357a
}

.container-set {
    display: inline-block;
    justify-content: center
}

.grid-item table {
    margin: 0
}

.grid-item td {
    height: 60px;
    width: 60px;
    background-color: #f86633;
    border-radius: 10px;
    font-size: 20px;
    color: #fff;
    text-align: center
}

.heading-container-set {
    font-size: 18px;
    color: #fff
}

.set-table th {
    font-size: 13px;
    font-weight: 300
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 5px;
    grid-auto-flow: column;
    direction: ltr;
    /* ✅ التوسيط في وسط الصفحة دون التأثير على السكرول */
    width: fit-content;
    margin: 0 auto;
    /* يجعل العنصر ثابتًا في المنتصف */
    background-color: #323232;
    color: #fff;
    padding: 10px;
    border: solid 1px #fff;
    border-radius: 20px;
}


/* ✅ توزيع العناصر داخل الشبكة */

.grid-item:nth-child(-n+3) {
    grid-column: 1;
}

.grid-item:nth-child(n+4) {
    grid-column: 2;
}

.grid-item:nth-child(n) {
    grid-row: span 1;
}


/* ✅ تحسين `.ngame` */

.ngame {
    background-color: #f4f4f4;
    padding: 20px 5px;
    margin: 2px;
    border-radius: 5px;
}


/* ✅ حاوية الكرات الرئيسية */
.set-contained {
    background-color: #323232;
    border-radius: 20px;
    padding: 15px 10px;
    margin: 0 auto;
    width: 95%;
    max-width: 700px; /* زدت الحد الأقصى لضمان ظهور 10 كرات بشكل واضح */
    box-sizing: border-box;
}

/* ✅ حاوية الكرات (10 كرات في السطر دائمًا) */
.ball-flex {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 كرات ثابتة */
    gap: 8px; /* مسافة بين الكرات */
    justify-items: center;
    align-items: center;
    background-color: #3d3e48;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* ✅ تصميم بارز وواضح للكرات */
.ball-flex > .ball {
    background: #ffaf40;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); /* ظلال بارزة */
    font-size: clamp(10px, 3vw, 16px); /* حجم الخط متجاوب بوضوح */
    box-sizing: border-box;
}

/* ✅ ضبط قياسات الكرات بوضوح لكل حجم شاشة */

/* شاشات أكبر من 1024px */
@media (min-width: 1024px) {
    .ball-flex {
        gap: 10px;
    }
    .ball-flex > .ball {
        max-width: 55px;
    }
}

/* من 768px إلى 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
    .ball-flex {
        gap: 8px;
    }
    .ball-flex > .ball {
        max-width: 45px;
    }
}

/* من 480px إلى 767px */
@media (max-width: 767px) and (min-width: 480px) {
    .ball-flex {
        gap: 6px;
    }
    .ball-flex > .ball {
        max-width: 38px;
    }
}

/* من 296px إلى 479px (هواتف صغيرة جدًا) */
@media (max-width: 479px) and (min-width: 296px) {
    .ball-flex {
        gap: 4px;
    }
    .ball-flex > .ball {
        max-width: 28px;
        font-size: 11px; /* حجم خط واضح */
    }
}

/* شاشات أقل من 296px */
@media (max-width: 295px) {
    .ball-flex {
        gap: 2px;
    }
    .ball-flex > .ball {
        max-width: 25px;
        font-size: 10px;
    }
}


.ingame {
    border: 1px solid #f86633;
    border-radius: 5px;
    padding: 40px;
    margin: 50px
}

.pop-set {
    display: none;
    position: fixed;
    background-color: #262626;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #000;
    border-radius: 5px;
    padding: 15px;
    z-index: 99;
    /* ✅ تحسين العرض حسب حجم الشاشة */
    width: 50vw;
    /* للشاشات الكبيرة */
    max-width: 600px;
    /* الحد الأقصى للعرض */
    min-width: 300px;
    /* الحد الأدنى للعرض */
}


/* ✅ تحسين العرض للأجهزة الصغيرة */

@media screen and (max-width: 600px) {
    .pop-set {
        width: 90vw;
        /* عرض أكبر للهاتف */
    }
}

.close-set {
    color: #fff
}

.set-table td {
    height: unset !important;
    width: 20px;
    padding: 0;
    background-color: #aeb5bb;
    border-radius: 1px;
    font-size: 12px;
    color: #000;
    text-align: center;
    font-weight: 700;
    font-family: sans-serif;
}

.mt-50 {
    margin-top: 50px
}

#checking {
    position: relative;
    background-color: #5d8864!important;
    color: #fff;
}

#checking::before {
    content: "";
    position: absolute;
    height: 3px;
    width: 108%;
    top: 5px;
    opacity: 0.4;
    right: -2px;
    transform: rotate(313deg);
    background: red;
}

@media screen and (max-width:650px) {
    .line-contset {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .set-table td {
        width: 20px;
        font-size: 12px
    }
}