:root {
	--theme-primary:#2e2e33;
--theme-secondary:#000000;
--theme-text:#fae07e;
--theme-background:url("https://cdncloudfront.umagiaservice.com/source/source/0517a8d606181531a3c27c964c3ede10.png");
--nav-button-primary-default-primary:#404040;
--nav-button-primary-default-secondary:#373434;
--nav-button-primary-default-text:#fae07e;
--nav-button-primary-hover-primary:#5d5b5b;
--nav-button-primary-hover-secondary:#000000;
--nav-button-primary-hover-text:#fae07e;
--nav-button-secondary-default-primary:#5d5b5b;
--nav-button-secondary-default-secondary:#000000;
--nav-button-secondary-default-text:#fae07e;
--nav-button-secondary-hover-primary:#5d5b5b;
--nav-button-secondary-hover-secondary:#000000;
--nav-button-secondary-hover-text:#fae07e;
--nav-button-third-default-primary:#ffea00;
--nav-button-third-default-secondary:#000000;
--nav-button-third-default-text:#000000;
--nav-button-third-hover-primary:#334bff;
--nav-button-third-hover-secondary:#ffffff;
--nav-button-third-hover-text:#000000;
--nav-button-fourth-default-primary:#222222;
--nav-button-fourth-default-secondary:#222222;
--nav-button-fourth-default-text:#000000;
--nav-button-fourth-hover-primary:#000000;
--nav-button-fourth-hover-secondary:#000000;
--nav-button-fourth-hover-text:#000000;
--nav-text-primary-primary:#ffffff;
--nav-text-primary-secondary:#ffffff;
--nav-text-secondary-primary:#fafafa;
--nav-text-secondary-secondary:#ffffff;
--nav-text-third-primary:#ffffff;
--nav-text-third-secondary:#ffffff;
--nav-text-fourth-primary:#ffffff;
--nav-text-fourth-secondary:#ffffff;
--slide-button-primary-default-primary:#5c5c5c;
--slide-button-primary-default-secondary:#12152a;
--slide-button-primary-default-text:#ffffff;
--slide-button-primary-hover-primary:#000000;
--slide-button-primary-hover-secondary:#000000;
--slide-button-primary-hover-text:#000000;
--slide-button-secondary-default-primary:#004cab;
--slide-button-secondary-default-secondary:#282828;
--slide-button-secondary-default-text:#ffffff;
--slide-button-secondary-hover-primary:#000000;
--slide-button-secondary-hover-secondary:#000000;
--slide-button-secondary-hover-text:#000000;
--slide-button-third-default-primary:#004cab;
--slide-button-third-default-secondary:#282828;
--slide-button-third-default-text:#ffffff;
--slide-button-third-hover-primary:#e0245e;
--slide-button-third-hover-secondary:#e0245e;
--slide-button-third-hover-text:#ffffff;
--slide-button-fourth-default-primary:#222222;
--slide-button-fourth-default-secondary:#1f103d;
--slide-button-fourth-default-text:#ffffff;
--slide-button-fourth-hover-primary:#000000;
--slide-button-fourth-hover-secondary:#000000;
--slide-button-fourth-hover-text:#000000;
--slide-text-primary-primary:#ff6f00;
--slide-text-primary-secondary:#ffa000;
--slide-text-secondary-primary:#ff8f00;
--slide-text-secondary-secondary:#ffb300;
--slide-text-third-primary:#fdd835;
--slide-text-third-secondary:#ffeb3b;
--slide-text-fourth-primary:#c2185b;
--slide-text-fourth-secondary:#d81b60;
--content-button-primary-default-primary:#3a3833;
--content-button-primary-default-secondary:#121214;
--content-button-primary-default-text:#ffffff;
--content-button-primary-hover-primary:#ffffff;
--content-button-primary-hover-secondary:#000000;
--content-button-primary-hover-text:#000000;
--content-button-secondary-default-primary:#ae0a0a;
--content-button-secondary-default-secondary:#ff03a7;
--content-button-secondary-default-text:#ffffff;
--content-button-secondary-hover-primary:#000000;
--content-button-secondary-hover-secondary:#000000;
--content-button-secondary-hover-text:#000000;
--content-button-third-default-primary:#004cab;
--content-button-third-default-secondary:#282828;
--content-button-third-default-text:#000000;
--content-button-third-hover-primary:#000000;
--content-button-third-hover-secondary:#000000;
--content-button-third-hover-text:#000000;
--content-button-fourth-default-primary:#000000;
--content-button-fourth-default-secondary:#2c07e4;
--content-button-fourth-default-text:#ffffff;
--content-button-fourth-hover-primary:#000000;
--content-button-fourth-hover-secondary:#000000;
--content-button-fourth-hover-text:#000000;
--content-text-primary-primary:#ffffff;
--content-text-primary-secondary:#e0245f;
--content-text-secondary-primary:#e0245f;
--content-text-secondary-secondary:#ffffff;
--content-text-third-primary:#ffee00;
--content-text-third-secondary:#ff0000;
--content-text-fourth-primary:#ffffff;
--content-text-fourth-secondary:#000000;
--popup-button-primary-default-primary:#404040;
--popup-button-primary-default-secondary:#373434;
--popup-button-primary-default-text:#fae07e;
--popup-button-primary-hover-primary:#ffffff;
--popup-button-primary-hover-secondary:#000000;
--popup-button-primary-hover-text:#000000;
--popup-button-secondary-default-primary:#e6d19b;
--popup-button-secondary-default-secondary:#bba06b;
--popup-button-secondary-default-text:#ffffff;
--popup-button-secondary-hover-primary:#bba06b;
--popup-button-secondary-hover-secondary:#e6d19b;
--popup-button-secondary-hover-text:#ffffff;
--popup-button-third-default-primary:#ff0039;
--popup-button-third-default-secondary:#2e1919;
--popup-button-third-default-text:#ffffff;
--popup-button-third-hover-primary:#2e1919;
--popup-button-third-hover-secondary:#ff0039;
--popup-button-third-hover-text:#ffffff;
--popup-button-fourth-default-primary:#000000;
--popup-button-fourth-default-secondary:#000000;
--popup-button-fourth-default-text:#000000;
--popup-button-fourth-hover-primary:#000000;
--popup-button-fourth-hover-secondary:#000000;
--popup-button-fourth-hover-text:#000000;
--popup-text-primary-primary:#000000;
--popup-text-primary-secondary:#000000;
--popup-text-secondary-primary:#000000;
--popup-text-secondary-secondary:#000000;
--popup-text-third-primary:#000000;
--popup-text-third-secondary:#000000;
--popup-text-fourth-primary:#000000;
--popup-text-fourth-secondary:#000000;
--logindaily-button-primary-default-primary:#000000;
--logindaily-button-primary-default-secondary:#000000;
--logindaily-button-primary-default-text:#ffffff;
--logindaily-button-primary-hover-primary:#000000;
--logindaily-button-primary-hover-secondary:#000000;
--logindaily-button-primary-hover-text:#ffffff;
--logindaily-button-secondary-default-primary:#ffffff;
--logindaily-button-secondary-default-secondary:#ffffff;
--logindaily-button-secondary-default-text:#000000;
--logindaily-button-secondary-hover-primary:#ffffff;
--logindaily-button-secondary-hover-secondary:#ffffff;
--logindaily-button-secondary-hover-text:#000000;
--logindaily-button-third-default-primary:#f52e2e;
--logindaily-button-third-default-secondary:#040000;
--logindaily-button-third-default-text:#ffffff;
--logindaily-button-third-hover-primary:#040000;
--logindaily-button-third-hover-secondary:#f52e2e;
--logindaily-button-third-hover-text:#ffffff;
--logindaily-button-fourth-default-primary:#000000;
--logindaily-button-fourth-default-secondary:#000000;
--logindaily-button-fourth-default-text:#000000;
--logindaily-button-fourth-hover-primary:#000000;
--logindaily-button-fourth-hover-secondary:#000000;
--logindaily-button-fourth-hover-text:#000000;
--logindaily-text-primary-primary:#000000;
--logindaily-text-primary-secondary:#000000;
--logindaily-text-secondary-primary:#000000;
--logindaily-text-secondary-secondary:#000000;
--logindaily-text-third-primary:#000000;
--logindaily-text-third-secondary:#000000;
--logindaily-text-fourth-primary:#000000;
--logindaily-text-fourth-secondary:#000000;
--footer-button-primary-default-primary:#000000;
--footer-button-primary-default-secondary:#434546;
--footer-button-primary-default-text:#ffffff;
--footer-button-primary-hover-primary:#000000;
--footer-button-primary-hover-secondary:#000000;
--footer-button-primary-hover-text:#000000;
--footer-button-secondary-default-primary:#4155e6;
--footer-button-secondary-default-secondary:#000000;
--footer-button-secondary-default-text:#000000;
--footer-button-secondary-hover-primary:#000000;
--footer-button-secondary-hover-secondary:#000000;
--footer-button-secondary-hover-text:#000000;
--footer-button-third-default-primary:#000000;
--footer-button-third-default-secondary:#000000;
--footer-button-third-default-text:#000000;
--footer-button-third-hover-primary:#000000;
--footer-button-third-hover-secondary:#000000;
--footer-button-third-hover-text:#000000;
--footer-button-fourth-default-primary:#000000;
--footer-button-fourth-default-secondary:#000000;
--footer-button-fourth-default-text:#000000;
--footer-button-fourth-hover-primary:#000000;
--footer-button-fourth-hover-secondary:#000000;
--footer-button-fourth-hover-text:#000000;
--footer-text-primary-primary:#000000;
--footer-text-primary-secondary:#000000;
--footer-text-secondary-primary:#000000;
--footer-text-secondary-secondary:#000000;
--footer-text-third-primary:#000000;
--footer-text-third-secondary:#000000;
--footer-text-fourth-primary:#000000;
--footer-text-fourth-secondary:#000000;
--button-primary-default-primary:#3a3833;
--button-primary-default-secondary:#121214;
--button-primary-default-text:#ffffff;
--button-primary-hover-primary:#001219;
--button-primary-hover-secondary:#000000;
--button-primary-hover-text:#000000;
--button-secondary-default-primary:#d3df2a;
--button-secondary-default-secondary:#ffae00;
--button-secondary-default-text:#ffffff;
--button-secondary-hover-primary:#00ff33;
--button-secondary-hover-secondary:#000000;
--button-secondary-hover-text:#ffffff;
--button-third-default-primary:#000000;
--button-third-default-secondary:#000000;
--button-third-default-text:#000000;
--button-third-hover-primary:#000000;
--button-third-hover-secondary:#000000;
--button-third-hover-text:#000000;
--button-fourth-default-primary:#000000;
--button-fourth-default-secondary:#000000;
--button-fourth-default-text:#000000;
--button-fourth-hover-primary:#000000;
--button-fourth-hover-secondary:#000000;
--button-fourth-hover-text:#000000;
}

/* --- Premium Custom Scrollbar Styling --- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: rgba(1, 20, 23, 0.8);
	border-radius: 8px;
}
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #BA952D 0%, #E2C25D 100%);
	border-radius: 8px;
	border: 2px solid rgba(1, 20, 23, 0.8);
	transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #E2C25D 0%, #FBEA94 100%);
}

/* Support for Firefox (Standard Scrollbar styling) */
* {
	scrollbar-width: thin;
	scrollbar-color: #BA952D rgba(1, 20, 23, 0.8);
}

.background-layer {
	background-color: #03363A;
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -1;
	top: 0;
	left: 0;
	background: var(--theme-background) no-repeat top center;
	background-color: var(--theme-primary) !important;
	background-position: center -100px;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

body {
	margin: 0;
	padding: 0;
	color: white;
	font-family: 'Kanit', sans-serif;
}

/* --- Header Styles --- */
.main-header {
	width: 100%;
	padding: 60px 15px 25px 15px;
}

.header-logo {
	max-height: 70px;
	width: auto;
}

/* Input Custom Style */
.custom-input-wrapper {
	position: relative;
	width: 100%;
}

.custom-input-wrapper .input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	z-index: 5;
}

.custom-input {
	background: white;
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding-inline-start: 40px;
	border-radius: 0.25rem;
	color: black;
	border: 2px solid transparent;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	outline: none;
	transition: all 0.3s ease;
}

.custom-input:focus {
	border-color: #f1c40f;
	box-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

.custom-input-wrapper .btn-eye {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	background-color: #e9ecef;
	border: none;
	border-left: 1px solid #ddd;
	border-radius: 0 0.25rem 0.25rem 0;
	color: #555;
	padding: 0 12px;
	z-index: 5;
	width: auto;
}

.custom-input-wrapper .btn-eye:hover {
	background-color: #dcdedf;
}

/* Button Styles (Mobile First) */
.btn-login {
	background: transparent linear-gradient(180deg, #5ACBFD 0%, #0881B5 100%) 0% 0% no-repeat padding-box;
	border: 2px solid #FFFFFF;
	color: white;
	width: 100%;
	font-size: 1.1rem !important;
	font-weight: bold;
	border-radius: 50px;
	padding: 0.6rem 1rem;
	transition: all 0.3s ease;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
	background: transparent linear-gradient(180deg, #46bdf5 0%, #066a96 100%) 0% 0% no-repeat padding-box;
	color: white;
}

.btn-login img {
	max-height: 55px;
}

.btn-register {
	background: transparent linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%) 0% 0% no-repeat padding-box;
	color: #5C1010;
	border: 2px solid #FFFFFF;
	width: 100%;
	font-size: 1.1rem !important;
	font-weight: bold;
	border-radius: 50px;
	padding: 0.6rem 1rem;
	transition: all 0.3s ease;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-register:hover {
	background: transparent linear-gradient(180deg, #f5e48e 0%, #d1b14d 50%, #a68426 100%) 0% 0% no-repeat padding-box;
	color: #5C1010;
}



/* Tablet & Desktop Overrides */
@media (min-width: 768px) {
	
}

/* Links Styles */
.header-link {
	color: white;
	text-decoration: underline;
	font-size: 0.95rem;
	margin-left: 15px;
	transition: color 0.2s;
	text-underline-offset: 2px;
}

.header-link:hover {
	color: #f1c40f;
}

/* ปรับขนาดช่องสำหรับหน้าจอต่างๆ */
.auth-form-wrapper {
	max-width: 100%;
}

@media (min-width: 992px) {
	.btn-register img {
		max-height: 55px;
	}
	.auth-form-wrapper {
		width: 750px;
	}
}

/* --- Main Banner Swiper Custom Style --- */
.banner-slider {
	position: relative;
	z-index: 10;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mySwiper {
	--swiper-theme-color: #5ACBFD;
	--swiper-navigation-size: 30px;
	width: 100%;
}

.mySwiper .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	width: 45px;
	height: 45px;
	color: white !important;
}

.mySwiper .swiper-button-next:after,
.mySwiper .swiper-button-prev:after {
	font-size: 20px;
}

.mobile-separator {
	width: 45%;
	height: 2px;
	background-color: #9A7B32;
	margin: 0 auto;
}

/* --- Top Lotto Styles --- */
.lotto-section-title {
	color: #FBEA94;
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	letter-spacing: 1px;
}

.lotto-section-subtitle {
	color: white;
	font-size: 0.95rem;
	margin-bottom: 15px;
	font-weight: 300;
}

.lotto-card-wrapper {
	padding: 5px;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.lotto-card-wrapper:hover {
	transform: translateY(-5px);
}

.lotto-image-box {
	position: relative;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.lotto-flag {
	width: 100%;
	height: 100%;
	border-radius: 4px;
	padding: 0px 20px 40px 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	object-fit: contain;
}

.lotto-info-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	font-size: 0.75rem;
	text-align: center;
	font-weight: bold;
}

.lotto-info-date {
	background-color: rgba(97, 114, 128, 0.95);
	color: white;
	flex: 1;
	padding: 4px 0;
}

.lotto-info-time {
	background-color: rgba(5, 125, 175, 0.95);
	color: white;
	width: 38%;
	padding: 4px 0;
}

.lotto-status-box {
	background-color: white;
	text-align: center;
	padding: 10px 0;
	font-weight: bold;
	font-size: 0.9rem;
}

.lotto-status-active {
	color: #198754;
}

.lotto-status-inactive {
	color: #6c757d;
}

.lotto-btn {
	background: transparent linear-gradient(180deg, #5ACBFD 0%, #0881B5 100%) 0% 0% no-repeat padding-box;
	border: 1px solid #FFFFFF;
	color: white;
	text-align: center;
	padding: 8px 0;
	font-weight: bold;
	font-size: 0.95rem;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	margin-top: auto;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

.lotto-btn:hover {
	color: white;
	background: transparent linear-gradient(180deg, #46bdf5 0%, #066a96 100%) 0% 0% no-repeat padding-box;
}

/* --- Latest Results & Countdown Section --- */
.results-main-bg {
	background-color: #D6BA7A;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	position: relative;
}

/* Left Side (Results) */
.results-inner-box {
	background: linear-gradient(180deg, #42413e 0%, #1e1f20 100%);
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #E4C882;
}

.result-header-bar {
	background: linear-gradient(180deg, #DCAF64 0%, #C3973D 100%);
	color: white;
	padding: 8px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	font-size: 0.95rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
	border-bottom: 2px solid #A87D25;
}

.result-flag-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
}

.prize-container {
	background: linear-gradient(180deg, #EAEAEA 0%, #B5B5B5 100%);
	border-radius: 6px;
	padding: 0px 10px 0px 0px;
	border: 1px solid #999;
}

.prize-gold-bar {
	background: linear-gradient(180deg, #ECCD67 0%, #CA9D39 100%);
	color: #000;
	text-align: center;
	font-weight: bold;
	padding: 4px 0;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 0.9rem;
	border: 1px solid #A87D25;
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.prize-white-box {
	background: white;
	color: black;
	text-align: center;
	font-weight: bold;
	padding: 4px 0;
	border-radius: 4px;
	font-size: 0.9rem;
	border: 1px solid #ccc;
}

.prize-small-text {
	color: #555;
	font-size: 0.75rem;
	text-align: center;
	margin-bottom: 2px;
	font-weight: 500;
}

@media (min-width: 768px) {
	.lotto-grid-border {
		border-right: 2px solid #E4C882;
	}
}

@media (max-width: 767px) {
	.header-logo {
		max-height: 140px;
		width: auto;
	}
	.btn-login {
	}
	.btn-register {
	}
	.lotto-grid-border {
		border-bottom: 2px solid #E4C882;
	}

	.prize-container {
		padding: 0;
	}
}

.lotto-date-badge {
	background: transparent linear-gradient(180deg, #D35400 0%, #A04000 100%) 0% 0% no-repeat padding-box;
	border-radius: 0px 0px 0px 0px;
	width: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	margin-right: 15px;
	flex-shrink: 0;
	align-self: stretch;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	padding: 8px 0;
}

.lotto-date-day {
	font-size: 1.8rem;
	font-weight: bold;
	line-height: 1;
	margin-bottom: 4px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.lotto-date-month {
	font-size: 0.8rem;
	font-weight: bold;
	letter-spacing: 1px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.lotto-date-content {
	padding: 10px 0px 10px 0px;
}

.sub-lotto-row {
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.sub-lotto-row:last-child {
	margin-bottom: 0;
}

.foreign-lotto-table {
	color: white;
	width: 100%;
	font-size: 0.9rem;
}

.foreign-lotto-table th {
	font-size: 0.75rem;
	color: #A4D1E3;
	font-weight: normal;
	padding-bottom: 8px;
}

.foreign-lotto-table td {
	padding: 6px 0;
}

.dot-indicator {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 8px;
}

/* Right Side (Countdown) */
.countdown-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	padding: 10px 0;
}

.countdown-title {
	color: white;
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 15px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.countdown-header-badge {
	background: linear-gradient(180deg, #DCAF64 0%, #C3973D 100%);
	border: 1px solid #A87D25;
	color: white;
	padding: 6px 20px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 0.9rem;
	margin-bottom: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	gap: 8px;
}

.countdown-line {
	position: absolute;
	top: 70px;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: #A87D25;
	z-index: 1;
}

.countdown-blocks-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	align-items: center;
	position: relative;
	z-index: 2;
}

.countdown-block {
	background: linear-gradient(180deg, #333 0%, #111 100%);
	border: 1px solid #555;
	border-radius: 6px;
	width: 100%;
	max-width: 120px;
	text-align: center;
	padding: 12px 0 8px 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	position: relative;
}

.countdown-number {
	color: white;
	font-size: 2.2rem;
	font-weight: bold;
	line-height: 1;
	margin-bottom: 5px;
	font-family: 'Arial', sans-serif;
}

.countdown-label {
	color: white;
	font-size: 0.8rem;
	font-weight: 300;
}

.countdown-login-btn {
	background: transparent linear-gradient(180deg, #ECCD67 0%, #B78D32 100%) 0% 0% no-repeat padding-box;
	border: 1px solid #FFF;
	color: #5C1010;
	font-weight: bold;
	font-size: 1.1rem;
	border-radius: 4px;
	width: 100%;
	max-width: 180px;
	padding: 8px;
	margin-top: 25px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s;
}

.countdown-login-btn:hover {
	background: transparent linear-gradient(180deg, #f5d87a 0%, #c4993a 100%) 0% 0% no-repeat padding-box;
	color: #5C1010;
}

.countdown-bottom-text {
	color: white;
	font-size: 0.8rem;
	margin-top: 8px;
	opacity: 0.9;
}

@media (max-width: 991px) {
	.btn-login {
		max-width: 400px;
		max-height: 70px !important;
		background: transparent linear-gradient(180deg, #057DAF 0%, #5ACBFD 51%, #057DAF 100%) 0% 0% no-repeat padding-box;
		border: 1px solid #D0D2D1;
		border-radius: 0.25rem;
		padding: 0.6rem 1rem;
		box-shadow: none;
	}

	.btn-login:hover {
		background: transparent linear-gradient(180deg, #046b96 0%, #46bdf5 51%, #046b96 100%) 0% 0% no-repeat padding-box;
	}
	
	.btn-login img {
		max-height: 70px !important;
	}

	.btn-register {
		max-width: 400px;
		max-height: 70px !important;
		background: white;
		color: #7A0000;
		border: 1px solid #ccc;
		border-radius: 0.25rem;
		padding: 0.6rem 1rem;
		box-shadow: none;
	}

	.btn-register:hover {
		background-color: #f8f9fa;
		color: #7A0000;
	}
	
	.btn-register img {
		max-height: 70px !important;
	}
	
	.countdown-line {
		display: none;
		/* ซ่อนเส้นบนมือถือ/แท็บเล็ตเล็กเพื่อความสวยงามเวลากล่องเรียงแนวนอน */
	}

	.countdown-blocks-container {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px;
	}

	.countdown-block {
		width: 45%;
		/* เรียงเป็นตาราง 2x2 */
		max-width: none;
	}
}

/* --- Provider Swiper Custom Style --- */
.provider-section-title {
	border-left: 4px solid #5ACBFD;
	padding-left: 10px;
	font-weight: 500;
	margin-bottom: 20px;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.providerSwiper {
	padding: 10px 0 20px 0;
	width: 100%;
}

.provider-card {
	background-color: #0b2230;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	cursor: pointer;
}

.provider-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
	border-color: #5ACBFD;
}

.provider-card img {
	width: 100%;
	display: block;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	/* บังคับให้รูปเป็นสี่เหลี่ยมจัตุรัส */
}

.provider-name-bar {
	background: linear-gradient(180deg, #057DAF 0%, #034b6b 100%);
	color: white;
	text-align: center;
	padding: 6px 5px;
	font-size: 0.85rem;
	font-weight: bold;
	text-transform: uppercase;
}

/* ป้าย New แจ้งเตือนมุมซ้ายบน */
.badge-new {
	position: absolute;
	top: 10px;
	left: -25px;
	background: red;
	color: white;
	padding: 2px 25px;
	font-size: 0.75rem;
	font-weight: bold;
	transform: rotate(-45deg);
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation ปุ่มกดของ Provider */
.provider-nav-btn {
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	width: 35px !important;
	height: 35px !important;
	color: #5ACBFD !important;
}

.provider-nav-btn::after {
	font-size: 16px !important;
}

/* --- GameHit Swiper Styles --- */
.gamehit-section {
	display: none;
}

.gamehitSwiper {
	padding: 10px 0 20px 0;
	width: 100%;
}

.gamehit-nav-btn {
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	width: 35px !important;
	height: 35px !important;
	color: #5ACBFD !important;
}

.gamehit-nav-btn::after {
	font-size: 16px !important;
}

/* --- GameHit Card Styles --- */
.game-card-link {
	display: block;
	text-decoration: none;
	color: white;
	text-align: center;
	transition: transform 0.3s ease;
}

.game-card-link:hover {
	transform: translateY(-5px);
	color: #5ACBFD;
}

.game-img-wrapper {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background-color: #0b2230;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card-link:hover .game-img-wrapper {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
	border-color: #5ACBFD;
}

.game-img-wrapper img {
	width: 100%;
	display: block;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.pg-badge {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, rgba(5, 125, 175, 0.85) 0%, rgba(3, 75, 107, 0.95) 100%);
	color: white;
	text-align: center;
	padding: 3px 5px;
	font-size: 0.7rem;
	font-weight: bold;
	text-transform: uppercase;
}

.game-title-text {
	font-size: 0.78rem;
	font-weight: 500;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 2px;
}

/* --- Modal (Popup) Common Styles --- */
.custom-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	/* ให้เริ่มจากขอบบน */
	overflow-y: auto;
	/* ให้ Overlay เป็นตัวที่มี Scrollbar เมื่อเนื้อหายาวทะลุ */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 30px 15px;
	/* เพิ่มระยะห่างบนล่าง */
}

.custom-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.custom-modal-content {
	background-color: #03363A;
	background: url('https://www.alangkanlotto.net/assets/custom/main-bg.jpg') no-repeat center center;
	background-size: cover;
	border-radius: 12px;
	width: 100%;
	max-width: 800px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transform: scale(0.95);
	transition: transform 0.3s ease;
	margin: auto;
	/* จัดให้อยู่ตรงกลางจอถ้าจอใหญ่พอ */
	/* เอา max-height ออกเพื่อให้กล่องขยายความสูงได้เต็มที่ตามเนื้อหา */
}

.custom-modal-overlay.active .custom-modal-content {
	transform: scale(1);
}

.custom-modal-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(3, 54, 58, 0.5);
	/* โทนเขียวอมฟ้า */
	border-radius: 12px;
	z-index: 0;
}

.custom-modal-content>* {
	position: relative;
	z-index: 1;
}

.custom-modal-close {
	position: absolute;
	top: -15px;
	right: -15px;
	background: white;
	border: none;
	color: #333;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.2s, background 0.2s;
}

.custom-modal-close:hover {
	transform: scale(1.1);
	background: #f1c40f;
	color: white;
}

.modal-btn-login {
	background: transparent linear-gradient(180deg, #5ACBFD 0%, #0881B5 100%) 0% 0% no-repeat padding-box !important;
	border: 2px solid #FFFFFF !important;
	color: white !important;
	font-size: 1.1rem !important;
	font-weight: bold;
	border-radius: 50px !important;
	padding: 0.6rem 1rem;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.modal-btn-login:hover {
	background: transparent linear-gradient(180deg, #46bdf5 0%, #066a96 100%) 0% 0% no-repeat padding-box !important;
}

.modal-btn-register {
	background: transparent linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%) 0% 0% no-repeat padding-box !important;
	color: #5C1010 !important;
	border: 2px solid #FFFFFF !important;
	font-size: 1.1rem !important;
	font-weight: bold;
	border-radius: 50px !important;
	padding: 0.6rem 1rem;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.modal-btn-register:hover {
	background: transparent linear-gradient(180deg, #f5e48e 0%, #d1b14d 50%, #a68426 100%) 0% 0% no-repeat padding-box !important;
}

/* --- Announcement Modal Styles --- */
.announcement-content {
	background-color: white;
	border-radius: 4px;
	width: 100%;
	max-width: 450px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
	transform: scale(0.95);
	transition: transform 0.3s ease;
	overflow: hidden;
	/* คงไว้ไม่ให้มุมกล่องทะลุ */
	margin: auto;
	display: flex;
	flex-direction: column;
	/* เอา max-height ออก */
}

.custom-modal-overlay.active .announcement-content {
	transform: scale(1);
}

.announcement-header {
	background-color: #C0A164;
	color: white;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.announcement-close {
	background: none;
	border: none;
	color: white;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.announcement-close:hover {
	opacity: 1;
}

.announcement-body {
	padding: 15px;
	text-align: center;
	/* เอา overflow-y: auto ออก ให้เลื่อนที่ overlay แทน */
}

.btn-announce-close {
	background: transparent linear-gradient(180deg, #CBB47C 0%, #B7984E 100%) 0% 0% no-repeat padding-box;
	border: none;
	color: white;
	font-size: 1.1rem;
	border-radius: 4px;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-announce-close:hover {
	background: transparent linear-gradient(180deg, #dac594 0%, #c4a65d 100%) 0% 0% no-repeat padding-box;
}

.form-check-label {
	font-weight: 300;
	font-size: 0.95rem;
	margin-top: 1px;
}

/* --- Rules & Conditions Modal Styles --- */
.rules-content {
	background-color: white;
	border-radius: 4px;
	width: 100%;
	max-width: 700px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
	transform: scale(0.95);
	transition: transform 0.3s ease;
	overflow: hidden;
	/* คงไว้ไม่ให้มุมกล่องทะลุ */
	margin: auto;
	/* เอา max-height ออก */
}

.custom-modal-overlay.active .rules-content {
	transform: scale(1);
}

.rules-body {
	padding: 20px 25px;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.6;
	/* เอา overflow-y: auto ออก ให้เลื่อนที่ overlay แทน */
}

.rules-title {
	color: #057DAF;
	font-weight: bold;
	text-decoration: underline;
	margin-top: 15px;
	margin-bottom: 5px;
	text-underline-offset: 3px;
}

.rules-body ul {
	padding-left: 20px;
	margin-bottom: 10px;
}

.rules-body li {
	margin-bottom: 5px;
}

/* --- Registration Page Styles --- */
.register-page-section {
	display: none;
	min-height: 80vh;
	padding: 30px 15px 60px;
}

.register-page-section.active {
	display: block;
}

.register-card {
	background: rgba(3, 54, 58, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	max-width: 550px;
	margin: 0 auto;
	padding: 30px 25px 35px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.register-card-title {
	text-align: center;
	font-size: 1.6rem;
	font-weight: 700;
	color: #FBEA94;
	margin-bottom: 5px;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.register-card-subtitle {
	text-align: center;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 25px;
}

.register-card .form-label {
	color: #FBEA94;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 5px;
}

.register-card .custom-input {
	background: rgba(255, 255, 255, 0.95);
}

.register-card select.custom-input {
	padding-inline-start: 40px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.btn-submit-register {
	background: transparent linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%) 0% 0% no-repeat padding-box;
	color: #5C1010;
	border: 2px solid #FFFFFF;
	width: 100%;
	font-size: 1.15rem;
	font-weight: bold;
	border-radius: 50px;
	padding: 0.7rem 1rem;
	transition: all 0.3s ease;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-submit-register:hover {
	background: transparent linear-gradient(180deg, #f5e48e 0%, #d1b14d 50%, #a68426 100%) 0% 0% no-repeat padding-box;
	color: #5C1010;
	transform: translateY(-2px);
	box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.4);
}

.btn-back-home {
	background: transparent linear-gradient(180deg, #5ACBFD 0%, #0881B5 100%) 0% 0% no-repeat padding-box;
	border: 2px solid #FFFFFF;
	color: white;
	width: 100%;
	font-size: 1.05rem;
	font-weight: bold;
	border-radius: 50px;
	padding: 0.6rem 1rem;
	transition: all 0.3s ease;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-back-home:hover {
	background: transparent linear-gradient(180deg, #46bdf5 0%, #066a96 100%) 0% 0% no-repeat padding-box;
	color: white;
}

.register-divider {
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #FBEA94, #BA952D);
	margin: 0 auto 20px;
	border-radius: 2px;
}

.register-card .input-note {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 3px;
}

/* --- Step Indicator --- */
.step-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 25px;
	gap: 0;
}

.step-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	transition: all 0.4s ease;
	flex-shrink: 0;
}

.step-circle.active {
	background: linear-gradient(180deg, #FBEA94, #BA952D);
	color: #5C1010;
	border-color: #fff;
	box-shadow: 0 0 12px rgba(251, 234, 148, 0.5);
}

.step-circle.done {
	background: linear-gradient(180deg, #5ACBFD, #0881B5);
	color: #fff;
	border-color: #5ACBFD;
}

.step-line {
	width: 50px;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	transition: background 0.4s ease;
}

.step-line.active {
	background: linear-gradient(90deg, #5ACBFD, #FBEA94);
}

.step-label-row {
	display: flex;
	justify-content: center;
	gap: 38px;
	margin-top: 6px;
	margin-bottom: 20px;
}

.step-label-text {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	width: 60px;
	transition: color 0.3s ease;
}

.step-label-text.active {
	color: #FBEA94;
	font-weight: 500;
}

.step-panel {
	display: none;
}

.step-panel.active {
	display: block;
	animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.btn-step-nav {
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: white;
	background: transparent;
	width: 100%;
	font-size: 1rem;
	font-weight: bold;
	border-radius: 50px;
	padding: 0.6rem 1rem;
	transition: all 0.3s ease;
}

.btn-step-nav:hover {
	border-color: #FBEA94;
	color: #FBEA94;
	background: rgba(255, 255, 255, 0.05);
}

/* --- Custom Notification System --- */
.notify-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 90%;
	max-width: 420px;
	pointer-events: none;
}

.notify-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	color: white;
	font-size: 0.92rem;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
	animation: notifySlideIn 0.35s ease forwards;
}

.notify-toast.removing {
	animation: notifySlideOut 0.3s ease forwards;
}

@keyframes notifySlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes notifySlideOut {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateY(-20px) scale(0.9);
	}
}

.notify-toast.error {
	background: linear-gradient(135deg, rgba(220, 53, 69, 0.92), rgba(176, 42, 55, 0.95));
}

.notify-toast.success {
	background: linear-gradient(135deg, rgba(25, 135, 84, 0.92), rgba(20, 108, 67, 0.95));
}

.notify-toast.warning {
	background: linear-gradient(135deg, rgba(255, 165, 0, 0.92), rgba(204, 132, 0, 0.95));
}

.notify-toast.info {
	background: linear-gradient(135deg, rgba(5, 125, 175, 0.92), rgba(8, 129, 181, 0.95));
}

.notify-icon {
	font-size: 1.3rem;
	flex-shrink: 0;
	margin-top: 1px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.notify-body {
	flex: 1;
	min-width: 0;
}

.notify-title {
	font-weight: 700;
	font-size: 0.88rem;
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.85;
}

.notify-message {
	font-weight: 400;
}

.notify-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.1rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	flex-shrink: 0;
	transition: color 0.2s, transform 0.2s;
}

.notify-close:hover {
	color: white;
	transform: scale(1.2);
}

.notify-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 0 0 12px 12px;
	animation: notifyProgress linear forwards;
}

@keyframes notifyProgress {
	from {
		width: 100%;
	}

	to {
		width: 0%;
	}
}

/* --- Footer Styles --- */
.main-footer {
	background-color: rgba(3, 54, 58, 0.9);
	border-top: 2px solid #9A7B32;
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
	padding: 20px 0;
	z-index: 10;
	position: relative;
}

.footer-logo {
	max-height: 50px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.footer-link {
	color: #A4D1E3;
	text-decoration: none;
	margin: 0 10px;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.footer-link:hover {
	color: #f1c40f;
	text-decoration: underline;
}

.footer-copy {
	color: #ccc;
	font-size: 0.85rem;
}

/* --- Deposit SPA CSS --- */
#depositPageSection.active {
	display: block !important;
}

#depositPageSection .finance-tab {
	background: rgba(255, 255, 255, 0.05);
	color: #ccc;
	transition: 0.3s;
}

#depositPageSection .finance-tab:hover {
	background: rgba(255, 255, 255, 0.1);
}

#depositPageSection .finance-tab.active {
	background: #5ACBFD;
	color: #fff;
}

#depositPageSection .selectable-bank {
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: 0.3s;
	position: relative;
	overflow: hidden;
}

#depositPageSection .selectable-bank:hover {
	border-color: rgba(90, 203, 253, 0.5);
}

#depositPageSection .selectable-bank.active {
	border-color: #5ACBFD;
	background: rgba(90, 203, 253, 0.1);
}

#depositPageSection .selectable-bank .check-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #5ACBFD;
	opacity: 0;
	transition: 0.3s;
	font-size: 1.2rem;
}

#depositPageSection .selectable-bank.active .check-icon {
	opacity: 1;
}

#depositPageSection .bank-logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	background: #fff;
	padding: 0;
	overflow: hidden;
}

#depositPageSection .bank-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 15px;
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

#depositPageSection .btn-back-step {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 50px;
	width: 100%;
	font-weight: bold;
	margin-top: 10px;
	transition: 0.3s;
}

#depositPageSection .btn-back-step:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* --- Mobile Responsive Rules --- */
.mobile-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(180deg, #022328 0%, #011417 100%);
	border-top: 2px solid #9A7B32;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 10px 0 6px 0;
	z-index: 10008;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-item {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.72rem;
	font-weight: bold;
	flex: 1;
	transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
	font-size: 1.25rem;
	margin-bottom: 3px;
	color: #E2C25D;
	transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover, .mobile-bottom-nav .nav-item.active {
	color: #FBEA94;
	text-decoration: none;
}
.mobile-bottom-nav .nav-item:hover i, .mobile-bottom-nav .nav-item.active i {
	transform: scale(1.15) translateY(-2px);
	color: #FBEA94;
	text-shadow: 0 0 10px rgba(226, 194, 93, 0.6);
}

/* --- Post-Login Header Styles --- */
.post-login-navbar {
	width: 100%;
	padding: 10px 0;
	border-bottom: 2px solid #9A7B32;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.post-login-logo {
	max-height: 50px;
	width: auto;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.post-login-hamburger {
	width: 30px;
	height: 20px;
	position: relative;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 1002;
	pointer-events: auto !important;
}

.post-login-hamburger span {
	display: block;
	height: 3px;
	width: 100%;
	background: #FBEA94;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.post-login-credit-badge {
	cursor: pointer;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px 12px 2px 2px;
	border-radius: 30px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	border: 1px solid #E2C25D;
	transition: transform 0.2s ease;
}

.post-login-credit-badge:hover {
	transform: scale(1.05);
}

.post-login-credit-icon {
	background: linear-gradient(135deg, #fcd757 0%, #bf800b 100%);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 16px;
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.post-login-credit-label {
	font-size: 10px;
	color: #888;
	text-transform: uppercase;
	display: block;
	line-height: 1;
	font-weight: 500;
}

.post-login-credit-amount {
	font-size: 15px;
	font-weight: bold;
	color: #000;
	line-height: 1.2;
}

/* --- Post-Login Left Sidebar Styles --- */
.post-login-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	height: 100vh;
	background: linear-gradient(135deg, #022328 0%, #011417 100%);
	border-right: 2px solid #9A7B32;
	box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
	z-index: 10005;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.post-login-sidebar.active {
	transform: translateX(0);
}
.post-login-sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 10004;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.post-login-sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}
.sidebar-header {
	padding: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.sidebar-logo {
	max-height: 40px;
	width: auto;
}
.sidebar-close-btn {
	background: none;
	border: none;
	color: #FBEA94;
	font-size: 24px;
	cursor: pointer;
	transition: transform 0.2s ease;
}
.sidebar-close-btn:hover {
	transform: scale(1.1);
}
.sidebar-menu-list {
	list-style: none;
	padding: 15px 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.sidebar-menu-item {
	display: flex;
	align-items: center;
	padding: 14px 25px;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
	transition: all 0.2s ease;
	position: relative;
}
.sidebar-menu-item i {
	width: 25px;
	font-size: 18px;
	margin-right: 15px;
	color: #BA952D;
	text-align: center;
	transition: transform 0.2s ease;
}
.sidebar-menu-item:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #FBEA94;
	text-decoration: none;
}
.sidebar-menu-item:hover i {
	transform: scale(1.15);
	color: #FBEA94;
}
.sidebar-menu-item .badge-dot {
	position: absolute;
	top: 50%;
	right: 25px;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

/* --- Premium Minigame Card & Grid Styles --- */
.minigame-card {
	display: block;
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	outline: none;
}
.minigame-card img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	border: 2px solid rgba(226, 194, 93, 0.25);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}
.minigame-card:hover img {
	transform: translateY(-6px) scale(1.04);
	border-color: #E2C25D;
	box-shadow: 0 10px 30px rgba(226, 194, 93, 0.45);
}

/* --- Premium Promotions Card & Page Styles --- */
.promo-hub-card {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	will-change: transform, box-shadow;
}
.promo-hub-card:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 10px 25px rgba(226, 194, 93, 0.25);
	border-color: #E2C25D !important;
	background: linear-gradient(135deg, rgba(226, 194, 93, 0.25) 0%, rgba(186, 149, 45, 0.1) 100%) !important;
}
.promo-hub-card:hover .promo-card-icon-wrapper {
	background: rgba(226, 194, 93, 0.35) !important;
	transform: scale(1.1);
}
.promo-card-icon-wrapper {
	transition: all 0.3s ease;
}
.promo-banner-card {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	will-change: transform, box-shadow;
}
.promo-banner-card img {
	border-bottom: 2px solid rgba(226, 194, 93, 0.2);
	transition: all 0.5s ease;
	width: 100%;
	aspect-ratio: 16/8;
	object-fit: cover;
}
.promo-banner-card:hover {
	transform: translateY(-5px);
	border-color: #E2C25D !important;
	box-shadow: 0 10px 25px rgba(226, 194, 93, 0.25);
	background: rgba(0, 0, 0, 0.5) !important;
}
.promo-banner-card:hover img {
	transform: scale(1.03);
}
.promo-condition-box {
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}
.promo-condition-box:hover {
	background: rgba(226, 194, 93, 0.1) !important;
	border-color: rgba(226, 194, 93, 0.4) !important;
}

/* --- Premium Game Page Section & Category Tabs Styles --- */
.btn-game-tab {
	background: rgba(0, 0, 0, 0.25);
	border: 2px solid rgba(226, 194, 93, 0.15);
	color: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	text-align: center;
}
.btn-game-tab:hover {
	background: rgba(226, 194, 93, 0.08);
	border-color: rgba(226, 194, 93, 0.4);
	color: #FFF;
	transform: translateY(-2px);
}
.btn-game-tab.active {
	background: linear-gradient(135deg, rgba(186, 149, 45, 0.25) 0%, rgba(226, 194, 93, 0.15) 100%);
	border-color: #E2C25D;
	color: #FBEA94;
	box-shadow: 0 4px 15px rgba(226, 194, 93, 0.25);
	font-weight: bold;
}
.btn-game-tab i {
	font-size: 22px;
	color: #E2C25D;
	transition: transform 0.3s ease;
}
.btn-game-tab:hover i, .btn-game-tab.active i {
	transform: scale(1.1);
}
.btn-game-tab span {
	font-size: 13px;
	font-weight: bold;
	display: block;
}

/* Game provider image card styling */
.provider-item-card {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid rgba(226, 194, 93, 0.25);
	box-shadow: 0 4px 15px rgba(0,0,0,0.4);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.provider-item-card img {
	width: 100%;
	height: auto;
	transition: transform 0.5s ease;
	display: block;
}
.provider-item-card:hover {
	transform: translateY(-6px) scale(1.03);
	border-color: #E2C25D;
	box-shadow: 0 10px 30px rgba(226, 194, 93, 0.4);
}
.provider-item-card:hover img {
	transform: scale(1.05);
}

/* Individual game item card styling */
.game-item-card {
	display: block;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(226, 194, 93, 0.2);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
	text-decoration: none;
	height: 100%;
}
.game-item-card:hover {
	transform: translateY(-5px);
	border-color: #E2C25D;
	box-shadow: 0 8px 22px rgba(226, 194, 93, 0.35);
	text-decoration: none;
}
.game-item-card .game-img-wrapper {
	position: relative;
	width: 100%;
	padding-top: 100%; /* 1:1 square ratio for individual games */
	overflow: hidden;
	background: rgba(0, 0, 0, 0.2);
}
.game-item-card .game-img-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.game-item-card:hover .game-img-wrapper img {
	transform: scale(1.08);
}
.game-item-card .game-title-text {
	padding: 8px 12px;
	font-size: 13px;
	font-weight: bold;
	color: #FFF;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: rgba(0,0,0,0.4);
	border-top: 1px solid rgba(226, 194, 93, 0.1);
}
.game-item-card:hover .game-title-text {
	color: #FBEA94;
}

.post-login-btn-deposit {
	background: linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%);
	color: #5C1010 !important;
	font-weight: bold;
	border: 1px solid #FFF;
	padding: 6px 16px;
	border-radius: 8px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.post-login-btn-deposit:hover {
	background: linear-gradient(180deg, #f5e48e 0%, #d1b14d 50%, #a68426 100%);
	color: #5C1010 !important;
	transform: translateY(-2px);
}

.post-login-btn-logout {
	background: rgba(0, 0, 0, 0.4);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 6px 14px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.post-login-btn-logout:hover {
	background: #dc3545;
	color: white !important;
	border-color: #dc3545;
}

/* Prevent content from hiding behind fixed nav on mobile */
@media (max-width: 767px) {
	body {
		padding-bottom: 60px !important;
	}
}

/* --- Main Action Menu --- */
.main-action-menu {
	background: linear-gradient(180deg, #022328 0%, #011417 100%);
	border: 1px solid rgba(90, 203, 253, 0.3);
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* --- Main Credit Box --- */
.main-credit-box {
	background: linear-gradient(180deg, #022328 0%, #011417 100%);
	border: 1px solid rgba(226, 194, 93, 0.4);
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(90, 203, 253, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.credit-box-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 12px;
	margin-bottom: 15px;
}

.credit-box-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: #A4D1E3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.credit-box-title i {
	color: #FBEA94;
}

.credit-refresh-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #A4D1E3;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-refresh-btn:hover {
	background: rgba(251, 234, 148, 0.15);
	border-color: #FBEA94;
	color: #FBEA94;
	transform: scale(1.08);
}

.credit-refresh-btn i {
	font-size: 0.85rem;
	transition: transform 0.6s ease;
}

.credit-refresh-btn:active i {
	transform: rotate(360deg);
}

.credit-refresh-spin i {
	animation: fa-spin 0.8s linear;
}

.credit-balance-wrapper {
	text-align: center;
	padding: 15px 0;
	margin-bottom: 15px;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.credit-balance-label {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.credit-balance-value {
	font-size: 2.3rem;
	font-weight: 700;
	color: #FBEA94;
	text-shadow: 0 0 15px rgba(251, 234, 148, 0.2);
	line-height: 1;
}

.credit-balance-currency {
	font-size: 1.1rem;
	font-weight: bold;
	color: #FBEA94;
	margin-left: 2px;
}

.credit-actions-wrapper {
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.btn-credit-action {
	flex: 1;
	border-radius: 10px;
	font-weight: bold;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
	padding: 10px 16px;
	white-space: nowrap;
}

.btn-credit-deposit {
	background: linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%);
	color: #5C1010 !important;
	border: 1px solid #FFF;
}

.btn-credit-deposit:hover {
	background: linear-gradient(180deg, #f5e48e 0%, #d1b14d 50%, #a68426 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(251, 234, 148, 0.35);
}

.btn-credit-withdraw {
	background: linear-gradient(180deg, #5ACBFD 0%, #0881B5 100%);
	color: white !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-credit-withdraw:hover {
	background: linear-gradient(180deg, #46bdf5 0%, #066a96 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(90, 203, 253, 0.35);
}

@media (max-width: 991px) {
	.main-credit-box {
		margin-top: 15px;
	}
}

.quick-menu-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px 10px;
}

@media (max-width: 560px) {
	.btn-login {
		max-width: 300px;
	}
	.btn-register {
		max-width: 300px;
	}
}

@media (max-width: 360px) {
	.quick-menu-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) {
	.quick-menu-grid {
		grid-template-columns: repeat(8, 1fr);
	}
}

.quick-menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: white;
	font-size: 0.75rem;
	transition: transform 0.2s;
}

.quick-menu-item:hover {
	transform: translateY(-3px);
	color: #FBEA94;
}

/* ป้องกันสคริปต์ภายนอก (เช่น PWA) บังคับใช้ display: block แล้วทำให้ layout พัง */
.quick-menu-item#installButton[style*="block"] {
	display: flex !important;
}

.quick-menu-icon {
	background-position: center;
    background-size: contain;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0px solid #A4D1E3;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.8rem;
	margin-bottom: 8px;
	position: relative;
	box-shadow: inset 0 0 10px rgba(90, 203, 253, 0.2);
}

.quick-menu-item:hover .quick-menu-icon {
	box-shadow: 0 0 15px rgba(251, 234, 148, 0.3);
}

.quick-menu-icon .badge-dot {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #022328;
}

.quick-menu-red-btn {
	background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
	color: white;
	border: none;
	border-radius: 8px;
	width: 100%;
	padding: 12px;
	font-size: 1.1rem;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	transition: background 0.3s;
}

.quick-menu-red-btn:hover {
	background: linear-gradient(180deg, #f05e4e 0%, #d14131 100%);
}

@media (max-width: 400px) {
	.quick-menu-icon {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}

	.quick-menu-item {
		font-size: 0.7rem;
	}
}

/* --- Game Iframe View --- */
.iframe {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #000;
	z-index: 99999;
	display: none;
	flex-direction: column;
}

.iframe iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.close-game {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 100000;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-game:hover {
	background: rgba(220, 38, 38, 0.8);
	transform: rotate(90deg) scale(1.1);
	border-color: transparent;
}

.close-game::before {
	content: "\f00d";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 16px;
}

/* --- Referral Modal Glass Styles --- */
.referral-modal-content {
	background: rgba(10, 32, 38, 0.96) !important;
	background-image: linear-gradient(135deg, rgba(10, 32, 38, 0.95) 0%, rgba(3, 54, 58, 0.95) 100%) !important;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 20px !important;
	color: #fff !important;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.referral-modal-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.referral-modal-title {
	background: linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 700;
}

.invite-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 10px;
}

.invite-tab {
	padding: 10px 20px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.9rem;
}

.invite-tab:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.invite-tab.active {
	background: linear-gradient(180deg, #FBEA94 0%, #E2C25D 50%, #BA952D 100%);
	border-color: transparent;
	color: #5C1010;
}

.referral-stats-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 15px;
	transition: transform 0.2s ease;
}

.referral-stats-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.05);
}

.share-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #fff !important;
	transition: transform 0.2s ease, filter 0.2s ease;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
	transform: scale(1.1);
	filter: brightness(1.2);
}

.share-btn.line {
	background: #06C755;
}

.share-btn.facebook {
	background: #1877F2;
}

.share-btn.messenger {
	background: #00B2FF;
}

.share-btn.telegram {
	background: #229ED9;
}

.share-btn.x {
	background: #000;
}

.share-btn.whatsapp {
	background: #25D366;
}

.referral-table {
	color: #fff !important;
	font-size: 0.85rem;
	margin-bottom: 0;
}

.referral-table th {
	background: rgba(255, 255, 255, 0.08) !important;
	color: #E2C25D !important;
	font-weight: 600;
	border-color: rgba(255, 255, 255, 0.1) !important;
	text-align: center;
}

.referral-table td {
	background: rgba(255, 255, 255, 0.02) !important;
	color: rgba(255, 255, 255, 0.85) !important;
	border-color: rgba(255, 255, 255, 0.06) !important;
}

.referral-table-container {
	max-height: 350px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
}

/* --- Floating Contact Button --- */
.floating-contact-btn {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #BA952D 0%, #E2C25D 50%, #BA952D 100%);
	box-shadow: 0 4px 15px rgba(186, 149, 45, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
	color: #5C1010 !important;
	text-decoration: none !important;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 2px solid white;
}

.floating-contact-btn i {
	font-size: 28px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.floating-contact-btn:hover {
	transform: scale(1.1) translateY(-3px);
	box-shadow: 0 8px 25px rgba(186, 149, 45, 0.6);
	background: linear-gradient(135deg, #E2C25D 0%, #FBEA94 50%, #BA952D 100%);
	color: #5C1010 !important;
}

.floating-contact-btn::after {
	content: "ติดต่อเรา";
	position: absolute;
	right: 70px;
	background: rgba(1, 20, 23, 0.9);
	border: 1px solid #BA952D;
	color: #FBEA94;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.floating-contact-btn:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Pulsing badge notification on the contact button */
.floating-contact-btn .pulse-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 14px;
	height: 14px;
	background-color: #ff3b30;
	border-radius: 50%;
	border: 2px solid white;
}

.floating-contact-btn .pulse-badge::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #ff3b30;
	animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

@media (max-width: 767.98px) {
	.floating-contact-btn {
		bottom: 85px; /* Above the mobile bottom navigation bar */
		right: 20px;
		width: 55px;
		height: 55px;
	}
	.floating-contact-btn i {
		font-size: 24px;
	}
	.floating-contact-btn::after {
		display: none; /* Hide hover text on mobile since no hover exists */
	}
}


/* Transaction History Section */
.history-section { background-color: #000; border-radius: 10px; padding: 1.5rem; border: 1px solid #222; }
.history-section h5 { margin-bottom: 1rem; font-size: 1.25rem; }
.history-tabs { display: flex; gap: 10px; margin-bottom: 1.5rem; border-bottom: 1px solid #222; padding-bottom: 1rem; }
.history-tab-item { padding: 0.5rem 1rem; background:rgba(255, 255, 255, 0.05); color: #ccc; cursor: pointer; border-radius: 8px; transition: background-color 0.2s, color 0.2s; font-weight: 500; text-decoration: none; }
.history-tab-item.active, .history-tab-item:hover { color: #fff; background-color: #5ACBFD; text-decoration: none; }

.history-filter { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 1rem; }
.history-filter label { font-size: 0.9rem; color: #ccc; }
.history-filter input[type="date"] { background-color: #1a1a1a; border: 1px solid #333; color: #fff; border-radius: 5px; padding: 0.3rem 0.6rem; font-size: 0.9rem; }
/* Style date picker icon */
.history-filter input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }

.history-table { width: 100%; color: #ccc; }
.history-table th, .history-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #222; font-size: 0.9rem; vertical-align: middle;}
.history-table th { color: #fff; font-weight: 500; }
.history-table td .btn-replay { background: #c0a175; border: none; color: #000; font-size: 0.8rem; padding: 3px 8px; border-radius: 5px; }
 /* Adjust column widths if needed */
 .history-table th:nth-child(1), .history-table td:nth-child(1) { width: 30%; } /* Game Name */
 .history-table th:nth-child(2), .history-table td:nth-child(2) { width: 15%; } /* Type */
 .history-table th:nth-child(3), .history-table td:nth-child(3) { width: 25%; } /* Last Play */
 .history-table th:nth-child(4), .history-table td:nth-child(4) { width: 15%; text-align: center; } /* Status/Manage */
 .history-table th:nth-child(5), .history-table td:nth-child(5) { width: 15%; text-align: center; } /* Action Button */
 
 /* Hide content for non-active history tabs */
 .history-content { display: none; }
 .history-content.active { display: block; }