.jackpot-container {
    background: linear-gradient(
        165deg,
        rgba(128, 13, 13, 0.92) 0%,
        rgba(73, 0, 0, 0.95) 50%,
        rgba(50, 0, 0, 0.98) 100%
    );
    margin-top: 20px;
    padding: 22px 20px 26px;
    border-radius: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.08);
}

/* Gold shimmer sweep */
.jackpot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.04),
        rgba(255, 0, 0, 0.02),
        transparent
    );
    animation: jackpot-shimmer 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes jackpot-shimmer {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* Top accent line merah-emas */
.jackpot-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, #ff0000, #FFD700, transparent);
    z-index: 1;
}

/* ---------- Header ---------- */
.jackpot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 5px;
    position: relative;
    z-index: 2;
}

.jackpot-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Exo 2', sans-serif;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.15);
}

.jackpot-actions {
    display: flex;
    gap: 10px;
}

.jackpot-button {
    background: linear-gradient(to bottom, #ff0000 40%, #a70000 100%);
    color: #fff;
    padding: 5px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 2px 6px rgba(255, 0, 0, 0.25);
}

.jackpot-button:hover {
    background: linear-gradient(to bottom, #ff2222 40%, #cc0000 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 0, 0, 0.35);
}

.jackpot-button a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* ---------- Carousel grid ---------- */
.jackpot-grid.owl-carousel .owl-item {
    width: 120px;
    text-align: center;
}

.jackpot-grid.owl-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* ---------- Item card ---------- */
.jackpot-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.jackpot-item:hover {
    transform: translateY(-3px);
}

.jackpot-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #490000;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 0 5px rgba(255, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.jackpot-item:hover .jackpot-image-wrapper {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 0, 0, 0.15),
        0 0 20px rgba(255, 215, 0, 0.08);
}

.jackpot-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jackpot-item:hover .jackpot-image {
    transform: scale(1.05);
}

/* ---------- Rank badge ---------- */
.jackpot-rank {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 5px;
    z-index: 3;
    font-family: 'Exo 2', sans-serif;
    background-color: #ff0000;
    color: #ffffff;
}

/* Top 3 = gold-emas badge */
.jackpot-grid .owl-item:nth-child(1) .jackpot-rank,
.jackpot-grid .owl-item:nth-child(2) .jackpot-rank,
.jackpot-grid .owl-item:nth-child(3) .jackpot-rank {
    background: linear-gradient(to top, #af9307, #FFD700);
    color: #1a0a00;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    border: none;
}

/* ---------- Player count badge ---------- */
.jackpot-players {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 180, 80, 0.85);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
    font-family: 'Saira Condensed', sans-serif;
    display: flex;
    align-items: center;
    gap: 3px;
}

.jackpot-players i {
    font-size: 0.55rem;
}

/* ---------- Provider badge ---------- */
.jackpot-provider-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 0;
    text-align: center;
    font-family: 'Saira Condensed', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 3;
}

/* ---------- Details below image ---------- */
.jackpot-details {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.jackpot-amount {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: #FFD700;
    font-family: 'Exo 2', sans-serif;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.jackpot-user {
    display: flex;
    align-items: center;
    margin-top: 4px;
    color: #ffffff;
    font-size: 0.8rem;
    font-family: 'Saira Condensed', sans-serif;
}

.jackpot-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    margin-right: 5px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    border: 1.5px solid rgba(255, 215, 0, 0.35) !important;
}

.jackpot-date {
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
    font-family: 'Saira Condensed', sans-serif;
}

/* ---------- Owl Carousel nav arrows ---------- */
.jackpot-container .owl-nav {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.jackpot-container .owl-prev,
.jackpot-container .owl-next {
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    color: #FFD700 !important;
    font-size: 24px !important;
    line-height: 1;
    pointer-events: all;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.jackpot-container .owl-prev:hover,
.jackpot-container .owl-next:hover {
    background: rgba(128, 13, 13, 0.8) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow:
        0 0 12px rgba(255, 0, 0, 0.2),
        0 0 8px rgba(255, 215, 0, 0.1);
}

.jackpot-container .owl-prev {
    left: -25px;
}

.jackpot-container .owl-next {
    right: -25px;
}

.jackpot-container .owl-prev.disabled,
.jackpot-container .owl-next.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ---------- Edge fade ---------- */
.jackpot-grid.owl-carousel .owl-stage-outer::before,
.jackpot-grid.owl-carousel .owl-stage-outer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25px;
    z-index: 3;
    pointer-events: none;
}

.jackpot-grid.owl-carousel .owl-stage-outer::before {
    left: 0;
    background: linear-gradient(to right, rgba(73, 0, 0, 0.95), transparent);
}

.jackpot-grid.owl-carousel .owl-stage-outer::after {
    right: 0;
    background: linear-gradient(to left, rgba(73, 0, 0, 0.95), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .jackpot-container {
        padding: 16px 12px 20px;
        margin-top: 14px;
        border-radius: 8px;
    }

    .jackpot-title {
        font-size: 1.1rem;
    }

    .jackpot-button {
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    .jackpot-amount {
        font-size: 0.82rem;
    }

    .jackpot-container .owl-prev,
    .jackpot-container .owl-next {
        display: none !important;
    }

    .jackpot-grid.owl-carousel .owl-stage-outer::before,
    .jackpot-grid.owl-carousel .owl-stage-outer::after {
        width: 12px;
    }
}
