:root {
    /* Typography Scales */
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    
    /* Red Supernova Bright - Optimized for Eye Comfort */
    --bg-color: #0f0202;
    --bg-secondary: #1a0808;
    --text-first: #ffffff;
    --text-second: #ffe8e8;
    
    /* Primary Red Spectrum - Brightened */
    --first-color: #8b1a1a;
    --second-color: #6b0f0f;
    --third-color: #a82828;
    --fourth-color: #d63838;
    --fifth-color: #ff4444;
    --sixth-color: #2a0505;
    
    /* Gradient Colors */
    --g1: #d63838;
    --g2: #ff6666;
    
    /* Accent Colors */
    --marquee: #a82828;
    --accent-fire: #ff4444;
    --accent-blaze: #ff6666;
    --accent-supernova: #ff8888;
    --accent-dark: #450a0a;
    
    /* Glow Effects */
    --glow-soft: 0 0 10px rgba(255, 68, 68, 0.3);
    --glow-medium: 0 0 20px rgba(255, 68, 68, 0.4);
    --glow-strong: 0 0 30px rgba(255, 68, 68, 0.5);
}

body {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    color: var(--text-first);
    position: relative;
}

/* Subtle animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(214, 56, 56, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* === LOGO === */
.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--glow-soft)) brightness(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img:hover {
    transform: scale(1.03);
    filter: drop-shadow(var(--glow-medium)) brightness(1.2);
}

/* === RTP CARD === */
.rtp-card {
    background: linear-gradient(145deg, 
        var(--second-color) 0%, 
        var(--third-color) 50%, 
        var(--fourth-color) 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    border: 2px solid var(--fourth-color);
    box-shadow: 
        0 4px 15px rgba(214, 56, 56, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.rtp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 136, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rtp-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-fire);
    box-shadow: 
        0 8px 25px rgba(255, 68, 68, 0.4),
        0 0 30px rgba(255, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rtp-card:hover::before {
    opacity: 1;
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    border: 2px solid var(--third-color);
    transition: all 0.3s ease;
}

.rtp-card:hover .rtp-card-img {
    border-color: var(--accent-fire);
    filter: brightness(1.1);
}

/* === IMAGE CONTAINER === */
.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--second-color) 0%, var(--first-color) 100%);
    box-shadow: 
        inset 0 0 20px rgba(107, 15, 15, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--first-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-img-rtp:hover {
    cursor: pointer;
    border-color: var(--accent-fire);
    background: linear-gradient(135deg, var(--first-color) 0%, var(--third-color) 100%);
    box-shadow: 
        inset 0 0 25px rgba(168, 40, 40, 0.4),
        0 0 20px rgba(255, 68, 68, 0.3);
}

/* === PLAY BUTTON === */
.btn-play {
    border-radius: 8px;
    padding: 0.6rem;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-fire);
    background: linear-gradient(135deg, 
        var(--third-color) 0%, 
        var(--fourth-color) 50%, 
        var(--fifth-color) 100%);
    color: #ffffff;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(255, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    background: linear-gradient(135deg, 
        var(--fourth-color) 0%, 
        var(--accent-fire) 50%, 
        var(--accent-blaze) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(255, 68, 68, 0.5),
        0 0 30px rgba(255, 102, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-blaze);
}

/* === PATTERN WRAPPER === */
.pola-wrapper {
    background: linear-gradient(145deg, 
        var(--second-color) 0%, 
        var(--first-color) 100%);
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    position: relative;
    border: 2px solid var(--third-color);
    box-shadow: 
        0 4px 15px rgba(139, 26, 26, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pola-wrapper:hover {
    border-color: var(--accent-fire);
    box-shadow: 
        0 6px 20px rgba(255, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pola-wrapper h4 {
    font-size: 1rem;
    color: var(--accent-supernova);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pola-wrapper h5 {
    font-size: 0.8rem;
    color: var(--text-second);
    font-weight: 500;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--accent-fire);
    filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.5));
}

/* === TIME WRAPPER === */
.jam-wrapper {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--second-color) 100%);
    border-radius: 50%;
    padding: 0.7rem;
    border: 3px solid var(--third-color);
    box-shadow: 
        0 4px 12px rgba(139, 26, 26, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.jam-wrapper:hover {
    border-color: var(--accent-fire);
    box-shadow: 
        0 6px 15px rgba(255, 68, 68, 0.4),
        0 0 20px rgba(255, 68, 68, 0.2);
}

/* === TABLE === */
.table-pola {
    max-width: 100%;
    width: 100%;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-second);
    padding: 0.4rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.table-pola tr:hover td {
    color: var(--accent-supernova);
}

/* === BADGES === */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
    opacity: 1;
    filter: drop-shadow(var(--glow-soft));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 68, 68, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.6));
    }
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

/* === PROVIDER ICONS === */
.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
    filter: drop-shadow(0 2px 6px rgba(139, 26, 26, 0.5)) brightness(1.1);
    transition: all 0.3s ease;
}

.icon-providers:hover {
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.6)) brightness(1.3);
}

.icon-providers img {
    width: 1.7rem;
}

/* === SLIDER === */
.slider,
.swiper {
    width: 100%;
    max-width: 100%;
}

.slider-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    border: 2px solid var(--third-color);
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
    transition: all 0.4s ease;
}

.slider-img:hover {
    border-color: var(--accent-fire);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.4);
    transform: scale(1.02);
}

.slider-wrapper {
    background: linear-gradient(180deg, 
        var(--second-color) 0%, 
        var(--first-color) 50%,
        var(--accent-dark) 100%);
    height: 100%;
    border-bottom: 2px solid var(--accent-fire);
    padding: 0.7rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === RUNNING TEXT === */
.running-text {
    background: linear-gradient(90deg, 
        var(--third-color) 0%, 
        var(--marquee) 50%, 
        var(--third-color) 100%);
    border-top: 2px solid var(--accent-fire);
    border-bottom: 2px solid var(--accent-fire);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-first);
    padding: 0.6rem 1rem;
    letter-spacing: 1px;
    box-shadow: 
        0 2px 10px rgba(255, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 2px 10px rgba(255, 68, 68, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 2px 15px rgba(255, 68, 68, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* === PROVIDER SECTION === */
.icon-prov {
    background: linear-gradient(180deg, 
        var(--first-color) 0%, 
        var(--second-color) 50%,
        var(--first-color) 100%);
    display: flex;
    position: relative;
    overflow: auto !important;
    padding: 0.7rem 0;
    border-top: 2px solid var(--fourth-color);
    border-bottom: 2px solid var(--fourth-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.6rem !important;
    color: var(--text-second);
    background: linear-gradient(145deg, var(--accent-dark) 0%, var(--second-color) 100%);
    border: 2px solid var(--first-color);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.icon-card-bg:hover {
    border-color: var(--accent-fire);
    background: linear-gradient(145deg, var(--third-color) 0%, var(--fourth-color) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 68, 68, 0.4),
        0 0 20px rgba(255, 68, 68, 0.2);
}

.icon-card-bg p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 0.4rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: grayscale(20%) brightness(1.1);
    transition: all 0.3s ease;
}

.icon-card-bg:hover .img-prov {
    filter: grayscale(0%) brightness(1.3);
}

.item-prov {
    padding: 0 0.6rem;
}

/* === LOGIN BUTTON === */
.btn-login {
    background: linear-gradient(135deg, 
        var(--third-color) 0%, 
        var(--fourth-color) 50%,
        var(--fifth-color) 100%);
    padding: 0.8rem;
    color: #ffffff;
    border: 2px solid var(--accent-fire);
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(214, 56, 56, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::after {
    width: 400px;
    height: 400px;
}

.btn-login:hover {
    background: linear-gradient(135deg, 
        var(--fourth-color) 0%, 
        var(--accent-fire) 50%,
        var(--accent-blaze) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(255, 68, 68, 0.5),
        0 0 30px rgba(255, 102, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-blaze);
}

/* === REGISTER BUTTON === */
.btn-daftar {
    background: linear-gradient(135deg, 
        var(--accent-fire) 0%, 
        var(--accent-blaze) 50%,
        var(--accent-supernova) 100%);
    padding: 0.8rem;
    color: #ffffff;
    border: 2px solid var(--accent-blaze);
    font-weight: 800;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 20px rgba(255, 68, 68, 0.4),
        0 0 20px rgba(255, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-daftar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.btn-daftar:hover {
    background: linear-gradient(135deg, 
        var(--accent-blaze) 0%, 
        var(--accent-supernova) 50%,
        #ffaaaa 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 30px rgba(255, 102, 102, 0.6),
        0 0 40px rgba(255, 136, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: var(--accent-supernova);
}

/* === BOTTOM NAVIGATION === */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--accent-fire);
    background: linear-gradient(180deg, var(--first-color) 0%, var(--second-color) 100%);
    box-shadow: 
        0 -4px 20px rgba(139, 26, 26, 0.5),
        0 -2px 10px rgba(255, 68, 68, 0.2);
}

.item-nav-bottom {
    background: linear-gradient(180deg, var(--second-color) 0%, var(--accent-dark) 100%);
    color: var(--text-second);
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.8rem 0.3rem;
    flex: 1;
    border-right: 2px solid var(--first-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.item-nav-bottom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, var(--accent-fire) 100%);
    transition: height 0.3s ease;
}

.item-nav-bottom:hover::before {
    height: 100%;
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, var(--third-color) 0%, var(--fourth-color) 100%);
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* === SCROLL TO TOP === */
.btn-up {
    display: none;
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    z-index: 99;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--fourth-color) 0%, var(--accent-fire) 100%);
    color: #ffffff;
    border: 3px solid var(--accent-blaze);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    box-shadow: 
        0 4px 15px rgba(214, 56, 56, 0.4),
        0 0 20px rgba(255, 68, 68, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.btn-up:hover {
    background: linear-gradient(135deg, var(--accent-fire) 0%, var(--accent-blaze) 100%);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 
        0 6px 25px rgba(255, 68, 68, 0.6),
        0 0 35px rgba(255, 102, 102, 0.4);
    animation: none;
}

/* === PROGRESS BARS (TIDAK DIUBAH - TETAP SEPERTI ASLINYA) === */
.percent {
    height: 22px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--second-color);
    border: 1px solid var(--first-color);
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: 50%;
    font-weight: 600;
    transform: translateY(-50%);
    color: var(--text-first);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(45, 107, 45, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(45, 107, 45, 0.15) 50%,
        rgba(45, 107, 45, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 2s linear infinite;
    z-index: 10;
    font-weight: 500;
}


.bad {
    background-color: #c62828;
}

.good {
    background-color: #f57c00;
}

.great {
    background-color: #43a047;
}

/* === CONTENT HOME === */
.content-home {
    padding: 1.5rem;
    margin-bottom: 5rem;
    background: transparent;
    color: var(--text-first);
    position: relative;
    z-index: 1;
}

/* === RESPONSIVE CONTAINER === */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}

/* === ANIMATIONS === */
@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* === ACCESSIBILITY === */
*:focus {
    outline: 3px solid var(--accent-fire);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 68, 68, 0.2);
}

*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === SELECTION STYLING === */
::selection {
    background: var(--fourth-color);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid var(--first-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--third-color) 0%, var(--fourth-color) 100%);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--fourth-color) 0%, var(--accent-fire) 100%);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* === PERFORMANCE OPTIMIZATION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}