:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    --bg-color: #000000;
    --text-first: #fafafa;
    --text-second: #fafafa;
    --first-color: #9b59b6;
    --second-color: #8e44ad;
    --third-color: #6c3483;
    --fourth-color: #5e3370;
    --fifth-color: #a569bd;
    --sixth-color: #1a0f1f;
    --g1: #ff3333;
    --g2: #ffaa00;
    --marquee: #9b59b6;
    --purple-dark: #5a2d7a;
    --purple-light: #b87cd9;
}

body {
    background: var(--bg-color);
    color: var(--text-first);
}

.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(155, 89, 182, 0.5));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px rgba(155, 89, 182, 0.8));
}

.rtp-card {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--fourth-color) 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.rtp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 8px;
    box-shadow: inset 0 0 4px 2px rgba(155, 89, 182, 0.3);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    box-shadow: inset 0 0 8px 3px rgba(155, 89, 182, 0.5);
}

/* Tombol Play dengan Efek Gradient Dinamis */
.btn-play {
    border-radius: 15px 2px 15px 5px !important;
    padding: 0.5rem;
    width: 100%;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: capitalize;
    border: 1px solid var(--first-color) !important;
    background: linear-gradient(270deg, #6a1b9a 0%, #9b59b6 21%, #b87cd9 33%, #e1b3ff 44%, #a569bd 60%, #8e44ad 73%, #7b3f9e 85%, #5e3370 100%);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    color: var(--text-first);
    margin-top: 10px;
    box-shadow: inset 0 0 5px 3px rgba(129, 64, 214, 0.5), inset 0 2px 0 0 rgba(255,255,255,0.2), inset 0 0 0 2px rgba(155, 89, 182, 0.6), 3px 3px 3px 1px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 8px 4px rgba(129, 64, 214, 0.7), inset 0 2px 0 0 rgba(255,255,255,0.3), inset 0 0 0 2px rgba(155, 89, 182, 0.8), 5px 5px 5px 2px rgba(0,0,0,0.3);
    animation: gradientShift 3s ease infinite;
}

.btn-play:active {
    transform: translateY(1px);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.pola-wrapper {
    background: linear-gradient(135deg, var(--sixth-color) 0%, #2d1a33 100%);
    padding: 0.9rem;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.pola-wrapper h4 {
    font-size: 0.9rem;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--g2);
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
}

.jam-wrapper {
    background: linear-gradient(135deg, #1a0f1f 0%, #2d1a33 100%);
    border-radius: 50%;
    padding: 0.6rem;
    border: 2px solid var(--first-color);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.table-pola {
    max-width: 100%;
    width: 100%;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.6rem;
}

.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
}

.top-game {
    background: url('../img/top.gif');
}

.hot-game {
    background: url('../img/hot.gif');
}

.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.2rem;
    transition: transform 0.3s ease;
}

.icon-providers:hover {
    transform: scale(1.1);
}

.icon-providers img {
    width: 1.7rem;
}

.slider, .swiper {
    width: 100%;
    max-width: 100%;
}

.slider-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.slider-wrapper {
    background: linear-gradient(135deg, var(--text-second) 0%, #f0f0f0 100%);
    height: 100%;
    border-bottom: 2px solid var(--first-color);
}

.running-text {
    background: linear-gradient(90deg, var(--first-color) 0%, var(--fifth-color) 50%, var(--first-color) 100%);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-second);
    padding: 0.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
        background: linear-gradient(90deg, var(--fifth-color) 0%, var(--first-color) 50%, var(--fifth-color) 100%);
    }
}

.icon-prov {
    background: linear-gradient(135deg, var(--second-color) 0%, var(--first-color) 100%);
    display: flex;
    position: relative;
    overflow: auto !important;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(155, 89, 182, 0.3);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    color: var(--text-second);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.icon-card-bg:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-second);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    /* Hapus atau koment dua baris di bawah */
    /* filter: brightness(0) invert(1); */
    transition: all 0.3s ease;
}

.img-prov:hover {
    /* filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); */
    transform: scale(1.05);
}

.item-prov {
    padding: 0 0.5rem;
}

/* Tombol Login dengan Efek Seperti Contoh */
.btn-login {
    background: linear-gradient(270deg, #ff3333 0%, #ffaa00 21%, #ffcc33 33%, #ffff66 44%, #ffaa00 60%, #ff3333 73%, #ff5555 85%, #ff3333 100%);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    padding: 0.5rem 1.2rem;
    color: var(--text-second);
    border: 1px solid #ffaa00 !important;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 15px 2px 15px 5px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 0 5px 3px rgba(255, 51, 51, 0.5), inset 0 2px 0 0 rgba(255,255,255,0.3), inset 0 0 0 2px rgba(255, 170, 0, 0.6), 3px 3px 3px 1px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 8px 4px rgba(255, 51, 51, 0.7), inset 0 2px 0 0 rgba(255,255,255,0.4), inset 0 0 0 2px rgba(255, 170, 0, 0.8), 5px 5px 5px 2px rgba(0,0,0,0.3);
    animation: gradientShift 3s ease infinite;
}

.btn-login:active {
    transform: translateY(1px);
}

/* Tombol Daftar dengan Efek Seperti Contoh (Warna Biru ke Ungu) */
.btn-daftar {
    background: linear-gradient(270deg, #6a1b9a 0%, #9b59b6 21%, #b87cd9 33%, #e1b3ff 44%, #a569bd 60%, #8e44ad 73%, #7b3f9e 85%, #5e3370 100%);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    padding: 0.5rem 1.2rem;
    color: var(--text-second);
    border: 1px solid #9b59b6 !important;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 15px 2px 15px 5px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 0 5px 3px rgba(129, 64, 214, 0.5), inset 0 2px 0 0 rgba(255,255,255,0.2), inset 0 0 0 2px rgba(155, 89, 182, 0.6), 3px 3px 3px 1px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-daftar:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 8px 4px rgba(129, 64, 214, 0.7), inset 0 2px 0 0 rgba(255,255,255,0.3), inset 0 0 0 2px rgba(155, 89, 182, 0.8), 5px 5px 5px 2px rgba(0,0,0,0.3);
    animation: gradientShift 3s ease infinite;
}

.btn-daftar:active {
    transform: translateY(1px);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--fifth-color);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.item-nav-bottom {
    background: linear-gradient(135deg, var(--second-color) 0%, var(--first-color) 100%);
    color: var(--text-second);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-nav-bottom:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.item-nav-bottom:hover:before {
    left: 100%;
}

.item-nav-bottom:hover {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
    cursor: pointer;
    transform: translateY(-2px);
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.btn-up {
    display: none;
    position: fixed;
    bottom: 3.8rem;
    right: 1rem;
    z-index: 99;
    font-size: 0.9rem;
    background: var(--first-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

.btn-up:hover {
    transform: scale(1.1);
    background: var(--fifth-color);
}

/* Percentage */
.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 5px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Percentage - Perbaikan Total */
.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 5px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.5px;
}

.percent-bar {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
    position: relative;
    height: 100%;
    border-radius: 5px;
}

/* Warna berdasarkan persentase */
.good {
    background: linear-gradient(90deg, #fff129 0%, #ffc013 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.great {
    background: linear-gradient(90deg, #a569bd 0%, #d4a5ff 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.bad {
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 100%);
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    color: var(--text-second);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Container */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0f1f;
}

::-webkit-scrollbar-thumb {
    background: var(--first-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fifth-color);
}

/* Selection Color */
::selection {
    background: var(--first-color);
    color: white;
}

/* Smooth Transitions */
a, button, .btn-play, .icon-card-bg, .item-nav-bottom, .rtp-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}