/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

/* HTML */
* {
	font-family: "Noto Sans Thai", sans-serif;
}

a {
	color: #000;
	text-decoration: none;
    background-color: transparent;
}

a:hover {
	color: #0078ff;
}

/* NAVBAR */
.bg-navbar {
	/*background: rgb(2,0,36);
	background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0, 120, 255,1) 50%, rgba(2,0,36,1) 100%);*/
	background-color: #0078ff;
	background-image: radial-gradient(circle farthest-side at center bottom,#0078ff,#002466 125%);
}

.btn-register {
    color: #fff !important;
    background: #0078ff;
	/*background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0, 120, 255,1) 55%);*/
	border-color: #0078ff;
}

.sub-navbar {
	/*background-position:center;*/
	background-size:cover;
	background-image:url(/assets/images/bg-sub.png);
	margin-top: -20px;
}

.pb-5 {
    padding-bottom: 5rem !important;
}
.pt-5 {
    padding-top: 5rem !important;
}

.navbar-dark .navbar-nav .nav-link {
	color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .nav-link:hover {
    color: #0078ff !important;
	/*border-bottom: 2px solid #fff;*/
}

.money-block {
	background-color:#fff; 
	color:#000 !important;
	border-radius: .25rem;
}

/* SILDE */
.carousel-font {
	text-shadow: rgba(0,0,0,.9) 0 1px 2px;
}

@media screen and (min-width: 769px) {
    .carousel-text-body {
		position: absolute; 
		z-index: 99; 
		
		padding-top: 10.5%;
		padding-left: 15%;
		padding-right: 10%;
		padding-bottom: 10%;
	}
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    .carousel-text-body {
		position: absolute; 
		z-index: 99; 
		
		padding-top: 5%;
		padding-left: 15%;
		padding-right: 10%;
		padding-bottom: 10%;
	}
}

@media only screen and (max-device-width: 480px) {
    .carousel-text-body {
		position: absolute; 
		z-index: 99; 
		
		padding-top: 7%;
		padding-left: 15%;
		padding-right: 10%;
		padding-bottom: 10%;
	}
	
	.carousel-text-moblie {
		margin-bottom: 10%;
	}
}

/* HOME */
.game-box {
	box-shadow:0 5px 10px -5px rgba(0, 120, 255,0.8);
}

/* CONTENT */
.small-text {
	color: #4c5256;
	font-size:14px;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.img-details {
	border-radius: 10px;
	-webkit-border-radius: 10px;
}

.product-image {
    display: block;
    border-radius: 15px;
    margin: auto;
    max-width: 100%;
}

.product-title {
    font-size: 13px;
    padding-top: 7px;
    margin: auto;
	max-width: 100%;
}

.text-gray {
	color: #929292 !important;
}

.text-red, .required {
	color: #f23838 !important;
}

.bg-menu-list {
	background: rgba(78,84,200,.03);
}

/* BUTTON */
.btn-facebook {
    color: #fff;
    background-color: #3b5998;
}

.btn-facebook:hover {
    color: #fff;
    background-color: #3b5998;
}

.btn-google {
    color: #fff;
    background-color: #EA4335;
}

.btn-google:hover {
    color: #fff;
    background-color: #EA4335;
}

.btn-discord {
    color: #fff;
    background-color: rgba(67, 56, 202);
}

.btn-discord:hover {
    color: #fff;
    background-color: rgba(67, 56, 202);
}

.btn-line {
    color: #fff;
    background-color: #00B900;
}

.btn-line:hover {
    color: #fff;
    background-color: #00B900;
}

.btn:hover {
	box-shadow:0 5px 10px -5px rgba(0,0,0,0.4);	
}

.list-group-item.active {
    z-index: 2;
    color: rgba(0, 120, 255,1);
	background: rgb(255,255,255);
    border-color: rgba(0,0,0,.125);
}

.list-group-item {
	padding: 1rem 1.5rem;
}

/* PAGE PAYMENT */
.payment-form {
    padding:8px;
    display:block;
    text-align:center;
    border:0;
    cursor:pointer;
    color:#666;
    position:relative;
    box-shadow:0 2px 6px 0 rgba(0,0,0,.07);
    width:100%;
    -o-transition:all .3s ease-in;
    -webkit-transition:all .3s ease-in;
    transition:all .3s ease-in;
    border: 2px solid transparent;
	border-color: rgba(33, 37, 41, 0.1);
	border-radius: 5px;
}
.payment-select:hover > .payment-form,.payment-select:focus > .payment-form {
	border-color: rgba(0, 120, 255,1);
    color:#fff;
    cursor:pointer;
}

.payment-select-active > .payment-form {
    border-color: rgba(0, 120, 255,1);
    color:#fff;
    cursor:pointer;
}

.qrcode .title {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #fff;
    padding: 15px;
    font-size: 19px;
    background-color: #003d6b;
}
.qrcode .body {
    padding: 25px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid #ebebeb;
}
.qrcode .body h2,
.qrcode .body p {
    color: #4c5256;
}
.qrcode .body h2 {
    margin-top: 15px;
    font-weight: 700;
    font-size: 28px;
}
.qrcode .body p {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}
.tranfer-amount {
    font-size: 18px;
    margin-bottom: 0;
}
.bank-space {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.time-out {
    font-size: 17px;
    color: #dc143c;
}
#water {
    position: absolute;
    top: 300px;
    left: 0;
    right: 0;
    opacity: 0.8;
    color: red;
    font-weight: 600;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
}

@media screen and (min-device-width: 481px) and (max-device-width: 768px) { 
    #water {
		top: 350px;
	}
}

@media only screen and (max-device-width: 480px) {
	#water {
		top: 350px;
	}
}

/* BUY CARD PAGE */
.card {
	box-shadow:0 5px 10px -5px rgba(0,0,0,0.4);	
	border-bottom: 3px solid rgba(0, 120, 255,1);
}

.box-buy .number {
	background-color: rgba(0, 120, 255,1);
	border-radius: 50%;
	width: 1.5em;
	height: 1.5em;
	position: absolute;
	left: 1em; 
	padding-top: 2px; 
	padding-left: 12px; 
	color: #fff; 
	margin-left: -5px; 
	margin-top: -4px;
}

.box-buy .title {
	margin-left:45px;
}

.card-form {
    padding:8px;
    display:block;
    text-align:center;
    border:0;
    cursor:pointer;
    color:#666;
    box-shadow:0 2px 6px 0 rgba(0,0,0,.07);
    width:100%;
    -o-transition:all .3s ease-in;
    -webkit-transition:all .3s ease-in;
    transition:all .3s ease-in;
    border: 2px solid transparent;
	border-color: rgba(33, 37, 41, 0.1);
	border-radius: 5px;
	
	position: relative;
	overflow: hidden;
}

.card-select:hover > .card-form,.card-select:focus > .card-form {
	border-color: rgba(0, 120, 255,1);
    cursor:pointer;
}

.card-select-active > .card-form {
    border-color: rgba(0, 120, 255,1);
    cursor:pointer;
}

.card-form .selected {
	position: absolute;
	left: -3%;
	top: -37%;
	background-color: rgba(0, 120, 255,1);
	color: #fff;
	transform: rotate(40deg);
	height: 80px;
	width: 35px;
}

.card-form .selected .text {
	margin-top: 10%;
	margin-left: -30%;
	transform: rotate(-40deg);
}

@media only screen and (max-width: 600px) {
	.card-form .selected .text {
		margin-top: 40%;
		margin-left: -15%;
	}
}

@media only screen and (max-width: 768px) {
	.card-form .selected .text {
		margin-top: 30%;
		margin-left: -20%;
	}
}

.card-online div {
    margin-top: 15px;
}

.card-online img {
	border-radius: 5px;
}

.card-online a {
	color: #000;
	text-decoration: none;
    background-color: transparent;
}

.card-online a:hover {
	color: rgba(0, 120, 255,1);
}

.card-online img {
	box-shadow:0 5px 10px -5px rgba(0, 120, 255, 0.6);	
	border-bottom: 3px solid rgba(0, 120, 255,1);
}

.menu-card {
	border-radius: 5px;
	box-shadow:0 5px 10px -5px rgba(0, 120, 255, 0.6);	
	border: 1px solid rgba(0, 120, 255, 0.5);
}

/* BUY */
.product-title {
	font-size:16px;
	margin-bottom:10px;
}

.badge-label  {
	width: 50px;
	height: 57px;
	font-size: 12px;
	font-weight: 700;
	background: url(/assets/images/badge.png) no-repeat;
	margin-top: -10%;
	margin-left: 30%;
	color: #FFF;
	padding-top: 5%;
}

@media only screen and (max-device-width: 480px) {
	.badge-label  {
		margin-left: 10%;
	}
}
/* FOOTER */
footer a {
    color: #666;
	text-decoration: none;
    background-color: transparent;
}

footer a:hover {
	color: rgba(0, 120, 255,1);
}

footer .description {
	background: #fff;
	color: #666;
	box-shadow: 0 0 15px rgba(0,0,0,.07059);
}

footer .text-desc {
	text-align:justify;
}

footer .text-header {
	padding-bottom: 8px;
	border-bottom: 2px solid #0078ff;
}

/* KHANTHEP */
.header-top {
    height: 44px;
    background-color: #0078ff;
    background-image: radial-gradient(circle farthest-side at center bottom,#0078ff,#002466 125%);
    padding: 12px;
    color: #fff;
}

.header-badge > a, .header-badge > a:hover {
	color:#fff !important;
}

.header-badge-left {
    text-align: left;
}

.header-badge-right {
    text-align: right;
}

.header-badge-left div {
    font-size: 13px;
}

.header-top .auth-link {
    color: #fff;
    transition: all .5s ease;
}

.autorefill {
    margin-top: -5px;
    margin-bottom: -25px;
    background-image: url(/assets/images/foot-auto-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0078ff;
   /*position: relative;*/
}

.autorefill .autorefill-inner {
    /*position: relative;*/
    overflow: hidden;
}

.autorefill .autorefill-inner img {
    width: 100%;
    transition: all .55s ease;
    /*position: absolute;*/
}	

.autorefill .re-text {
    padding: 75px;
}

.autorefill .re-text .re-title-en {
    font-size: 15px;
    color: #fff;
    margin-bottom: 15px;
}

.autorefill .re-text .re-title-th {
    color: #fff;
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
}

.autorefill .re-text .re-title-small {
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
    line-height: 28px;
}

.autorefill .re-text .re-space {
    margin-top: 5px;
    height: 3px;
    width: 54px;
    background-color: #0078ff;
}

.autorefill .re-text .re-btn {
    margin-top: 25px;
}

.btn-img img {
    transition: all .5s ease;
    border-radius: 5px;
}

/*.d-xs-block .mb-grid {
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.125);
    background: #fff;
    text-align: center;
}*/

.d-xs-block .mb-grid {
	display: block;
    border-radius: 10px;
    background-color: #008aff;
	color:#FFF !important;
    text-align: center;
}

.box-m {
    display: block;
    border-radius: 10px;
    background-color: #008aff;
	color:#FFF !important;
    text-align: center;
	margin: 10px;
}

.box-m:hover {
	box-shadow: 0 0 6px #008aff;
}

.box-m > a {
	color: #FFF;
}

.box-m > a:hover {
	color: #FFF;
}

.foot-guarantee {
    margin-top: 25px;
    color: #292929;
    background-color: #fff;
    border-bottom: 2px solid #f3f3f3;
    background-image: url(/assets/guarantee-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.foot-guarantee h4 {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.foot-guarantee small {
    font-size: 12px;
    color: #929292;
}

.foot-guarantee img {
    margin-top: 25px;
}

.foot-guarantee .body-guarantee {
    padding: 25px;
}

.foot-guarantee-title {
    color: #0078ff;
    font-size: 26px;
    border-bottom: 1px dotted #e1e1e1;
}

.ml-auto, .mx-auto {
    margin-left: auto !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

/* Accept Cookies */
.acceptCookie.hide {
  display: none;
}

.acceptCookie {
	position: fixed;
	bottom: 0;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
}

.acceptCookie .container {
	max-width: 1040px;
	margin-left: auto;
	margin-right: auto;
	max-width: calc(1040px - 48px);
	background-color: #FFFFFF;
	margin-bottom: 1.5rem;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
	padding: 1.5rem;
	border-radius: .5rem;
	font-size: .875rem;
	display: flex;
	align-items: center;
	box-shadow: 0 5px 10px -5px rgba(0,0,0,0.4);
	border-bottom: 3px solid rgba(56,52,193,1);
}

.acceptCookie .container .msg {
	padding-left: 2rem;
	padding-right: 2rem;
}


@media only screen and (max-width: 767px) {
    .border-main {
        border-radius: 4px;
        padding: 5px;
        padding-top: 15px;
        padding-bottom: 15px;
        background-color: #343a40;
    }
    .border-main img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .border-main a:hover {
        color: #7a58bf;
    }
}
@media only screen and (min-width: 767px) {
    .border-main {
        border-radius: 6px;
        padding: 5px;
        padding-top: 20px;
        padding-bottom: 20px;
        background-color: #343a40;
    }
    .border-main img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    .border-main a:hover {
        color: #7a58bf;
    }
}

/* Modern Home Page Styles */
.hero-carousel {
    margin-bottom: 2rem;
    padding: 0 15px;
}
.hero-carousel .card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}
.hero-carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.hero-carousel .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.hero-carousel .card-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.hero-carousel .card-text {
    font-size: 1rem;
    opacity: 0.9;
}
.hero-carousel .btn-action {
    background-color: #0078ff;
    color: white;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}
.hero-carousel .btn-action:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}
.hero-carousel .stretched-link {
    display: inline-block;
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .hero-carousel .card-title {
        font-size: 1.25rem;
    }
    .hero-carousel .card-text {
        font-size: 0.875rem;
    }
    .hero-carousel .btn-action {
        padding: 0.4rem 1.2rem;
        font-size: 0.875rem;
    }
}

.section-heading {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.section-heading .subtitle {
    color: #0078ff;
    font-size: 0.95rem;
    margin-left: 15px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #0078ff;
    border-radius: 2px;
}

.game-menu-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.game-menu-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0078ff, #00c6ff);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.game-menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 120, 255, 0.2);
    border-color: transparent;
}

.game-menu-card:hover:before {
    opacity: 1;
}

.game-menu-card:hover .card-title {
    color: #fff;
}

.game-menu-card .card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.game-menu-card:hover .card-icon {
    transform: scale(1.1);
}

.game-menu-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.featured-game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.featured-game-card .card-img {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-game-card .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-game-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.btn-action {
    background: #0078ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

.btn-action:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-3px);
}

.featured-game-card .card-price {
    color: #0078ff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.featured-game-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.flash-sale-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.flash-sale-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.flash-sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    z-index: 2;
}

.flash-sale-card .img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-radius: 8px 8px 0 0;
    padding: 15px;
}

.flash-sale-card img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.flash-sale-card:hover img {
    transform: scale(1.08);
}

.flash-sale-card .card-content {
    padding: 20px;
}

.flash-sale-card .game-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.flash-sale-card .game-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.flash-sale-card .price {
    color: #0078ff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.flash-sale-card .progress-container {
    margin-top: 15px;
}

.progress-modern {
    height: 8px;
    background: #f1f2f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-modern .progress-bar {
    background: linear-gradient(45deg, #0078ff, #00c6ff);
    border-radius: 4px;
    height: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.progress-label .sales {
    font-weight: 600;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-card .img-container {
    height: 220px;
    overflow: hidden;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 16px 16px 0 0;
}

.news-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-card .content {
    padding: 20px;
}

.news-card .news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.news-card .news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-card .news-date {
    color: #0078ff;
    font-size: 0.85rem;
    margin-top: 15px;
    display: block;
}

.foot-guarantee {
    background-image: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    padding: 50px 0;
    margin-top: 50px;
}

.foot-guarantee-title {
    color: #0078ff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.feature-item {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

.autorefill {
    background-image: linear-gradient(135deg, #0078ff, #00c6ff);
    color: #fff;
    margin-top: 0;
    padding: 70px 0;
}

.autorefill .re-title-en {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.autorefill .re-title-th {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.autorefill .re-title-small {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.autorefill .btn-light {
    background: #fff;
    color: #0078ff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.autorefill .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        left: 30px;
        bottom: 30px;
        padding: 20px;
        max-width: 70%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .autorefill .re-title-th {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        padding: 0 15px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        left: 20px;
        bottom: 20px;
        padding: 15px;
        max-width: 80%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .btn-action {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .autorefill .re-title-th {
        font-size: 2rem;
    }
    
    .autorefill .re-title-small {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        left: 15px;
        bottom: 15px;
        padding: 12px;
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .game-menu-card .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .game-menu-card .card-title {
        font-size: 0.9rem;
    }
    
    .feature-item img {
        width: 60px;
        height: 60px;
    }
}

/* Header Styles */
.main-header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
}

.top-header {
    background-color: #0078ff;
    background-image: radial-gradient(circle farthest-side at center bottom,#0078ff,#002466 125%);
    padding: 5px 0;
    display: flex;
    align-items: center;
    height: 48px;
}

.top-header .container {
    display: flex;
    align-items: center;
}

.desktop-top-menu .row {
    align-items: center;
}

.top-link, .auth-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0 15px;
}

.top-link:hover, .auth-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.top-link i, .auth-link i, .user-dropdown-toggle i, .credit-display i, .credit-badge i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.credit-display, .credit-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    padding: 0 15px;
}

.user-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0 15px;
}

.user-dropdown-toggle:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.mobile-top-menu {
    font-size: 0.9rem;
    width: 100%;
}

.mobile-top-menu .row {
    margin: 0;
}

.mobile-top-menu .col {
    padding: 5px 0;
}

.top-link:hover {
    color: #f0f0f0;
    transform: translateY(-2px);
}

.desktop-top-menu {
    width: 100%;
    font-size: 0.9rem;
    margin-left: 5px;
}

.support-link, .auth-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-link:hover, .auth-link:hover {
    color: #f0f0f0;
    transform: translateY(-2px);
}

.divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.credit-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.credit-display {
    display: inline-block;
    font-weight: 500;
}

.credit-amount {
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 5px;
}

.user-dropdown-toggle:hover, .user-dropdown-toggle:focus {
    color: #f0f0f0;
    text-decoration: none;
}

.user-dropdown-menu {
    width: 280px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    right: 0 !important;
    left: auto !important;
    margin-top: 15px;
}

.profile-pic {
    width: 90%;
    border-radius: 50%;
    border: 2px solid #0078ff;
}

.profile-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.profile-text {
    font-size: 0.85rem;
    color: #666;
}

.dropdown-credit {
    padding: 10px;
    font-size: 0.9rem;
    color: #333;
}

.main-navbar {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    max-width: 200px;
    height: auto;
}

.menu-toggle {
    background-color: #0078ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(0,120,255,.5);
}

.main-menu {
    margin-left: auto;
}

.main-menu .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 3px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-menu .nav-link:hover {
    color: #fff;
    background-color: #0078ff;
}

.main-menu .nav-link.active {
    color: #fff;
    background-color: #0078ff;
}

.mega-dropdown {
    width: 600px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-top: 15px;
}

.mega-dropdown-sm {
    width: 350px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-top: 15px;
}

.mega-dropdown-title {
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mega-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333;
}

.mega-dropdown-item:hover {
    background-color: rgba(0,120,255,0.1);
    color: #0078ff;
    transform: translateY(-2px);
}

.menu-card-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.menu-card-content {
    flex: 1;
}

.menu-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.menu-card-subtitle {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 992px) {
    .mega-dropdown, .mega-dropdown-sm {
        width: 100%;
        margin-top: 0;
    }
    
    .navbar-collapse {
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
    
    .main-menu .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
    }
}

/* Modern Footer Styles - Updated */
.site-footer {
    padding-top: 60px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    color: #333;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.footer-main {
    padding-bottom: 40px;
}

.footer-logo {
    max-width: 200px;
}

.footer-about {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0078ff;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
}

.footer-links a:hover {
    color: #0078ff;
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 8px;
    color: #0078ff;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #0078ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 120, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
}

.facebook-link:hover {
    background: #3b5998;
    color: #fff;
}

.twitter-link:hover {
    background: #1da1f2;
    color: #fff;
}

.instagram-link:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: #fff;
}

.line-link:hover {
    background: #00b900;
    color: #fff;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.1);
}

.contact-card i {
    color: #0078ff;
    font-size: 1.5rem;
}

.contact-label {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.contact-number {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.footer-bottom {
    background: #0078ff;
    background-image: linear-gradient(to right, #0047B9, #0073FF, #0047B9);
    color: #fff;
    padding: 20px 0;
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.9;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom-links .divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* Cookie Consent Updated Styles */
.cookie-button-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.cookie-consent {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 0;
    display: block;
    border-top: 3px solid #0078ff;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
    color: #555;
}

.cookie-text a {
    color: #0078ff;
    text-decoration: none;
    font-weight: 600;
}

.btn-accept {
    background: #0078ff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.3);
    min-width: 120px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-accept:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 120, 255, 0.4);
}

.cookie-icon {
    flex-shrink: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .cookie-text {
        margin-bottom: 15px;
    }
    
    .btn-accept {
        width: 100%;
        max-width: 250px;
        padding: 12px 25px;
    }
    
    .site-footer {
        padding-top: 40px;
    }
    
    .footer-title {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

/* Header Top Bar Alignment Fix */
.desktop-top-menu .row,
.mobile-top-menu .row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.top-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.top-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.credit-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    padding: 5px 0;
    color: #fff;
    font-weight: 600;
}

.credit-badge i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.credit-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

.credit-display i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.user-dropdown-toggle {
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-dropdown-toggle i {
    margin-right: 8px;
}

@media (max-width: 576px) {
    .top-link, .credit-badge, .credit-display, .user-dropdown-toggle {
        font-size: 0.9rem;
    }
    
    .top-link i, .credit-badge i, .credit-display i, .user-dropdown-toggle i {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .credit-badge, .top-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        font-size: 0.9rem;
    }
    
    .top-link i, .credit-badge i, .credit-display i, .user-dropdown-toggle i {
        font-size: 1rem;
    }
}

/* Game Blocks Style */
.game-block {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #333;
}

.game-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.15);
    text-decoration: none;
    color: #333;
}

.game-block:after {
    content: "เติมเงิน";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 120, 255, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-block.card-block:after {
    content: "ซื้อเลย";
}

.game-block.menu-block:after {
    content: "ดูทั้งหมด";
}

.game-block:hover:after {
    opacity: 1;
}

.game-block-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 8px;
}

.game-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    text-align: left;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Featured Game Grid Layout */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .game-block {
        padding: 12px;
    }
    
    .game-block-title {
        font-size: 0.95rem;
    }
    
    .game-block-icon {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-block-title {
        font-size: 0.85rem;
    }
    
    .game-block-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }
}

.hide, #cookieConsent {
    display: none!important;
}

/* Multi-Item Carousel Styles */
.hero-carousel .carousel-inner .row {
    margin: 0;
    display: flex;
}

.hero-carousel .carousel-item {
    display: block;
    margin-right: 0;
    padding: 0.5rem;
}

.hero-carousel .card {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-carousel .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-carousel .card-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-carousel .card-text {
    margin-bottom: 1rem;
}

.hero-carousel .carousel-indicators {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    opacity: 0.5;
}

.hero-carousel .carousel-indicators button.active {
    background-color: #0078ff;
    opacity: 1;
}

.hero-carousel .stretched-link {
    z-index: 5;
    position: relative;
}

@media (max-width: 768px) {
    .hero-carousel .card-title {
        font-size: 1.2rem;
    }
    
    .hero-carousel .card-text {
        font-size: 0.9rem;
    }
    
    .hero-carousel .btn {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Terminal Game Page Styles */
.section-heading {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.section-heading .subtitle {
    color: #0078ff;
    font-size: 0.95rem;
    margin-left: 15px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #0078ff;
    border-radius: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.game-card .img-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.game-card .game-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover .game-img {
    transform: scale(1.08);
}

.game-card .game-title {
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
    z-index: 5;
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #0078ff, #00a1ff);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 120, 255, 0.3);
    z-index: 5;
}

.instant-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #5959ff, #8080ff);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(89, 89, 255, 0.3);
    z-index: 5;
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card .img-container {
        height: 100px;
    }
    
    .discount-badge, .promo-badge, .instant-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .game-card .game-title {
        font-size: 14px;
        padding: 12px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .section-heading .subtitle {
        font-size: 0.85rem;
    }
}

/* ระบบแท็บสำหรับหน้า Terminal Game */
.game-tabs {
    margin-bottom: 30px;
}

.game-tabs .nav-pills {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.game-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.game-tabs .nav-link:hover {
    color: #0078ff;
    background-color: rgba(0, 120, 255, 0.05);
}

.game-tabs .nav-link.active {
    background: linear-gradient(45deg, #0078ff, #00a1ff);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
}

.tab-section {
    transition: all 0.3s ease;
}

/* ปรับปรุง Game Card */
.game-card {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.game-card.popular {
    border: 2px solid #0078ff;
    box-shadow: 0 5px 20px rgba(0, 120, 255, 0.15);
}

.game-card .img-container {
    border-radius: 12px 12px 0 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card .game-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    padding: 12px 10px;
}

.discount-badge, .promo-badge, .instant-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ปรับปรุงส่วนหัวข้อ */
.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 1.5rem;
}

.section-heading .subtitle {
    font-size: 0.85rem;
}

.section-heading:after {
    width: 60px;
    height: 3px;
}

/* ปุ่มดูทั้งหมด */
.btn-action {
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .game-tabs .nav-link {
        padding: 10px;
        font-size: 0.9rem;
        margin: 0 2px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        gap: 15px;
    }
    
    .game-tabs .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px;
    }
    
    .game-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .section-heading h2 {
        font-size: 1.3rem;
    }
}

/* หน้า termgame.php - ย้ายมาจาก inline style */
.category-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.link-primary {
    color: #0078ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: #0056b3;
    text-decoration: none;
}

.link-primary i {
    transition: all 0.3s ease;
}

.link-primary:hover i {
    transform: translateX(5px);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.search-input {
    padding-left: 40px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #0078ff;
}

/* ปรับปรุงสไตล์ของการ์ดเกม */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.img-container {
    position: relative;
    width: 90%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    margin-top: 30px;
    border-radius: 12px;
    background-color: #f9fafb;
}

.game-img {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.game-card:hover .game-img {
    transform: translate(-50%, -50%) scale(1.08);
}

.game-title {
    padding: 16px 18px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    background-color: #fff;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.discount-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background-color: #ff5252;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 82, 82, 0.3);
}

.promo-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #0078ff;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 120, 255, 0.3);
}

.instant-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #00c853;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 200, 83, 0.3);
}

/* ปรับแต่ง Tab Navigation */
.game-tabs {
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 5px;
    background-color: #f9fafb;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.game-tabs .nav-item {
    margin: 5px;
}

.game-tabs .nav-link {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
    background-color: transparent;
    border: none;
}

.game-tabs .nav-link:hover {
    background-color: rgba(0, 120, 255, 0.08);
    color: #0078ff;
}

.game-tabs .nav-link.active {
    background-color: #0078ff;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
}

/* ปรับแต่ง Search Bar */
.search-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    font-size: 18px;
}

.search-input {
    padding: 16px 20px 16px 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    font-size: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-input:focus {
    box-shadow: 0 5px 25px rgba(0, 120, 255, 0.15);
    border-color: #0078ff;
}

/* ปรับแต่ง Section Heading */
.section-heading {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-heading h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.section-heading .subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0078ff;
    border-radius: 3px;
}

/* ปรับแต่งแสดงผลหน้าเว็บ */
.tab-section {
    margin-top: 15px; 
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ปรับปรุงการแสดงผลผลลัพธ์การค้นหา */
.search-result-message {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

#clearSearch {
    background-color: #fff;
    color: #555;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

#clearSearch:hover {
    background-color: #f1f1f1;
    color: #333;
}

/* ปรับการแสดงผลบนมือถือ */
@media (max-width: 1400px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-heading h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-title {
        font-size: 14px;
        padding: 12px;
        min-height: 60px;
    }
    
    .discount-badge, .promo-badge, .instant-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .game-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-input {
        padding: 12px 15px 12px 45px;
        font-size: 14px;
    }
    
    .section-heading h2 {
        font-size: 20px;
    }
}