* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(90deg, #8B0000 0%, #d4a03f 100%);
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

/* LOGO UTAMA */
.header-logo-main {
    width: 250px;
    height: 80px;
    margin: 0 auto 15px auto;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.logo-placeholder-main {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B0000, #B22222);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 3px 3px 0 #8B0000;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-date {
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    color: #FFD700;
    border: 2px solid #FFD700;
    margin-bottom: 15px;
}

/* TOMBOL LINK HEADER */
.header-links-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-link-btn {
    background: linear-gradient(90deg, #B22222, #8B0000);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.header-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(139, 0, 0, 0.5);
    background: linear-gradient(90deg, #8B0000, #B22222);
}

.header-link-btn i {
    font-size: 1rem;
    color: #FFD700;
    flex-shrink: 0;
}

.btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search Section */
.search-section {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: 2px solid #444;
    background: #1a1a2e;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 1.2rem;
}

/* Provider Filter */
.provider-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.provider-btn {
    padding: 12px 25px;
    border-radius: 10px;
    background: #222;
    border: 2px solid #444;
    color: #ddd;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.provider-btn:hover {
    background: #333;
    transform: translateY(-3px);
}

.provider-btn.active {
    background: linear-gradient(to right, #8B0000, #B22222);
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Provider Logo in Button */
.provider-logo-btn {
    height: 24px;
    width: auto;
    filter: brightness(1.5);
}

/* ============================================= */
/* LAYOUT RESPONSIVE: GRID HANYA UNTUK DESKTOP */
/* ============================================= */

/* MOBILE & TABLET: VERTICAL LIST (default) */
.row {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

/* Setiap card mengambil 100% lebar untuk mobile/tablet */
.col-lg-4 {
    width: 100%;
}

/* DESKTOP ONLY (≥ 992px): GRID 3 KOLOM (DEFAULT) */
@media (min-width: 992px) {
    .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .col-lg-4 {
        width: 100%;
    }
}

/* RTP Card - SEMUA PROVIDER SAMA */
.rtp-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
    border: 2px solid #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rtp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.3);
    border-color: #B22222;
}

/* Card Content Container - PERBAIKAN */
.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

/* Row inside card - PERBAIKAN */
.card-row {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

/* Image Section */
.place-img-rtp {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

.rtp-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.5s;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    padding: 8px;
}

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(90deg, #FF0000, #FF4500);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

.place-img-rtp:hover .btn-play {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.place-img-rtp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.place-img-rtp:hover::after {
    opacity: 1;
}

.place-img-rtp:hover .rtp-card-img {
    transform: scale(1.05);
}

.btn-play:hover {
    background: linear-gradient(90deg, #FF4500, #FF0000);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
}

/* Pola Wrapper - PERBAIKAN */
.pola-wrapper {
    background: rgba(25, 25, 40, 0.9);
    border-radius: 10px;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    gap: 8px;
}

.icon-providers {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.provider-logo {
    height: 30px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: brightness(1.2);
}

/* Badge Styles */
.game-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hot-badge {
    background: linear-gradient(45deg, #FF0000, #FF4500);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(255, 69, 0, 0.4);
    white-space: nowrap;
}

.popular-badge {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(65, 105, 225, 0.4);
    white-space: nowrap;
}

.new-badge {
    background: linear-gradient(45deg, #32CD32, #00FF00);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(50, 205, 50, 0.4);
    white-space: nowrap;
}

.pola-wrapper h4 {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.pola-wrapper hr {
    border-color: #B22222;
    margin: 6px 0;
    opacity: 0.7;
}

/* Table Pola - PERBAIKAN */
.table-pola {
    width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pola-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(40, 40, 60, 0.8);
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-height: 44px;
}

.pola-item:hover {
    background: rgba(50, 50, 70, 0.9);
    transform: translateX(2px);
}

.pola-type {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* PERKECILAN UKURAN BADGE - PERBAIKAN */
.manual-badge {
    background: #00aa00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 70px;
    height: 24px;
}

.auto-badge {
    background: #FF8C00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 70px;
    height: 24px;
}

.turbo-badge {
    background: #4169E1;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    margin-left: 4px;
    min-width: 55px;
    height: 20px;
}

.turbo-on {
    background: #00aa00;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    margin-left: 4px;
    min-width: 55px;
    height: 20px;
}

.turbo-off {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    margin-left: 4px;
    min-width: 55px;
    height: 20px;
}

.pola-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 1rem;
    min-width: 45px;
    text-align: center;
    margin-left: 8px;
}

.pola-icons {
    display: flex;
    gap: 6px;
    min-width: 60px;
    justify-content: flex-end;
    margin-left: 8px;
}

.check-icon {
    color: #00ff00;
    font-size: 0.9rem;
}

.x-icon {
    color: #ff4444;
    font-size: 0.9rem;
}

/* Jam Gacor - PERBAIKAN */
.jam-gacor {
    color: #FFD700;
    font-size: 0.85rem;
    margin: 8px 0;
    text-align: center;
    font-weight: bold;
    padding: 6px 10px;
    background: rgba(178, 34, 34, 0.2);
    border-radius: 5px;
    border: 1px solid #B22222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bar - PERBAIKAN */
.percent {
    position: relative;
    background: #222;
    border-radius: 8px;
    height: 35px;
    margin-top: auto;
    overflow: hidden;
    border: 2px solid #444;
}

.percent p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
    z-index: 15;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

.percent-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 1.5s ease-in-out;
    border-radius: 6px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

/* WARNA RTP BERDASARKAN RANGE */
.percent-bar.very-bad { background-color: #dc3545; } /* <25%: SANGAT BURUK */
.percent-bar.good { background-color: #ffc107; } /* 25-74%: BAIK */
.percent-bar.very-good { background-color: #28a745; } /* 75-98%: SANGAT GACOR */

/* Label status RTP */
.rtp-status {
    position: absolute;
    top: -22px;
    right: 8px;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.rtp-status.very-bad {
    background-color: #dc3545;
    color: white;
}

.rtp-status.good {
    background-color: #ffc107;
    color: #000;
}

.rtp-status.very-good {
    background-color: #28a745;
    color: white;
}

/* Game Name - PERBAIKAN */
.game-name {
    color: #FFD700;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-top: 8px;
    padding: 8px 6px;
    background: rgba(178, 34, 34, 0.3);
    border-radius: 5px;
    border: 1px solid #B22222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(30, 30, 46, 0.5);
    border-radius: 15px;
    border: 2px dashed #444;
}

.empty-state i {
    font-size: 4rem;
    color: #B22222;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.empty-state p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Fallback untuk gambar */
.img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 10px;
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* ============================================= */
/* RESPONSIVE BREAKPOINT DETAILED */
/* ============================================= */

/* Tablet (≥768px) dan <992px */
@media (min-width: 768px) and (max-width: 991px) {
    .header-title { font-size: 2.5rem; }
    .header-subtitle { font-size: 1.3rem; }
    .place-img-rtp { height: 140px; }
    .card-content { padding: 10px; gap: 10px; }
    .pola-item { padding: 6px 8px; font-size: 0.85rem; min-height: 40px; }
    .manual-badge, .auto-badge { 
        min-width: 65px; 
        font-size: 0.7rem; 
        padding: 3px 6px;
        height: 22px;
    }
    .turbo-badge, .turbo-on, .turbo-off { 
        min-width: 50px; 
        font-size: 0.6rem; 
        padding: 2px 5px;
        height: 18px;
    }
    .pola-value { font-size: 0.9rem; min-width: 40px; }
    .search-container { flex-direction: column; }
    .game-name { font-size: 0.9rem; padding: 6px 4px; }
    .jam-gacor { font-size: 0.8rem; padding: 5px 8px; }
}

/* Tablet Portrait (≥576px) */
@media (min-width: 576px) and (max-width: 767px) {
    .header-title { font-size: 2.2rem; }
    .header-subtitle { font-size: 1.2rem; }
    .place-img-rtp { height: 120px; }
    .card-content { padding: 8px; gap: 8px; }
    .pola-wrapper { padding: 10px; gap: 6px; }
    .provider-btn { min-width: 110px; padding: 8px 12px; font-size: 0.85rem; }
    .btn-play { padding: 8px 16px; font-size: 0.8rem; }
    .pola-item { 
        padding: 6px 8px; 
        font-size: 0.8rem; 
        min-height: 38px;
    }
    .manual-badge, .auto-badge { 
        min-width: 60px; 
        font-size: 0.65rem; 
        padding: 3px 5px;
        height: 20px;
    }
    .turbo-badge, .turbo-on, .turbo-off { 
        min-width: 45px; 
        font-size: 0.55rem; 
        padding: 2px 4px;
        height: 16px;
    }
    .game-badges { gap: 5px; }
    .hot-badge, .popular-badge, .new-badge { 
        font-size: 0.75rem; 
        padding: 3px 8px; 
    }
    .game-name { font-size: 0.85rem; padding: 5px 4px; }
    .jam-gacor { font-size: 0.75rem; padding: 4px 6px; }
    .pola-value { font-size: 0.85rem; min-width: 35px; }
}

/* ============================================= */
/* MOBILE (≤575px) - VERTICAL LAYOUT */
/* ============================================= */
@media (max-width: 575px) {
    .header { 
        padding: 15px 12px; 
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .header-logo-main { 
        width: 160px; 
        height: 55px;
        margin-bottom: 8px;
    }
    
    .logo-placeholder-main { 
        font-size: 1.3rem; 
        letter-spacing: 1px;
    }
    
    .header-title { 
        font-size: 1.5rem; 
        margin-bottom: 6px;
        text-shadow: 2px 2px 0 #8B0000;
    }
    
    .header-subtitle { 
        font-size: 0.9rem; 
        margin-bottom: 8px; 
    }
    
    .header-date { 
        padding: 6px 12px; 
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    /* Header links horizontal scroll di mobile */
    .header-links-container {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .header-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-link-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        flex: 0 0 auto;
        min-width: 100px;
        border-radius: 25px;
    }
    
    .btn-text { font-size: 0.65rem; }
    .header-link-btn i { 
        font-size: 0.7rem;
        margin-right: 3px;
    }
    
    /* Search section mobile */
    .search-section { 
        padding: 15px 12px; 
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .search-container { 
        flex-direction: column; 
        gap: 10px; 
        margin-bottom: 15px;
    }
    
    .search-box input { 
        padding: 10px 15px 10px 40px; 
        font-size: 0.9rem; 
        border-radius: 25px;
    }
    
    .search-icon { 
        left: 15px; 
        font-size: 1rem;
    }
    
    /* Provider filter mobile */
    .provider-filter { 
        gap: 6px; 
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .provider-btn { 
        min-width: 90px; 
        padding: 6px 10px; 
        font-size: 0.75rem;
        flex: 0 0 auto;
        border-radius: 8px;
    }
    
    .provider-logo-btn {
        height: 18px;
    }
    
    /* Vertical layout untuk mobile */
    .row { 
        gap: 15px; 
        margin-top: 15px;
    }
    
    /* CARD LEBIH KECIL DI MOBILE - PERBAIKAN */
    .rtp-card { 
        border-radius: 8px;
        border-width: 1px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .rtp-card:hover {
        transform: translateY(-3px);
    }
    
    .place-img-rtp { 
        height: 100px;
        border-radius: 6px;
    }
    
    .rtp-card-img {
        padding: 5px;
        border-radius: 6px;
    }
    
    .card-content { 
        padding: 8px;
        gap: 6px;
    }
    
    .card-row {
        gap: 6px;
    }
    
    .pola-wrapper { 
        padding: 8px;
        border-radius: 6px;
        gap: 5px;
    }
    
    .provider-logo { 
        height: 22px;
        max-width: 70px;
    }
    
    .game-badges { 
        gap: 4px; 
    }
    
    .hot-badge, .popular-badge, .new-badge { 
        font-size: 0.6rem;
        padding: 2px 6px; 
        border-radius: 12px;
    }
    
    .pola-wrapper h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        gap: 4px;
    }
    
    .pola-wrapper hr {
        margin: 4px 0;
    }
    
    .table-pola {
        gap: 4px;
    }
    
    .pola-item { 
        padding: 5px 6px;
        font-size: 0.7rem;
        border-radius: 4px;
        flex-wrap: nowrap;
        min-height: 32px;
        align-items: center;
    }
    
    .pola-type {
        flex: 1;
        gap: 4px;
        overflow: hidden;
    }
    
    .manual-badge, .auto-badge { 
        min-width: 48px;
        padding: 2px 4px; 
        font-size: 0.55rem;
        border-radius: 3px;
        height: 18px;
    }
    
    .turbo-badge, .turbo-on, .turbo-off {
        min-width: 42px;
        padding: 1px 3px;
        font-size: 0.5rem;
        border-radius: 2px;
        margin-left: 3px;
        height: 16px;
    }
    
    .pola-value { 
        min-width: 28px;
        font-size: 0.75rem;
        text-align: center;
        margin-left: 4px;
    }
    
    .pola-icons { 
        min-width: 35px;
        gap: 3px;
        margin-left: 4px;
    }
    
    .check-icon, .x-icon {
        font-size: 0.7rem;
    }
    
    /* Jam gacor mobile */
    .jam-gacor { 
        font-size: 0.65rem;
        padding: 4px 6px;
        margin: 6px 0;
        border-radius: 4px;
    }
    
    /* Progress bar mobile - PERBAIKAN */
    .percent { 
        height: 25px;
        border-radius: 5px;
        border-width: 1px;
        margin-top: 4px;
    }
    
    .percent p { 
        font-size: 0.8rem;
    }
    
    /* Game name mobile - PERBAIKAN */
    .game-name { 
        font-size: 0.75rem;
        padding: 5px 4px;
        margin-top: 4px;
        border-radius: 4px;
    }
    
    /* Button play di mobile - lebih kecil */
    .btn-play { 
        padding: 5px 10px; 
        font-size: 0.65rem;
        gap: 3px;
        border-radius: 20px;
    }
    
    /* RTP status label */
    .rtp-status {
        font-size: 0.65rem;
        padding: 1px 4px;
        top: -18px;
        right: 4px;
    }
    
    /* Scrollbar styling untuk mobile */
    .header-links::-webkit-scrollbar,
    .provider-filter::-webkit-scrollbar {
        height: 3px;
    }
    
    .header-links::-webkit-scrollbar-track,
    .provider-filter::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .header-links::-webkit-scrollbar-thumb,
    .provider-filter::-webkit-scrollbar-thumb {
        background: #FFD700;
        border-radius: 2px;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 12px 10px;
    }
    
    .header-logo-main { 
        width: 140px; 
        height: 45px;
    }
    
    .logo-placeholder-main { 
        font-size: 1.1rem; 
    }
    
    .header-title { 
        font-size: 1.4rem; 
    }
    
    .header-subtitle { 
        font-size: 0.85rem; 
    }
    
    .header-date { 
        padding: 5px 10px; 
        font-size: 0.75rem; 
    }
    
    .header-link-btn {
        min-width: 85px;
        padding: 5px 8px;
        font-size: 0.65rem;
    }
    
    .provider-btn { 
        min-width: 80px; 
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .place-img-rtp { 
        height: 90px; 
    }
    
    .card-content {
        padding: 6px;
        gap: 5px;
    }
    
    .pola-item {
        font-size: 0.65rem;
        min-height: 30px;
        padding: 4px 5px;
    }
    
    .manual-badge, .auto-badge { 
        min-width: 42px;
        font-size: 0.5rem;
        padding: 1px 3px;
        height: 16px;
    }
    
    .turbo-badge, .turbo-on, .turbo-off { 
        min-width: 38px;
        font-size: 0.45rem;
        padding: 1px 2px;
        height: 14px;
    }
    
    .game-name {
        font-size: 0.7rem;
        padding: 4px 3px;
    }
    
    .pola-value {
        font-size: 0.7rem;
        min-width: 25px;
    }
    
    .jam-gacor {
        font-size: 0.6rem;
        padding: 3px 5px;
    }
    
    .percent {
        height: 22px;
    }
    
    .percent p {
        font-size: 0.75rem;
    }
}

/* Landscape orientation untuk mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .row { 
        gap: 12px;
    }
    
    .place-img-rtp { 
        height: 70px; 
    }
    
    .rtp-card { 
        min-height: auto; 
    }
    
    .card-content {
        padding: 6px;
        gap: 5px;
    }
    
    .pola-wrapper {
        padding: 6px;
        gap: 4px;
    }
    
    .pola-item {
        min-height: 28px;
        padding: 3px 4px;
    }
}

/* Tampilan untuk layar sangat kecil (≤320px) */
@media (max-width: 320px) {
    .row {
        gap: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 10px 8px;
    }
    
    .place-img-rtp {
        height: 80px;
    }
    
    .manual-badge, .auto-badge {
        min-width: 38px;
        font-size: 0.45rem;
        padding: 1px 2px;
        height: 14px;
    }
    
    .turbo-badge, .turbo-on, .turbo-off {
        min-width: 34px;
        font-size: 0.4rem;
        padding: 1px 2px;
        height: 12px;
    }
    
    .pola-item {
        font-size: 0.6rem;
        min-height: 28px;
    }
    
    .game-name {
        font-size: 0.65rem;
    }
}

/* Tambahan untuk RTP rendah */
.rtp-card.disabled {
    opacity: 0.7;
    filter: grayscale(0.8);
    position: relative;
    pointer-events: none;
}

.rtp-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20;
    border-radius: 10px;
}

.warning-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 30;
    text-align: center;
    width: 85%;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    border: 2px solid #ff6b6b;
}

.warning-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.warning-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffd700;
}

.warning-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Badge warning */
.warning-badge {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    white-space: nowrap;
}

/* RTP rendah progress bar */
.percent-bar.very-bad {
    background-color: #dc3545;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

/* Disabled pola item */
.pola-item.disabled {
    background: rgba(60, 60, 60, 0.8);
    color: #888;
}

.pola-item.disabled .manual-badge,
.pola-item.disabled .auto-badge,
.pola-item.disabled .turbo-on,
.pola-item.disabled .turbo-off {
    background: #666;
    color: #aaa;
}

.pola-item.disabled .pola-value {
    color: #aaa;
}

.pola-item.disabled .check-icon,
.pola-item.disabled .x-icon {
    color: #666;
}

/* Styling untuk provider button yang aktif */
.provider-btn.active {
    position: relative;
    overflow: hidden;
}

.provider-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animasi untuk RTP update */
@keyframes rtpUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.rtp-updated {
    animation: rtpUpdate 0.5s ease-in-out;
}