.alert-danger, .alert-success{
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
}
.alert-success{
    background-color: #D4EDDA;
    color: #155724;
}
.alert-danger{
    background-color: #F8D7DA;
    color: #721C24;
}
.payment-button-category[data-active="true"]{
    filter: grayscale(80%);
}
.register-form select option{
    background: #000;
}
.pwc-transaction-form-group select option{
    background: #fff;
    color: #000;
}
.pwc-transaction-form-group select:hover{
    background: #fff;
    color: #000;
}
.pwc-transaction-form-group select:out-of-range{
    background: #4A0404;
    color: #fff;
}
/* Font Faces */
@font-face {
    font-family: 'Digital-7';
    src: url('/desktop/fonts/digital-7.ttf') format('truetype');
}

@font-face {
    font-family: 'Bebas';
    src: url('/desktop/fonts/bebas.ttf') format('truetype');
}
/* Jackpot Bar */
.jackpot-bar {
    width: 100%;
    margin: 15px 0 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.jackpot-bar img {
    width: 1140px;
    height: auto;
    display: block;
}

.jackpot-number {
    color: #ffd700;
    font-family: 'Digital-7', monospace;
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 62%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 2px 2px 4px rgba(178, 134, 11, 0.5);
    animation: goldShimmer 2s ease-in-out infinite;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 51%;
    transform: translateY(-50%);
    width: 32px;
    height: auto;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.nav-btn img {
    width: 94%;
    height: 94%;
    object-fit: contain;
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    /* bottom: 4%; */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot img {
    width: 13px;
    height: 13px;
    display: block;
}

/* Info Section */
.info-section {
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 0px;
    height: 500px;
    /* margin-top: 4px; */
}
/* Withdraw List */
.wd-list {
    position: absolute;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 183px;
    overflow: hidden;
}

/* Live Casino Section */
.live-casino {
    position: relative;
    max-width: 60%;
    padding: 14px 24px;
    margin: 15px auto 0;
    height: 300px;
    border: 3px solid #FFD261;
    border-radius: 30px;
}

.live-casino-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.live-casino-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    height: 85%;
}

.live-nav-btn {
    position: absolute;
    top: 44%;
    width: 40px;
    height: 40px;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
}

.live-nav-btn.prev { left: 20px; }
.live-nav-btn.next { right: 20px; }
.other-nav-btn {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
}

.other-nav-btn.prev { left: 20px; }
.other-nav-btn.next { right: 20px; }

.game-categories {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 50px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.category-row.first-row {
    justify-content: center;
}

.category-row.second-row {
    justify-content: center;
}

.category-row.third-row {
    justify-content: center;
}

.category-item {
    text-align: center;
    flex: 0 0 auto;
}

.category-item img {
    width: 470px;
    height: auto;
    transition: transform 0.3s ease;
}

.category-item img:hover {
    transform: scale(1.05);
}

.copyright-text {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-family: 'Bebas', sans-serif;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}
.withdraw-info {
    position: relative;
    width: 100%;
    height: 297px;
} 
.result-info {
    position: relative;
    width: 100%;
    height: 306px;
}

.withdraw-item {
    color: #ffd700;
    font-family: 'Bebas', sans-serif;
    font-size: 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 1px;
    /* text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 2px 2px 4px rgba(178, 134, 11, 0.5); */
    animation: goldShimmer 2s ease-in-out infinite;
    height: 40px;
}

.withdraw-item .player-name {
    width: 180px;
    text-align: left;
}

.withdraw-item .idr {
    text-align: center;
    letter-spacing: 5px;
    margin: 0 15px;
}

.withdraw-item .amount {
    width: 200px;
    text-align: right;
}

/* Result Info */
.result-content {
    position: absolute;
    width: 100%;
    height: 100%;
}

.result-pasaran {
    position: absolute;
    top: -283px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-family: 'Bebas', sans-serif;
    font-size: 39px;
    text-align: center;
    background: linear-gradient(to bottom, #fff4c4, #edc967);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 3px 0;
    transition: opacity 0.3s ease;
    text-shadow: none;
}

.result-number {
    color: #ffd700;
    font-family: 'Bebas', sans-serif;
    font-size: 137px;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.7),
        2px 2px 4px rgba(178, 134, 11, 0.5);
    animation: goldShimmer 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
    margin-left: 60px;
    margin-top: 50px;
}

.result-numbers-container {
    position: absolute;
    top: -56%;
    left: 40%;
    transform: translate(-50%, -40%);
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Frames */
.wd-frame, 
.result-frame {
    width: 100%;
    height: 94%;
    object-fit: fill;
}

.live-game-item {
    flex: 0 0 auto;
    width: 160px;
    height: 180px;
    padding: 5px;
    transition: transform 0.3s ease;
}

.live-game-item img {
    width: 100%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
/* Other Games Section */
.other-games {
    position: relative;
    width: 60%;
    background-size: 100% 100%;
    padding: 14px 24px;
    margin: 15px auto 0;
    height: 270px;
    border: 3px solid #FFD261;
    border-radius: 20px;
}

.other-games-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.other-games-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    height: 70%;
}

.other-game-item {
    flex: 0 0 auto;
    width: 320px;
    /* height: 229px; */
    padding: 0px;
    transition: transform 0.3s ease;
}

.other-game-item img {
    width: 70%;
    /* height: 90%; */
    object-fit: contain;
    transition: transform 0.3s ease;
    /* margin-left: 54px; */
}
/* Togel Results Section */
.togel-results {
    position: relative;
    width: 1140px;
    background-size: 100% 100%;
    padding: 0px 0px;
    margin: 15px auto 0;
    height: 415px; /* Mengurangi height */
    overflow: hidden; /* Menambahkan overflow hidden */
}
.togel-header {
    text-align: center;
    color: white;
    padding: 5px 0;
    position: relative;
    width: 100%;
}

.separator-line {
    width: 90%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.date-today {
    font-size: 25px;
    margin: 3px 0;
    color: #daa520;
    position: relative;
}.togel-header h2 {
    font-family: 'Bebas', sans-serif;
    font-size: 50px;
    margin: 0;
    letter-spacing: 5px;
}.togel-results .results-container {
    padding: 15px 30px;
    overflow: hidden; /* Mengubah overflow-x menjadi hidden saja */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Menyesuaikan height */
    margin-top: 10px;
}

.togel-results .results-grid {
    display: grid;
    grid-template-columns: repeat(6, 170px);
    grid-template-rows: repeat(2, 90px); /* Mengurangi ukuran row */
    gap: 10px; /* Mengurangi gap */
    width: fit-content;
    margin: 40px 161px; /* Menyesuaikan margin */
}

.togel-results .result-item {
    width: 100%;
    height: 100%;
    padding: 5px;
    background: url('/desktop/assets/image/live-per-to/frameresultmini.webp') no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Style untuk result item yang kosong/belum ada */
.togel-results .result-item.empty {
    opacity: 0.6;
}

.togel-results .result-item.empty .result-number {
    opacity: 1;
    color: rgba(255, 215, 0, 0.5);
}

.togel-results .result-item.empty .market-name {
    opacity: 1;
}

/* Tambahkan animasi untuk transisi status */
.togel-results .result-item.active {
    animation: activateResult 0.5s ease-in-out;
}

@keyframes activateResult {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}
.togel-results .market-name {
    font-family: 'Bebas', sans-serif;
    font-size: 14px;
    color: #ffd700;
    text-align: center;
    position: absolute;
    /* Variabel untuk mengatur posisi */
    --x-offset: -8px;  /* Geser horizontal (- kiri, + kanan) */
    --y-offset: -33px; /* Geser vertikal (- atas, + bawah) */
    transform: translate(var(--x-offset), var(--y-offset));
}

.togel-results .result-number {
    font-family: 'Digital-7', monospace;
    font-size: 65px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    text-align: center;
    position: absolute;
    /* Variabel untuk mengatur posisi */
    --x-offset: -33px;  /* Geser horizontal (- kiri, + kanan) */
    --y-offset: -13px; /* Geser vertikal (- atas, + bawah) */
    transform: translate(var(--x-offset), var(--y-offset));
}
.togel-results .result-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 40px;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
}
.togel-results .result-nav.prev {left: 5px;}
.togel-results .result-nav.next {right: 10px;}
.togel-results .result-nav img {
    width: 100%;
    height: auto;
}
.search-section {
    display: flex;
    justify-content: left;
    padding: 10px 40px;
}
.search-container {
    position: relative;
    width: auto;
}
.search-box {
    position: relative;
    width: 700px;
    height: 40px;
    background: url('/desktop/assets/image/live-per-to/blockhitam.webp') no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}
.search-text {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.search-box input {
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 14px;
    width: 642px;
    padding: 5px;
    margin-left: 27px;
}
.search-box input:focus + .search-text,
.search-box input:not(:placeholder-shown) + .search-text {
    opacity: 0;
}
.search-box input::placeholder {
    color: transparent;
}
.search-separator {
    position: absolute;
    left: 37px;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
}
.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}
.search-btn img {
    width: 20px;
    height: 20px;
}
/* Provider Detail Page Specific */
.provider-detail-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slot-games-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Media Query untuk 1600px */
@media screen and (max-width: 1600px) {
    /* Game Container and Popular Games */
    .game-container {
        max-width: 70%;
        padding: 0 30px;
    }

    .popular-games {
        height: 514px;
        padding: 65px;
    }

    .popular-logo {
        width: 70%;
        top: 5%;
    }

    .game-grid {
        margin: 9% 2%;
        height: 290px;
        gap: 0%;
        width: 99%;
        margin-left: 8px;
    }
    .result-info {
        height: 224px;
    }

    /* Info Section */
    /*.info-section {
        height: 700px;
    }*/

    /* Live Casino Section */
    .live-casino {
        height: 290px;
        padding: 8px 75px;
        width: 70%;
        /* bottom: 180px; */
    }
    .live-casino-wrapper {
       justify-content: center;
       gap: 20px; 
    }
    .live-nav-btn {
        top: 40%; 
    }

    .live-game-item {
        width: 190px;
        height: 220px;
        flex: auto;
    }

    /* Other Games Section */
    .other-games {
        height: 282px;
        padding: 8px 15px;
        width: 70%;
        /* margin-left: 228px; */
        /* bottom: 170px; */
    }

    .other-game-item {
       flex: auto;
    }
    /* Togel Results Section */
    .togel-results {
        height: 435px;
        width: 69.5vw;
        left: 52px;
    }

    .togel-results .results-container .results-grid {
        height: 190px;
        grid-template-columns: repeat(6, 148px);
        margin-left: 165px;
    }

    /* Text Sizes */
    .jackpot-number {
        font-size: 60px;
    }

    .withdraw-item {
        font-size: 22px;
        height: fit-content;
        width: auto;
        margin-top: 4px;
    }

    .result-pasaran {
        font-size: 36px;
        top: -96%;
    }

    .togel-results .result-number {
        font-size: 54px;
        margin-left: 60px;
        margin-top: 30%;
    }

    .togel-header h2 {
        font-size: 55px;
    }

    .date-today {
        font-size: 28px;
    }
.wd-list {
    top: 56px;
    width: 90%;
    gap: 11px;
    height: 215px;
}
.slider-dots {
    bottom: 10%;
    gap: 20px;
}

.dot img {
    width: 16px;
    height: 16px;
}
.nav-btn {
    width: 40px;
    top: 51%;
}
.nav-btn img {
    width: 80%;
    object-fit: contain; 
}
.nav-btn.prev { left: 18px; }
.nav-btn.next { right: 18px; }
.togel-results .result-nav {
    width: 45px;
    height: 45px;
}

.togel-results .result-nav.prev { left: 16px; }
.togel-results .result-nav.next { right: 16px; }

.togel-results .result-nav img {
    height: 100%;
    object-fit: contain;
}
.category-item img {
    width: 313px;
    height: auto;
    transition: transform 0.3s ease;
}
.result-numbers-container {
    top: -64%;
    left: 30%; 
}
.popular-games>.game-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateY(0);
    transition: all 0.3s ease;
}
}
@media screen and (max-width: 1366px) {
    /* Game Container and Popular Games */
    .game-container {
        max-width: 75%;
        padding: 0 25px;
    }

    .popular-games {
        height: 480px;
        padding: 55px;
    }

    .popular-logo {
        width: 65%;
        top: 4%;
    }

    .game-grid {
        margin: 8% 2%;
        height: 260px;
        gap: 2.5%;
        width: 98%;
        margin-left: 2px;
    }

    .result-info {
        height: 200px;
    }

    /* Info Section */
    /*.info-section {
        height: 650px;
    }*/

    /* Live Casino Section */
    .live-casino {
        height: 260px;
        padding: 8px 65px;
        width: 75%;
        /* bottom: 160px; */
    }

    .live-casino-wrapper {
        gap: 15px;
    }

    .live-nav-btn {
        top: 38%;
    }

    .live-game-item {
        width: 170px;
        height: 200px;
    }

    /* Other Games Section */
    .other-games {
        height: 250px;
        padding: 8px 12px;
        width: 75%;
        /* margin-left: 180px; */
        /* bottom: 150px; */
    }

    /* Togel Results Section */
    .togel-results {
        height: 400px;
        width: 75vw;
        left: 45px;
    }

    .togel-results .results-container .results-grid {
        height: 170px;
        grid-template-columns: repeat(6, 130px);
        margin-left: 145px;
    }

    /* Text Sizes */
    .jackpot-number {
        font-size: 52px;
    }

    .withdraw-item {
        font-size: 20px;
        margin-top: 3px;
    }

    .result-pasaran {
        font-size: 32px;
        top: -92%;
    }

    .togel-results .result-number {
        font-size: 48px;
        margin-left: 50px;
        margin-top: 28%;
    }

    .togel-header h2 {
        font-size: 48px;
    }

    .date-today {
        font-size: 24px;
    }

    .wd-list {
        top: 48px;
        width: 88%;
        gap: 9px;
        height: 200px;
    }

    .slider-dots {
        bottom: 8%;
        gap: 16px;
    }

    .dot img {
        width: 14px;
        height: 14px;
    }

    .nav-btn {
        width: 35px;
        top: 50%;
    }

    .nav-btn img {
        width: 75%;
    }

    .nav-btn.prev { left: 15px; }
    .nav-btn.next { right: 15px; }

    .togel-results .result-nav {
        width: 40px;
        height: 40px;
    }

    .togel-results .result-nav.prev { left: 12px; }
    .togel-results .result-nav.next { right: 12px; }

    .category-item img {
        width: 400px;
    }
}
/* CSS PLAY GAME */
.game-item[data-match="false"] {
    display: none !important;
}
.game-grid-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .game-grid-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .game-grid-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.game-item-list {
    display: flex;
    flex-direction: column;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

a.game-item-list.game-card{
    text-decoration: none;
}

.game-item-list:hover {
    transform: translateY(-5px);
}

.game-thumbnail-list {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.game-title-list {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-item-list a {
    color: #fff;
    text-decoration: none;
}



/* Game Container and Popular Games */
.game-container {
    width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
    position: relative;
}

.popular-games {
    position: relative;
    width: 70%;
    background-size: 100% 100%;
    padding: 0 48px;
    height: 500px;
    border: 3px solid #FFD261;
    border-radius: 20px;
}
/* Logo Popular Games */
.popular-logo {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: auto;
    z-index: 2;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0px;
    /* margin: 111px auto; */
    max-width: 100%;
    height: 342px;
    /* margin-left: 20px; */
}
/* Game Items Styling */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    min-height: 200px;
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
}

.game-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}
.game-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* display: block;
    transform: translateY(0);
    transition: all 0.3s ease;
    right: 4%; */
    /* z-index: 1; */
    pointer-events: none;
}
.link-container {
    position: relative;
    z-index: 2;
}
.game-item:hover {
    transform: scale(1.05);
}

.game-item:hover::after {
    content: 'MAIN';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to right, #FFD700, #FFA500);
    color: #000;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    opacity: 1;
    pointer-events: none;
}

.game-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}