input {
	background-color: transparent;
	flex: 1 1 0%;
	height: 100%;
}

/* Cập nhật container để hiển thị ở giữa màn hình */
.toast-message.swal2-container {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	transform: translate(-50%, -50%) !important;
	z-index: 9999 !important;
}

/* ── Container overlay ───────────────────────────────────────── */
.alert2.swal2-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;

    /* Thêm: giới hạn chiều rộng tối đa và padding cho mobile */
    width: 90vw !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;

    /* Bỏ padding mặc định của swal2 có thể gây lệch */
    padding: 0 !important;
}

/* ── Popup bên trong ─────────────────────────────────────────── */
.alert2.swal2-container .swal2-popup {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.5rem !important;
}

/* ── Tablet (max 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
    .alert2.swal2-container {
        width: 92vw !important;
        max-width: 92vw !important;
    }

    .alert2.swal2-container .swal2-title {
        font-size: 1.2rem !important;
    }

    .alert2.swal2-container .swal2-html-container {
        font-size: 0.95rem !important;
    }

    .alert2.swal2-container .swal2-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .alert2.swal2-container .swal2-confirm,
    .alert2.swal2-container .swal2-cancel {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        font-size: 0.9rem !important;
        padding: 0.5rem 0.8rem !important;
    }
}

/* ── Mobile nhỏ (max 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    .alert2.swal2-container {
        width: 96vw !important;
        max-width: 96vw !important;
        /* Trên mobile nhỏ đẩy lên cao hơn một chút tránh bàn phím ảo */
        top: 45% !important;
    }

    .alert2.swal2-container .swal2-popup {
        padding: 1rem !important;
    }

    .alert2.swal2-container .swal2-icon {
        width: 4rem !important;
        height: 4rem !important;
        margin: 0.5rem auto !important;
    }

    .alert2.swal2-container .swal2-title {
        font-size: 1.05rem !important;
        padding: 0 !important;
        margin: 0.5rem 0 !important;
    }

    .alert2.swal2-container .swal2-html-container {
        font-size: 0.88rem !important;
        margin: 0.3rem 0 !important;
    }

    .alert2.swal2-container .swal2-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-top: 0.8rem !important;
    }

    .alert2.swal2-container .swal2-confirm,
    .alert2.swal2-container .swal2-cancel {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.55rem !important;
    }

    .alert2.swal2-container .swal2-close {
        font-size: 1.2rem !important;
        top: 0.4rem !important;
        right: 0.4rem !important;
    }
}
/* Đảm bảo popup hiển thị đúng */
.toast-message .swal2-popup.swal2-toast {
	width: auto !important;
	min-width: 300px !important;
	max-width: 500px !important;
}

/* Ẩn/hiện thông báo */
.toast-message.hidden {
	display: none !important;
}

/* Animation khi hiển thị */
.toast-message:not(.hidden) {
	animation: fadeInScale 0.3s ease-in-out !important;
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.8);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* Style cho message title */
.toast-message .swal2-title {
	font-size: 14px !important;
	padding: 12px 16px !important;
	color: #fff !important;
	text-align: left !important;
	word-break: break-word !important;
}

/* Style cho error message */
.toast-message--error .swal2-popup {
	background: rgb(220, 55, 65) !important;
	border-left: 4px solid #f27474 !important;
}

/* Style cho success message */
.toast-message--success .swal2-popup {
	background: rgb(72, 187, 120) !important;
	border-left: 4px solid #a5dc86 !important;
}

/* Style cho warning message */
.toast-message--warning .swal2-popup {
	background: rgb(237, 137, 54) !important;
	border-left: 4px solid #f8bb86 !important;
}

/* Style cho info message */
.toast-message--info .swal2-popup {
	background: rgb(63, 195, 238) !important;
	border-left: 4px solid #3fc3ee !important;
}

.vip-account-block[data-v-ecb6b558] {
	background: linear-gradient(90deg, #10296f, #051236);
	position: relative;
}

.vip-account-inner.rank-standard {
	box-shadow: inset 0 2px 34.8px #798ed22e;
}

.vip-account-inner {
	background-image: url('https://fc88.today/assets/images/ultimate-club/vip-account/vip-bg-pattern.png');
	background-position: top;
	background-repeat: repeat-x;
	background-size: 51px;
}

.user-logo {
	align-items: center;
	border-radius: 9999px;
	display: flex;
	height: 34px;
	justify-content: center;
	width: 34px;
	--tw-bg-opacity: 1;
	background-color: rgb(155 7 96 / var(--tw-bg-opacity));
	font-size: 22.4px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 34px;
	text-transform: uppercase;
}

.vip-1day {
	background: #242633;
	border-top: 1px solid #494d5f;
	color: #fbf7f7;
	display: flex;
	font-size: 11px;
	padding: .25rem .5rem;
	position: relative;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	padding: 0px;
	overflow-y: auto !important;
	height: auto !important;
	position: static !important;
}

.container {
	margin-left: auto;
	margin-right: auto;
	padding-left: 12px;
	padding-right: 12px;
	width: 100%;
}

.container-2 {
	margin-left: auto;
	margin-right: auto;
	padding-left: 0px;
	padding-right: 0px;
	width: 100%;
}

h1 {
	text-align: center;
	color: white;
	margin-bottom: 30px;
	font-size: 36px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-section {
	background: transparent;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-btn {
	background: none;
	border: none;
	color: #FFFFFF;
	font-size: 16px;
	padding: 6px 10px;
	cursor: pointer;
	position: relative;
	transition: color .2s;
}

/* Khi được chọn */
.filter-btn:hover,
.filter-btn.active {
	color: #0ebfff;
}

/* Tùy chọn: thêm gạch chân khi active */
.filter-btn.active::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: #0ebfff;
	border-radius: 2px;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.game-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.game-card.closed {
	opacity: 0.6;
	pointer-events: none;
}

.game-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-info {
	padding: 15px;
}

.game-name {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin-bottom: 2px;
}

.game-type {
	display: inline-block;
	padding: 4px 12px;
	background: #e3f2fd;
	color: #1976d2;
	border-radius: 12px;
	font-size: 12px;
	margin-bottom: 2px;
}

.game-status {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #666;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.status-dot.open {
	background: #4caf50;
}

.status-dot.closed {
	background: #f44336;
}

.loading {
	text-align: center;
	color: white;
	font-size: 20px;
	padding: 40px;
	width: 500px;
}

.error {
	background: #f44336;
	color: white;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
}

.refresh-btn {
	/*background: #4caf50;*/
	/*color: white;*/
	/*border: none;*/
	/*padding: 12px 24px;*/
	/*border-radius: 5px;*/
	/*cursor: pointer;*/
	/*font-size: 16px;*/
	margin-left: auto;
}

.refresh-btn:hover {
	background: #45a049;
}

.hotgames-grid-container {
	width: 100%;
	overflow: hidden;
}

.hotgames-grid-swiper {
	width: 100%;
}

.hotgames-grid-wrapper {
	display: grid;
	gap: 8px;
	width: 100% !important;
}

/* Mobile: 3 cột cố định */
@media (max-width: 1279px) {
	.hotgames-grid-wrapper {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop: 5 cột */
@media (min-width: 1280px) {
	.hotgames-grid-wrapper {
		grid-template-columns: repeat(5, 1fr);
		gap: 16px;
		max-width: 1200px;
		margin: 0 auto;
	}
}

.hotgames-grid-slide {
	width: 100% !important;
	margin: 0 !important;
}

.hotgames-grid-item {
	position: relative;
	width: 100%;
	cursor: pointer;
	border-radius: 12px;
	transition: all 0.2s ease-in-out;
}

.hotgames-grid-item:hover {
	transform: translateY(-4px);
}

.hotgames-grid-image-wrapper {
	position: relative;
	aspect-ratio: 223/291;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #2a2d3e;
}

@media (min-width: 1280px) {
	.hotgames-grid-image-wrapper {
		border-radius: 12px;
	}
}

.hotgames-grid-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hotgames-grid-hover-overlay {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hotgames-grid-item:hover .hotgames-grid-hover-overlay {
	opacity: 1;
}

.hotgames-grid-play-btn {
	width: 48px;
	height: 48px;
	cursor: pointer;
	transition: transform 0.3s ease;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1280px) {
	.hotgames-grid-play-btn {
		width: 64px;
		height: 64px;
	}
}

.hotgames-grid-item:hover .hotgames-grid-play-btn {
	transform: scale(1.1);
}

.hotgames-grid-play-btn::before {
	content: '▶';
	color: #1a1d2e;
	font-size: 20px;
	margin-left: 3px;
}

@media (min-width: 1280px) {
	.hotgames-grid-play-btn::before {
		font-size: 28px;
		margin-left: 4px;
	}
}

.hotgames-grid-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 4px;
}

.hotgames-grid-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hotgames-grid-game-name {
	display: flex;
	align-items: center;
	font-size: 11px;
	font-weight: 400;
	color: #fbfdff;
	line-height: 14px;
}

@media (min-width: 1280px) {
	.hotgames-grid-game-name {
		font-size: 14px;
		line-height: 18px;
	}
}

.hotgames-grid-game-name span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: capitalize;
}

.hotgames-grid-game-type {
	font-size: 9px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 12px;
	color: #A2ACC4;
}

@media (min-width: 1280px) {
	.hotgames-grid-game-type {
		font-size: 10px;
		line-height: 14px;
	}
}

.loading {
	text-align: center;
	padding: 40px;
	color: #fbfdff;
	font-size: 16px;
}

.error {
	text-align: center;
	padding: 20px;
	color: #ff4444;
	background: rgba(255, 68, 68, 0.1);
	border-radius: 8px;
	margin: 20px 0;
}

.hotgames-grid-status-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 10;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-active {
	background: rgba(255, 0, 0, 0.85);
	color: #fff;
}

.status-inactive {
	display: none;
}

.casino-grid-container {
   width: 100%;
   overflow: hidden;
}

.casino-grid-wrapper {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 8px;
   width: 100%;
}

@media (min-width: 1280px) {
   .casino-grid-wrapper {
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      max-width: 1200px;
      margin: 0 auto;
   }
}

.casino-grid-slide {
   width: 100%;
}

.casino-grid-slide a {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-decoration: none;
   color: inherit;
}

.casino-grid-slide .img-wrapper {
   width: 100%;
   aspect-ratio: 1 / 1;
   background-color: #000;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   border-radius: 4px;
}

@media (min-width: 1280px) {
   .casino-grid-slide .img-wrapper {
      border-radius: 12px;
   }
}

.casino-grid-slide img {
   max-width: 100%;
   max-height: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
   display: block;
   transition: transform 0.3s ease;
}

.casino-grid-slide .item-name {
   margin-top: 6px;
   text-align: center;
   font-size: 13px;
   width: 100%;
}

.casino-grid-slide a:hover img {
   transform: scale(1.05);
}

.casino-grid-slide a:hover img {
	transform: scale(1.02);
}

.promotion-swiper-container {
	width: 100%;
	overflow: hidden;
}

.promotion-swiper-wrapper {
	display: flex;
	gap: 16px;
}

/* Mobile: Horizontal scroll */
@media (max-width: 1279px) {
	.promotion-swiper-container {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
		padding: 0 0px;
	}

	.promotion-swiper-container::-webkit-scrollbar {
		height: 6px;
	}

	.promotion-swiper-container::-webkit-scrollbar-track {
		background: transparent;
	}

	.promotion-swiper-container::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.3);
		border-radius: 3px;
	}

	.promotion-swiper-wrapper {
		width: max-content;
	}

	.promotion-slide {
		flex: 0 0 auto;
		max-width: 380px;
	}

	.promotion-item {
		width: 100%;
	}
}

/* Desktop: Grid layout 3 columns */
@media (min-width: 1280px) {
	.promotion-swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
		max-width: 1200px;
		margin: 0 auto;
	}

	.promotion-slide {
		width: 100%;
	}
}

/* Desktop - chiều cao mặc định */
.mobile-banner-slider {
	width: 100%;
	height: 500px;
	position: relative;
	overflow: hidden;
}

.mobile-banner-slider .swiper-wrapper {
	height: 100%;
}

.mobile-banner-slider .swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	height: 100%;
}

.mobile-banner-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Navigation buttons */
.mobile-banner-next,
.mobile-banner-prev {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-banner-next::after,
.mobile-banner-prev::after {
	font-size: 20px;
	font-weight: bold;
	color: #333;
}

.mobile-banner-next {
	right: 10px;
}

.mobile-banner-next::after {
	content: '›';
}

.mobile-banner-prev {
	left: 10px;
}

.mobile-banner-prev::after {
	content: '‹';
}

/* Pagination */
.mobile-banner-pagination {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}

.mobile-banner-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
}

.mobile-banner-pagination .swiper-pagination-bullet-active {
	background: #fff;
}

/* Mobile - giảm chiều cao xuống 1/3 */
@media (max-width: 768px) {
	.mobile-banner-slider {
		height: 180px;
		/* Khoảng 1/3 chiều cao desktop (500px/3 ≈ 166px) */
	}

	.mobile-banner-next,
	.mobile-banner-prev {
		width: 30px;
		height: 30px;
	}

	.mobile-banner-next::after,
	.mobile-banner-prev::after {
		font-size: 16px;
	}
}

.coin-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
}

.arrow-icon {
	width: 100px;
	height: 45px;
}

.coin-icon {
	width: 60px;
	height: 60px;
}

/* Dropdown styles */
.dropdown__value {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1A1C28;
	border: 1px solid #2B2E3E;
	border-radius: 8px;
	padding: 12px;
	transition: all 0.3s;
}

.dropdown__value:hover {
	border-color: #ffdb21;
}

.dropdown__menu {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown__menu--item {
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s;
	border-bottom: 1px solid #2B2E3E;
}

.dropdown__menu--item:last-child {
	border-bottom: none;
}

.dropdown__menu--item:hover {
	background: #2B2E3E;
}

.dropdown__menu--item.active {
	background: #2B2E3E;
	border-left: 3px solid #ffdb21;
}

/* Token icon styles */
.token-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: contain;
}

/* Scrollbar for dropdown */
.dropdown__menu::-webkit-scrollbar {
	width: 6px;
}

.dropdown__menu::-webkit-scrollbar-track {
	background: #1A1C28;
}

.dropdown__menu::-webkit-scrollbar-thumb {
	background: #2B2E3E;
	border-radius: 3px;
}

.dropdown__menu::-webkit-scrollbar-thumb:hover {
	background: #ffdb21;
}

/* Button styles */
.button-gradient {
	background: linear-gradient(90deg, #ffdb21 0%, #ffa500 100%);
}

.button-gradient:hover {
	opacity: 0.9;
}

/* Input styles */
input[type="number"] {
	outline: none;
}

input[type="number"]:focus {
	border-color: #ffdb21;
}

/* Loading animation */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Ẩn modal mặc định */
.login-modal {
	display: none;
}

/* Hiển thị modal khi có class modal-active */
.login-modal.modal-active {
	display: block;
}

/* Animation cho modal */
.login-modal.modal-active .modal-backdrop {
	animation: fadeIn 0.3s ease;
}

.login-modal.modal-active .modal-content {
	animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Đảm bảo body không scroll khi modal mở */
body.modal-open {
	overflow: hidden;
}

.banner-swiper {
	width: 100%;
	height: 400px;
}

.banner-swiper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.captcha-box {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.hidden {
	opacity: 0;
	pointer-events: none;
}

.webview-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.webview-content {
	width: 90vw;
	height: 90vh;
	background: #fff;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}

.webview-content iframe {
	width: 100%;
	height: 100%;
}

.close-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	background: #ff4d4d;
	border: none;
	color: white;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
}

.hidden {
	display: none;
}