.stat-number {
    transition: all 0.3s ease;
}

.prediction-table-wrapper {
    width: 100%;
    /*overflow: hidden;*/
    
    max-height: 500px;       
    overflow-y: auto;        
    border-radius: 14px;
}

.prediction-table {
    /*width: 100%;*/
     width: max-content;
    border-collapse: collapse;
    min-width: 100%;
    background: #ffffff;
    border-radius: 14px;
    /*overflow: hidden;*/
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.prediction-table thead {
    
    position: sticky;
    top: 0;
    z-index: 10;
    
    
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #fff;
}

.prediction-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.prediction-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 10px;
}

.prediction-table th {
    padding: 15px;
    font-size: 14px;
    text-transform: capitalize;
    text-align: center;
}

.prediction-table td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}

/*.match-link {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 10px;*/
/*    text-decoration: none;*/
/*    color: #0f172a;*/
/*    font-weight: 600;*/
/*}*/

.match-link {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    gap: 10px;
    width: 100%;
}


.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team:first-child {
    justify-content: flex-end;
    text-align: right;
}

.team:last-child {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    width: 30px;
    height: 30px;
}

.vs {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.correct {
    background: #dcfce7;
    color: #166534;
    padding: 5px 10px;
    border-radius: 20px;
}

.wrong {
    background: #fee2e2;
    color: #991b1b;
    padding: 5px 10px;
    border-radius: 20px;
}

.pending {
    background: #fef3c7;
    color: #92400e;
    padding: 5px 10px;
    border-radius: 20px;
}

.abandoned {
    background: #e0e7ff;
    color: #3730a3;
    padding: 5px 10px;
    border-radius: 20px;
}

.result-icon {
    display: none;
}


/*Data Status CSS*/

.cbt-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/*.stat-box {*/
/*    background: #ffffff;*/
/*    border-radius: 12px;*/
/*    padding: 18px;*/
/*    text-align: center;*/
/*    box-shadow: 0 8px 20px rgba(0,0,0,0.06);*/
/*}*/

.stat-box {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

/* ICON */
.stat-box::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
}

/*.stat-number {*/
/*    font-size: 22px;*/
/*    font-weight: 700;*/
/*    margin-bottom: 5px;*/
/*}*/

/* NUMBER */
.stat-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* COLORS */
.stat-box.total {
    background: #f1f5f9;
}
.stat-box.correct {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}
.stat-box.correct .stat-label {
    color: rgba(255,255,255,0.8);
}
/* WRONG */
.stat-box.wrong {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.stat-box.wrong .stat-label {
    color: rgba(255,255,255,0.8);
}

/* PENDING */
.stat-box.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.stat-box.pending .stat-label {
    color: rgba(255,255,255,0.8);
}
/*ACCURACY */
.stat-box.accuracy {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37,99,235,0.35);
}

.stat-box.accuracy .stat-number {
    font-size: 32px;
}

.stat-box.accuracy .stat-label {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.stat-icon {
    font-size: 18px;
    margin-bottom: 6px;
    opacity: 0.8;
}


@media (max-width: 768px) {

    .prediction-table-wrapper {
        max-height: 400px; 
         width: 100%;
        overflow-x: auto;
        overflow-y: auto;
    }
    
    .prediction-table {
        width: 400px;
    }

    .prediction-table th {
        font-size: 12px;
        padding: 10px;
    }

    .prediction-table td {
        font-size: 12px;
        padding: 10px;
    }

    .team-logo {
        width: 50px;
        height: 50px;
    }

    .vs {
        font-size: 11px;
    }

    /* Optional: hide full names if needed */
    .team-name {
        display: none;
    }

    .match-link {
        gap: 6px;
    }
    
     .result-text {
        display: none; /* hide text */
    }

    .result-icon {
        display: inline; /* show icon */
        font-size: 16px;
        font-weight: bold;
    }

    .result-badge {
        /*padding: 6px 8px;*/
        /*border-radius: 50%;*/
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /*min-width: 28px;*/
        /*height: 28px;*/
        background: none;
    }
    
    .correct .result-icon {
    color: #16a34a;
}

.abandoned .result-icon {
    color: #4338ca;
}

.wrong .result-icon {
    color: #dc2626;
}

.pending .result-icon {
    color: #d97706;
}
    
    .cbt-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 18px;
    }
    
      .cbt-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .stat-box {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Accuracy full width (highlight) */
    .stat-box.accuracy {
        grid-column: span 2;
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(37,99,235,0.25);
    }

    /* Reduce hover effect (mobile safe) */
    .stat-box:hover {
        transform: none;
    }

    /* Reduce background circle */
    .stat-box::before {
        width: 50px;
        height: 50px;
        top: -20px;
        right: -20px;
    }
    
    
    
    
    
    
}





@media (min-width: 769px) and (max-width: 1024px) {

    .prediction-table-wrapper {
        max-height: 450px; /* slightly less than desktop */
    }

    .prediction-table th {
        font-size: 13px;
        padding: 12px;
    }

    .prediction-table td {
        font-size: 13px;
        padding: 12px;
    }

    .team-logo {
        width: 26px;
        height: 26px;
    }

    .vs {
        font-size: 12px;
    }

    .match-link {
        gap: 8px;
    }

    
    .team-name {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
       .cbt-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 18px 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12.5px;
    }

    /* Accuracy slight highlight but not oversized */
    .stat-box.accuracy {
        grid-column: span 3;
        transform: scale(1.02);
    }
    
    
}