/* Lokasi file: /assets/css/style.css */

/* CSS Reset & Basic Setup */
:root {
    /* Warna Utama */
    --primary-red: #8B0000;
    --primary-maroon: #640000;
    --primary-gold: #FFD700;
    --dark-gold: #daa520;

    /* Warna Font */
    --font-light: #FFFFFF;
    --font-light-secondary: #ccc; /* Baru: untuk teks abu-abu terang */
    --font-dark: #1b1c1d;

    /* Warna Latar & Kartu */
    --dark-bg: #1b1c1d;
    --card-bg: rgba(0, 0, 0, 0.25);
    --popup-bg: #3d0000; /* Baru: untuk latar popup */
    
    /* Warna Status & Aksen */
    --whatsapp-green: #25D366;
    --status-success: #28a745;
    --status-pending: #ffc107;
    --status-failed: #dc3545;
    --accent-red: #ff3b30; /* Baru: untuk badge notifikasi */

    /* Warna Border & Elemen UI */
    --card-border: rgba(255, 255, 255, 0.1);
    --border-color: #777; /* Baru: untuk border input */
    --disabled-bg: #555; /* Baru: untuk tombol nonaktif */

    /* Gradient (untuk konsistensi) */
    --gradient-primary: linear-gradient(to bottom, var(--primary-red), var(--primary-maroon));
    --gradient-gold: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    --gradient-header: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    --gradient-menu: linear-gradient(to bottom, #4a0000, #2c0000);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
body.menu-open, body.popup-open {
    overflow: hidden;
}

.mobile-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-image: var(--gradient-primary);
    color: var(--font-light);
    position: relative;
    padding-bottom: 80px;
}

a, a:hover, a:visited {
    text-decoration: none;
    color: inherit;
}

/* --- 1. HEADER --- */
.header {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gradient-header);
    animation: slideDown 0.7s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-top {
    display: flex;
    align-items: center;
    padding: 15px;
    justify-content: flex-start;
}

.header__logo {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 1px 1px 4px rgb(0 0 0 / 18%);
    letter-spacing: 1px;
    margin-right: auto !important;
    margin-left: 15px;
}

.header__left, .header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}
.header__left i { cursor: pointer; }

.notification-icon {
    position: relative;
    cursor: pointer;
    color:var(--font-dark);
}

.error-container {
    color: var(--font-dark);
    background: var(--status-failed);
    text-align: center;
    padding: 10px;
    font-weight: 600;
    margin: 10px;
    border-radius: 5px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-red);
    color: var(--font-dark);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-maroon);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--dark-bg);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--dark-gold);
}
.wallet-info .fa-wallet { color: var(--primary-gold); }

.header-marquee {
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    padding: 8px 10px;
    font-size: 0.75rem;
    width: 100%;
    overflow: hidden;
}

.header-marquee i {
    color: var(--primary-gold);
    margin-right: 10px;
    animation: pulse-horn 1.5s infinite;
}

@keyframes pulse-horn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --- SLIDE-IN MENU --- */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.slide-in-menu {
    position: fixed; top: 0; left: 0;
    transform: translateX(-100%);
    width: 100%; 
    max-width: 320px;
    height: 100%;
    background: var(--dark-bg);
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; flex-direction: column;
    box-shadow: 5px 0 25px rgb(0 0 0 / 17%);
    overflow-y: auto; 
}
.slide-in-menu.active { transform: translateX(0); }

/* === REVISI: MENU HEADER BARU === */
.menu-header {
    padding: 15px;
    background-color: var(--card-bg);
    position: relative;
}
#close-menu-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--font-light-secondary);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
#close-menu-icon:hover {
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    flex-shrink: 0;
}
.user-greeting-text {
    flex-grow: 1;
    font-size: 1rem;
    color: var(--font-light);
}
.user-greeting-text small {
    font-size: 0.8rem;
    color: var(--font-light-secondary);
}
.user-level-img {
    height: 24px;
    width: auto;
    flex-shrink: 0;
}

.verification-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
}
.verification-status {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.verification-status.verified {
    color: var(--status-success);
}
.verification-status.unverified {
    color: var(--status-failed);
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.progress-section > i {
    font-size: 1.1rem;
    color: var(--primary-gold);
}
.progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--status-success);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}
.progress-section > span {
    font-weight: 600;
    font-size: 0.9rem;
    color:var(--font-light);
}

.verification-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.user-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rank-image {
    height: 28px;
    width: auto;
}
.rank-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--font-light);
}

.verification-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.icon-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid;
    font-size: 0.9rem;
}
.icon-status.complete {
    border-color: var(--status-success);
    color: var(--status-success);
}
.icon-status.incomplete {
    border-color: var(--status-failed);
    color: var(--status-failed);
}
.divider {
    border: none;
    height: 1px;
    background-color: var(--card-border);
    margin: 0 0 10px 0;
}
.verification-note {
    font-size: 0.75rem;
    color: var(--font-light-secondary);
    line-height: 1.5;
    text-align: center;
}
/* === AKHIR REVISI MENU HEADER === */


.menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; }
.menu-actions .btn { font-size: 0.9rem; padding: 10px; text-align: center; }

.menu-actions .btn-login {
    color: var(--font-light);
    border-color: var(--font-light);
}
.menu-actions .btn-login:hover {
    background-color: var(--font-light);
    color: var(--primary-maroon);
}


.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px; 
    padding: 15px;
}

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 5px;
    text-align: center;
    color: var(--font-light) !important;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.menu-grid-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold) !important;
    transform: translateY(-3px);
}

.menu-grid-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.menu-grid-item span {
    font-size: 0.7rem; 
    font-weight: 600;
    display: block;
    line-height: 1.2;
}
.menu-list { display: none; }


.menu-referral {
    padding: 20px; background-color: rgba(0,0,0,0.3);
    font-size: 0.8rem; text-align: center;
    margin-top: auto; 
}
.menu-referral p {
    color: var(--font-light-secondary); 
}
.referral-link-box { display: flex; margin-top: 10px; background-color: rgba(0,0,0,0.4); border-radius: 8px; }
#referral-link { flex-grow: 1; padding: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--font-light-secondary); }
#copy-referral { background-color: var(--primary-gold); border: none; color: var(--font-dark); padding: 10px 15px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600; }

/* --- 2. HOME SLIDER --- */
.home-slider { padding: 10px; }
.slider-container { position: relative; overflow: hidden; cursor: grab; border-radius:10px; }
.slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; heigh: 100%; display: block; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); transition: all 0.3s; }
.dot.active { background-color: var(--primary-gold); transform: scale(1.2); }

/* --- 3. BUTTONS (LOGIN & DAFTAR) --- */
.action-buttons { display: flex; gap: 15px; padding: 0 15px; margin-top: 10px; }
.btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; }
.btn-register { background: var(--gradient-gold); color: var(--font-dark); box-shadow: 0 4px 15px var(--dark-gold); display:block; text-align:center; width:100%; }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--card-border); }
.btn-login { background-color: transparent; border: 2px solid var(--primary-gold); color: var(--primary-gold); }
.btn-login:hover { background-color: var(--primary-gold); color: var(--primary-maroon); }

/* --- 4. MOBILE CATEGORY (REVISI BARU) --- */
.mobile-category { 
    padding: 0 15px; 
    margin-top: 20px; 
}

.category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Memungkinkan scrolling horizontal */
    padding-bottom: 10px; /* Memberi ruang di bawah agar shadow terlihat */
    
    /* Menyembunyikan scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.category-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.category-card { 
    flex: 0 0 80px; /* Mencegah item menyusut, lebar tetap 80px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.category-card span { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: var(--font-light); 
    text-align: center;
}

/* --- 5. GAME & PROVIDER SECTION --- */
.content-section { padding: 10px; margin-top: 0px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-title { font-size: 1.2rem; font-weight: 700; }
.section-title .emoji { margin-right: 8px; }

.provider-nav-buttons, .recent-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-nav-btn, .recent-nav-btn {
    background-color: rgb(255 255 255 / 40%);
    border: 1px solid var(--primary-gold);
    color: var(--dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.provider-nav-btn:hover, .recent-nav-btn:hover {
    background-color: var(--primary-gold);
    color: var(--font-dark);
}

.btn-more { background-color: var(--status-pending); color: var(--font-dark); border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }

.mobile-games-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }


.casino-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.casino-provider-item {
    display: block;
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    aspect-ratio: 182 / 227;
    background-color: var(--primary-maroon);
}

.casino-provider-item:hover {
    transform: scale(1.05);
}

.casino-provider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-list-local {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.provider-list-local::-webkit-scrollbar {
    display: none;
}

.provider-item-local {
    flex-shrink: 0;
    width: 120px;
    height: 45px;
    background-color: rgb(0 0 0 / 20%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s ease;
}

.provider-item-local:hover {
    transform: translateY(-3px);
}

.provider-item-local img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.game-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}
.game-image-container {
    overflow: hidden; 
    position: relative;
    border-radius: 8px 8px 0 0;
}
.game-item img { 
    width: 100%; 
    height: 80px; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.3s ease;
}
.game-item:hover img { 
    transform: scale(1.1); 
}
.game-name { 
    padding: 5px 0px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    width: 100%;
    color: var(--font-light);
}

.casino-list {
    grid-template-columns: repeat(3, 1fr);
}
.recent-games-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* penting di iOS */
    padding-bottom: 10px;
}


.recent-games-list .game-item {
    flex: 0 0 calc(50% - 20px); /* 2 item per row, kurangi padding/gap */
}


.recent-games-list .game-image-container {
    height: 85px; 
}


.provider-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.provider-list::-webkit-scrollbar, .recent-games-list::-webkit-scrollbar { display: none; }
.provider-list, .recent-games-list { -ms-overflow-style: none; scrollbar-width: none; }

.provider-item { background-color: var(--card-bg); min-width: 120px; padding: 10px; border-radius: 8px; display: flex; justify-content: center; align-items: center; }
.provider-item img { height: 40px; width: auto; object-fit: contain; }

/* --- 7. BOTTOM NAVIGATION --- */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 65px; background-color: var(--dark-bg); display: flex; justify-content: space-around; align-items: center; border-top: 2px solid var(--primary-gold); z-index: 100; box-shadow: 0 -5px 15px rgba(0,0,0,0.3); }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--font-light-secondary); font-size: 0.7rem; text-decoration: none; transition: color 0.2s; }
.nav-item i { font-size: 1.4rem; margin-bottom: 3px; color:var(--font-light-secondary); }
.nav-item.active, .nav-item:hover { color: var(--primary-gold); }

.nav-item-play-container { position: relative; z-index: 101; }
.nav-item-play { position: relative; width: 70px; height: 70px; margin-top: -35px; background: var(--primary-gold) !important; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 4px solid var(--primary-maroon); box-shadow: 0 0 20px rgba(255, 215, 0, 0.7); animation: pulse-play 2s infinite; cursor: pointer; z-index: 1; }
.nav-item-play i { font-size: 2rem; color: var(--primary-maroon); }
@keyframes pulse-play {
    0% { box-shadow: 0 0 10px rgba(65.68212021257968, 100.16742389074976, 252.2399953007698, 0.47); }
    50% { box-shadow: 0 0 25px rgba(65.68212021257968, 100.16742389074976, 252.2399953007698, 0.74); }
    100% { box-shadow: 0 0 10px rgba(65.99999999999999, 99.99999999999996, 252, 0.87); }
}

/* --- 8. FOOTER --- */
.site-footer {
    position: relative;
    background-color: var(--card-bg);
    color: #a9a9a9;
    padding: 40px 15px 20px 15px; 
    margin-top: 30px;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-description {
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 1px 1px 4px rgb(0 0 0 / 19%);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-description p {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-title {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.payment-methods img {
    background: #fff;
    height: 35px;
    opacity: 0.8;
    filter: grayscale(20%);
    border-radius: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #a9a9a9;
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.static-pages {
    font-size: 0.85rem;
    line-height: 1.6;
}

.static-pages a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 5px;
}

.static-pages a:hover {
    color: var(--font-light);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
}

/* --- LOGIN POPUP (REVISI BARU) --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); z-index: 1010;
    backdrop-filter: blur(5px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.login-popup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 380px;
    background: var(--gradient-header);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1011;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    overflow: hidden; /* Mencegah konten keluar dari border-radius */
}
.login-popup.active {
    opacity: 1; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.login-popup-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px;
}
.login-popup-header h2 { font-size: 1.3rem; color: var(--primary-gold); }
.login-popup-header h2 i { margin-right: 10px; }
#close-login-popup { font-size: 1.5rem; color: var(--font-light); cursor: pointer; }

/* Navigasi Tab Baru */
.login-tab-nav {
    display: flex;
    background-color: rgba(0,0,0,0.2);
}
.login-tab-item {
    flex: 1;
    padding: 12px 10px;
    background-color: transparent;
    border: none;
    color: var(--font-light-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-tab-item.active {
    color: var(--primary-gold);
    background-color: rgba(0,0,0,0.2);
    border-bottom-color: var(--primary-gold);
}

.login-popup-body { padding: 25px 20px 15px; }
.login-tab-content { display: none; }
.login-tab-content.active { display: block; animation: fadeIn 0.4s; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--font-light-secondary); }
.form-group input { width: 100%; padding: 12px; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--font-light); font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--primary-gold); }

/* Tombol dengan Loading State */
.btn-login-submit, #send-otp-btn, #check-otp-btn {
    position: relative;
    width: 100%;
}
.btn-loader {
    font-size: 1.2rem;
}

/* Space Iklan */
.login-ad-space {
    margin-top: 20px;
    text-align: center;
}
.login-ad-space img {
    max-width: 100%;
    border-radius: 8px;
}

.login-popup-footer { text-align: center; padding: 0 20px 20px; font-size: 0.9rem; }
.login-popup-footer a { color: var(--primary-gold); text-decoration: none; font-weight: 600; }

.otp-group { display: flex; gap: 10px; align-items: center; }
#otp-countdown { font-weight: 700; color: var(--primary-gold); }
.resend-btn:disabled { background-color: var(--disabled-bg); cursor: not-allowed; }
.switch-login-method { text-align: center; margin-top: 20px; font-size: 0.9rem; }

/* Style untuk Input dengan Ikon */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-light-secondary);
}

.input-with-icon .icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-light-secondary);
    cursor: pointer;
}

.input-with-icon input {
    padding-left: 40px; /* Memberi ruang untuk ikon kiri */
    padding-right: 40px; /* Memberi ruang untuk ikon kanan */
}

/* Style untuk tombol login dengan ikon */
.btn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- NOTIFICATION & TOAST --- */
.notification-popup {
    position: absolute;
    top: 100%;
    right: 15px;
    width: 300px;
    background-color: var(--popup-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 1px solid var(--primary-gold);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 101;
}
.notification-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header { padding: 10px 15px; font-weight: bold; background-color: var(--dark-gold); color: var(--dark-bg); }
.notification-list { max-height: 300px; overflow-y: auto; }
.notification-item { padding: 12px 15px; background-color: var(--dark-bg); border-bottom: 1px solid var(--card-border); }
.notification-item:last-child { border-bottom: none; }
.notification-item p { margin: 0; font-size: 0.9rem; }
.notification-item small { color: var(--font-light-secondary); font-size: 0.75rem; }

.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--font-light);
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, top 0.4s;
}
.notification-toast.show {
    opacity: 1;
    visibility: visible;
    top: 30px;
}
.notification-toast.success { background-color: var(--status-success); }
.notification-toast.error { background-color: var(--status-failed); }
.notification-toast.info { background-color: var(--status-success); }


/* --- PLAY BUTTON POPUP MENU --- */
.play-popup-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    display: flex;
    gap: 15px;
    background-color: var(--dark-bg);
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--primary-gold);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.play-popup-menu.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.play-menu-item {
    display: flex; flex-direction: column; align-items: center;
    color: var(--font-light); text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.play-menu-item i {
    width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    background-color: var(--primary-maroon);
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}
.play-menu-item:hover i {
    background-color: var(--primary-red);
}

/* --- REGISTER & PROFILE PAGES --- */
.register-page, .profile-page, .withdrawal-content, .deposit-content {
    padding: 15px;
}
.register-form-container, .profile-content {
    background: var(--dark-bg);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}
.register-header { text-align: center; margin-bottom: 25px; }
.register-header h2 { color: var(--primary-gold); margin-bottom: 5px; }
.register-header p { font-size: 0.9rem; color: var(--font-light-secondary); }
.captcha-input-group { display: flex; align-items: center; gap: 10px; }
.captcha-input-group img { border-radius: 6px; }
.captcha-input-group input { flex-grow: 1; }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 40px; 
}
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--font-light-secondary);
}
.terms-group {
    display: flex;
    align-items: center;
    gap: 8px; 
    font-size: 0.9rem;
}
.terms-group input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}
.terms-group label {
    margin-bottom: 0;
    line-height: 1.2;
}
.terms-group a {
    color: var(--primary-gold);
}
.register-btn-container { text-align: center; margin-top: 15px; }
.login-link { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.login-link a { color: var(--primary-gold); text-decoration: none; font-weight: 600; }

/* --- HALAMAN DAFTAR GAME --- */
.games-page {
    padding: 0px;
}
.breadcrumbs {
    padding: 10px 15px;
    background-color: var(--card-bg);
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--font-light-secondary);
}
.breadcrumbs a {
    color: var(--primary-gold);
    font-weight: 600;
}
.breadcrumbs span {
    margin: 0 8px;
}
.breadcrumbs a:last-child {
    color: var(--font-light);
    font-weight: normal;
}
.provider-item-link {
    text-decoration: none;
}
.game-search-section {
    margin-bottom: 20px;
    padding:15px;
}
.game-search-form {
    display: flex;
    gap: 10px;
}
.game-search-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    background-color: var(--card-bg)
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--font-light);
    font-size: 1rem;
    width:100%;
}
.game-search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-gold);
}
.game-search-form .btn {
    flex-shrink: 0; 
    padding: 12px 20px;
}
.no-games-found {
    grid-column: 1 / -1; 
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    font-weight: 600;
    color: var(--font-light-secondary);
}
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.pagination {
    display: flex;
    list-style: none;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0;
    margin: 0px 15px 0px;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: var(--font-light-secondary);
    text-decoration: none;
    border-right: 1px solid var(--card-border);
    transition: background-color 0.2s;
    font-weight: 600;
}
.page-item:last-child .page-link {
    border-right: none;
}
.page-item:not(.disabled):hover .page-link {
    background-color: rgba(255, 215, 0, 0.1);
}
.page-item.active .page-link {
    background-color: var(--primary-gold);
    color: var(--font-dark);
}
.page-item.disabled .page-link {
    color: #666;
    pointer-events: none;
    background-color: transparent;
}

/* --- NOTIFIKASI FOMO --- */
.fomo-notification {
    position: fixed;
    bottom: 80px; 
    left: 50%;
    transform: translateX(-50%) translateY(150%); 
    background: var(--gradient-gold);
    color: var(--font-dark);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgb(0 177 255 / 40%);
    z-index: 99; 
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.fomo-notification.show {
    transform: translateX(-50%) translateY(0); 
}

.fomo-notification strong {
    font-weight: 700;
}

/* --- Animasi Ikon Refresh Saldo --- */
.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.game-link, .category-card, .provider-item-link {
    text-decoration: none !important;
}

.game-link .game-name, .category-card span {
    color: var(--font-light) !important;
}

/* --- HALAMAN PROFIL MEMBER (Tambahan) --- */
.profile-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.action-item i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-gold);
}
.action-item span {
    font-size: 0.85rem;
    font-weight: 600;
}
.action-item.active, .action-item:hover {
    background-color: var(--card-bg);
}

.tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--card-border);
    margin-bottom: 20px;
}
.tab-nav-item {
    flex-grow: 1;
    padding: 12px 10px;
    background-color: transparent;
    border: none;
    color: var(--font-light-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.tab-nav-item:hover {
    color: var(--primary-gold);
}
.tab-nav-item.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.tab-content {
    display: none; 
    animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active {
    display: block; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-subtitle {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-gold);
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--card-border);
}
.info-subtitle:first-of-type {
    margin-top: 15px;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.info-label {
    color: var(--font-light-secondary);
}
.info-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;        /* agar teks turun ke bawah jika terlalu panjang */
    text-align: left;       /* teks rata kiri */
    word-wrap: break-word;  /* memotong kata panjang agar tidak keluar kontainer */
    overflow-wrap: anywhere; /* memaksa break jika kata terlalu panjang */
    white-space: normal;    /* memungkinkan teks turun ke baris berikutnya */
    padding-left: 40px;
}

.copy-icon {
    cursor: pointer;
    color: var(--primary-gold);
}
.no-data-message {
    text-align: center;
    padding: 20px;
    color: var(--font-light-secondary);
    font-style: italic;
}
.update-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--card-border);
}
.update-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.update-section .btn {
    width: 100%;
    margin-top: 10px;
}
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--font-light);
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group-description {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--font-light-secondary);
    font-style: italic;
}

.transaction-history-container {
    overflow-x: auto; 
}
.transaction-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.transaction-history-table thead {
    background-color: rgba(0,0,0,0.3);
}
.transaction-history-table th, .transaction-history-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}
.transaction-history-table th {
    font-weight: 600;
    color: var(--font-dark);
}
.transaction-history-table td {
    color: var(--font-light-secondary);
}
.status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.status-SUCCESS {
    background-color: var(--status-success);
    color: white;
}
.status-PENDING {
    background-color: var(--status-pending);
    color: var(--font-dark);
}
.status-FAILED {
    background-color: var(--status-failed);
    color: white;
}

/* --- HALAMAN WITHDRAWAL & DEPOSIT --- */
.page-title {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 0px;
    font-size: 1.5rem;
}
.withdrawal-form-container .form-group input:disabled {
    background-color: rgba(0,0,0,0.2);
    cursor: not-allowed;
    opacity: 0.7;
}
.saldo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.saldo-info span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}
.btn-tarik-semua {
    background-color: var(--primary-gold);
    color: var(--font-dark);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-tarik-semua:hover {
    background-color: var(--dark-gold);
}
.btn-tarik-semua:disabled {
    background-color: var(--disabled-bg);
    cursor: not-allowed;
}
.error-text {
    color: var(--status-pending) !important;
}

.pending-card {
    background: var(--whatsapp-green);
    color: var(--font-dark);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.pending-title {
    color: var(--primary-maroon);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.pending-bank-logo {
    max-height: 40px;
    margin-bottom: 10px;
}
.pending-details {
    text-align: left;
    margin-bottom: 10px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.pending-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.pending-item:last-child {
    margin-bottom: 0;
}
.pending-item span {
    color: var(--dark-bg);
}
.pending-item strong {
    font-weight: 700;
    text-align: end;
    word-break: break-all;
}
.pending-note {
    font-size: 0.9rem;
    color: #444;
    font-style: italic;
}
.nominal-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.btn-nominal {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--font-light);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-nominal:hover {
    background-color: rgba(0,0,0,0.3);
}

#deposit-form-container, #qris-display-container,
#manual-deposit-form-container, #manual-instruction-container {
    animation: fadeIn 0.5s;
}

.qris-display-container, .manual-instruction-container {
    text-align: center;
}
.qr-code-wrapper {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#qris-image {
    display: block;
    width: 250px;
    height: 250px;
}
.payment-details {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding: 10px 0;
}
.detail-item:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
}
.detail-item span {
    color: var(--font-light-secondary);
}
.detail-item strong {
    font-weight: 700;
}
.timer-countdown {
    color: var(--status-pending);
}
.payment-instruction {
    font-size: 0.9rem;
    color: var(--font-light-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-cancel {
    background-color: var(--status-failed);
    color: var(--font-light);
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.total-payment-box {
    background: var(--dark-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-align: center;
}
.total-unique-amount {
    background: var(--dark-bg);
    color: var(--font-dark);
    padding: 10px !important;
    border-radius: 8px;
    margin-top: 5px;
}
.total-unique-amount span, .total-unique-amount strong {
    color: var(--font-dark);
}

/* --- Style untuk Kartu Deposit Pending --- */
.pending-deposit-card {
    background: var(--dark-bg);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s;
}
.pending-instruction {
    font-size: 0.9rem;
    color: var(--font-light-secondary);
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.qr-wrapper {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index:999;
}
.pending-details {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    text-align: left;
}
.detail-item-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding: 12px 0;
}
.detail-item-copy:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
}
.detail-item-copy span {
    color: var(--font-light-secondary);
}
.detail-item-copy strong {
    font-weight: 700;
    word-break: break-all;
}
.copy-target {
    display: flex;
    align-items: center;
    gap: 15px;
}
.copy-icon {
    cursor: pointer;
    color: var(--primary-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- PERUBAHAN BARU: Gaya untuk Halaman Promo --- */
.promo-content .page-title {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.promo-alert {
    padding: 15px;
    background-color: var(--status-pending);
    color: var(--font-dark);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.promo-description {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--font-dark);
}
.promo-calculator {
    margin-top: 20px;
}
.promo-terms {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--font-light-secondary);
    padding-bottom: 15px;
}
.promo-terms p {
    margin-bottom: 5px;
}

/* === HALAMAN POSTINGAN & ARTIKEL === */

.post-page {
    padding: 0px;
}

.article-page {
    padding: 10px;
}

/* Grid Daftar Postingan */
.post-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

/* Kartu Postingan */
.post-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.post-card-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    margin-bottom: -60px;
}
.post-card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    object-fit: cover;
}
.post-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-gold);
    color: var(--font-dark);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
}
.post-card-content {
    padding: 15px;
}
.post-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--font-light);
    line-height: 1.4;
}

/* Kontainer Halaman Artikel */
.article-container {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.article-header {
    margin-bottom: 20px;
}
.article-title {
    font-size: 1.6rem;
    color: var(--primary-gold);
    line-height: 1.3;
    margin-bottom: 10px;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--font-light-secondary);
    margin-bottom: 15px;
}
.article-meta i {
    margin-right: 6px;
    color: var(--primary-gold);
}
.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Tombol Share */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}
.share-buttons span {
    font-weight: 600;
    color: var(--font-light-secondary);
}
.share-buttons a, .share-buttons button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--font-light);
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.share-buttons a:hover, .share-buttons button:hover {
    transform: scale(1.1);
}
.share-fb { background-color: #1877F2; }
.share-x { background-color: #1DA1F2; }
.share-wa { background-color: #25D366; }
.share-copy { background-color: #777; }

/* Konten Body Artikel */
.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--font-light-secondary);
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    color: var(--font-light);
    margin-top: 25px;
    margin-bottom: 10px;
}
.article-body p {
    margin-bottom: 15px;
}
.article-body a {
    color: var(--primary-gold);
    text-decoration: underline;
}
.article-body strong {
    color: var(--font-light);
}

/* Artikel Terkait */
.related-articles {
    margin-top: 0px;
    padding-top: 10px;
}
.related-articles .post-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* Styling untuk Daftar Judul Artikel Terkait */
.related-articles-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.related-articles-list li {
    border-bottom: 1px solid var(--card-border);
}

.related-articles-list li:last-child {
    border-bottom: none;
}

.related-articles-list a {
    display: block;
    padding: 12px 5px;
    color: var(--font-light-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
}

.related-articles-list a:hover {
    color: var(--primary-gold);
    background-color: var(--card-bg);
}

/* === EVENT ANGPAO (REVISI FINAL) === */

/* --- Ikon Sticky --- */
#sticky-angpao-event {
    position: fixed;
    bottom: 75px; /* Di atas bottom nav */
    left: 15px;
    z-index: 998;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#sticky-angpao-event img {
    width: 60px;
    height: auto;
    animation: float-animation 3s ease-in-out infinite;
}
#sticky-angpao-event:hover {
    transform: scale(1.1);
}
@keyframes float-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Kontainer Animasi Jatuh --- */
#angpao-fall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}
#angpao-fall-container.hidden {
    display: none;
}
.falling-angpao {
    position: absolute;
    top: -100px;
    width: 90px;
    height: auto;
    pointer-events: auto;
    animation-name: leaf-drop;
    animation-timing-function: linear;
    animation-iteration-count: infinite; /* Diubah menjadi infinite */
    cursor: pointer;
}

/* Keyframe tunggal yang menggabungkan jatuh, goyang, dan berputar */
@keyframes leaf-drop {
    0% {
        transform: translateY(0) translateX(0) rotateZ(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(30px) rotateZ(20deg);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotateZ(-15deg);
    }
    75% {
        transform: translateY(75vh) translateX(40px) rotateZ(10deg);
    }
    99% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(10px) rotateZ(0deg);
        opacity: 0; /* Menghilang saat mencapai dasar untuk loop yang mulus */
    }
}


/* --- Popup Hasil --- */
#angpao-result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
#angpao-result-popup.hidden {
    display: none;
}
.angpao-result-content {
    width: 100%;
    max-width: 480px;
    height: 300px;
    background-image: url('/assets/img/event/angpao/doorprize.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    text-shadow: 2px 2px 5px #000;
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.angpao-result-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.angpao-prize-amount {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.1;
}
#close-angpao-popup {
    position: absolute;
    top: 50px;
    right: 40px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Style untuk Tombol "Semua Provider" --- */
.games-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-all-providers {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-all-providers:hover {
    background-color: var(--primary-gold);
    color: var(--font-dark);
}

strong#pending-payment-no {
    word-break: break-all;
    text-align: right;
}

/* ==============================================
   CSS untuk Grid Metode Pembayaran (3 Kolom)
   ============================================== */

/* 1. Mengatur Kontainer Grid */
.payment-methods-grid {
    display: grid;
    /* Membuat 3 kolom dengan lebar yang sama */
    grid-template-columns: repeat(3, 1fr);
    /* Memberi jarak antar kartu */
    gap: 15px;
    margin-bottom: 2rem; /* Jarak ke elemen di bawahnya */
}

/* 2. Menata Setiap Kartu Pembayaran */
.payment-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* Menjaga rasio aspek kartu agar terlihat rapi */
    aspect-ratio: 16 / 10;
}

/* 3. Menyembunyikan Teks (<span>) di dalam Kartu */
.payment-card span {
    display: none;
}

/* 4. Mengatur Gambar di dalam Kartu */
.payment-card img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain; /* Memastikan gambar tidak gepeng */
    transition: transform 0.2s ease;
}

/* 5. Efek saat Kartu di-hover */
.payment-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 6. Gaya untuk Kartu yang Sedang Aktif/Dipilih */
.payment-card.active {
    border-color: #0d6efd; /* Warna biru primer Bootstrap */
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    background-color: #f0f8ff;
}

.payment-card.active img {
    transform: scale(1.05); /* Sedikit memperbesar gambar saat aktif */
}

/* GANTI TOTAL BLOK CSS SCANNER LAMA DENGAN INI */

/* --- QRIS SCANNER STYLING v2 --- */
.input-with-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon-wrapper input {
    padding-right: 50px !important;
}
.btn-scan-qr-icon {
    position: absolute;
    right: 1px; top: 1px; bottom: 1px;
    width: 45px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    color: var(--primary-gold);
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s;
}
.btn-scan-qr-icon:hover {
    background-color: rgba(255, 215, 0, 0.1);
}
.qr-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.qr-modal-content {
    background: #282828;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid var(--primary-gold);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--dark-gold);
    color: var(--font-dark);
}
.qr-modal-header h3 { margin: 0; font-size: 1.1rem; }
.close-btn { background: none; border: none; color: var(--font-dark); font-size: 2rem; cursor: pointer; line-height: 1; }

.qr-reader-viewport {
    width: 100%;
    position: relative;
    background-color: #000;
}
#qr-video {
    width: 100%;
    height: auto;
    display: block;
}
.scan-line {
    position: absolute;
    top: 0; left: 5%;
    width: 90%;
    height: 3px;
    background: #0099ff;
    box-shadow: 0 0 10px #0099ff, 0 0 20px #0099ff inset;
    border-radius: 3px;
    z-index: 10;
    animation: scan-anim 3s infinite ease-in-out;
}
@keyframes scan-anim {
    0% { top: 0%; }
    50% { top: calc(100% - 3px); }
    100% { top: 0%; }
}
.qr-modal-controls {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #222;
}
.control-btn {
    background: transparent;
    border: 1px solid var(--font-light-secondary);
    color: var(--font-light-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.control-btn.active {
    background-color: var(--primary-gold);
    color: var(--font-dark);
    border-color: var(--primary-gold);
}

/* Styling dasar untuk semua status badge */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

/* Warna untuk status Success */
.status-badge.status-success {
    background-color: #28a745; /* Hijau */
}

/* Warna untuk status Failed atau Cancel */
.status-badge.status-failed,
.status-badge.status-cancel {
    background-color: #dc3545; /* Merah */
}

/* (Opsional) Warna untuk status Pending */
.status-badge.status-pending {
    background-color: #ffc107; /* Kuning */
    color: #333; /* Warna teks gelap agar mudah dibaca */
}

/* (Opsional) Warna default jika ada status lain */
.status-badge {
    background-color: #6c757d; /* Abu-abu */
}
