/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8838e4;
    --primary-gradient: linear-gradient(135deg, #8838e4, #8838e4);
    --secondary-color: #0a0a1a;
    --accent-color: #1a1a2e;
    --text-color: #8838e4;
    --text-secondary: #aaaaaa;
    --border-color: rgba(255, 215, 0, 0.1);
    --success-color: #00ff55;
    --warning-color: #8838e4;
    --danger-color: #ff6b6b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.preloader-logo {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.preloader p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
        flex: 1;
    }
    
    .nav-links {
        display: flex;
        gap: 10px;
        list-style: none;
        justify-content: center;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 215, 0, 0.1);
        color: var(--primary-color);
    }
    
    .nav-link i {
        font-size: 1rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-stats {
    display: none;
}

@media (min-width: 768px) {
    .header-stats {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--primary-color);
        font-size: 0.85rem;
    }
    
    .stat-item i {
        font-size: 0.9rem;
    }
    
    .rtp-indicator {
        display: flex;
        align-items: center;
        gap: 5px;
        background: rgba(255, 215, 0, 0.1);
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
    }
    
    .rtp-indicator strong {
        color: var(--primary-color);
    }
}

.header-buttons {
    display: none;
}

@media (min-width: 768px) {
    .header-buttons {
        display: flex;
        gap: 10px;
    }
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 430px;
    height: 100%;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    height: 30px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--primary-color);
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-nav-links .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 25px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
    padding: 100px 0 50px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 89%;
    background: url('https://i.imgur.com/DaZws30.jpeg') center/cover;
    opacity: 0.1;
    filter: blur(1px);
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-top: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===== RTP LIVE SECTION ===== */
.rtp-live-section {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.rtp-live-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rtp-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.rtp-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rtp-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    animation: spin 3s linear infinite;
}

.rtp-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.rtp-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rtp-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rtp-stat {
    text-align: center;
    min-width: 80px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
}

.rtp-progress-container {
    margin-top: 20px;
}

.rtp-progress-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rtp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ffd700, #00ff00);
    border-radius: 10px;
    width: 96.5%;
    position: relative;
    transition: width 0.5s ease;
}

.rtp-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 2s infinite;
}

.rtp-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions-section {
    padding: 40px 0;
    background: rgba(10, 10, 26, 0.8);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== GAMES SECTION ===== */
.games-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: #000;
    border-color: transparent;
}

.search-box {
    position: relative;
    min-width: 250px;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== EFEK BLINK PADA GAME CARD ===== */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: gameCardGlow 3s ease-in-out infinite;
}

/* Efek blink khusus untuk game tertentu dengan kelas tambahan */
.game-card.blink-slow {
    animation: blinkSlow 4s ease-in-out infinite;
}

.game-card.blink-medium {
    animation: blinkMedium 3s ease-in-out infinite;
}

.game-card.blink-fast {
    animation: blinkFast 2s ease-in-out infinite;
}

/* Efek blink untuk game baru */
.game-card.new-game {
    animation: newGamePulse 3s ease-in-out infinite;
}

/* Efek blink untuk game populer */
.game-card.popular-game {
    animation: popularGameGlow 4s ease-in-out infinite;
}

/* Efek border berkedip */
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
    animation: borderBlink 1.5s ease-in-out infinite;
}

.game-card:focus-within {
    animation: intenseBlink 0.8s ease-in-out infinite;
}

.game-card.high-rtp {
    position: relative;
    overflow: hidden;
}

.game-card.high-rtp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shineEffect 3s linear infinite;
    z-index: 1;
}

.game-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.image-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.image-error i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.play-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    background: var(--primary-gradient);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    animation: btnPulse 2s ease-in-out infinite;
}

.game-card:hover .play-btn {
    opacity: 1;
    bottom: 85px;
    animation: btnPulse 1s ease-in-out infinite;
}

.game-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.game-header {
    margin-bottom: 10px;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.game-provider {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.rtp-container {
    margin: 10px 0;
}

.rtp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rtp-value {
    font-weight: 600;
}

.rtp-value.rtp-excellent { color: #00ff00; }
.rtp-value.rtp-high { color: #67cd4e; }
.rtp-value.rtp-medium { color: #FFD166; }
.rtp-value.rtp-low { color: #FF6B6B; }
.rtp-value.rtp-very-low { color: #8B0000; }

.rtp-bar {
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
}

.rtp-fill {
    height: 100%;
    border-radius: 3px;
    position: relative;
    transition: width 0.5s ease;
}

.rtp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 2s infinite;
}

.rtp-fill.rtp-excellent { background: linear-gradient(90deg, #00ff00, #4fa044); }
.rtp-fill.rtp-high { background: linear-gradient(90deg, #67cd4e, #4fa044); }
.rtp-fill.rtp-medium { background: linear-gradient(90deg, #FFD166, #FF9E64); }
.rtp-fill.rtp-low { background: linear-gradient(90deg, #FF6B6B, #EE5A52); }
.rtp-fill.rtp-very-low { background: linear-gradient(90deg, #8B0000, #8B0000); }

.game-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.jam-gacor-slot {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.jam-gacor-slot i {
    color: var(--primary-color);
}

.jam-gacor-slot strong {
    color: var(--primary-color);
    font-weight: 600;
}

.new-badge,
.popular-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    animation: badgeBlink 2s ease-in-out infinite;
}

.new-badge {
    background: #2196F3;
    color: white;
}

.popular-badge {
    background: #FF5722;
    color: white;
}

.no-games-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-games-found i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.no-games-found h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ===== PROVIDERS SECTION ===== */
.providers-section {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.8);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.provider-card {
    text-decoration: none;
    color: inherit;
    display: block;    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.provider-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.provider-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-name {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-color);
}

/* ===== PROMO SECTION ===== */
.promo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.promo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1);
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.promo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.promo-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-gradient);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ===== FOOTER ===== */
.main-footer {
    background: rgba(10, 10, 26, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: #777;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 10px;
    color: #666;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-player-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    z-index: 999;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@media (max-width: 768px) {
    .floating-player-counter {
        bottom: 20px;
        right: 20px;
        left: auto;
        text-align: center;
    }
}

.floating-counter-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.online-text {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
}

.player-count {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.player-count span:first-child {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.players-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-close:hover {
    color: #ff0000;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ANIMASI BLINK BARU UNTUK GAME CARD ===== */
@keyframes gameCardGlow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 217, 0, 0.185);
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.15);
        border-color: rgba(255, 215, 0, 0.3);
    }
}

@keyframes blinkSlow {
    0%, 70%, 100% {
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
        opacity: 1;
    }
    35% {
        box-shadow: 0 5px 30px rgba(255, 215, 0, 0.2);
        opacity: 0.95;
    }
}

@keyframes blinkMedium {
    0%, 60%, 100% {
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
        opacity: 1;
    }
    30% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.25);
        opacity: 0.9;
    }
}

@keyframes blinkFast {
    0%, 50%, 100% {
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
        opacity: 1;
    }
    25% {
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
        opacity: 0.85;
    }
}

@keyframes borderBlink {
    0%, 100% {
        border-color: var(--primary-color);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.5);
    }
}

@keyframes intenseBlink {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        border-color: var(--primary-color);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        border-color: rgba(255, 215, 0, 0.8);
    }
}

@keyframes newGamePulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(33, 150, 243, 0.2);
        border-color: rgba(33, 150, 243, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(33, 150, 243, 0.4);
        border-color: rgba(33, 150, 243, 0.6);
    }
}

@keyframes popularGameGlow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 87, 34, 0.2);
        border-color: rgba(255, 87, 34, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 87, 34, 0.4);
        border-color: rgba(255, 87, 34, 0.6);
    }
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes badgeBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .header-container {
        gap: 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-section {
        padding: 90px 0 40px;
    }
    
    .rtp-live-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 80px 0 30px;
        min-height: auto;
    }
    
    .rtp-live-section,
    .games-section,
    .providers-section,
    .promo-section {
        padding: 60px 0;
    }
    
    .rtp-header {
        flex-direction: column;
        text-align: center;
    }
    
    .rtp-info {
        flex-direction: column;
        text-align: center;
    }
    
    .rtp-stats {
        justify-content: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    /* Kurangi intensitas animasi di mobile untuk performa */
    .game-card {
        animation-duration: 4s;
    }
    
    .game-card.high-rtp::before {
        animation-duration: 4s;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .promo-cards {
        grid-template-columns: 1fr;
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Matikan beberapa animasi di perangkat rendah untuk performa */
    @media (prefers-reduced-motion: reduce) {
        .game-card,
        .game-card::before,
        .play-btn,
        .new-badge,
        .popular-badge {
            animation: none !important;
        }
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .game-card,
    .game-card::before,
    .play-btn,
    .new-badge,
    .popular-badge {
        animation: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .preloader,
    .floating-player-counter,
    .scroll-top-btn,
    .hamburger,
    .action-buttons,
    .play-btn,
    .promo-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-header {
        position: static;
        background: white !important;
    }
    
    /* Matikan animasi saat print */
    .game-card {
        animation: none !important;
        box-shadow: none !important;
    }
}

/* ===== POLA GACOR SECTION ===== */
.pola-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.pola-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.pola-header {
    text-align: center;
    margin-bottom: 30px;
}

.pola-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pola-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pola-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pola-input {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.pola-input input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pola-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.pola-input i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.pola-submit {
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.pola-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.pola-result {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    display: none;
    animation: fadeInUp 0.5s ease;
}

.pola-result.active {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-title {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.result-game {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.pola-steps {
    list-style: none;
    padding: 0;
}

.pola-step {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pola-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 5px;
}

.pola-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pola-tips p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pola-tips i {
    color: var(--primary-color);
}

/* Tombol Cek Pola di Game Card */
.cek-pola-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.cek-pola-btn:hover {
    background: var(--primary-gradient);
    color: #000;
    transform: translateY(-2px);
}

/* Pola Mahjong Khusus */
.pola-result.mahjong-special {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(40, 40, 60, 0.9) 100%);
    border-left-color: #FF6B6B;
}

.mahjong-title {
    color: #FF6B6B !important;
}

.mahjong-step .step-number {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

@media (max-width: 768px) {
    .pola-form {
        flex-direction: column;
    }
    
    .pola-input,
    .pola-submit {
        width: 100%;
    }
    
    .pola-card {
        padding: 20px;
    }
}