/* ====== RTP LIVE & JAM GACOR (redesign v2 - dark theme) ====== */
.rtp-live-section {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, .12) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(180deg, #02061a 0%, #000418 60%);
    padding: 48px 0 56px;
    color: #e8eefc;
    font-family: 'digital_sans_ef_medium', Arial, Helvetica, sans-serif;
    border-top: 1px solid rgba(212, 175, 55, .25);
}

.rtp-live-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.rtp-live-header {
    text-align: center;
    margin-bottom: 30px;
}

.rtp-live-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #c8911a, #e6b93f, #c8911a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e6b93f;
}

.rtp-live-header p {
    margin: 0 auto;
    max-width: 660px;
    color: #9fb0d6;
    font-size: 14px;
    line-height: 1.5;
}

.rtp-live-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.rtp-live-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .45);
    color: #f0c64a;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: .5px;
}

.rtp-live-clock::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: rtpPulse 1.4s infinite;
}

@keyframes rtpPulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.rtp-refresh-btn {
    cursor: pointer;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5d77a, #d4af37);
    color: #2a2210;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 20px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 12px rgba(212, 175, 55, .30);
}

.rtp-refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, .45);
}

.rtp-refresh-btn:active {
    transform: translateY(0);
}

.rtp-refresh-btn[disabled] {
    opacity: .6;
    cursor: default;
}

/* ---- 4 x 3 fixed grid (12 cards) ---- */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.rtp-card {
    background: linear-gradient(160deg, #0b1533 0%, #070d22 100%);
    border: 1px solid rgba(212, 175, 55, .32);
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
    transition: transform .18s, border-color .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
}

.rtp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, .75);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .6);
}

.rtp-thumb {
    position: relative;
    width: 100%;
    height: 132px;
    background: #0a1024;
    overflow: hidden;
}

.rtp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.rtp-card:hover .rtp-thumb img {
    transform: scale(1.07);
}

.rtp-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, 0) 40%, rgba(7, 13, 34, .85) 100%);
    pointer-events: none;
}

.rtp-prov {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 9px;
    border-radius: 7px;
    color: #fff;
    text-transform: uppercase;
}

.rtp-status {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 7px;
    white-space: nowrap;
}

.rtp-thumb .rtp-prov {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.rtp-thumb .rtp-status {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(7, 13, 34, .9);
}

.rtp-thumb .rtp-status.is-gacor {
    color: #3ddc84;
    border: 1px solid rgba(46, 204, 113, .6);
}

.rtp-thumb .rtp-status.is-normal {
    color: #f0c64a;
    border: 1px solid rgba(212, 175, 55, .6);
}

.rtp-thumb .rtp-status.is-low {
    color: #ff6b5e;
    border: 1px solid rgba(231, 76, 60, .6);
}

/* RTP % badge floating over the thumbnail */
.rtp-badge {
    position: absolute;
    right: 10px;
    bottom: -16px;
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b1533;
    border: 2px solid currentColor;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    line-height: 1;
}

.rtp-badge b {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rtp-badge small {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #8aa0c8;
    margin-top: 1px;
}

.rtp-card-content {
    padding: 22px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rtp-game {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 11px;
    line-height: 1.25;
    min-height: 40px;
}

.rtp-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    overflow: hidden;
    margin-bottom: 13px;
}

.rtp-bar>span {
    display: block;
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

.rtp-info {
    border-top: 1px dashed rgba(212, 175, 55, .35);
    padding-top: 11px;
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.rtp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
}

.rtp-info-item .rtp-label {
    color: #8aa0c8;
    min-width: 70px;
    font-weight: 600;
}

.rtp-info-item .rtp-value {
    color: #dfe6f7;
    font-weight: 700;
}

.rtp-info-item .rtp-value.jam {
    color: #f0c64a;
}

.rtp-play {
    display: block;
    text-align: center;
    margin-top: 13px;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .6px;
    text-decoration: none;
    color: #2a2210;
    background: linear-gradient(135deg, #f5d77a, #d4af37);
    box-shadow: 0 4px 12px rgba(212, 175, 55, .28);
    transition: transform .15s, box-shadow .15s;
}

.rtp-play:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(212, 175, 55, .42);
}

.rtp-disclaimer {
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: #6f80a8;
}

/* ===== Member Win Popup (dark) ===== */
.win-popup {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1035;
    width: 312px;
    max-width: calc(100vw - 36px);
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 34px 12px 12px;
    background: linear-gradient(160deg, #0b1533 0%, #070d22 100%);
    border: 1px solid rgba(212, 175, 55, .5);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    font-family: 'digital_sans_ef_medium', Arial, Helvetica, sans-serif;
    transform: translateX(-130%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .5s;
}

.win-popup.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.win-popup-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .4);
    background: #0a1024;
}

.win-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.win-popup-body {
    min-width: 0;
    flex: 1;
}

.win-popup-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.win-popup-badge {
    font-size: 10px;
    font-weight: 700;
    color: #3ddc84;
    background: rgba(46, 204, 113, .16);
    border: 1px solid rgba(46, 204, 113, .45);
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.win-popup-id {
    font-size: 12px;
    font-weight: 700;
    color: #f0c64a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-popup-game {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-popup-prov {
    font-size: 11px;
    color: #8aa0c8;
    margin-bottom: 3px;
}

.win-popup-amount {
    font-size: 16px;
    font-weight: 800;
    color: #f0c64a;
    letter-spacing: .3px;
}

.win-popup.is-visible .win-popup-amount {
    animation: winPop .6s ease;
}

@keyframes winPop {
    0% {
        transform: scale(.7);
        opacity: 0
    }

    60% {
        transform: scale(1.08)
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.win-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #6f80a8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.win-popup-close:hover {
    color: #cdd6f0;
}

/* ---- responsive: 4 -> 3 -> 2 -> 1 columns ---- */
@media (max-width: 1024px) {
    .rtp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .rtp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rtp-live-header h2 {
        font-size: 23px;
    }

    .rtp-grid {
        grid-template-columns: 1fr;
    }

    .win-popup {
        width: 270px;
        left: 10px;
        bottom: 10px;
    }
}
