/* ==========================================================================
   Global
   ========================================================================== */

*:not(.fa):not(.fas):not(.far):not(.fab):not([class*='fa-']) {
	font-family: 'Rubik', sans-serif !important;
}

.content-wrap {
	background-color: #232626;
	min-height: auto;
}

/* ==========================================================================
   LOGIN CARD — .tw-login-card (BEM)
   ========================================================================== */

.tw-login-card {
	background: #323738;
	border-radius: 12px;
	padding: 2rem 2rem;
}

.tw-login-card__tabs {
	display: flex;
	background: #4f4f4f;
	border-radius: 50px;
	overflow: hidden;
}

.tw-login-card__tab {
	flex: 1;
	display: block;
	padding: 12px 10px;
	text-align: center;
	color: #e0e0e0;
	text-decoration: none;
	background: transparent;
	border: none;
	border-radius: 0;
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 1.05rem;
}

.tw-login-card__tab:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.tw-login-card__tab--active,
.tw-login-card__tab--active:hover {
	background: #FEE14B;
	color: #000 !important;
	border-color: transparent;
	font-weight: 700;
	pointer-events: none;
}

.tw-bank-btn {
	background: transparent;
	color: #ccc;
	border: 1px solid #555;
	border-radius: 4px;
	padding: 8px 16px;
	margin: 5px;
	transition: all 0.3s ease;
}

.tw-bank-btn:hover {
	background: rgba(212, 175, 55, 0.1);
	color: #FEE14B;
	border-color: #FEE14B;
}

.tw-bank-btn--active {
	background: linear-gradient(180deg, #FEE14B 0%, #D4AF37 100%);
	color: #000 !important;
	border-color: #D4AF37;
	font-weight: 600;
}

.tw-bank-icon-btn {}

.tw-quick-amount-btn {
	flex: 1;
	background: #1B1B1B;
	color: #FEE14B;
	border: 1px solid #FEE14B;
	border-radius: 6px;
	padding: 8px 0;
	margin-right: 8px;
	font-weight: 700;
	transition: all 0.2s;
}

.tw-quick-amount-btn:last-child {
	margin-right: 0;
}

.tw-quick-amount-btn.active,
.tw-quick-amount-btn:hover {
	background: #FEE14B;
	color: #000;
}

.tw-login-card__title {
	color: #fff;
	font-weight: 700;
	font-size: 1.35rem;
	text-align: center;
	margin-bottom: 1.8rem;
}

.tw-login-card__deposit-title {
	color: #fff;
	font-weight: 700;
	font-size: 30px;
	text-align: center;
	margin-bottom: 1.8rem;
}

.tw-login-card__field {
	margin-bottom: 1rem;
}

.tw-login-card__label {
	display: block;
	color: #ccc;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tw-login-card__input {
	width: 100%;
	padding: 0.65rem 0.9rem;
	background: #fff;
	border: 1px solid #555;
	border-radius: 6px;
	color: #222;
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.2s;
}

.tw-login-card__input:focus {
	border-color: #FEE14B;
}

.tw-login-card__input::placeholder {
	color: #999;
}

/* Password eye toggle wrapper */
.tw-login-card__input-wrap {
	position: relative;
}

.tw-login-card__input-wrap .tw-login-card__input {
	padding-right: 2.8rem;
}

.tw-login-card__eye {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	cursor: pointer;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.tw-login-card__eye:hover {
	color: #FEE14B;
}

/* Forget password link */
.tw-login-card__forgot {
	color: #FEE14B;
	font-size: 0.78rem;
	text-decoration: none;
	transition: color 0.2s;
}

.tw-login-card__forgot:hover {
	color: #fff;
}

/* Submit button */
.tw-login-card__btn {
	display: block;
	width: 100%;
	padding: 0.7rem;
	margin-top: 0.5rem;
	border: none;
	border-radius: 6px;
	background: linear-gradient(180deg, #DBC06E 0%, #FEE14B 100%);
	color: #1a1a1a;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.2s;
}

.tw-login-card__btn:hover {
	filter: brightness(1.08);
}

/* Register prompt */
.tw-login-card__register {
	text-align: center;
	color: #999;
	font-size: 0.82rem;
	margin-top: 1rem;
	margin-bottom: 0;
}

.tw-login-card__register a {
	color: #FEE14B;
	text-decoration: none;
	font-weight: 600;
}

.tw-login-card__register a:hover {
	color: #fff;
}

/* T&C disclaimer */
.tw-login-card__disclaimer {
	text-align: center;
	color: #888;
	font-size: 0.75rem;
	margin-top: 1rem;
	margin-bottom: 0;
	line-height: 1.5;
}

.tw-login-card__disclaimer-link {
	color: #FEE14B;
	text-decoration: none;
}

/* Date input on dark bg */
.tw-login-card__input[type="date"] {
	color-scheme: light;
}

/* Select styling */
select.tw-login-card__input {
	cursor: pointer;
	appearance: auto;
}

/* ==========================================================================
   MEMBER PROFILE STYLES
   ========================================================================== */

/* Sidebar */
.tw-sidebar {
	background: #323738;
	border-radius: 12px;
	padding: 1rem;
}

.tw-sidebar__item {
	display: block;
	padding: 12px 15px;
	color: #ccc;
	text-decoration: none;
	border-radius: 6px;
	margin-bottom: 5px;
	transition: all 0.3s ease;
	font-weight: 500;
	border-left: 4px solid transparent;
}

.tw-sidebar__item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.tw-sidebar__item--active {
	background: rgba(254, 225, 75, 0.1);
	color: #FEE14B !important;
	border-left-color: #FEE14B;
	font-weight: 700;
	pointer-events: none;
}

/* Game Credentials Card */
.tw-game-card {
	background: #2b2b2b;
	border: 1px solid #4b4b4b;
	border-radius: 8px;
	padding: 1.5rem;
	height: 100%;
	transition: transform 0.2s, box-shadow 0.2s;
}

.tw-game-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	border-color: #FEE14B;
}

.tw-game-card__title {
	color: #FEE14B;
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #444;
	padding-bottom: 0.5rem;
}

.tw-game-card__detail {
	color: #ccc;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
}

.tw-game-card__detail span {
	color: #fff;
	font-weight: 600;
	margin-left: 0.5rem;
	letter-spacing: 0.5px;
}

.tw-game-card__detail i {
	color: #888;
	margin-left: auto;
	cursor: pointer;
	transition: color 0.2s;
}

.tw-game-card__detail i:hover {
	color: #FEE14B;
}

/* Dark DataTables override */
.tw-table {
	width: 100% !important;
	background: #323738;
	color: #ccc;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #4b4b4b;
	border-radius: 8px;
	overflow: hidden;
}

.tw-table th {
	background: #222;
	color: #FEE14B;
	font-weight: 700;
	padding: 12px 15px;
	border-bottom: 1px solid #4b4b4b;
}

.tw-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #444;
	vertical-align: middle;
}

.tw-table tbody tr:last-child td {
	border-bottom: none;
}

.tw-table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.02);
}

.tw-table tbody tr:hover {
	background-color: rgba(254, 225, 75, 0.05);
}

/* Custom DataTable Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
	color: #ccc !important;
	border: 1px solid #555 !important;
	background: #2b2b2b !important;
	border-radius: 4px;
	margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	color: #000 !important;
	border: 1px solid #FEE14B !important;
	background: #FEE14B !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	color: #aaa !important;
	margin-bottom: 10px;
}

/* ==========================================================================
   HEADER — .tw-header (BEM)
   Dark/gold casino-style header for desktop + mobile
   ========================================================================== */

.tw-header {
	background-color: #1a1a1a;
	width: 100%;
	height: 80px;
	padding: 0;
	border-bottom: 1px solid #2a2a2a;
	display: flex;
	align-items: center;
}

/* ---------- Logo ---------- */
.tw-header__logo img {
	max-height: 60px;
	width: auto;
}

/* ---------- Nav Links (Desktop) ---------- */
.tw-header__nav {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}

.tw-header__nav-link {
	color: #ccc;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	white-space: nowrap;
	transition: color 0.2s;
}

.tw-header__nav-link:hover,
.tw-header__nav-link--active {
	color: #f5c518;
}

/* ---------- Sub-menu (Desktop) ---------- */
.tw-header__nav-item {
	position: relative;
}

.tw-header__sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #222;
	border: 1px solid #333;
	border-radius: 4px;
	min-width: 180px;
	padding: 0.5rem 0;
	z-index: 1050;
	list-style: none;
	margin: 0;
}

.tw-header__nav-item:hover>.tw-header__sub-menu {
	display: block;
}

.tw-header__sub-menu a {
	display: block;
	padding: 0.4rem 1rem;
	color: #ccc;
	font-size: 0.82rem;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.tw-header__sub-menu a:hover {
	background: #333;
	color: #f5c518;
}

/* ---------- Auth Buttons ---------- */
.tw-header__btn--login {
	display: inline-block;
	padding: 0.35rem 1.4rem;
	border: 2px solid #FEE14B;
	border-radius: 4px;
	background: linear-gradient(180deg, #444444 0%, #121212 100%);
	color: #FEE14B;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.tw-header__btn--login:hover {
	background: #FEE14B;
	color: #1a1a1a;
}

.tw-header__btn--register {
	display: inline-block;
	padding: 0.35rem 1.4rem;
	border: 2px solid #f5c518;
	border-radius: 4px;
	background: linear-gradient(180deg, #DBC06E 0%, #FEE14B 100%);
	color: #1a1a1a;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.2s;
	white-space: nowrap;
}

.tw-header__btn--register:hover {
	filter: brightness(1.1);
	color: #1a1a1a;
}

/* Logged-in state buttons */
.tw-header__btn--deposit {
	display: inline-block;
	padding: 0.35rem 1.4rem;
	border: 2px solid #FEE14B;
	border-radius: 4px;
	background: linear-gradient(180deg, #444444 0%, #121212 100%);
	color: #FEE14B;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.2s;
	white-space: nowrap;
}

.tw-header__btn--deposit:hover {
	filter: brightness(1.1);
	color: #fff;
}

.tw-header__btn--logout {
	display: inline-block;
	padding: 0.35rem 1.4rem;
	border: 2px solid #666;
	border-radius: 4px;
	background: transparent;
	color: #ccc;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.tw-header__btn--logout:hover {
	background: #666;
	color: #fff;
}

/* ---------- Flag / Language Dropdown ---------- */
.tw-header__flag-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.tw-header__flag-img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #444;
}

.tw-header__flag-btn .tw-header__chevron {
	color: #888;
	font-size: 0.65rem;
}

.tw-header__lang-menu {
	background: #222;
	border: 1px solid #333;
	min-width: 140px;
}

.tw-header__lang-menu .dropdown-item {
	color: #ccc;
	font-size: 0.82rem;
	padding: 0.4rem 0.8rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tw-header__lang-menu .dropdown-item:hover {
	background: #333;
	color: #f5c518;
}

.tw-header__lang-menu .dropdown-item img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.game-nav-title {
	font-size: 40px;
	font-weight: 700;
	text-transform: uppercase;
	background: linear-gradient(180deg, #FEE14B 0%, #FED24B 35%, #FFFFFF 50%, #FED24B 65%, #FEE14B 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
	display: inline-block;
}

.home-page-step-title {
	font-size: 40px;
	font-weight: 700;
	text-transform: uppercase;
	background: linear-gradient(180deg, #FEE14B 0%, #FED24B 35%, #FFFFFF 50%, #FED24B 65%, #FEE14B 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
	display: inline-block;
}

.ranking-title {
	font-size: 40px;
	font-weight: 700;
	text-transform: uppercase;
	background: linear-gradient(180deg, #FEE14B 0%, #FED24B 35%, #FFFFFF 50%, #FED24B 65%, #FEE14B 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
	display: inline-block;
}

.live-transaction-tabs {
	gap: 0;
	border-bottom: 1px solid #FEE14B;
}

.live-tab {
	padding: 10px 28px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	color: #aaa;
	background: transparent;
	border: none;
	transition: all 0.2s;
	user-select: none;
}

.live-tab.active {
	color: #000;
	background: #FEE14B;
	border-radius: 4px 4px 0 0;
}

.live-tab:not(.active):hover {
	color: #fff;
}

/* LIVE badge — sits at the top-right corner of the live transaction table.
   The wrapper is the positioning context; the panel itself scrolls on mobile
   so the badge can't live inside it. */
.lt-table-wrap {
	position: relative;
}

.lt-live-badge {
	position: absolute;
	top: -34px;
	right: 0;
	height: 30px;
	width: auto;
	z-index: 3;
}

@media (max-width: 767.98px) {
	.lt-live-badge {
		top: -26px;
		height: 22px;
	}
}

/* Override custom.css red theme */
.home-page-main .home-ranking-table {
	border-collapse: collapse !important;
	border-spacing: 0 !important;
}

.home-page-main .home-ranking-table> :not(caption)>*>* {
	background-color: transparent !important;
	color: #ccc !important;
}

.home-page-main .home-ranking-table thead tr {
	background: #FEE14B !important;
	border-radius: 0 !important;
}

.home-page-main .home-ranking-table thead th {
	background: #FEE14B !important;
	color: #000 !important;
	border: none !important;
	padding: 10px 16px;
	font-size: 0.85rem;
	font-weight: 700;
}

.home-page-main .home-ranking-table tbody tr {
	background-color: transparent !important;
	color: #ccc !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page-main .home-ranking-table tbody tr:nth-child(even) {
	background-color: #323738 !important;
	color: #ccc !important;
}

.home-page-main .home-ranking-table tbody td {
	color: #ccc !important;
	padding: 10px 16px;
	font-size: 0.85rem;
	border: none !important;
	font-weight: 400;
}

/* Row refresh animation: outgoing values drift up and fade, incoming values
   rise into place, staggered per row via an inline animation-delay. */
@keyframes live-txn-out {
	0% {
		opacity: 1;
		transform: translateY(0);
	}

	100% {
		opacity: 0;
		transform: translateY(-1rem);
	}
}

@keyframes live-txn-in {
	0% {
		opacity: 0;
		transform: translateY(1rem);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.live-txn-val {
	display: inline-block;
	animation: live-txn-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.live-txn-val.is-out {
	animation: live-txn-out 0.3s ease-in both;
}

/* Divider between the TOP UP and WITHDRAW halves. The header cell sits on the
   gold background so it needs a dark rule; the body cells sit on the dark rows
   so they need a light one. Both land on the same column boundary because the
   TOP UP header spans the first two columns. */
.home-page-main .home-ranking-table thead th:last-child {
	border-left: 2px solid rgba(0, 0, 0, 0.25) !important;
}

.home-page-main .home-ranking-table tbody td:nth-child(3) {
	border-left: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.home-page-main .home-ranking-table tr td:first-child,
.home-page-main .home-ranking-table tr th:first-child {
	border-radius: 0 !important;
}

.home-page-main .home-ranking-table tr td:last-child,
.home-page-main .home-ranking-table tr th:last-child {
	border-radius: 0 !important;
}

/* Mobile Responsive Live Transaction Table */
@media (max-width: 767.98px) {
	.lt-content-panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin: 0 -15px;
		/* Extend to screen edges if in a container */
		padding: 0 15px;
	}

	.home-page-main .home-ranking-table {
		width: 100% !important;
		/* Equal-width columns so the 5 columns can't size to their content and
		   push the table past the viewport. */
		table-layout: fixed;
	}

	.home-page-main .home-ranking-table thead th,
	.home-page-main .home-ranking-table tbody td {
		padding: 0.5rem 0.25rem;
		letter-spacing: 0;
	}

	.home-page-main .home-ranking-table thead th {
		font-size: 0.625rem;
	}

	/* Body values (masked accounts, MYR amounts, provider) run ~12 chars; a
	   smaller font + nowrap keeps each on one line in the narrow fixed columns
	   so amounts like "MYR 5,422.00" don't wrap mid-row. */
	.home-page-main .home-ranking-table tbody td {
		font-size: 0.5625rem;
		white-space: nowrap;
	}
}

/* ==========================================================================
   home gameswiper
   ========================================================================== */

.gameSwiper {
	overflow: hidden;
	visibility: hidden;
	padding: 20px 5px 40px 5px;
	/* 上下留出空间防止放大和阴影被裁剪 */
	margin: -20px -5px -40px -5px;
	/* 抵消 padding 带来的布局偏移 */
}

.gameSwiper.swiper-initialized {
	visibility: visible;
}

.kiosk-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.overlay-container {
	cursor: pointer;
	position: relative;
	background-position: center;
	background-size: 100% 100%;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	opacity: 1;
	transition: 0.5s ease;
}

.overlay-container:hover .overlay {
	opacity: 0;
}

.swiper-slide {
	overflow: visible !important;
	/* 允许内部卡片超出边界 */
}

.kiosk-card {
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.kiosk-card:hover {
	transform: translateY(-10px) scale(1.05);
	/* 向上漂浮并放大 */
	z-index: 99;
	/* 确保在最上层 */
	box-shadow: 0 10px 20px rgba(254, 225, 75, 0.3);
	/* 增加金色发光阴影 */
}

/* ---------- Games Provider Footer ---------- */
.home-footer {
	background: #323738 !important;
	padding: 0 !important;
	padding-bottom: 0 !important;
}

.games-provider-bar {
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.gp-label {
	background: #FEE14B;
	color: #000;
	font-weight: 800;
	font-size: 1.1rem;
	padding: 0.5rem 5rem 0.5rem 12rem;
	display: flex;
	align-items: center;
	white-space: nowrap;
	clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
	flex-shrink: 0;
	line-height: 1.2;
}

.gp-track-wrapper {
	height: 5rem;
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.gp-track {
	display: flex;
	align-items: center;
	animation: gp-scroll 40s linear infinite;
	width: max-content;
}

.gp-slide {
	flex-shrink: 0;
	padding-right: 40px;
}

.gp-slide img {
	height: 60px;
	width: auto;
	object-fit: contain;
	filter: brightness(0.9);
	transition: filter 0.2s;
}

.gp-slide img:hover {
	filter: brightness(1.2);
}

@keyframes gp-scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* ==========================================================================
   show alert
   ========================================================================== */

.custom-alert-fail {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: #e74c3c;
	color: #fff;
	padding: 12px 20px 12px 40px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 9999;
}

.custom-alert-fail::before {
	content: "✖";
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: #fff;
}

.custom-alert-fail.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.custom-alert-success {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: #2e7d32;
	color: #fff;
	padding: 12px 20px 12px 40px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 9999;
}

.custom-alert-success::before {
	content: "✔";
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: #fff;
}

.custom-alert-success.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ---------- Profile icon (logged-in desktop) ---------- */
.tw-header__profile-icon {
	color: #fff;
	font-size: 1.5rem;
	transition: color 0.2s;
}

.tw-header__profile-icon:hover {
	color: #f5c518;
}

/* ---------- Game Nav — CSS-driven active/inactive image toggle ---------- */
/* Hide everything by default */
.game-nav-btn .nav-active-img,
.game-nav-btn .nav-inactive-img {
	display: none;
}

/* Inactive state: show inactive img */
.game-nav-btn .nav-inactive-img.nav-img-mobile {
	display: block;
}

.game-nav-btn .nav-inactive-img.nav-img-desktop {
	display: none;
}

/* Active state: show active img, hide inactive */
.game-nav-btn.active .nav-active-img.nav-img-mobile {
	display: block;
}

.game-nav-btn.active .nav-inactive-img.nav-img-mobile {
	display: none;
}

/* Desktop (lg+): swap to desktop images */
@media (min-width: 992px) {
	.game-nav-btn .nav-inactive-img.nav-img-mobile {
		display: none;
	}

	.game-nav-btn .nav-inactive-img.nav-img-desktop {
		display: block;
	}

	.game-nav-btn.active .nav-active-img.nav-img-mobile {
		display: none;
	}

	.game-nav-btn.active .nav-active-img.nav-img-desktop {
		display: block;
	}

	.game-nav-btn.active .nav-inactive-img.nav-img-desktop {
		display: none;
	}
}

/* ==========================================================================
   FOOTER — .tw-footer (BEM)
   Dark casino-style footer matching header theme
   ========================================================================== */

.tw-footer {
	background-color: #2b2f30;
	color: #bbb;
	font-size: 0.85rem;
	line-height: 1.6;
}

/* ---------- Row 1: Link Columns ---------- */
.tw-footer__links {
	padding: 2.5rem 0 1.5rem;
}

.tw-footer__heading {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	text-transform: none;
}

.tw-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tw-footer__list li {
	margin-bottom: 0.35rem;
}

.tw-footer__list a {
	color: #999;
	text-decoration: none;
	font-size: 0.82rem;
	transition: color 0.2s;
}

.tw-footer__list a:hover {
	color: #fff;
}

/* ---------- Social Icons ---------- */
.tw-footer__social {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tw-footer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	transition: filter 0.2s, transform 0.2s;
}

.tw-footer__social-icon:hover {
	filter: brightness(1.2);
	transform: scale(1.1);
	color: #fff;
}

.tw-footer__social-icon--yt {
	background: #FF0000;
}

.tw-footer__social-icon--fb {
	background: #1877F2;
}

.tw-footer__social-icon--ig {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ---------- Row 2: SEO Block ---------- */

.tw-footer__seo-block {
	padding-left: 0;
}

/* The block is now admin authored in CKEditor, so style whatever heading level
   the editor produces rather than relying on a hardcoded class. */
.tw-footer__seo-title,
.tw-footer__seo-block h1,
.tw-footer__seo-block h2,
.tw-footer__seo-block h3,
.tw-footer__seo-block h4,
.tw-footer__seo-block h5,
.tw-footer__seo-block h6 {
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

/* Defaults for admin authored content. Anything set in the editor arrives as an
   inline style and overrides these, so the toolbar behaves as expected. */
.tw-footer__seo-block p,
.tw-footer__seo-block li {
	color: #888;
	font-size: 0.78rem;
	line-height: 1.6;
	margin: 0 0 0.6rem;
}

.tw-footer__seo-block > *:last-child {
	margin-bottom: 0;
}

.tw-footer__seo-block ul,
.tw-footer__seo-block ol {
	padding-left: 1.2rem;
	margin: 0 0 0.6rem;
}

.tw-footer__seo-block a {
	color: #bbb;
	text-decoration: underline;
}

.tw-footer__seo-block a:hover {
	color: #fff;
}

.tw-footer__seo-block img {
	max-width: 100%;
	height: auto;
}

/* ---------- Row 3: Badges ---------- */
.tw-footer__badges {
	padding: 1.5rem 0;
}

.tw-footer__badge-title {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.tw-footer__badge-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.tw-footer__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 28px;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #fff;
	background: #444;
	line-height: 1.1;
	text-align: center;
}

/* Crypto badges */
.tw-footer__badge--btc {
	background: #F7931A;
	color: #fff;
	font-size: 1rem;
}

.tw-footer__badge--usdt {
	background: #26A17B;
	color: #fff;
	font-size: 1rem;
}

.tw-footer__badge--eth {
	background: #627EEA;
	color: #fff;
	font-size: 1rem;
}

/* E-wallets */
.tw-footer__badge--tng {
	background: #015ABF;
}

.tw-footer__badge--grab {
	background: #00B14F;
}

.tw-footer__badge--duit {
	background: #ED1C24;
}

/* Cards */
.tw-footer__badge--visa {
	background: #1A1F71;
	font-size: 0.65rem;
	letter-spacing: 1px;
}

.tw-footer__badge--mc {
	background: #EB001B;
	font-size: 0.65rem;
}

/* Text-only badges */
.tw-footer__badge--text {
	background: transparent;
	border: 1px solid #555;
	color: #aaa;
	font-weight: 600;
	font-size: 0.72rem;
	padding: 4px 10px;
	height: auto;
}

/* 18+ badge */
.tw-footer__badge--18 {
	background: transparent;
	border: 2px solid #aaa;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	min-width: 36px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
}

/* ---------- Row 4: Copyright ---------- */
.tw-footer__copyright {
	padding: 1rem 0;
	color: #666;
	font-size: 0.78rem;
	letter-spacing: 0.3px;
}

/* ==========================================================================
   Mobile Footer Accordion
   ========================================================================== */
@media (max-width: 767.98px) {
	.tw-footer__col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		margin-bottom: 8px;
	}

	.tw-footer__heading {
		background: #303030;
		border: 1px solid #4d4d4d;
		border-radius: 6px;
		padding: 12px 15px;
		margin-bottom: 0;
		cursor: pointer;
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #fff;
		font-size: 0.95rem !important;
		font-weight: 600;
	}

	.tw-footer__heading.active {
		border-radius: 6px 6px 0 0;
		border-bottom: 1px solid #1a1a1a;
	}

	.tw-footer__heading.active .tw-footer__chevron {
		transform: rotate(180deg);
	}

	.tw-footer__chevron {
		transition: transform 0.3s ease;
		font-size: 0.85rem;
		color: #fff;
	}

	.tw-footer__list,
	.tw-footer__social {
		display: none;
		padding: 10px 15px 15px;
		background: #1a1a1a;
		border: 1px solid #4d4d4d;
		border-top: none;
		border-radius: 0 0 6px 6px;
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media (min-width: 768px) {
	.tw-footer__chevron {
		display: none !important;
	}
}

@media (max-width: 576px) {

	.custom-alert-fail,
	.custom-alert-success {
		top: 10%;
		width: 90%;
		max-width: 350px;

		font-size: 14px;
		padding: 10px 15px 10px 35px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	}

	/* 调整图标位置 */
	.custom-alert-fail::before,
	.custom-alert-success::before {
		left: 12px;
		font-size: 16px;
	}
}

/* ---------- Mobile overrides (< 992px) ---------- */
@media (max-width: 991.98px) {
	.tw-header {
		padding: 0.35rem 0;
		display: block;
		align-items: center;
		height: auto;
	}

	.tw-header__logo img {
		max-height: 44px;
	}

	.tw-header__btn--login,
	.tw-header__btn--register,
	.tw-header__btn--deposit,
	.tw-header__btn--logout {
		padding: 0.25rem;
		font-size: 0.85rem;
	}

	.tw-header__flag-img {
		width: 36px;
		height: 36px;
	}

	.game-nav-title,
	.ranking-title {
		font-size: 20px;
	}

	.gp-label {
		font-weight: 600;
		font-size: 0.6rem;
		padding: 12px 20px 12px 12px;
	}

	.gp-track-wrapper {
		height: 44px;
	}

	.gp-track-wrapper {
		height: 3rem;
	}

	.gp-slide img {
		height: 40px;
	}

	.footer-des-img {
		width: 60%;
	}

	.tw-login-card {
		padding: 0.5rem 0.5rem;
	}
}

/* ==========================================================================
   MOBILE OFFCANVAS MENU
   ========================================================================== */
#mobileMenu.offcanvas {
	background-color: #1a1a1a;
	color: #ccc;
	border-right: 1px solid #333;
}

#mobileMenu .offcanvas-header {
	border-bottom: 1px solid #333;
	padding: 1rem 1.5rem;
}

#mobileMenu .custom-close {
	background: transparent;
	border: none;
	padding: 0;
}

#mobileMenu .custom-close svg {
	stroke: #aaa;
	transition: stroke 0.2s;
}

#mobileMenu .custom-close:hover svg {
	stroke: #FEE14B;
}

#mobileMenu .mobile-menu-container,
#mobileMenu .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

#mobileMenu .list-group-item {
	background-color: transparent !important;
	border: none !important;
	border-bottom: 1px solid #2a2a2a !important;
	padding: 0 !important;
}

#mobileMenu .list-group-item:last-child {
	border-bottom: none !important;
}

#mobileMenu .list-group-item a {
	display: block;
	padding: 15px 20px;
	color: #ccc;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.2s;
}

#mobileMenu .list-group-item a:hover {
	color: #FEE14B;
	background-color: rgba(254, 225, 75, 0.05);
}

#mobileMenu .sub-menu {
	background-color: #111;
}

#mobileMenu .sub-menu .list-group-item a {
	padding: 12px 20px 12px 40px;
	font-size: 14px;
}

#mobileMenu .sub-menu .sub-menu .list-group-item a {
	padding-left: 60px;
}

/* ==========================================================================
   MOBILE FOOTER ACTIVE STATE & LAYOUT
   ========================================================================== */
.mobile-footer {
	background: linear-gradient(180deg, #333 0%, #111 100%) !important;
	border-radius: 20px 20px 0 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	height: 65px !important;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5) !important;
}

.mobile-footer .container {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	height: 100%;
}

.mobile-footer .d-flex {
	height: 100%;
}

.mobile-footer .flex-item {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding: 10px 0;
	transition: background 0.3s ease;
}

.mobile-footer .flex-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	width: 100%;
	height: 100%;
}

.mobile-footer .flex-item img {
	height: 24px;
	width: auto;
	object-fit: contain;
	margin-bottom: 5px;
}

.mobile-footer .mobile-footer-text {
	font-size: 12px;
	color: #fff;
	font-weight: 600;
}

/* Active State */
.mobile-footer .flex-item.active {
	background: linear-gradient(180deg, #DBC06E 0%, #FEE14B 100%);
}

.mobile-footer .flex-item.active img {
	filter: brightness(0);
}

.mobile-footer .flex-item.active .mobile-footer-text {
	color: #1a1a1a !important;
	font-weight: 800;
}
/* Home slideshow - make the banner scale to the viewport.
   Without this the slide renders at its natural pixel size, so a 1920px wide
   banner overflows on a phone. Scoped to .homeSwiper so the game sliders and
   any theme sliders are untouched. The <picture> wrapper is inline by default,
   which would leave a stray baseline gap under each slide. */
.homeSwiper .swiper-slide a,
.homeSwiper .swiper-slide picture {
	display: block;
}

.homeSwiper .swiper-slide img {
	width: 100%;
	height: auto;
	display: block;
}
