* {
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}

body {
	background: #0f0f0f;
	background-image: radial-gradient(ellipse at top, #1a1a1a 0%, #0a0a0a 100%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
}

h1 {
	text-align: center;
	color: #fff;
	font-weight: 700;
	font-size: 2rem;
	margin: 20px 0 10px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	letter-spacing: 1px;
}

a:hover {
	text-decoration: none;
}

.container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 10px;
}

.adv {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
}

img {
	vertical-align: middle;
	border-style: none;
}

.title {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

.title-text {
	color: #ffd700;
	font-size: 1.4rem !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.slot {
	display: block;
}

.slot .slot-sidebar {
	padding-right: 0;
	padding-left: 0;
	margin-top: -5px;
	background-color: transparent;
	float: none !important;
	width: 100% !important;
	flex: none !important;
	max-width: 100% !important;
}

.btn-provider:hover {
	background-color: #644C1C;
	transform: translateY(-2px);
	transition: all 0.2s ease;
}

.slot-sidebar-nav {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: nowrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
	gap: 4px;
}

.slot-sidebar-nav > li {
	border-bottom: 1px solid #0092b1;
	width: 100%;
	position: relative;
	display: block;
	border-bottom: none;
	padding: 6px;
	background: linear-gradient(to bottom, #2a2a2a 0%, #5a5a5a 46%, #2a2a2a 100%);
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.25s ease;
}

.slot-sidebar-nav > li:hover {
	background: linear-gradient(to bottom, #3a3a3a 0%, #7a7a7a 46%, #3a3a3a 100%);
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.slot-sidebar-nav > li > a {
	color: #fff;
	font-size: 13px;
	padding: 8px 10px;
	display: block;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	transition: all 0.2s ease;
}

.btn-provider {
	text-align: center;
	display: block;
}

.enter {
	display: none;
}

.btn-provider span {
	position: unset;
}

.btn-provider p.long {
	margin-top: 5px;
	margin-bottom: 0;
	font-size: 11px;
	font-weight: 500;
}

.active {
	background-color: #0092b1;
}

.slot .content {
	float: right;
	width: 100%;
	padding: 0;
	flex: 0 0 100%;
	max-width: 100%;
	margin-top: 15px;
}

.wrapper {
	width: 100%;
	padding: 0;
	white-space: normal;
	overflow: hidden;
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

/* ==================== CARD GAME (NEW LOOK) ==================== */
.card {
	float: none;
	width: 100%;
	background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
	border: 1px solid rgba(255, 215, 0, 0.15);
	text-align: center;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
	transition: all 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25), 0 0 0 1px rgba(255, 215, 0, 0.4) inset;
}

.card-content {
	margin: 0;
	color: #fff;
	font-size: 12px;
	border: none;
	overflow: hidden;
	position: relative;
	border-radius: 12px;
}

/* IMAGE — fix aspect ratio so portrait (165x220) doesn't get squashed */
.img-zoom-wrap {
	position: relative;
	width: 100%;
	padding-top: 133.33%; /* 165:220 ratio = 4:3 inverse, portrait */
	overflow: hidden;
	background: #000;
}

.img-zoom {
	transition: all 0.45s ease-in-out;
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Fallback for current HTML (no wrap div) */
.card-content > .img-zoom {
	position: relative;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 165 / 220;
	object-fit: cover;
}

/* ==================== PROGRESS BAR PERCENT ==================== */
.percent {
	height: 28px;
	display: flex;
	overflow: hidden;
	line-height: 0;
	font-size: 0.75rem;
	background-color: #1a1a1a;
	position: relative;
	z-index: 1;
}

.percent p {
	z-index: 15;
	position: absolute;
	text-align: center;
	width: 100%;
	font-size: 14px;
	font-weight: 700;
	transform: translateY(14px);
	color: #000;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
	letter-spacing: 0.5px;
}

.percent-bar {
	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;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-pack: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	transition: width 0.6s ease;
	-webkit-animation: progress-bar-stripes 1s linear infinite;
	animation: progress-bar-stripes 1s linear infinite;
	z-index: 10;
}

@-webkit-keyframes progress-bar-stripes {
	0%   { background-position: 1rem 0; }
	100% { background-position: 0 0; }
}
@keyframes progress-bar-stripes {
	0%   { background-position: 1rem 0; }
	100% { background-position: 0 0; }
}

.yellow {
	background-color: #ffc107;
}
.green {
	background-color: #28a745;
}
.red, .black {
	background-color: #dc3545;
}

/* ==================== HOVER BUTTON (MAIN SEKARANG) ==================== */
.hover-btn {
	position: absolute;
	opacity: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(20, 20, 20, 0.85));
	backdrop-filter: blur(3px);
	transition: all 0.35s ease-in-out;
	z-index: 10;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.play-btn {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: white;
	text-align: center;
	width: 80%;
	padding: 10px 12px;
	background: linear-gradient(135deg, #15b586, #0e8a64);
	border-radius: 6px;
	box-shadow: 0 4px 15px rgba(21, 181, 134, 0.4);
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.2s ease;
	margin: 0;
}

.play-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(21, 181, 134, 0.6);
}

.hover-btn:hover {
	opacity: 1;
}

.hover-btn:hover ~ .img-zoom {
	transform: scale(1.15);
}

/* ==================== NEXT BUTTON (mobile) ==================== */
.next-btn {
	display: none;
	width: 30%;
}

.mySlides {
	display: none;
}

.next-btn {
	background-color: #292a2b;
	border: none;
	color: #fff;
}

/* ==================== JAM GACOR ==================== */
.jamgacor {
	background-image: linear-gradient(#00ec00, #00b40e);
	font-family: 'Poppins', sans-serif !important;
	padding: 6px 4px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border: 0.1px solid rgba(0, 0, 0, 0.3);
	border-top: none;
}

.jamgacor h5 {
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0;
	color: #000;
	letter-spacing: 0.5px;
}

.jamgacor .jamgacorRange {
	font-size: 0.95rem !important;
	margin-top: 2px;
	font-weight: 800;
}

.progress {
	height: fit-content;
}

.pola {
	background-image: linear-gradient(#003dfd, #0177cc);
	font-family: 'Poppins', sans-serif !important;
	padding: 6px 4px;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	border: 0.1px solid rgba(0, 0, 0, 0.3);
	border-top: none;
}

.pola h5 {
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 3px;
	letter-spacing: 0.5px;
}

.pola p {
	margin: 1px 0;
	font-size: 0.78rem;
	color: #fff;
	font-weight: 500;
	line-height: 1.3;
}

.jam {
	margin-bottom: 0;
	padding: 0;
	color: #000;
	font-weight: bold;
}

.jam h5 {
	font-size: 0.85rem;
	font-weight: bold;
}

.jamBg {
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%, transparent);
	transition: width 0.6s ease;
	-webkit-animation: progress-bar-stripes 1s linear infinite;
	animation: progress-bar-stripes 1s linear infinite;
	background-size: 1rem 1rem;
}

/* ==================== LINK CONTAINER (LOGIN/DAFTAR) ==================== */
.link-container {
	display: flex;
	justify-content: center;
	padding: 0;
	width: 100%;
	gap: 8px;
	max-width: 600px;
	margin: 0 auto 15px;
}

.link-container a {
	flex: 1;
	text-align: center;
	padding: 14px 20px;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 8px;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.link-container a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.register-button {
	background-image: linear-gradient(135deg, #cb0000, #680202);
	background-color: initial;
}

.login-button {
	background-image: linear-gradient(135deg, #074766, #000c99);
	background-color: initial;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 576px) {
	.container { max-width: 540px; }
}
@media (min-width: 768px) {
	.container { max-width: 720px; }
}
@media (min-width: 992px) {
	.container { max-width: 960px; }
}
@media (min-width: 1200px) {
	.container { max-width: 1200px; }
	.wrapper { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 992px) {
	/* Sidebar provider: gabungkan semua group jadi 1 grid 4 kolom */
	.slot {
		display: block;
	}
	.slot-sidebar {
		float: none !important;
		width: 100% !important;
		flex: none !important;
		max-width: 100% !important;
		padding-right: 0 !important;
		display: contents; /* keluarkan dari box parent, supaya semua li jadi sibling di grid */
	}
	.slot > .slot-sidebar {
		display: contents;
	}
	/* Bungkus sidebar dengan grid layout: 4 kolom × auto rows */
	.slot {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 6px;
		padding: 0 4px;
	}
	.slot-sidebar-nav {
		display: contents !important;
		flex-wrap: unset !important;
		overflow-x: unset !important;
	}
	.slot-sidebar-nav > li {
		width: 100% !important;
		border: 1px solid rgba(255, 215, 0, 0.15);
		border-radius: 8px;
		padding: 4px;
		min-height: 70px;
	}
	.slot-sidebar-nav > li > a {
		height: 100%;
		padding: 5px 4px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.btn-provider img {
		height: 35px !important;
		max-width: 80%;
		object-fit: contain;
	}
	.btn-provider p.long {
		font-size: 10px;
		margin: 4px 0 0;
		line-height: 1.1;
		color: #fff;
		font-weight: 500;
		text-align: center;
	}
	.content {
		float: none !important;
		width: 100% !important;
		flex: none !important;
		max-width: 100% !important;
	}
	.wrapper { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.hover-btn:hover { opacity: 0; }
	.hover-btn:hover ~ .img-zoom { transform: scale(1); }
	body { background: #0a0a0a; }
	.enter { display: block; }
	.btn-provider i { margin: 0; }
	.next-btn { display: block; }
	.res-bar { display: none; }
	.jamgacor > h5 { font-size: 0.75rem; }
	.jamgacor .jamgacorRange { font-size: 0.85rem !important; }
	.pola > p { font-size: 0.7rem; }
	h1 { font-size: 1.4rem; }
	.title-text { font-size: 1rem !important; }
}

@media (max-width: 576px) {
	/* Di phone kecil, 2 baris dari atas: 4 col × 2 rows */
	.slot {
		grid-template-columns: repeat(4, 1fr);
		gap: 5px;
		padding: 0 4px;
	}
	.slot-sidebar-nav > li {
		min-height: 65px;
		padding: 3px;
	}
	.btn-provider img {
		height: 28px !important;
	}
	.btn-provider p.long {
		font-size: 9px;
	}
	.wrapper { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.pola > p { font-size: 0.7rem !important; }
	.jamgacor h5 { font-size: 0.7rem; }
	.jamgacor .jamgacorRange { font-size: 0.8rem !important; }
	.play-btn { font-size: 12px; padding: 8px 6px; }
}

/* ==================== TABS (provider sidebar) ==================== */
.tabs {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.tab {
	cursor: pointer;
	display: inline-block;
	margin: 0 5px 10px;
	padding: 10px;
	border-radius: 5px;
	background-color: transparent;
	border: none;
}

.tab:focus {
	border: none;
}

.img-icon-game {
	width: 50px;
	height: 50px;
	margin-left: 20px;
	margin-right: 20px;
}

@media (max-width: 1024px) {
	.tabs { justify-content: flex-start; }
	.tab { width: calc(100% / 5); margin: 0 0 10px; padding: 5px; }
	.img-icon-game { width: 40px; height: 40px; }
}

.tab.active { background-color: #1B1B1B; }

.tab-content {
	flex-direction: row;
	flex-wrap: wrap;
	display: flex;
}

.tab-content h3 {
	margin-top: 0;
	width: 100%;
	font-size: 1.1rem;
	font-weight: 700;
}