/* ==========================================================================
   RTP DARK THEME - AMANAHTOTO LIVE
   Crafted with ultra-premium styling, gold metallic accents & smooth UX
   ========================================================================== */

:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    
    --bg-color: #0d0f14;
    --text-first: #f4f6f9;
    --text-second: #161a23;
    
    --first-color: #850e08;
    --second-color: #440603;
    --third-color: #350300;
    --fourth-color: #9e0a03;
    --fifth-color: #c20a00;
    
    --gold-1: #ffd700;
    --gold-2: #ffa600;
    --gold-3: #ff8c00;
    
    --g1: #9e0a03;
    --g2: #440603;
    
    --card-bg: #151922;
    --card-border: #252c3d;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-first);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

/* === LOGO === */
.logo {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.logo img {
    width: 19rem;
    max-width: 85%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 15px rgba(255, 166, 0, 0.25));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

/* === SLIDER & RUNNING TEXT === */
.slider-wrapper {
    background: linear-gradient(180deg, #1c212d 0%, #12151d 100%);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--card-border);
    border-bottom: 2px solid var(--g1);
    overflow: hidden;
}

.running-text {
    background: linear-gradient(90deg, #b31217, #e52d27, #b31217);
    background-size: 200% auto;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.running-text marquee {
    font-weight: 700;
    vertical-align: middle;
}

.slider, .swiper {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.slider {
    padding: 0.6rem;
}

.slider-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    object-fit: cover;
}

/* === CTA BUTTONS (LOGIN / DAFTAR) === */
.btn-credit {
    background-image: linear-gradient(to right, #f1c13b 0%, #a75c00 25%, #fff669 50%, #ffc800 75%, #ffa500 100%);
    background-size: 200% auto;
    box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.6), 0 4px 12px rgba(0,0,0,0.35);
    padding: 0.8rem 1rem;
    color: #1a0800;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
}

.btn-credit:hover {
    background-position: right center;
    color: #000;
    box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.8), 0 6px 18px rgba(255,166,0,0.45);
    transform: translateY(-1px);
}

.btn-credit:active {
    transform: translateY(1px);
}

.row.g-0 .col:first-child .btn-credit {
    border-bottom-left-radius: 12px;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.row.g-0 .col:last-child .btn-credit {
    border-bottom-right-radius: 12px;
}

/* === PROVIDER ICONS BAR === */
.icon-prov {
    background: linear-gradient(180deg, #181d28 0%, #0f121a 100%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 10px 6px;
    margin: 12px 0 8px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    scrollbar-width: thin;
    scrollbar-color: #ff9800 transparent;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
}

.icon-prov::-webkit-scrollbar {
    height: 4px;
}

.icon-prov::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 4px;
}

.item-prov {
    padding: 0 3px;
    flex-shrink: 0;
}

.icon-card-bg {
    cursor: pointer;
    padding: 6px 8px !important;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    text-align: center;
    min-width: 68px;
}

.icon-card-bg:hover,
.item-prov.active .icon-card-bg {
    background: linear-gradient(135deg, rgba(229,45,39,0.2) 0%, rgba(255,166,0,0.15) 100%);
    border-color: #ff9800;
    box-shadow: 0 0 10px rgba(255,152,0,0.25);
    transform: translateY(-2px);
}

.icon-card-bg p {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 4px 0 0;
    letter-spacing: 0.3px;
}

.item-prov.active .icon-card-bg p {
    color: #ffd700;
}

.img-prov {
    display: block;
    margin: 0 auto;
    width: 50px;
    height: 38px;
    object-fit: contain;
    border-radius: 4px;
}

/* === MAIN BG THEME (RTP CONTAINER) === */
.bg-theme {
    background: linear-gradient(180deg, #161b26 0%, #0f1219 100%);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 6px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.bg-theme h6 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a0aec0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-game {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0 4px;
    text-shadow: 0 2px 10px rgba(255,215,0,0.2);
}

/* === RTP CARD ITEM === */
.rtp-card {
    background: linear-gradient(145deg, #1c2230 0%, #131722 100%);
    border: 1px solid #2a3346;
    padding: 8px;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    overflow: hidden;
}

.rtp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
    border-color: #ff9800;
}

.place-img-rtp {
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #0a0d13;
    aspect-ratio: 1 / 1;
}

.rtp-card-img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.rtp-card:hover .rtp-card-img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10;
    border: 1px solid #ffd700;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #ff9800 0%, #d84315 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,100,0,0.5);
    opacity: 0;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.rtp-card:hover .btn-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-play:hover {
    background: linear-gradient(180deg, #ffa726 0%, #f4511e 100%);
    box-shadow: 0 6px 20px rgba(255,152,0,0.7);
    color: #fff;
}

/* === POLA WRAPPER === */
.pola-wrapper {
    background: #0e1219;
    border: 1px solid #222938;
    padding: 8px 6px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    margin-top: 6px;
}

.pola-wrapper h4 {
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #f0f0f0;
}

.pola-wrapper h4 i {
    color: #ff9800;
}

.pola-wrapper hr {
    margin: 4px 0 6px;
    border-color: #222938;
    opacity: 0.6;
}

.pola-wrapper h5 {
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e0;
    margin: 6px 0 0;
    letter-spacing: 0.3px;
}

.pola-wrapper h5 i {
    color: #ff9800;
}

.table-pola {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.68rem;
    padding: 2px 1px;
    color: #e2e8f0;
    font-weight: 600;
}

.top-game, .hot-game {
    position: absolute;
    width: 2.8rem;
    height: 2.8rem;
    top: 4px;
    left: 4px;
    z-index: 5;
    pointer-events: none;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.hot-game {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ff1744'/%3E%3Cstop offset='100%25' stop-color='%23ff9100'/%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M24 2C24 2 28 8 26 14C29 11 31 6 31 6C31 6 38 15 34 26C38 23 39 19 39 19C43 27 39 37 32 42C21 49 8 39 11 26C12 21 15 17 18 14C17 19 20 22 20 22C20 22 21 14 24 2Z'/%3E%3C/svg%3E") no-repeat center/contain !important;
}

.top-game {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='gt' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ff9100'/%3E%3Cstop offset='100%25' stop-color='%23ffd700'/%3E%3C/defs%3E%3Cpolygon fill='url(%23gt)' points='24,4 30.2,16.5 44,18.5 34,28.2 36.4,42 24,35.5 11.6,42 14,28.2 4,18.5 17.8,16.5'/%3E%3C/svg%3E") no-repeat center/contain !important;
}

.icon-providers {
    position: absolute;
    width: 1.8rem;
    top: 4px;
    right: 4px;
    z-index: 5;
}

.icon-providers img {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* === PERCENTAGE BAR === */
.percent {
    height: 20px;
    margin-top: 8px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #10141d;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #2a3346;
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 11px;
    top: 1px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    font-variant-numeric: tabular-nums;
}

.percent-bar {
    background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: progress-bar-stripes 1.2s linear infinite;
    z-index: 10;
}

@keyframes progress-bar-stripes {
    0% { background-position-x: 1rem; }
    100% { background-position-x: 0; }
}

.good { background-color: #ff9800; }
.great { background-color: #00c853; }
.bad { background-color: #d50000; }

/* === CONTENT HOME / SEO FOOTER === */
.content-home {
    background: linear-gradient(180deg, #151922 0%, #10131b 100%);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
    color: #a0aec0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.content-home h1, .content-home h2, .content-home h3 {
    color: #ffd700;
    font-weight: 800;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-home h1 { font-size: 1.3rem; }
.content-home h2 { font-size: 1.1rem; }
.content-home p { margin-bottom: 0.8rem; }
.content-home strong { color: #ffffff; }

/* === BOTTOM NAVIGATION === */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1000;
    overflow: hidden;
    width: 100%;
    background: rgba(14, 18, 25, 0.96);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff9800;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.item-nav-bottom {
    flex: 1;
    background: transparent;
    color: #cbd5e0;
    font-weight: 700;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.5rem 0.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.item-nav-bottom:hover,
.item-nav-bottom:active {
    background: rgba(255,152,0,0.12);
    color: #ffd700;
}

.item-nav-bottom i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 2px;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 700;
}

/* === BACK TO TOP BUTTON === */
.btn-up {
    display: none;
    position: fixed;
    bottom: 4.8rem;
    right: 1.2rem;
    z-index: 999;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #ff9800, #e52d27);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,80,0,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-up:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255,152,0,0.7);
}

/* === MODAL STYLING === */
.modal-content {
    background: #161b26;
    border: 1px solid #2a3346;
    border-radius: 12px;
    color: #f4f6f9;
}

.modal-header {
    border-bottom: 1px solid #2a3346;
}

.modal-title.text-dark {
    color: #ffd700 !important;
}

.modal-body.text-dark {
    color: #cbd5e0 !important;
}

.btn-close {
    filter: invert(1);
}

/* === LOADER === */
.loader {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 152, 0, 0.15);
    border-top-color: #ff9800;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 15px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === THEME SWITCHER BUTTON === */
#btn-colorscheme {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a202c;
    border: 1px solid #2d3748;
    color: #ffd700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

#btn-colorscheme:hover {
    background: #2d3748;
    transform: rotate(20deg);
}

/* === REFRESH PAGE BOX === */
#refreshPage {
    background: #141822;
    border: 1px dashed #ff9800;
    border-radius: 8px;
    padding: 12px;
    max-width: 320px;
}

#refreshPage p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* === CONTAINER WIDTH (WIDE VIEW MATCHING REFERENCE) === */
.container, .container-lg, .container-md, .container-sm, .container-xl {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 750px; }
}
@media (min-width: 992px) {
    .container { max-width: 970px; }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}
