.jackpot-hits {
    background-color: #1a1a1a;
    padding: 20px 30px;
    border-radius: 0 0 10px 10px
}

.jackpot-hits .items-6 .item {
    width: calc(16.66% - 15px)
}

.jackpot-hits .items-5 .item {
    width: calc(20% - 15px)
}

.jackpot-hits .items-1 .item,.jackpot-hits .items-2 .item,.jackpot-hits .items-3 .item,.jackpot-hits .items-4 .item {
    width: calc(25% - 15px)
}

.jackpot-hits .item {
    width: 70px;
    z-index: 2;
    -webkit-transition: all .3s;
    transition: all .3s;
    white-space: nowrap;
    max-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 5px
}

.jackpot-hits .item .user {
    width: 42px;
    height: 46px;
    cursor: pointer
}

.jackpot-hits .item .user img {
    border-radius: 100%;
    display: block;
    width: 100%;
    padding: 3px
}

.jackpot-hits .item .hit {
    font-size: 13px;
    font-weight: 500;
    margin: 4px
}

.jackpot-hits .item.current {
    color: #fff;
    background: #62ca5b;
    border-color: #62ca5b
}

@media(max-width: 820px) {
    .jackpot-hits {
        padding:10px 30px
    }
}

@media(max-width: 820px) {
    .jackpot-hits .item .hit {
        font-size:10px
    }
}

.circle {
    text-align: center;
    height: 330px !important;
    width: 330px !important;
    max-width: 100% !important;
    display: block;
    position: relative;
    margin: 10px auto !important;
}

.fix-circle {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle_jackpot {
    max-width: 330px !important;
    max-height: 330px !important;
    margin: 0 auto;
    display: block;
    width: 330px !important;
    height: 330px !important;
    transition: all 0 ease 0;
    transform: rotate(0deg);
}

.time .spinner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    bottom: 0;
    display: block;
    margin: auto;
    width: 0;
    -webkit-transition: -webkit-transform 4s cubic-bezier(.1,.3,0,1);
    transition: -webkit-transform 4s cubic-bezier(.1,.3,0,1);
    -o-transition: transform 4s cubic-bezier(.1,.3,0,1);
    transition: transform 4s cubic-bezier(.1,.3,0,1);
    transition: transform 4s cubic-bezier(.1,.3,0,1),-webkit-transform 4s cubic-bezier(.1,.3,0,1)
}

.time .spinner svg {
    display: block;
    margin: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    z-index: 1;
    position: relative;
    top: 6px;
    width: 50px;
    height: 40px;
    right: calc(50px/2)
}

.time .block {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 100%;
    z-index: 1;
    background: #121212;
}

[data-theme="light"] .time .block {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.avatars {
    width: 330px !important;
    height: 330px !important;
    position: absolute;
    top: 0;
    left: 0;
}

.avatars .avatar {
    width: 100%;
    height: 100%;
    position: absolute;
    transform: rotate(19deg)
}

.avatars .avatar img {
    display: table;
    margin: 0 auto;
    width: 35px;
    border-radius: 50%;
    margin-top: 18px
}

.time .block .title {
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

[data-theme="light"] .time .block .title {
    color: #64748b !important;
}

.time .block .value {
    font-size: 38px;
    color: #fff;
    letter-spacing: -1px;
    font-weight: 800;
}

[data-theme="light"] .time .block .value {
    color: #0f172a !important;
}

.time .block .value.bank {
    font-size: 26px;
    line-height: 38px;
    padding-top: 4px;
    font-weight: 800;
}

[data-theme="light"] .time .block .value.bank {
    color: #059669 !important;
}

.time .block .line {
    width: 130px;
    height: 2px;
    background: #454d6d;
    margin: 8px 0;
    border-radius: 6px;
}

[data-theme="light"] .time .block .line {
    background: rgba(0, 0, 0, 0.08) !important;
}

.winner-block {
    position: absolute;
    z-index: 5
}

#bets .sanitize-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#bets .sanitize-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

/* Jackpot Bets Table Enhanced Styling */
.bets-section .game-stats {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 100%;
}

.bets-section .table-heading {
    display: table;
    width: 100%;
    table-layout: fixed;
    background: #151a28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bets-section .table-heading .th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    vertical-align: middle;
}

.bets-section .table-heading .th:nth-child(2),
.bets-section .table-heading .th:nth-child(3),
.bets-section .table-heading .th:nth-child(4) {
    text-align: center;
}

.bets-section .table-heading .th:last-child {
    text-align: right;
}

.bets-section .table-stats-wrap {
    overflow-y: auto;
    overflow-x: hidden;
}

.bets-section .table-stats-wrap::-webkit-scrollbar {
    width: 6px;
}

.bets-section .table-stats-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.bets-section .table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

.bets-section .table tbody tr {
    height: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bets-section .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.bets-section .table tbody tr td {
    padding: 10px 18px;
    font-size: 13px;
    color: #cbd5e1;
    vertical-align: middle;
}

.bets-section .table tbody tr td:nth-child(2),
.bets-section .table tbody tr td:nth-child(3),
.bets-section .table tbody tr td:nth-child(4) {
    text-align: center;
}

.bets-section .table tbody tr td:last-child {
    text-align: right;
}

.bets-section .username .btn-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bets-section .sanitize-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bets-section .sanitize-name {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 13px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.bets-section .bet-number {
    display: inline-flex;
    align-items: center;
}

.bets-section .bet-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
    color: #f8fafc;
}

.bets-section .bet-wrap svg.icon-coin {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.bets-section .bet-wrap svg.icon-ticket {
    width: 14px;
    height: 14px;
    fill: #38bdf8;
    flex-shrink: 0;
}

.bets-section .bet-wrap .win {
    color: #10b981 !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.bets-section .bet-wrap .lose {
    color: #64748b !important;
    font-weight: 600;
}

.bets-section .bet-wrap .wait {
    color: #f59e0b !important;
    font-weight: 700;
    font-size: 12px;
}

.bets-section .bet-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: center;
}

.bets-section .bet-type.bet_green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.jackpot-winner-highlight {
    box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.25);
    animation: jackpotWinnerPulse 2s infinite alternate;
}

@keyframes jackpotWinnerPulse {
    0% { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.18) 100%); }
    100% { background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.32) 100%); }
}

/* Light Mode Support for Jackpot Table */
[data-theme="light"] .bets-section .game-stats {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .bets-section .table-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .bets-section .table-heading .th {
    color: #64748b !important;
}

[data-theme="light"] .bets-section .table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .bets-section .table tbody tr:hover {
    background: #f1f5f9 !important;
}

[data-theme="light"] .bets-section .sanitize-name {
    color: #0f172a !important;
}

[data-theme="light"] .bets-section .bet-wrap {
    color: #0f172a !important;
}
