
:root {
    --primary: #bee900;
    --secondary: #e74c3c;
    --accent: #1cb676;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --white: #002507ed;
    --gray: #95a5a6;
    --dark-gray: #7f8c8d;
}

* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 2;
    color: #ffca00;
    background-image: url(background.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
}

.music-btn {
    position: fixed;
    top: 500px;
    right: 30px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 12px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-btn.muted {
    background: var(--gray);
}

.music-btn.muted i::before {
    content: "\f6a9";
}


.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: rgb(0, 0, 1);
    color: #ff0073ed;
}

.btn-primary:hover {
    background-color: #00ff8a;
}

.btn-secondary {
    background-color: rgb(0, 0, 1);
    color: #ff0073ed;
}

.btn-secondary:hover {
    background-color: #00ff8a;
}

.btn-register {
    background-color: #bee900;
    color: var(--white);
    margin-left: 15px;
}

.btn-register:hover {
    background-color: #e67e22;
}

.btn-play {
    background-color: var(--success);
    color: var(--white);
    padding: 8px 15px;
    font-size: 14px;
}

.btn-play:hover {
    background-color: #219653;
}

.btn-play-sm {
    background-color: var(--success);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.btn-play-lucky {
    background-color: var(--success);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.btn-play-lucky:hover {
    background-color: #218496;
}

.btn-load-more {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 3px;
    margin: 45px auto;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease-out;
}


.btn-load-more {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-load-more.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.games-grid {
    transition: opacity 0.3s ease;
}

.games-grid.loading {
    opacity: 0.6;
}

.btn-promo {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 25px;
    margin-top: 15px;
    display: inline-block;
}

.btn-promo:hover {
    background-color: #e67e22;
}


.header {
    background: linear-gradient(#002e02, rgb(0 0 0 / 39%), #002e02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 80px;
}

.header-actions {
    display: flex;
    gap: 15px;
}


.hero-banner {
    background-color: #002e02;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 0px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


.section-title {
    font-size: 25px;
    background-color: var(--white);
    margin-bottom: 5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #3dff00;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #e1e1e1;
}


.providers-section {
    padding: 10px 0;
}

.providers-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.providers-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 0px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.providers-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.provider-item {
    min-width: 120px;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.provider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.provider-item.active {
    border: 2px solid var(--accent);
}

.provider-item img {
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

.provider-item span {
    font-size: 20px;
    font-weight: 500;
}

.scroll-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: var(--secondary);
}


.games-section {
    padding: 200px 0 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-image {
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.game-info {
    padding: 3px;
}

.game-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.rtp-display {
    margin-top: 10px;
    font-size: 14px;
}

.rtp-track {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.rtp-bar {
    height: 100%;
    border-radius: 3px;
    background: #2ecc71;
    /* Default hijau */
    transition: width 0.5s ease, background-color 0.3s ease;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
}

.rtp-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
    /* Tambahkan ini */
}

.rtp-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease, background-color 0.5s ease;

    /* ANIMASI STRIPES DIPINDAH KE SINI */
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}


@keyframes progress-bar-stripes {
    0% {
        background-position-x: 1rem;
    }

    100% {
        background-position-x: 0;
    }
}

.rtp-text {
    font-weight: bold;
    color: #2c3e50;
}


.rtp-live-section {
    padding: 158px 0;
    background-color: #0098ff00;
}

.rtp-table-container {
    overflow-x: auto;
}

.rtp-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rtp-table th,
.rtp-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #bee900;
}

.rtp-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
}

.rtp-table tr:hover {
    background-color: #f9f9f9;
}

.rtp-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.rtp-badge.high {
    background-color: #d5f5e3;
    color: #0070ff;
}

.rtp-badge.medium {
    background-color: #fef9e7;
    color: #f39c12;
}

.rtp-badge.low {
    background-color: #fdedec;
    color: #e74c3c;
}


.promo-banner {
    background: linear-gradient(#06b600, rgba(0, 34, 6, 0.7));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin: 50px 0;
    border-radius: 8px;
}

.promo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #edff00;
}


.footer {
    background: linear-gradient(#002e02, rgba(0, 0, 0, 0.76), #002e02);
    color: #edff00;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: clamp(40px, 5vw, 60px);
    /* Responsif antara 40-60px */
    width: auto;
    max-width: min(180px, 100%);
    /* Tidak melebihi 180px */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    /* Efek hover subtle */
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-legal a {
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}


.live-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-btn {
    background-color: #c20000;
    color: #bee900;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgb(133, 14, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    background-color: #c20000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(255, 0, 0);
}


@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .marquee {
        flex-direction: column;
        white-space: normal;
        text-align: center;
    }


    .btn-register,
    .btn-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        border-radius: 50px;
        /* Rounded pill shape */
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }


    .btn-register {
        background-color: #00f6ff;
        color: var(--white);
        margin-left: 15px;


        background-image: linear-gradient(to right,
                var(--accent),
                #007eff);
        background-size: 200% auto;


        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
            background-position: right center;
        }


        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.6s ease-out;
        }

        &:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }


        i {
            margin-left: 8px;
            transition: transform 0.3s ease;
        }

        &:hover i {
            transform: translateX(3px);
        }
    }


    .btn-login {
        background-color: transparent;
        color: #ffd92a;
        border: 2px solid var(--primary);


        &:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
        }


        position: relative;
        overflow: hidden;

        &::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        &:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
    }


    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }

        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }


    .btn-register:active,
    .btn-login:active {
        transform: translateY(1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }


    @media (max-width: 768px) {

        .btn-register,
        .btn-login {
            padding: 10px 18px;
            font-size: 14px;
        }

        .btn-register {
            margin-left: 10px;
        }
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .provider-item {
        min-width: 100px;
        padding: 5px;
    }

    .provider-item img {
        height: 80px;
    }

    .provider-item span {
        font-size: 8px;
        text-align: center;
    }

}

.chat-btn {
    padding: 5px 10px;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 67px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #bee900;
    color: rgb(0, 0, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

#chat-widget {
    position: fixed;
    bottom: -300px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
}

#chat-widget.active {
    transform: translateY(-320px);
}

.loading {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
    color: #666;
}

.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}