﻿:root {
    --primary-color: #ff0000;
    --secondary-color: #1e1e1e;
    --background-dark: #0b0b0b;
    --text-light: #ffffff;
    --text-dark: #0b0b0b;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-main {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 2px solid #ffca18;
    transition: box-shadow 0.3s ease-in-out;
}

.header-main.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container untuk tombol bahasa */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px; /* Jarak antar tombol */
}

.lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: white;
    color: black;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.auth-buttons button {
    position: relative;
    overflow: hidden;
    /* Properti lain yang sudah ada */
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid #fff40a;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.auth-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0)
    );
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer 2.5s infinite;
    animation-delay: 1s;
}

.auth-buttons .primary {
    background-color: #d4ff00;
    color: var(--text-dark);
    border-color: #617805;
}

.auth-buttons button:hover {
    background-color: #d4ff00;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Sembunyikan tombol auth di mobile */
@media (max-width: 767px) {
    .auth-buttons {
        display: none; /* Hilangkan dari tampilan */
    }
}

/* Default: sembunyikan versi mobile di desktop */
.mobile-action-container {
    display: none; /* tersembunyi di desktop */
}

/* Animasi Kilau */
@keyframes shimmering {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animasi Garis Emas Berputar */
@keyframes goldBorderSpin {
    0% {
        border-image-source: linear-gradient(0deg, red, transparent 50%, red);
    }
    25% {
        border-image-source: linear-gradient(90deg, red, transparent 50%, red);
    }
    50% {
        border-image-source: linear-gradient(180deg, red, transparent 50%, red);
    }
    75% {
        border-image-source: linear-gradient(270deg, red, transparent 50%, red);
    }
    100% {
        border-image-source: linear-gradient(360deg, red, transparent 50%, red);
    }
}


/* Hanya tampil di mobile */
@media (max-width: 767px) {
    .mobile-action-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-top: 30px;
        background-color: #888888;
        border-radius: 10px;
        color: #ffffff;
        
        /* Garis Emas Berputar */
        border: 3px solid transparent; /* Border awal agar border-image bisa diaplikasikan */
        border-image: linear-gradient(45deg, red, #ff000055, red) 1; /* Efek awal */
        border-image-slice: 1;
        animation: goldBorderSpin 8s linear infinite; /* Animasi garis emas */
    }

    /* Baris atas: Login & Register */
    .row.top-row {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .row.top-row button {
        flex: 1 1 45%;
        padding: 12px;
        font-size: 1rem;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid var(--primary-color);
        transition: background-color 0.3s, color 0.3s;

        /* Efek Kilau pada tombol */
        background-size: 200% 100%;
        background-image: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 20%, transparent 40%, transparent 100%);
        animation: shimmering 3s infinite linear;
    }

    .primary-login {
        background-color: var(--primary-color);
        color: var(--text-dark);
        /* Warna kilau mungkin perlu disesuaikan agar cocok dengan latar belakang */
        background-image: linear-gradient(to right, var(--primary-color) 0%, rgba(255, 255, 255, 0.5) 20%, var(--primary-color) 40%, var(--primary-color) 100%);
        color: black; /* Agar terlihat lebih baik dengan kilau */
    }

    .secondary-register {
    background-color: #000000; /* Latar belakang hitam */
    color: #000000; /* Teks hitam, mungkin ini tidak ideal, mari kita ubah ke putih agar terlihat */
    
    /* Mengganti warna teks menjadi putih agar bisa dibaca */
    color: #ffffff; 
    
    /* Menyesuaikan efek kilau agar lebih terlihat di latar belakang gelap */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.0) 100%);
    }

    /* Baris bawah: Note dan tombol */
    .row.bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Kolom keterangan (rata kiri) */
    .note-column {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
        min-width: 120px;
        font-size: 0.85rem;
    }

    /* Kolom tombol (rata kanan) */
    .button-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-end; /* rata kanan */
    }

    /* Tombol semua sama besar */
    .button-column button {
        min-width: 160px;    /* disamakan dengan refresh */
        padding: 12px 20px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid var(--primary-color);
        font-size: 1rem;

        /* Efek Kilau pada tombol */
        background-size: 200% 100%;
        background-image: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 20%, transparent 40%, transparent 100%);
        animation: shimmering 3s infinite linear;
    }

    /* Warna tombol */
    .primary-deposit {
        background-color: var(--primary-color);
        color: var(--text-dark);
        background-image: linear-gradient(to right, var(--primary-color) 0%, rgba(255, 255, 255, 0.5) 20%, var(--primary-color) 40%, var(--primary-color) 100%);
        color: black;
    }

    .secondary-withdraw {
        background-color: transparent;
        color: var(--primary-color);
        background-image: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 20%, transparent 40%, transparent 100%);
    }

    .info-refresh {
        background-color: #f0f0f0;
        color: #333;
        border-color: #ccc;
        background-image: linear-gradient(to right, #f0f0f0 0%, rgba(255, 255, 255, 0.5) 20%, #f0f0f0 40%, #f0f0f0 100%);
    }
}
.info-bar {
    background-color: #ff0000;
    color: black;
    text-align: center;
    padding: 0.25rem 0;
    font-weight: bold;
    font-size: 0.875rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.marquee-container {
    background-color: #b49e12;
    color: #0b0b0b;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding: 0.3rem 0;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.navbar-main {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.navbar-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-list li a {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
}

.navbar-list li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

@keyframes glowing {
    0% {
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }
    50% {
        color: #fff; /* Warna putih saat paling terang */
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
    100% {
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }
}

.navbar-list .promo-link {
    color: var(--primary-color); /* Memastikan warna dasar kuning emas */
    font-weight: 700;
    animation: glowing 1.5s infinite alternate; /* Menerapkan animasi berkedip */
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 1045px;
    aspect-ratio: 1045 / 448;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1.25);
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Gaya untuk dot navigasi */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: white;
}

slider-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-button:hover {
    background-color: #ff0000;
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Content Sections */
.content-section {
    padding: 2rem 0;
}

.section-title {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff0000 50%, var(--primary-color) 100%);
    position: absolute;
    bottom: -10px;
    left: 0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
}

.provider-logos-stack, .logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-wrapper img, .logo-item img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo-wrapper img:hover, .logo-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-wrapper-mobile {
  display: none; /* sembunyikan versi mobile di desktop */
}
/* === Mobile version === */
@media (max-width: 768px) {
  .logo-wrapper {
    display: none; /* sembunyikan versi desktop di mobile */
  }

  .logo-wrapper-mobile {
    display: block; /* tampilkan versi mobile */
    text-align: center;
  }

  .logo-wrapper-mobile img {
    max-width: 80%;
    height: auto;
  }
}

/* New Styles for Scrolling Logos */
.bank-scroller {
    overflow: hidden;
    width: 100%;
}

.bank-scroller-inner {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: bank-scroll 30s linear infinite;
}

@keyframes bank-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


.logo-item {
    width: 150px;
    height: 80px;
    background: linear-gradient(45deg, #1e1e1e, #2c2c2c);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.logo-item img {
    max-height: 100%;
}

.about-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer-main {
    background-color: #1a1a1a;
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.2s;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-main p {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #aaa;
}

/* Live Chat Widget */
.live-chat-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 0;
    width: 40px;
    height: 150px;
    background: linear-gradient(90deg, #333, var(--primary-color));
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.5);
    transition: width 0.3s ease-in-out;
    z-index: 1000;
    border-radius: 10px 0 0 10px;
}

.live-chat-button:hover {
    width: 45px;
}

.live-chat-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
}

.live-chat-button i {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.live-chat-window {
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 350px;
    height: 500px;
    background-color: var(--background-dark);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.7);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999;
    transform-origin: bottom right;
    animation: expandChat 0.5s ease-out forwards;
}

.live-chat-window.active {
    display: flex;
}

@keyframes expandChat {
    from { transform: scale(0.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-body {
    flex-grow: 1;
}

.chat-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

#modalTitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#modalContent input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: white;
    border-radius: 5px;
    box-sizing: border-box;
}

#modalContent input::placeholder {
    color: #888;
}

#modalContent button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#modalContent button:hover {
    background-color: #ff0000;
}

/* New styles for the screenshot carousel */
.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 50px; /* Tambahkan padding agar tombol tidak menutupi konten */
}

.carousel-images {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    justify-content: flex-start; /* Ubah agar gambar tidak terpusat */
    flex-wrap: nowrap;
}

.carousel-img {
    flex-shrink: 0;
    width: 250px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.carousel-img:hover {
    transform: scale(1.05);
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn {
    left: 5px; /* Sesuaikan posisi tombol */
}

.next-btn {
    right: 5px; /* Sesuaikan posisi tombol */
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* Mobile Adjustments (max-width: 768px) */
@media (max-width: 768px) {
    /* Penyesuaian umum untuk semua elemen di perangkat mobile */
    body {
        font-size: 14px; /* Mengurangi ukuran font dasar */
    }
    
    .container {
        padding: 0 0.5rem; /* Mengurangi padding horizontal untuk ruang yang lebih sempit */
    }

    .logo-img {
        height: 30px; /* Mengecilkan logo di header */
    }
    
    .header-content {
        /* Mengatur tata letak header untuk mobile */
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .navbar-list {
        display: none; /* Menyembunyikan navigasi utama di layar kecil */
    }
    .slider-content h1 {
        font-size: 1.8rem; /* Mengurangi ukuran font judul slider */
    }
    
    .slider-content p {
        font-size: 0.8rem; /* Mengurangi ukuran font paragraf slider */
        margin: 0 auto 1rem;
    }

    .slider-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1rem; /* Mengurangi ukuran judul section */
        text-align: center; /* Memusatkan judul */
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%); /* Memusatkan garis di bawah judul */
    }

    .provider-logos-stack, .logo-grid {
        gap: 10px; /* Mengurangi jarak antar logo */
    }
    
    .logo-item {
        width: 120px; /* Mengurangi lebar logo item di scroller */
        height: 60px; /* Mengurangi tinggi logo item */
    }
    
    /* Live Chat Widget */
    .live-chat-button {
        display: none; /* Menyesuaikan posisi di bagian bawah */
    }
    
    .live-chat-text {
        font-size: 0.8rem;
    }

    .live-chat-button i {
        font-size: 1.2rem;
    }

    .live-chat-window {
        width: 90%; /* Mengatur lebar jendela chat agar pas di layar mobile */
        left: 50%;
        transform: translateX(-50%);
        bottom: 80px;
        right: auto;
    }

    .modal-content {
        padding: 1rem; /* Mengurangi padding pada modal */
    }
    
    .screenshot-carousel {
        padding: 0 10px; /* Mengurangi padding agar carousel pas di layar */
    }

    .carousel-images {
        gap: 10px;
        max-width: 100%;
        padding: 5px;
    }
    
    .carousel-img {
        width: 150px; /* Mengurangi lebar gambar di carousel */
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    /* Penyesuaian Footer */
    .footer-nav a {
        display: block; /* Membuat setiap link footer berada di baris baru */
        margin: 0.5rem 0;
    }
}

/* Tablet Adjustments (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo-img {
        height: 35px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .navbar-main {
        padding: 0.5rem 0;
    }
    
    .navbar-list li a {
        padding: 0.5rem 0.8rem;
    }

    .slider-content h1 {
        font-size: 2.2rem;
    }
    
    .slider-content p {
        font-size: 0.9rem;
    }
}

.about-us-new-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

@keyframes imageShimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* Default: mobile-first */
.about-us-new-layout {
    display: flex;
    flex-direction: column; /* Stack vertikal untuk mobile */
    text-align: center;     /* Center untuk mobile */
    gap: 20px;              /* Jarak antar elemen */
    padding: 15px;           /* Sedikit padding */
}

.about-image-wrapper {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

.about-text-wrapper h2 {
    color: var(--primary-color);
    font-size: 2rem; /* Lebih kecil dari desktop */
    margin-bottom: 10px;
}

.about-text-wrapper p {
    font-size: 1rem;  /* Sesuai mobile */
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tablet dan desktop */
@media (min-width: 768px) {
    .about-us-new-layout {
        flex-direction: row;
        text-align: left;
        gap: 30px;
        padding: 30px;
    }

    .about-image-wrapper,
    .about-text-wrapper {
        flex: 1;
    }

    .about-text-wrapper {
        padding-left: 30px;
    }

    .about-text-wrapper h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .about-text-wrapper p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
}


.read-more-content {
  display: none; /* default tersembunyi */
  margin-top: 15px;
}

.read-more-content.open {
  display: block; /* tampil saat ada class open */
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #ff0000;
  text-decoration: none;
  transition: 0.3s;
}

.read-more-btn:hover {
  color: #fff;
}

/* ===============================
   GUIDELINES SECTION
================================= */
.guidelines {
    display: flex;               /* Flex agar konten bisa sejajar */
    justify-content: center;     /* Pusatkan konten horizontal */
    align-items: center;         /* Pusatkan konten vertikal */
    grid-area: guidelines;
    background: var(--guidelines-background, #111);
    padding: 20px 0;             /* Tambahkan padding vertikal */
    text-align: center;
    flex-wrap: wrap;             /* Agar konten tidak overflow */
}

.guidelines-content {
    margin: 0;                   /* Hapus margin negatif */
    max-width: 1200px;           /* Batas maksimal agar tidak terlalu lebar */
    width: 90%;                  /* Menyesuaikan layar */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .guidelines {
        flex-direction: column;   /* Susun vertikal di mobile */
        padding: 15px 10px;       /* Kurangi padding */
    }

    .guidelines-content {
        width: 100%;              /* Penuhi layar mobile */
        margin-bottom: 15px;      /* Spasi antar konten */
    }

    .guidelines-content img {
        width: 100%;              /* Gambar menyesuaikan lebar layar */
        height: auto;             /* Tinggi otomatis agar proporsional */
        max-width: 615px;         /* Opsional, batas maksimal */
    }
}

/* ===============================
   BANTUAN SECTION
================================= */
.bantuan {
    width: 100%;
    margin: 40px auto;
    padding: 0;
    box-shadow: none;
}

.bantuan-content {
    display: flex;
    flex-wrap: wrap;                 /* Agar item bisa pindah baris di desktop bila perlu */
    justify-content: center;         /* Pusatkan item horizontal */
    align-items: center;             /* Pusatkan item vertikal */
    list-style: none;
    font-family: 'Ubuntu', sans-serif;
    padding: 0;
    margin: 0;
    gap: 15px;                       /* Jarak antar item di desktop */
}

.bantuan-item {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #f1f1f1;
    transition: color 0.3s ease-in-out;
    padding: 5px 15px;               /* Ruang di sekitar teks */
    text-align: center;
    white-space: nowrap;              /* Agar teks tidak patah */
}

.bantuan-item:hover {
    color: var(--primary-color);
}

.bantuan-devider {
    display: block;                  /* Pembatas vertikal di desktop */
    color: #555;
    font-size: 18px;
    font-weight: bold;
}

/* ===============================
   MOBILE ADJUSTMENTS
================================= */
@media (max-width: 768px) {
    .bantuan-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;                /* Pindah baris jika terlalu panjang */
        justify-content: center;        /* Pusatkan horizontal */
        align-items: center;
        gap: 5px;                       /* Jarak antar item lebih rapat */
        padding: 0 10px;
    }

    .bantuan-item {
        font-size: 12px;                /* Ukuran font tetap terbaca */
        padding: 3px 5px;               /* Padding lebih tipis agar muat */
        flex: 1 1 auto;                 /* Item bisa mengecil jika terlalu panjang */
        min-width: 50px;                /* Minimal lebar item */
        text-align: center;
        white-space: nowrap;            /* Teks tetap satu baris */
    }

    .bantuan-devider {
        display: block;                 /* Tetap tampil di mobile */
        color: #555;
        font-size: 16px;                /* Bisa disesuaikan */
        font-weight: bold;
    }
}


#fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Penting agar tidak menghalangi interaksi mouse */
    z-index: 9999; /* Pastikan di atas background canvas tapi di bawah konten utama */
}

.firefly {
    position: absolute;
    background-color: var(--primary-color); /* Warna emas dari variabel CSS Anda */
    border-radius: 50%;
    opacity: 0;
    animation: fadeAndMove 10s infinite; /* Animasi utama */
    box-shadow: 0 0 5px var(--primary-color), 0 0 10px rgba(255, 204, 0, 0.7); /* Efek glow */
}

@keyframes fadeAndMove {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% {
        opacity: 0.8;
        transform: translate(random(200px) - 100px, random(200px) - 100px) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(random(400px) - 200px, random(400px) - 200px) scale(0.8);
    }
    90% {
        opacity: 0.2;
        transform: translate(random(600px) - 300px, random(600px) - 300px) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(random(800px) - 400px, random(800px) - 400px) scale(0.5);
    }
}

/* Panel sosmed */
.sosmed {
    position: relative; 
    width: 100%;
    background: #222;
    color: #fff;
    font-family: Arial, sans-serif;
    border-top: 3px solid var(--primary-color, #4caf50);
    padding: 15px;
    box-sizing: border-box;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
}

/* Judul */
.sosmed p {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    color: var(--primary-color, #4caf50);
}

/* Konten */
.sosmed .content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Member Service */
.memberser dt {
    font-size: 20px;
    font-weight: bold;
}
.memberser dd {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* List Live Help / Join Now */
.liveitem {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}
.liveitem li a {
    text-decoration: none;
    color: #fff;
    background: var(--primary-color, #4caf50);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}
.liveitem li a:hover {
    background: #388e3c;
}

/* Kontak */
#contact_col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact_col {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact_col span {
    width: 24px;
    height: 24px;
    background-size: cover;
}
.contact_col a {
    color: #fff;
    text-decoration: none;
}
.contact_col a:hover {
    text-decoration: underline;
}

/* Animasi open/close */
.siderbar_close {
    max-height: 0;
    opacity: 0;
    padding: 0 15px;
}
.siderbar_open {
    max-height: 500px; /* cukup besar untuk konten */
    opacity: 1;
    padding: 15px;
}

/* Responsif */
@media (max-width: 600px) {
    .sosmed .content {
        font-size: 14px;
    }
    .liveitem {
        flex-direction: column;
    }
}

/* Sembunyikan navigasi secara default untuk tampilan desktop */
.bottom-nav {
    display: none;
}

/* Tampilkan hanya di layar dengan lebar maksimal 768px (perangkat mobile) */
@media (max-width: 768px) {
    .bottom-nav {
        display: block; /* Menampilkan kembali navigasi di layar mobile */
        position: fixed; /* Menjadikan navigasi tetap di posisi bawah layar */
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #1a1a1a; /* Ganti warna sesuai tema Anda */
        border-top: 1px solid #333;
        z-index: 1000; /* Memastikan navigasi selalu di atas konten lain */
    }

    .bottom-nav ul {
        display: flex;
        justify-content: space-around; /* Menyebarkan item secara merata */
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .bottom-nav li {
        flex-grow: 1; /* Membuat setiap item mengisi ruang yang sama */
        text-align: center;
    }

    .bottom-nav a {
        display: block;
        padding: 10px 0;
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }

    .bottom-nav a.active {
        color: #ddb608; /* Warna aktif */
    }

    .bottom-nav a:hover {
        color: #ddb608; /* Warna saat di-hover */
    }

    .bottom-nav i {
        display: block;
        font-size: 18px;
        margin-bottom: 5px;
    }

    .bottom-nav span {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
    }

    
}

/* Styling untuk elemen li yang menjadi induk */
#games-li {
    position: relative; /* Penting agar overlay diposisikan dengan benar di bawahnya */
}

/* Styling untuk overlay dropdown */
.games-overlay {
    position: absolute;
    top: 100%;
    /* Mengubah posisi kiri dan transform untuk membuatnya lebih lebar dan tetap di tengah */
    left: 0; /* Mulai dari kiri */
    right: 0; /* Sampai kanan */
    transform: none; /* Hilangkan transform X karena sudah pakai left/right */
    
    z-index: 700;
    
    /* Atur lebar agar sesuai keinginan Anda */
    /* Anda bisa mencoba nilai lain seperti '100vw' jika ingin selebar viewport */
    /* Untuk sementara, kita akan coba lebar standar agar tidak terlalu keluar */
    width: 100vw; /* Ini akan membuatnya selebar viewport, sesuaikan jika perlu */
    max-width: 1200px; /* Batasi lebar maksimal agar tidak terlalu besar di layar lebar */
    left: 50%; /* Pindahkan ke tengah setelah menentukan lebar */
    transform: translateX(-50%); /* Geser kembali 50% lebar sendiri ke kiri */

    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 15px 0; /* Padding vertikal, horizontal 0 karena lebar sudah diatur */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
    
    border-image-source: linear-gradient(45deg, var(--primary-color), transparent 50%, var(--primary-color));
    border-image-slice: 1;
    animation: goldBorderSpin 8s linear infinite;
}

/* Penyesuaian tata letak konten di dalam overlay */
.overlay-content {
    display: flex;
    flex-wrap: wrap; 
    /* Menyebar logo secara merata di dalam overlay */
    justify-content: space-around; 
    align-items: center;
    gap: 10px; /* Jarak antar logo yang lebih seragam */
    padding: 0 15px; /* Tambahkan padding horizontal agar logo tidak menempel di tepi */
}

/* Penyesuaian gambar logo di dalam overlay */
.overlay-content img {
    /* Ukuran logo yang lebih kecil agar muat banyak dan menyebar */
    width: 80px; 
    height: auto;
    
    /* Tetap abu-abu terang secara default */
    filter: grayscale(100%) brightness(1.8);
    transition: transform 0.2s, filter 0.2s;
}

/* Efek saat logo di-hover */
.overlay-content img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1); /* Kembali ke warna asli */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
    cursor: pointer;
}

/* Tampilkan overlay saat hover pada li induk */
#games-li:hover .games-overlay {
    visibility: visible;
    opacity: 1;
}

/* Pastikan animasi ini ada di CSS Anda */
@keyframes goldBorderSpin {
    0% {
        border-image-source: linear-gradient(0deg, var(--primary-color), transparent 50%, var(--primary-color));
    }
    25% {
        border-image-source: linear-gradient(90deg, var(--primary-color), transparent 50%, var(--primary-color));
    }
    50% {
        border-image-source: linear-gradient(180deg, var(--primary-color), transparent 50%, var(--primary-color));
    }
    75% {
        border-image-source: linear-gradient(270deg, var(--primary-color), transparent 50%, var(--primary-color));
    }
    100% {
        border-image-source: linear-gradient(360deg, var(--primary-color), transparent 50%, var(--primary-color));
    }
}
.gift-wrapper {
    position: fixed;
    left: 10px;       /* tetap di kiri */
    top: 50%;         /* posisi vertikal tengah */
    transform: translateY(-50%); /* pastikan benar-benar tengah */
    display: flex;
    flex-direction: column;  /* susun vertikal */
    align-items: flex-start; /* tetap di kiri */
    gap: 10px;        /* jarak antar gift */
    z-index: 9999;
}

.gift-logo {
    width: 70px;      /* ukuran desktop */
    height: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

/* Hover efek */
.gift-logo:hover {
    transform: scale(1.2);
}

/* Responsif tablet */
@media (max-width: 768px) {
    .gift-logo { width: 80px; }
}

/* Responsif mobile */
@media (max-width: 480px) {
    .gift-logo { width: 70px; }
}
.modal-lang-switcher {
    margin: 10px 0 20px 0;
    text-align: center;
}

.modal-lang-switcher button {
    background: #ff0000;
    color: #1a1a1a;
    border: none;
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-lang-switcher button:hover {
    background: #fff;
    color: #000;
}

#apicontainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Penting agar tidak menghalangi interaksi mouse */
    z-index: 9999; /* Pastikan di atas background canvas tapi di bawah konten utama */
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.category-icon img {
  width: 80px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.category-icon img:hover {
  transform: rotate(10deg);
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Sesuaikan warna tombol download agar matching */
.btn-android { background: #3ddc84; color: #fff; }
.btn-ios { background: #000; color: #fff; }

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}
.about-us {
  padding: 30px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  margin-top: 10px;
  margin-bottom: 40px;
}

.social_icon2 ul {
  text-align: center;
  margin: 20px auto;
  padding: 0;
  list-style: none;
}

.social_icon2 ul>li {
  display: inline-block;
  padding: 5px;
}

.social_icon2 ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Warna tombol sesuai request */
.telegram { background: #54A1C2; border: 1px solid #54A1C2; }
.telegram:hover { background: #3d758d; transform: scale(1.1); }

.whatsapp { background: #4FCE5D; border: 1px solid #4FCE5D; }
.whatsapp:hover { background: #31833b; transform: scale(1.1); }

.about-us h2 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 10px auto;
}

.about-text h3 {
  margin-top: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8d14b;
  text-align: center;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
  text-align: justify;
  margin-bottom: 15px;
}

.about-text strong {
  color: #ffdd57;
}
/* ================= FOOTER ================= */
.footer {
  background: rgba(0,0,0,0.4);
  padding: 10px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
  .download-buttons {
    flex-direction: column;
    gap: 8px;
  }
}
