/* ================================
   GLOBAL
================================ */
.cpl-prediction-entry-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px;
    font-family: Arial, sans-serif;
}

/* ================================
   DATE BAR
================================ */
.cpl-date-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    direction: ltr;
}

.cpl-date-selector button,
.cpl-save-all-btn {
    background: #111;
    color: #fff;
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    height: 40px;
}

.cpl-date-selector button:hover,
.cpl-save-all-btn:hover {
    background: #1e1e1e;
}

#cpl-date-picker {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #c7ccd4;
    border-radius: 8px;
    background: #fff;
    color: #1b2230;
    font-size: 14px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* ================================
   MATCH CARD
================================ */
.cpl-match-card {
    position: relative;
    background: #2a2d34;
    border-radius: 14px;
    padding: 14px 16px 16px;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.cpl-joker-card {
    border: 2px solid rgba(255, 215, 0, 0.9);
}

/* ================================
   CARD HEADER
================================ */
.cpl-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    margin-top: 2px;
    padding-left: 92px; /* مساحة بسيطة لصندوق الجوكر */
}

.cpl-card-head-left,
.cpl-card-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cpl-stage-badge {
    background: #f1c857;
    color: #111;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.cpl-match-id {
    background: #1b2130;
    color: #f1f5ff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.08);
}

.cpl-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.cpl-status-upcoming {
    background: #234a7a;
    color: #d9ecff;
    border: 1px solid rgba(120,180,255,0.35);
}

.cpl-status-live {
    background: #0f5132;
    color: #d1ffe7;
    border: 1px solid rgba(25,255,155,0.35);
}

.cpl-status-finished {
    background: #5a1f1f;
    color: #ffd6d6;
    border: 1px solid rgba(255,120,120,0.35);
}

/* ================================
   JOKER
================================ */
.cpl-joker-box {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
}

.cpl-joker-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cpl-joker-checkbox {
    display: none;
}

.cpl-joker-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #1f2228;
    border-radius: 999px;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.45);
}

.cpl-joker-slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d9d9d9;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.28);
}

.cpl-joker-checkbox:checked + .cpl-joker-slider {
    background: linear-gradient(145deg, #ffd700, #d2a800);
    box-shadow:
        0 0 8px rgba(255,215,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.cpl-joker-checkbox:checked + .cpl-joker-slider::before {
    transform: translateX(20px);
    background: #111;
}

.cpl-joker-text {
    font-size: 13px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.2px;
}

.cpl-joker-saved-badge {
    background: linear-gradient(145deg, #2b2512, #1d1910);
    color: #ffd700;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,215,0,0.45);
    box-shadow: 0 0 10px rgba(255,215,0,0.15);
}

/* ================================
   TEAMS
================================ */
.cpl-teams-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    color: #ffd166;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    flex-wrap: wrap;
}

.cpl-team-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpl-teams-row img {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.cpl-vs {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* ================================
   TIME
================================ */
.cpl-time {
    text-align: center;
    color: #c9c9c9;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* ================================
   INPUTS
================================ */
.cpl-prediction-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cpl-prediction-inputs input {
    width: 56px;
    height: 46px;
    text-align: center;
    border: 1px solid #434955;
    background: #3a404c;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 8px;
    box-sizing: border-box;
}

.cpl-prediction-inputs input:focus {
    outline: none;
    border-color: #7fb3ff;
}

/* ================================
   SAVE BUTTON
================================ */
.cpl-save-btn {
    display: block;
    margin: 0 auto;
    min-width: 92px;
    height: 40px;
    padding: 0 18px;
    background: linear-gradient(145deg, #00a300, #006400);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 4px 0 #004400,
        0 8px 16px rgba(0,0,0,0.35);
    transition: all 0.15s ease;
}

.cpl-save-btn:hover {
    filter: brightness(1.06);
}

.cpl-save-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 #004400,
        0 4px 8px rgba(0,0,0,0.28);
}

/* ================================
   CLOSED TEXT
================================ */
.cpl-closed-text {
    text-align: center;
    color: #9ea3ad;
    font-weight: 800;
    padding: 4px 0 2px;
}

/* ================================
   SAVE ALL
================================ */
.cpl-save-all-btn {
    display: block;
    margin: 12px 0 0 auto;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 640px) {
    .cpl-prediction-entry-wrapper {
        padding: 10px;
    }

    .cpl-date-selector {
        gap: 6px;
    }

    #cpl-date-picker {
        width: 170px;
        min-width: 170px;
        max-width: 170px;
    }

    .cpl-card-head {
        padding-left: 0;
        margin-top: 42px;
    }

    .cpl-joker-box {
        top: 10px;
        left: 12px;
    }

    .cpl-teams-row {
        font-size: 16px;
        gap: 10px;
    }

    .cpl-teams-row img {
        width: 42px;
        height: 28px;
    }

    .cpl-prediction-inputs input {
        width: 52px;
        height: 42px;
    }
}
.cpl-knockout-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ✅ شكل النص */
.cpl-knockout-toggle span {
    color: #ffffff;          /* أبيض واضح */
    font-weight: 700;        /* تخانة */
    font-size: 13px;
}

/* ✅ تحسين شكل checkbox */
.cpl-knockout-toggle input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 6px;
    cursor: pointer;
}

/* ✅ ترتيب label بالكامل */
.cpl-knockout-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.cpl-winner-wrap {
    margin-top: 8px;
    align-items: center;
    gap: 12px;
    display: flex !important;
}

.cpl-winner-label {
    color: #f5c542;   /* ذهبي واضح */
    font-weight: 800;
    font-size: 13px;
}



.cpl-winner-choice span {
    color: #f8fafc !important;
    font-weight: 900;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}



/* تحسين شكل radio */
.cpl-winner-radio {
    transform: scale(1.2);
    margin-right: 4px;
}
.cpl-winner-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.cpl-winner-choice.active {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.cpl-winner-choice.active span {
    color: #22c55e !important;
    font-weight: 800;
}
/* ✅ يجبر كل نص Winner يظهر */
.cpl-winner-choice {
    color: #ffffff !important;
}

/* ✅ يجبر النص داخل span */
.cpl-winner-choice span {
    color: #ffffff !important;
}

/* ✅ لو لسه باهت — إجبار كامل */
.cpl-match-card .cpl-winner-choice {
    color: #ffffff !important;
}

.cpl-match-card .cpl-winner-choice span {
    color: #ffffff !important;
}
.cpl-winner-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}



.cpl-winner-choice.active span {
    color: #22c55e !important;
    font-weight: 800;
}
