/* ============================================
   PREMIUM DARK THEME - REFINED ELEGANCE
   Calm, Steady, Sophisticated
   ============================================ */

/* === COLOR PALETTE === */
:root {
    /* Typography Scales */
    --smaller-font: 0.7rem;
    --small-font: 0.875rem;
    --normal-font: 1rem;
    --medium-font: 1.125rem;
    --large-font: 1.75rem;
    --x-large-font: 2rem;
    
    /* Primary Colors - Deep Black Foundation */
    --primary-black: #000000;
    --secondary-black: #0d0d0d;
    --tertiary-black: #1a1a1a;
    --quaternary-black: #262626;
    
    /* Subtle Gold Accents - Refined & Minimal */
    --gold-subtle: #8B7355;
    --gold-muted: #A68B5B;
    --gold-refined: #B8956A;
    --gold-hint: rgba(184, 149, 106, 0.3);
    
    /* Supporting Colors */
    --white-pure: #ffffff;
    --white-soft: #e8e8e8;
    --white-dim: #b0b0b0;
    --gray-medium: #404040;
    --success-green: #4CAF50;
    --warning-orange: #ff8c00;
    --danger-red: #d32f2f;
    
    /* Gradients - Calm & Steady */
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --gradient-subtle: linear-gradient(135deg, #0d0d0d 0%, #262626 100%);
    --gradient-gold-hint: linear-gradient(135deg, #1a1a1a 0%, #8B7355 100%);
    
    /* Shadows - Minimal & Refined */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-gold-subtle: 0 2px 10px rgba(139, 115, 85, 0.15);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    
    /* === METALLIC GOLD VARIABLES === */
    --gold-metallic-base: #D4AF37;
    --gold-metallic-light: #FFD700;
    --gold-metallic-bright: #FFF4C4;
    
    --gradient-metallic-gold: linear-gradient(145deg, 
        #FFD700 0%, 
        #D4AF37 25%, 
        #B8956A 50%, 
        #D4AF37 75%, 
        #FFD700 100%
    );
    
    --gradient-metallic-hover: linear-gradient(145deg, 
        #FFF4C4 0%, 
        #FFD700 25%, 
        #D4AF37 50%, 
        #FFD700 75%, 
        #FFF4C4 100%
    );
    
    --shadow-gold-glow: 0 0 20px rgba(212, 175, 55, 0.5),
                        0 0 40px rgba(212, 175, 55, 0.3),
                        0 4px 15px rgba(0, 0, 0, 0.5);
    
    --shadow-gold-pressed: inset 0 3px 8px rgba(0, 0, 0, 0.4),
                           0 2px 5px rgba(212, 175, 55, 0.3);
}

/* === LOGO STYLING === */
.logo img {
    width: 19rem;
    max-width: 90%;
    display: block;
    margin: 1.9rem auto 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    opacity: 0.95;
}

.logo img:hover {
    transform: scale(1.02);
    opacity: 1;
}

/* === RTP CARD - REFINED DARK DESIGN === */
.rtp-card {
    background: var(--gradient-dark);
    padding: 1rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid var(--gold-subtle);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-muted);
    box-shadow: var(--shadow-gold-subtle);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid var(--quaternary-black);
}

/* === IMAGE CONTAINER - SUBTLE ACCENT === */
.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 6px;
    background: var(--secondary-black);
    border: 1px solid var(--gold-subtle);
    box-shadow: var(--shadow-inset);
    transition: all 0.3s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    border-color: var(--gold-muted);
    background: var(--tertiary-black);
}

/* === PLAY BUTTON - UNDERSTATED ELEGANCE === */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 2px solid var(--gold-muted);
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    width: 12rem;
    max-width: 70%;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-gold-hint);
    color: var(--white-soft);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: var(--gold-muted);
    color: var(--primary-black);
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: var(--shadow-gold-subtle);
}

/* === PATTERN WRAPPER - CALM DARK === */
.pola-wrapper {
    background: var(--secondary-black);
    padding: 1.2rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gold-subtle);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.pola-wrapper h4 {
    font-size: 1rem;
    color: var(--gold-refined);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pola-wrapper h5 {
    font-size: 0.8rem;
    color: var(--white-dim);
    font-weight: 400;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--gold-muted);
}

/* === TIME INDICATOR === */
.jam-wrapper {
    background: var(--gold-muted);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow: var(--shadow-soft);
}

/* === TABLE STYLING === */
.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.75rem;
    color: var(--white-dim);
    padding: 0.3rem;
}

/* === BADGE INDICATORS === */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    height: 2.9rem;
    top: 0;
    left: 0.4rem;
    z-index: 2;
    opacity: 0.9;
}

.top-game {
    background: url(../images/top.gif);
}

.hot-game {
    background: url(../images/hot.gif);
}

/* === PROVIDER ICONS === */
.icon-providers {
    position: absolute;
    display: block;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.icon-providers img {
    width: 1.7rem;
    opacity: 0.9;
}

/* === SLIDER COMPONENTS === */
.slider,
.swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--gold-subtle);
}

.slider-wrapper {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--gold-subtle);
    padding: 1rem;
}

/* === THEME BACKGROUND === */
.bg-theme {
    background: var(--primary-black);
    padding: 0.5rem;
}

/* === RUNNING TEXT BANNER - MINIMAL ACCENT === */
.running-text {
    background: var(--tertiary-black);
    border-top: 1px solid var(--gold-subtle);
    border-bottom: 1px solid var(--gold-subtle);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--gold-refined);
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
}

/* === PROVIDER ICONS SECTION === */
.icon-prov {
    background: var(--gradient-dark);
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-medium);
    border-bottom: 1px solid var(--gray-medium);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.75rem;
    background: var(--secondary-black);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.icon-card-bg:hover {
    border-color: var(--gold-subtle);
    background: var(--tertiary-black);
    transform: translateY(-2px);
}

.icon-card-bg p {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--white-dim);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.icon-card-bg:hover p {
    color: var(--gold-refined);
}

.img-prov {
    display: block;
    margin: 0 auto;
    filter: grayscale(40%) brightness(0.9);
    transition: filter 0.3s ease;
}

.icon-card-bg:hover .img-prov {
    filter: grayscale(0%) brightness(1);
}

.item-prov {
    padding: 0 0.5rem;
}

/* === CREDIT BUTTON - REFINED ACCENT === */
.btn-credit {
    background: var(--gradient-subtle);
    border: 1px solid var(--gold-muted);
    box-shadow: var(--shadow-soft);
    padding: 0.7rem 1.5rem;
    color: var(--gold-refined);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-credit:hover {
    background: var(--gold-muted);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-subtle);
}

/* ============================================
   TOMBOL LOGIN & DAFTAR - METALLIC GOLD
   ============================================ */

/* === CONTAINER TOMBOL AUTH === */
.auth-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* === BASE BUTTON AUTH === */
.btn-auth {
    position: relative;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    text-align: center;
}

/* === TOMBOL LOGIN - METALLIC GOLD SOLID === */
.btn-login {
    background: var(--gradient-metallic-gold);
    color: #000000;
    box-shadow: var(--shadow-gold-glow);
    border: 2px solid #FFD700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.btn-login:hover {
    background: var(--gradient-metallic-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
                0 0 50px rgba(212, 175, 55, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: #FFF4C4;
}

.btn-login:hover::before {
    left: 100%;
    top: 100%;
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-gold-pressed);
}

/* === TOMBOL DAFTAR - OUTLINE METALLIC GOLD === */
.btn-daftar {
    background: rgba(13, 13, 13, 0.8);
    color: #FFD700;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 215, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.btn-daftar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 2px;
    background: var(--gradient-metallic-gold);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-daftar:hover {
    background: rgba(26, 26, 26, 0.9);
    color: #FFF4C4;
    border-color: #FFD700;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.btn-daftar:hover::after {
    opacity: 1;
}

.btn-daftar:active {
    transform: translateY(0) scale(0.98);
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6),
                0 2px 5px rgba(212, 175, 55, 0.3);
}

/* === SHINE EFFECT === */
.btn-auth::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-auth:hover::after {
    left: 200%;
}

/* === ICON SUPPORT === */
.btn-auth i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.btn-auth span {
    position: relative;
    z-index: 2;
}

/* === LOADING STATE === */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: button-spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.btn-daftar.loading::before {
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
}

/* === DISABLED STATE === */
.btn-auth:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* === BOTTOM NAVIGATION - DEEP BLACK BASE === */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    width: 100%;
    background: var(--primary-black);
    border-top: 1px solid var(--gold-subtle);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
}

.item-nav-bottom {
    background: var(--secondary-black);
    color: var(--white-dim);
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
    flex: 1;
    border-right: 1px solid var(--quaternary-black);
    transition: all 0.3s ease;
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: var(--tertiary-black);
    color: var(--gold-refined);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
}

/* === SCROLL TO TOP BUTTON === */
.btn-up {
    display: none;
    position: fixed;
    bottom: 4.5rem;
    right: 1rem;
    z-index: 99;
    background: var(--tertiary-black);
    color: var(--gold-refined);
    border: 1px solid var(--gold-subtle);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-up:hover {
    background: var(--gold-muted);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* === PROGRESS BARS - CALM DESIGN === */
.percent {
    height: 22px;
    margin-top: 10px;
    display: flex;
    overflow: hidden;
    background-color: var(--secondary-black);
    border: 1px solid var(--gold-subtle);
    border-radius: 6px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-inset);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--white-soft);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    top: 50%;
    transform: translateY(-50%);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(139, 115, 85, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(139, 115, 85, 0.1) 50%,
        rgba(139, 115, 85, 0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--white-pure);
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    animation: progress-bar-stripes 2s linear infinite;
    font-weight: 500;
}

/* Progress Bar States - Subdued Colors */
.bad {
    background-color: #a52a2a;
}

.good {
    background-color: #cc7000;
}

.great {
    background-color: #388e3c;
}

/* === MAIN CONTENT AREA === */
.content-home {
    padding: 1.5rem;
    margin-bottom: 5rem;
    background: var(--primary-black);
    color: var(--white-soft);
    min-height: 100vh;
}

/* === RESPONSIVE CONTAINER === */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}

/* === RESPONSIVE AUTH BUTTONS === */
@media (max-width: 576px) {
    .auth-buttons-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .btn-auth {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .btn-auth {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* === ANIMATIONS === */
@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes button-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* === ACCESSIBILITY === */
*:focus {
    outline: 1px solid var(--gold-muted);
    outline-offset: 2px;
}

.btn-auth:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 3px;
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === SELECTION STYLING === */
::selection {
    background: var(--gold-subtle);
    color: var(--white-pure);
}

/* === PRINT STYLES === */
@media print {
    .nav-bottom,
    .btn-up {
        display: none !important;
    }
}