/* -------------------------------------------- */
/*            GLOBAL DARK THEME                */
/* -------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background: #090a0f;
    color: #fff;
    font-family: "Cairo", sans-serif;
}

.game-container {
    padding: 12px;
    max-width: 480px;
    margin: auto;
}

/* -------------------------------------------- */
/*                 PLAYER CARD                 */
/* -------------------------------------------- */
.player-head {
    background: rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,#7a3dff,#b178ff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
}

/* -------------------------------------------- */
/*                 CARDS AREA                  */
/* -------------------------------------------- */
.cards-area {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 15px;
    padding-bottom: 6px;
}

.cards-area::-webkit-scrollbar {
    height: 5px;
}
.cards-area::-webkit-scrollbar-thumb {
    background: #7a3dff;
    border-radius: 4px;
}

.card {
    width: 50px;
    height: 72px;
    min-width: 50px;
    background: #111;
    border-radius: 10px;
    border: 2px solid #8a2eff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    box-shadow: 0 0 8px #8a2eff;
}

/* -------------------------------------------- */
/*                 BET PANEL                   */
/* -------------------------------------------- */

.bet-panel {
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.bet-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,#b178ff,#7a3dff);
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size: 16px;
    color:#fff;
    font-weight: bold;
    margin-bottom: 8px;
}

/* slider */
#betSlider {
    width: 100%;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #b178ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #b178ff;
}

/* confirm button */
.send-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg,#b178ff,#7a3dff);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

/* -------------------------------------------- */
/*                PLAYERS LIST                 */
/* -------------------------------------------- */
#playersArea {
    margin-top: 10px;
}

.player-box {
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.player-left {
    display:flex;
    align-items:center;
    gap:8px;
}

.player-icon {
    width:32px;
    height:32px;
    border-radius:50%;
    background:linear-gradient(135deg,#7a3dff,#b178ff);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:16px;
    color:#fff;
}

.stat-box {
    background:rgba(255,255,255,0.18);
    padding:4px 8px;
    border-radius:8px;
    font-size: 13px;
}

.top-bet {
    border: 1px solid #33ff99;
    box-shadow: 0 0 8px #33ff99;
}


/* ===============================
   بطاقات اللاعب – ألوان حسب التكرار
==================================*/

.card.repeat-2 {
    border: 3px solid #1e90ff;
    box-shadow: 0 0 10px #1e90ff;
}

.card.repeat-3 {
    border: 3px solid #b05cff;
    box-shadow: 0 0 12px #b05cff;
}

.card.repeat-4 {
    border: 3px solid #ffcc33;
    box-shadow: 0 0 15px #ffcc33;
}

/* حجم البطاقة (يمكنك التعديل حسب تصميمك) */
.card {
    width: 70px;
    height: 100px;
    background: #111;
    border-radius: 10px;
    border: 2px solid #8a2eff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    transition: 0.2s;
}




/* -------------------------------------------- */
/*           LOGIN PAGE BACKGROUND              */
/* -------------------------------------------- */

body.login-page {
    background: url("bg.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* صندوق تسجيل الدخول */
body.login-page .form-box {
    background: rgba(0,0,0,0.6);
    padding: 30px 22px;
    border-radius: 16px;
    width: 100vh;
    max-width: 360px;
    box-shadow: 0 0 30px rgba(0,0,0,0.65);
}

/* العنوان */
body.login-page h2 {
    margin-bottom: 15px;
}

/* حقل الإدخال */
body.login-page input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    text-align: center;
}

/* زر الدخول */
body.login-page button {
    width: 100%;
    margin-top: 18px;
}


/* -------------------------------------------- */
/*          GAME ROOM BACKGROUND                */
/* -------------------------------------------- */

body {
    position: relative;
    background: url("bg.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* طبقة تخفيض الإضاءة */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* التحكم بالإضاءة */
    z-index: 0;
    pointer-events: none; /* مهم جداً */
}

/* إبقاء محتوى اللعبة فوق الخلفية */
.game-container,
.wait-box,
#negModal {
    position: relative;
    z-index: 1;
}


/* -------------------------------------------- */
/*        DISABLE TEXT SELECTION                */
/* -------------------------------------------- */

* {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;
}

/* السماح بالكتابة داخل الحقول فقط */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}


.neg-player-row{
    border:2px solid #ff9800;
    padding:8px;
    border-radius:8px;
    margin-bottom:6px;
}
.neg-accept{ border-color:#2ecc71 !important; }
.neg-reject{ border-color:#e74c3c !important; }
.neg-wait{ border-color:#ff9800 !important; }