:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* Warna dasar */
    --bg-color: #1c1c1e;      /* dark grey elegan */
    --bg-color2: #121212;     /* lebih gelap, buat depth */
    --text-first: #f5f5f5;    /* putih lembut */
    --text-second: #cccccc;   /* abu muda */

    /* Aksen */
    --first-color: #f5e342;   /* emas */
    --br1: #e0bf2f;

    /* Card & Button */
    --aay-card: #1f1f1f;
    --red-calm: #977414;     
    --rtb: #292929;
    --but1: #2c2c2c;
    --but2: #bbaa12;
    --bb1: #2c2c2c;
    --bb2: #444444;
    --cc1: #202020;
    --cc2: #2a2a2a;
    --btb1: #2c2c2c;
    --btb2: #3d3d3d;
    --bt: #f5e342;

    /* Text contrast */
    --white-text: #ffffff;
    --black-text: #000000;
}


body {
    background: #0c0c0c;
    color: var(--text-first);
}

.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
}

.rtp-card {
    background: linear-gradient(0deg, var(--cc1) 0%, var(--cc2) 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}

.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 5px;
    box-shadow: 1px 0px 4px 2px #131313 inset;
}

.place-img-rtp:hover {
    cursor: pointer;
}

.btn-play {
    position: absolute;
    top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 5px;
    padding: 0.3rem;
    width: 12rem;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: capitalize;
    max-width: 70%;
    border: 2px solid var(--first-color);
    background: linear-gradient(0deg, var(--but1) 0%, var(--but2) 100%);
    color: var(--text-first);
}

.btn-play:hover {
    background: linear-gradient(0deg, var(--but2) 0%, var(--but1) 100%);
}

.pola-wrapper {
    background: var(--aay-card);
    padding: 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 5px;
    position: relative;
}

.pola-wrapper h4 {
    font-size: 0.9rem;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--first-color);
}

.jam-wrapper {
    background: #131313;
    border-radius: 50%;
    padding: 0.6rem;
}

.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
}

.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 10;
    height: 2.9rem;
    left: 0.4rem;
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
}

.icon-providers img {
    width: 1.7rem;
}

.slider, .swiper {
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.slider-wrapper {
    background: linear-gradient(0deg, var(--bg-color2) 0%, var(--bg-color) 100%);
    height: 100%;
    border-bottom: 1px dashed var(--first-color);
}

.running-text {
    background: var(--red-calm);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--white-text);
}

.provider-swiper {
    padding: 1rem 0;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-prov {
    text-align: center;
    padding: 0.3rem;
    width: 100%;
}

.icon-card-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 15px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: #2c2c2c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-decoration: none;
}

.icon-card-bg:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.img-prov {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
    margin-bottom: 0.5rem;
}

.icon-card-bg p {
    font-size: 0.8rem;
    font-weight: 500;
    color: #f0f0f0;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

/* Modern, simetris arrows */
.swiper-button-lanjut,
.swiper-button-sblm {
    position: absolute;   /* ✅ wajib absolute supaya nempel di kiri & kanan */
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect */
.swiper-button-lanjut:hover,
.swiper-button-sblm:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

/* Custom SVG icons */
.swiper-button-lanjut svg,
.swiper-button-sblm svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: #fff;
}

/* Positioning */
.swiper-button-lanjut { right: 0.1rem; }   /* tombol kanan */
.swiper-button-sblm { left: 0.1rem; }     /* tombol kiri */

/* Mobile adjustments */
@media(max-width: 768px) {
    .swiper-button-lanjut,
    .swiper-button-sblm {
        width: 2.2rem;
        height: 2.2rem;
    }
    .swiper-button-lanjut svg,
    .swiper-button-sblm svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Pagination bullets */
.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    opacity: 1;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/* Pagination Container */
.pagination {
    display: inline-flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

/* Individual Page Links */
.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: block;
    min-width: 2.5rem;
    padding: 0.5rem 0.8rem;
    text-align: center;
    color: var(--red-calm); /* gold text */
    background: #1a1a1a; /* dark bg */
    border: 1px solid var(--red-calm);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover effect */
.pagination li a:hover {
    background: var(--red-calm);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(245, 215, 125, 0.4);
    transform: translateY(-2px);
}

/* Active page */
.pagination li.active span {
    background: var(--red-calm);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(245, 215, 125, 0.5);
}

/* Disabled links */
.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive: mobile */
@media (max-width: 576px) {
    .pagination li a,
    .pagination li span {
        min-width: 2rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Button Credit / utama (bisa untuk <a> atau <button>) */
.btn-credit {
    display: inline-block;            /* pastikan <a> tampil seperti button */
    text-decoration: none;            /* hilangkan garis bawah */
    background: linear-gradient(145deg, var(--but1) 0%, var(--but2) 100%);
    padding: 0.9rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid var(--red-calm);
    border-radius: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;               /* untuk <a> */
}

/* Hover elegan */
.btn-credit:hover {
    background: linear-gradient(145deg, var(--but2) 0%, var(--but1) 100%);
    color: #fff;
    border-color: #ffdf8a;
    box-shadow: 0 6px 18px rgba(245, 215, 125, 0.4), inset 0 2px 6px rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Klik efek */
.btn-credit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(245, 215, 125, 0.25) inset;
}

/* Opsional: untuk teks di dalam <a> tetap cerah jika modal bg dark */
.btn-credit i {
    margin-right: 6px;
    vertical-align: middle;
}

/* Card Utama */
.card-theme {
    background: linear-gradient(135deg, var(--aay-card) 0%, var(--cc2) 100%);
    border: 2px solid var(--red-calm);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Card */
.card-theme:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--bt);
}

.item-nav-bottom {
    background: linear-gradient(0deg, var(--btb1) 0%, var(--btb2) 100%);
    color: var(--white-text);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
}

.item-nav-bottom:hover {
    background: linear-gradient(0deg, var(--btb1) 0%, var(--btb2) 100%);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.btn-up {
  display: none;
  position: fixed;
  bottom: 3.8rem;
  right: 0;
  z-index: 99;
  font-size: 0.9rem;
}


.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: var(--text-first);
    color: var(--text-second);
}

/* Container */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}

.nama-game {
    font-size: clamp(13px, 2vw, 13px); /* responsive font size */
    line-height: 1.2;
    word-wrap: break-word; /* pecah kata panjang */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* maksimal 2 baris */
    -webkit-box-orient: vertical;
}

form.d-flex input.form-control {
    border-radius: 25px;
    padding: 10px 15px;
}
form.d-flex button {
    border-radius: 25px;
    padding: 10px 20px;
}
#searchGame {
    border-radius: 5px;
    padding: 12px 20px;
    background-color: #1a1a1a;
    color: white!important;
    border: 2px solid #a59b09; /* contoh warna merah elegan */
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
    transition: all 0.3s ease;
}

#searchGame:focus {
    border-color: gold;
    color: white!important;
    box-shadow: 0 0 8px rgba(255,215,0,0.6);
}

.col-lg-4 {
    position: relative;
}

    .text-gold { color: gold; }
    .border-gold { border: 1px solid gold; }
    .rtp-card { background: linear-gradient(135deg,#111,#1a1a1a); border-radius: 15px; padding: 10px; }

.percent {
    height: 19px;
    display: flex;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 3px;
    position: relative;
    width: 100%;
}

.percent p.percent-label {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Bar */
.percent-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.6s ease-in-out, background-color 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Warna bar berdasarkan persen */

/* Warna teks */
.percent-label.bad { color: #dddddd; }
.percent-label.good { color: #252525; }
.percent-label.great { color: #252525; }

  .card-red {
    background: #b1a726!important;
  }

  .modal-content.bg-dark {
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
}

.modal-body a.btn-dark {
    color: inherit !important;
}

a {
    text-decoration: none;
}

		/*---------------------------*/	 
		
		.glow span {
            -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;
			-webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;
			box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;
			
            -webkit-animation: animate-glow 1s ease-out infinite;
            -moz-animation: animate-glow 1s ease-out infinite; 			
		}

		@-webkit-keyframes animate-glow {
		 0% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;} 
		 50% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .3) inset, 0 -5px 5px rgba(255, 255, 255, .3) inset;} 
		 100% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
		 }

		@-moz-keyframes animate-glow {
		 0% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;} 
		 50% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .3) inset, 0 -5px 5px rgba(255, 255, 255, .3) inset;} 
		 100% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
		 }
