@import "https://fonts.googleapis.com/css?family=Exo+2:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap";

/* ======================== RESET CSS ======================== */

body {
    font-family: 'Exo 2', sans-serif;
    background-color: #f8f9fa;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body, ul{
  margin:0;
  padding: 0;
  border: 0
}
ol,
ul {
    list-style: none;
}

/* ======================== HEADER ======================== */

/* ======================== RESET BOOTSTRAP NAVBAR ======================== */
.navbar-nav>li>a {
  line-height: inherit;
}
.navbar-nav {
    margin: inherit;
}
/* ======================== RESET BOOTSTRAP NAVBAR ======================== */

.ygame-navbar {
    display: flex;
    height: auto;
    align-items: center;
}

.banner-container {
    width: 768px;
    margin: 0 auto;
    max-width: 768px;
}

.box-container {
    width: 768px;
    margin: 0 auto;
    max-width: 768px;
}

.hide{
    animation-name: slideOutUp;
}

.fixed {
    display: block;
}

nav {
    background: #ffffff;
    border-bottom: 2px solid #2196F3;
    width: 100%;
    max-height: 65px;
    /* position: fixed; */
    z-index:1000
}
body section{
    margin-top:15px;
}
nav {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background-color: white;
    transform: translateY(0);
    }   

.ygame-logo-header {
    width: 30%;
}

.ygame-menu-header {
    width: 70%;
    align-items: center;
    justify-content: right;
    font-family: 'Roboto';
}

.ygame-menu-header ul {
    list-style-type: none;
}

.ygame-menu-header ul li {
    display: block;
}

.ygame-menu-nav {
    display: flex;
    justify-content: flex-end;
}

.ygame-menu-header .ygame-menu-item img {
    width: 30px;
}

.user-avatar{
    border-radius: 50%;
    width: 48px !important;
}

.menu-name {
    margin-top: 3px;
     font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
}

.ygame-menu-header .ygame-menu-item {
    text-align: center;
    padding: 7px 5px 5px 5px;
    width: 97px;
    cursor: pointer
}

.ygame-menu-header .ygame-menu-item a:hover{
    color: #54b243;
    font-weight: bold;
}

 .ygame-menu-header .ygame-menu-item:last-child {
    width: unset;
    margin-left: 10px;
}
.avatar-toggle{
    position: relative;
}
.avatar-toggle:before{
    position: absolute;
    content:'';
    background: url('master-images/header/TOGGLE-MENU-4.png') center center;
    background-size: cover;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    right: -10px;
    bottom: -1px;
    
}

.ygame-menu-header .ygame-menu-item a{
    text-decoration:none;
    color: #000
}

.logo-ygame-pc {
    height: 53px;
    display: block;
}
.logo-ygame-mobile {
    display: none;
}

.custom-icon-bar {
    background: #000;
    height: 2px;
    margin-bottom: 7px;
    width: 25px;
}

.active-toggle .custom-icon-bar{
  background: #54b023;
}

.custom-icon-bar:last-child {
    margin-bottom: 0px;
}

.ygame-menu-item.active {
  color: #54b243;
  font-weight: bold;
}
.stricky {
    width: 100%;
    position: fixed;
    top: 0;
    height: 63px;
    left: 0;
    background: white;
    background-color: white;
    z-index:1000
}

/* ======================== CAROUSEL STYLES ======================== */
.is-new{
    width: 40px
}
.carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    text-align: center;
    opacity: .5;
    transition: opacity .15s ease;
}
.carousel-control-next {
    right: 0;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
}

/* ======================== FOOTER STYLES ======================== */
footer{
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff; 
    width: 100%;
    padding: 40px 0 30px 0;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    flex: 1;
    text-align: left;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 20px;
}

.footer-description p {
    margin: 0 0 15px 0 !important;
    line-height: 1.6;
    font-size: 14px;
    opacity: 0.9;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.footer-copyright p {
    margin: 0 !important;
    font-size: 12px;
    opacity: 0.8;
}

.footer-right {
    text-align: left;
}

.footer-menu {
    margin-bottom: 25px;
}

.footer-menu h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-links li i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

footer a,
footer a:hover{
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

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

footer p {
    margin: 0 0 5px !important;
}

/* ======================== RESPONSIVE STYLES ======================== */

@media only screen and (max-width: 1024px) {
    .banner-container {
        width: 768px;
    }

    .box-container {
        width: 768px;
    }
}


/* Ensure footer is always visible and properly sized */
footer {
    min-height: auto;
    position: relative;
    z-index: 1;
}

.footer-container {
    min-height: auto;
    position: relative;
}

.footer-content {
    min-height: auto;
    position: relative;
}

@media only screen and (max-width: 768px) {
    .banner-container {
        width: 100%;
        padding: 0 15px;
    }
    .box-container {
        width: 100%;
        padding: 0 15px;
    }

     body section{
        margin-top:10px;
    }

    .menu-name {
        font-size: 10px;
    }
    .ygame-menu-header .ygame-menu-item img {
        width: 25px;
    }

    .user-avatar{
        width: 39px !important;
    }
    .avatar-toggle:before{
        width: 20px;
        height: 20px;
        right: -5px;
    }

    .ygame-menu-header .ygame-menu-item {
        text-align: center;
        padding: 5px 1px 1px 1px;
        width: 80px;
    }

    .logo-ygame-pc {
        height: 44px
    }
    .custom-icon-bar {
        background-color: black;
        margin-bottom: 7px;
        height: 2px;
        width: 25px;
    }
    .navbar-nav .open .dropdown-menu {
         position: absolute;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        box-shadow: 0 3px 2px rgba(0, 0, 0, 0.7);
    }
    .navbar-right .dropdown-menu {
        right: 0;
        left: auto;
    }
    
               /* Footer responsive */
      .footer-container {
          max-width: 100%;
          padding: 0 15px;
          width: 100%;
      }
      .footer-content {
          flex-direction: column;
          gap: 25px;
          width: 100%;
      }
      .footer-left {
          text-align: left;
          margin-bottom: 0;
          width: 100%;
      }
      .footer-right {
          text-align: left;
          width: 100%;
      }
      .footer-menu {
          margin-bottom: 20px;
      }
      .footer-links li {
          justify-content: flex-start;
      }
     
           /* Hero Search responsive */
      .hero-search-section {
          padding: 12px 15px;
          margin: 12px 0;
      }
      
      .search-container {
          gap: 15px;
      }
      
      .search-title h2 {
          font-size: 15px;
      }
      
      .search-title p {
          font-size: 11px;
      }
      
      .search-box {
          max-width: 250px;
      }
      
      .search-game-input {
          padding: 7px 30px 7px 10px;
          font-size: 13px;
      }
      
      .icon-search {
          right: 8px;
          font-size: 13px;
      }
      
      /* Old Search responsive */
      .filter-game {
          padding: 12px 15px;
          margin: 12px 0;
      }
      
      .search-row {
          gap: 10px;
          justify-content: flex-end;
      }
      
      .search-input-wrapper {
          width: 250px;
      }
      
      .search-label span {
          font-size: 14px;
      }
      
      .search-game-input {
          padding: 8px 35px 8px 12px;
          font-size: 13px;
      }
}

@media only screen and (max-width: 575px) {
     .ygame-navbar {
        min-height: 52px;
    }

    nav {
        max-height: 52px;
    }
    body section{
        margin-top:10px;
    }

         .banner-container {
         padding-right: 15px;
         padding-left: 15px;
         margin-right: auto;
         margin-left: auto;
         width: 100%;
     }
         .box-container {
         padding-right: 15px;
         padding-left: 15px;
         margin-right: auto;
         margin-left: auto;
         width: 100%;
     }

    .menu-name {
        font-size: 9px;
    }

    .ygame-menu-header .ygame-menu-item img {
        width: 22px;
    }
    .user-avatar{
        width: 35px !important;
    }
     .avatar-toggle:before{
        width: 22px;
        height: 20px;
    }

    .ygame-menu-header .ygame-menu-item {
        text-align: center;
        padding: 2px 1px 1px 1px;
        width: 70px;
    }

    .logo-ygame-pc {
        display: none;
    }
    .logo-ygame-mobile {
        display: block;
        height: 34px
    }

    .custom-icon-bar {
        background-color: black;
        margin-bottom: 5px;
        height: 1px;
        width: 20px;
    }
     .ygame-menu-header .ygame-menu-item:last-child {
        width: unset;
        margin-left: 5px;
    }
    
    /* Carousel responsive */
    .carousel-control-prev-icon, .carousel-control-next-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
    }
 .is-new{
     width: 30px
 }
    
               /* Footer responsive */
      .footer-container {
          max-width: 100%;
          padding: 0 15px;
          width: 100%;
      }
      .footer-content {
          flex-direction: column;
          gap: 20px;
          width: 100%;
      }
      footer{
          padding: 20px 0 15px 0;
      }
      .footer-left {
          width: 100%;
      }
      .footer-right {
          width: 100%;
      }
      .footer-description p {
          font-size: 12px;
      }
      .footer-menu h4 {
          font-size: 14px;
      }
      .footer-links li {
          font-size: 12px;
          justify-content: flex-start;
      }
     
           /* Hero Search responsive */
      .hero-search-section {
          padding: 10px 12px;
          margin: 10px 0;
      }
      
      .search-container {
          gap: 12px;
      }
      
      .search-title h2 {
          font-size: 14px;
      }
      
      .search-title p {
          font-size: 10px;
      }
      
      .search-box {
          max-width: 200px;
      }
      
      .search-game-input {
          padding: 6px 25px 6px 8px;
          font-size: 12px;
      }
      
      .icon-search {
          right: 6px;
          font-size: 12px;
      }
      
      /* Old Search responsive */
      .filter-game {
          padding: 10px 12px;
          margin: 10px 0;
      }
      
      .search-row {
          gap: 8px;
          justify-content: flex-end;
      }
      
      .search-input-wrapper {
          width: 200px;
      }
      
      .search-label span {
          font-size: 13px;
      }
      
      .search-game-input {
          padding: 6px 25px 6px 8px;
          font-size: 11px;
      }
      
      .icon-search {
          right: 8px;
          font-size: 12px;
      }
      
      /* News responsive for 375px */
      .news-section {
          padding: 12px 0;
      }
      
      .news-title {
          font-size: 16px;
      }
      
      .news-subtitle {
          font-size: 12px;
      }
      
      .news-grid {
          gap: 12px;
      }
      
      .news-image {
          height: 140px;
      }
      
      .news-content {
          padding: 10px;
      }
      
      .news-item-title {
          font-size: 14px;
      }
      
      .news-meta {
          gap: 10px;
          font-size: 10px;
      }
      
      .news-excerpt {
          font-size: 11px;
      }
      
      .news-view-all {
          padding: 6px 12px;
          font-size: 12px;
      }
      
      /* .footer-logo-img {
          height: 40px;
      } */
      
             /* Footer responsive for small screens */
       .footer-container {
           width: 100%;
       }
       .footer-content {
           flex-direction: column;
           gap: 15px;
           width: 100%;
       }
       .footer-left {
           text-align: left;
           margin-bottom: 0;
           width: 100%;
       }
       .footer-right {
           text-align: left;
           width: 100%;
       }
       .footer-links li {
           justify-content: flex-start;
       }
}

/* ======================== HERO SEARCH STYLES ======================== */
.hero-search-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-title {
    flex-shrink: 0;
    text-align: left;
}

.search-title h2 {
    color: #1976D2;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.search-title p {
    color: #666;
    font-size: 12px;
    margin: 5px 0 0 0;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

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

.search-game-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
}

.search-game-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.2);
}

.search-game-input::placeholder {
    color: #999;
}

.icon-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* ======================== OLD SEARCH STYLES (for backup) ======================== */
.filter-game {
    background: transparent;
    padding: 15px 20px;
    margin: 15px 0;
}

.search-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.search-label {
    flex-shrink: 0;
}

.search-label span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* ======================== GAME ITEM STYLES ======================== */
.game-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
}

.game-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.game-item img {
    max-width: 100%;
    height: auto;
    border-radius: 20px !important;
    transition: transform 0.3s ease;
    width: 100%;
    object-fit: cover;
}

.game-item:hover img {
    transform: scale(1.05);
}

.game-item .game-name {
    margin-top: 8px;
    font-weight: 500;
    color: #1976D2;
    font-size: 12px;
    line-height: 1.3;
    padding: 0 5px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Grid layout cho game items */
#list-game {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

#list-game .game-item {
    flex: 0 0 auto;
    width: calc(16.666% - 16px); /* 6 items per row */
    margin: 8px;
    min-height: 140px;
}

/* Responsive cho game items */
@media only screen and (max-width: 1200px) {
    #list-game .game-item {
        width: calc(20% - 16px); /* 5 items per row */
    }
}

@media only screen and (max-width: 992px) {
    #list-game .game-item {
        width: calc(25% - 16px); /* 4 items per row */
    }
}

@media only screen and (max-width: 768px) {
    #list-game .game-item {
        width: calc(33.333% - 16px); /* 3 items per row */
        min-height: 120px;
    }
    
    .game-item {
        padding: 6px;
        margin-bottom: 12px;
    }
    
    .game-item .game-name {
        font-size: 11px;
        margin-top: 6px;
    }
}

@media only screen and (max-width: 575px) {
    #list-game .game-item {
        min-height: 110px;
    }
    
    .game-item {
        padding: 5px;
        margin-bottom: 10px;
    }
    
    .game-item .game-name {
        font-size: 12px;
        margin-top: 5px;
    }
}

@media only screen and (max-width: 375px) {
    #list-game .game-item {
        margin: 6px;
        min-height: 100px;
    }
    
    .game-item {
        padding: 4px;
        margin-bottom: 8px;
    }
    
    .game-item .game-name {
        font-size: 9px;
        margin-top: 4px;
    }
}

/* ======================== NEWS SECTION STYLES ======================== */
.news-section {
    padding: 20px 0;
}

.news-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-title {
    color: #1976D2;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.news-title i {
    color: #2196F3;
    font-size: 18px;
}

.news-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 14px;
}

.news-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.news-placeholder span {
    font-size: 12px;
    opacity: 0.8;
}

.news-content {
    padding: 15px;
}

.news-item-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.news-item-title a {
    color: #1976D2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: #2196F3;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.news-date, .news-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i, .news-category i {
    color: #2196F3;
    font-size: 11px;
}

.news-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.news-read-more {
    color: #2196F3;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: #1976D2;
    text-decoration: none;
}

.news-read-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

.news-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.news-footer {
    text-align: center;
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2196F3;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #2196F3;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-view-all:hover {
    background: #2196F3;
    color: white;
    text-decoration: none;
}

.news-view-all i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.news-view-all:hover i {
    transform: translateX(3px);
}

/* ======================== UTILITY CLASSES ======================== */
.img_parent
{
	position: relative;
	top: 0;
	left: 0;
}
.img_child
{
	position: absolute;
	top: 0px;
	left: 0px;
}

/* ======================== ID CHECK FEATURE ======================== */

/* ID Check Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

/* ID Check Button */
#checkIdBtn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    border-radius: 0 6px 6px 0;
    min-width: 120px;
    white-space: nowrap;
}

#checkIdBtn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

#checkIdBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

#checkIdBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#checkIdBtn i {
    margin-right: 5px;
}

/* ID Check Result */
#checkIdResult {
    margin-top: 15px;
    animation: fadeInUp 0.3s ease;
}

#checkIdResult .alert {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
}

#checkIdResult .alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

#checkIdResult .alert-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

#checkIdResult .alert-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

#checkIdResult .d-flex {
    align-items: center;
}

#checkIdResult .me-2 {
    margin-right: 12px !important;
}





#characterName {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

#characterInfo {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
    margin-top: 2px;
}

/* Server ID Field */
#serverIdField {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2196F3;
    margin-top: 15px;
}

#serverIdField .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#serverIdField .form-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for ID Check */
@media only screen and (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 6px;
        border-right: 1px solid #ced4da;
        margin-bottom: 10px;
    }
    
    #checkIdBtn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 100px;
        border-radius: 6px;
        align-self: flex-end;
    }
    
    #checkIdBtn i {
        margin-right: 3px;
    }
    
    #checkIdResult .alert {
        padding: 10px 12px;
    }
    
    #checkIdResult .d-flex {
        align-items: center;
    }
    
    #checkIdResult .me-2 {
        margin-right: 10px !important;
    }
    

    
    #characterName {
        font-size: 13px;
    }
    
    #characterInfo {
        font-size: 11px;
    }
    
    #serverIdField {
        padding: 12px;
    }
}

@media only screen and (max-width: 575px) {
    #checkIdBtn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 90px;
    }
    
    #checkIdResult .alert {
        padding: 8px 10px;
    }
    

    
    #characterName {
        font-size: 12px;
    }
    
    #characterInfo {
        font-size: 10px;
    }
}

@media only screen and (max-width: 375px) {
    #checkIdBtn {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 80px;
    }
    
    #checkIdResult .alert {
        padding: 6px 8px;
    }
    

    
    #characterName {
        font-size: 11px;
    }
    
    #characterInfo {
        font-size: 9px;
    }
}

/* ======================== PACKAGE STYLES ======================== */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.package-item {
    position: relative;
}

.package-item input[type="radio"] {
    display: none;
}

.package-label {
    display: block;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.package-item input[type="radio"]:checked + .package-label {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.package-name {
    font-weight: 600;
    color: #333;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.discounted-price, .final-price {
    font-weight: 600;
    color: #dc3545;
    font-size: 1.1em;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.no-packages-alert {
    margin-top: 15px;
}

.no-packages-alert .alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    text-align: center;
}

.no-packages-alert .alert i {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Payment method styles */
.payment-method-item {
    position: relative;
    margin-bottom: 10px;
}

.payment-method-item input[type="radio"] {
    display: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    min-height: 60px;
}

.payment-method-item input[type="radio"]:checked + .payment-method-label {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.payment-method-label i {
    font-size: 1.2em;
    color: #007bff;
    margin-right: 10px;
}

.payment-method-label span {
    font-weight: 500;
    color: #333;
}

/* Total amount styles */
.total-amount {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.total-price {
    font-weight: 700;
    font-size: 1.3em;
    color: #dc3545;
}

/* Responsive package styles */
@media only screen and (max-width: 768px) {
    .package-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .package-label {
        padding: 12px;
    }
    
    .package-name {
        font-size: 0.9em;
    }
    
    .package-price {
        font-size: 0.9em;
    }
    
    .payment-method-label {
        padding: 12px;
        min-height: 50px;
    }
    
    .payment-method-label i {
        font-size: 1em;
    }
    
    .payment-method-label span {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 575px) {
    .package-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .package-label {
        padding: 10px;
    }
    
    .package-name {
        font-size: 0.8em;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .package-price {
        font-size: 0.8em;
    }
    
    .discounted-price, .final-price {
        font-size: 0.9em;
    }
    
    .original-price {
        font-size: 0.75em;
    }
    
    .discount-badge {
        font-size: 0.65em;
        padding: 1px 3px;
    }
}

@media only screen and (max-width: 768px) {
    .package-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ======================== HEADER GAME ======================== */
.header-game {
    text-align: center;
    margin-bottom: 10px;
    padding: 15px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    animation: headerSlideIn 1s ease-out;
    backdrop-filter: blur(10px);
}

.header-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.header-game::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.header-game h1 {
    color: white;
    font-size: 1.8em;
    font-weight: 800;
    margin: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    position: relative;
    z-index: 3;
    animation: textGlow 3s ease-in-out infinite alternate;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}



@keyframes headerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 50px rgba(255, 255, 255, 0.6),
            0 0 80px rgba(255, 255, 255, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive cho header-game */
@media only screen and (max-width: 768px) {
    .header-game {
        margin-bottom: 15px;
        padding: 10px 15px;
        border-radius: 15px;
    }
    
    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 2px;
    }
    
    .header-game h1::before {
        font-size: 0.35em;
        margin-bottom: 8px;
    }
}

@media only screen and (max-width: 575px) {
    .header-game {
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    
    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 1.5px;
    }
    
    .header-game h1::before {
        font-size: 0.3em;
        margin-bottom: 6px;
    }
}

@media only screen and (max-width: 375px) {
    .header-game {
        padding: 10px 10px;
    }
    
    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 1px;
    }
    
    .header-game h1::before {
        font-size: 0.25em;
        margin-bottom: 5px;
    }
}

.fcta-zalo-ben-trong-nut svg path {
	fill: #fff
}

.fcta-zalo-vi-tri-nut {
	position: fixed;
	bottom: 24px;
	left: 20px;
	z-index: 999
}

.fcta-zalo-nen-nut,
div.fcta-zalo-mess {
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16)
}

.fcta-zalo-nen-nut {
	width: 50px;
	height: 50px;
	text-align: center;
	color: #fff;
	background: #0068ff;
	border-radius: 50%;
	position: relative
}

.fcta-zalo-nen-nut::after,
.fcta-zalo-nen-nut::before {
	content: "";
	position: absolute;
	border: 1px solid #0068ff;
	background: #0068ff80;
	z-index: -1;
	left: -20px;
	right: -20px;
	top: -20px;
	bottom: -20px;
	border-radius: 50%;
	animation: zoom 1.9s linear infinite
}

.fcta-zalo-nen-nut::after {
	animation-delay: .4s
}

.fcta-zalo-ben-trong-nut,
.fcta-zalo-ben-trong-nut i {
	transition: all 1s
}

.fcta-zalo-ben-trong-nut {
	position: absolute;
	text-align: center;
	width: 60%;
	height: 60%;
	left: 10px;
	bottom: 25px;
	line-height: 70px;
	font-size: 25px;
	opacity: 1
}

.fcta-zalo-ben-trong-nut i {
	animation: lucidgenzalo 1s linear infinite
}

.fcta-zalo-nen-nut:hover .fcta-zalo-ben-trong-nut,
.fcta-zalo-text {
	opacity: 0
}

.fcta-zalo-nen-nut:hover i {
	transform: scale(.5);
	transition: all .5s ease-in
}

.fcta-zalo-text a {
	text-decoration: none;
	color: #fff
}

.fcta-zalo-text {
	position: absolute;
	top: 6px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	transform: scaleX(-1);
	transition: all .5s;
	line-height: 1.5
}

.fcta-zalo-nen-nut:hover .fcta-zalo-text {
	transform: scaleX(1);
	opacity: 1
}

div.fcta-zalo-mess {
	position: fixed;
	bottom: 29px;
	left: 58px;
	z-index: 99;
	background: #fff;
	padding: 7px 25px 7px 15px;
	color: #0068ff;
	border-radius: 0 50px 50px 0;
	font-weight: 700;
	font-size: 15px
}

.fcta-zalo-mess span {
	color: #0068ff !important
}


span#fcta-zalo-tracking {
	font-family: Roboto;
	line-height: 1.5
}

.fcta-zalo-text {
	font-family: Roboto
}

@keyframes zoominoutsinglefeatured {
	0% {
		transform: scale(1, 1);
	}

	50% {
		transform: scale(1.2, 1.2);
	}

	100% {
		transform: scale(1, 1);
	}
}

@keyframes zoom {
	0% {
		transform: scale(.5);
		opacity: 0
	}

	50% {
		opacity: 1
	}

	to {
		opacity: 0;
		transform: scale(1)
	}
}

@keyframes lucidgenzalo {
	0% to {
		transform: rotate(-25deg)
	}

	50% {
		transform: rotate(25deg)
	}
}

/* ================= News and article redesign ================= */
.game-list-row {
	margin-top: 20px;
}

.game-card-link {
	text-decoration: none;
}

.game-card-link:hover {
	text-decoration: none;
}

.game-image-wrap {
	position: relative;
}

.game-card-image {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

.home-ad-banner {
	margin: 18px 0;
}

.home-ad-banner-link {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.home-ad-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.search-results {
	margin-top: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.search-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #edf0f4;
}

.search-results-header h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
}

.search-results-header h3 i {
	color: #0284c7;
	font-size: 16px;
}

.clear-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	color: #b91c1c;
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}

.clear-search-btn:hover {
	color: #fff;
	background: #dc2626;
	border-color: #dc2626;
}

.no-results {
	margin-top: 20px;
	padding: 36px 20px;
	text-align: center;
}

.no-results-content {
	padding: 28px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.no-results-content i {
	margin-bottom: 14px;
	color: #94a3b8;
	font-size: 42px;
}

.no-results-content h3 {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
}

.no-results-content p {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 15px;
}

.no-results-content #search-keyword {
	color: #0369a1;
	font-weight: 700;
}

.show-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	color: #fff;
	background: #0369a1;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}

.show-all-btn:hover {
	background: #075985;
}

.game-item {
	transition: all .25s ease;
}

.game-item.hidden {
	opacity: 0;
	transform: scale(.9);
	pointer-events: none;
}

.game-item.visible {
	opacity: 1;
	transform: scale(1);
	animation: fadeInUp .35s ease;
}

.search-game-input {
	transition: all .2s ease;
}

.search-game-input:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
}

.search-game-input.searching {
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.search-highlight {
	padding: 2px 4px;
	color: #92400e;
	background: #fef3c7;
	border-radius: 4px;
	font-weight: 800;
}

.search-loading {
	display: none;
	padding: 20px;
	color: #64748b;
	text-align: center;
}

.search-loading i {
	margin-right: 10px;
	font-size: 20px;
	animation: spin 1s linear infinite;
}

.news-page {
	padding: 24px 0 40px;
	background: #f6f8fb;
}

.news-section {
	padding: 24px 0;
}

.news-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	text-align: left;
}

.news-title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 6px;
	color: #0f172a;
	font-family: Roboto, Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}

.news-title i {
	color: #0284c7;
	font-size: 20px;
}

.news-subtitle {
	margin: 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.55;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.news-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-item:hover {
	transform: translateY(-2px);
	border-color: #bae6fd;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.news-image {
	height: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e2e8f0;
}

.news-thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.news-item:hover .news-thumbnail {
	transform: scale(1.04);
}

.news-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #64748b;
	background: #f1f5f9;
	font-size: 13px;
}

.news-placeholder i {
	margin-bottom: 8px;
	color: #94a3b8;
	font-size: 24px;
}

.news-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px;
}

.news-item-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.news-item-title a {
	display: -webkit-box;
	overflow: hidden;
	color: #0f172a;
	text-decoration: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.news-item-title a:hover {
	color: #0369a1;
	text-decoration: none;
}

.news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	color: #64748b;
	font-size: 12px;
}

.news-date,
.news-category,
.news-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.news-date i,
.news-category i,
.news-views i {
	color: #0284c7;
	font-size: 11px;
}

.news-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 14px;
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.news-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #0369a1;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.news-read-more:hover {
	color: #075985;
	text-decoration: none;
}

.news-read-more i {
	font-size: 11px;
	transition: transform .2s ease;
}

.news-read-more:hover i {
	transform: translateX(3px);
}

.news-empty {
	grid-column: 1 / -1;
	padding: 36px 20px;
	color: #64748b;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-align: center;
}

.empty-icon {
	margin-bottom: 12px;
	color: #cbd5e1;
	font-size: 44px;
}

.news-footer,
.news-pagination {
	margin-top: 22px;
	text-align: center;
}

.news-view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	color: #0369a1;
	background: #fff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
}

.news-view-all:hover {
	color: #fff;
	background: #0369a1;
	border-color: #0369a1;
	text-decoration: none;
}

.news-pagination .pagination {
	justify-content: center;
}

.news-pagination .page-link {
	margin: 0 2px;
	color: #0369a1;
	border-color: #bae6fd;
}

.news-pagination .page-item.active .page-link {
	color: #fff;
	background: #0369a1;
	border-color: #0369a1;
}

.news-pagination .page-link:hover {
	color: #075985;
	background: #e0f2fe;
	border-color: #7dd3fc;
}

.article-page {
	padding: 24px 0 40px;
	background: #f6f8fb;
}

.article-shell {
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.article-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: #0369a1;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.article-back:hover {
	color: #075985;
	text-decoration: none;
}

.article-title {
	margin: 0 0 12px;
	color: #0f172a;
	font-family: Roboto, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
	color: #64748b;
	font-size: 13px;
}

.article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.article-meta i {
	color: #0284c7;
}

.article-cover {
	max-width: 520px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	border-radius: 8px;
	background: #e2e8f0;
}

.article-cover img {
	display: block;
	width: 100%;
	max-height: 360px;
	height: auto;
	object-fit: contain;
}

.article-content {
	color: #334155;
	font-size: 15px;
	line-height: 1.75;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.article-content ul,
.article-content ol {
	margin: 12px 0;
	padding-left: 24px;
}

.article-content li {
	margin-bottom: 8px;
}

.article-content a {
	color: #0369a1;
	text-decoration: none;
}

.article-content a:hover {
	text-decoration: underline;
}

.article-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	white-space: nowrap;
}

.article-content table th,
.article-content table td {
	padding: 9px;
	border: 1px solid #e5e7eb;
}

.article-content table th {
	background: #f1f5f9;
	text-align: left;
}

.article-content table tr:nth-child(even) {
	background: #f8fafc;
}

.article-actions {
	margin-top: 22px;
}

.article-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 16px;
	color: #fff;
	background: #0369a1;
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
}

.article-button:hover {
	color: #fff;
	background: #075985;
	text-decoration: none;
}

@media (max-width: 768px) {
	.search-results-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.clear-search-btn {
		align-self: flex-end;
	}

	.no-results-content {
		padding: 22px;
	}

	.news-header {
		display: block;
	}

	.news-title {
		font-size: 20px;
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.news-content {
		padding: 11px;
	}

	.news-item-title {
		font-size: 14px;
	}

	.news-meta {
		gap: 7px;
		font-size: 11px;
	}

	.news-category {
		display: none;
	}

	.news-excerpt {
		font-size: 12px;
		-webkit-line-clamp: 2;
	}

	.article-shell {
		padding: 18px;
	}

	.article-title {
		font-size: 23px;
	}
}

@media (max-width: 420px) {
	.news-grid {
		gap: 10px;
	}

	.news-content {
		padding: 10px;
	}

	.news-read-more {
		font-size: 12px;
	}
}

/* ================= Header and game catalog refresh ================= */
header {
	background: #fff;
	border-top: 1px solid #f4c8d2;
}

header nav {
	max-height: none;
	background: #fff;
	border-bottom: 3px solid #1695f8;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.ygame-navbar {
	min-height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ygame-logo-header {
	flex: 0 0 auto;
	width: auto;
}

.ygame-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.logo-ygame-pc {
	display: block;
	width: auto;
	height: 54px;
}

.logo-ygame-mobile {
	display: none;
	width: auto;
	height: 38px;
}

.ygame-menu-header {
	flex: 1;
	width: auto;
	font-family: Roboto, Arial, sans-serif;
}

.ygame-menu-nav {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
}

.ygame-menu-header .ygame-menu-item,
.ygame-menu-header .ygame-menu-item:last-child {
	width: auto;
	margin: 0;
	padding: 0;
}

.ygame-menu-header .ygame-menu-item a {
	min-width: 92px;
	min-height: 54px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 12px;
	color: #0f172a;
	border: 1px solid transparent;
	border-radius: 8px;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.ygame-menu-header .ygame-menu-item a:hover,
.ygame-menu-header .ygame-menu-item.active a {
	color: #0369a1;
	background: #f0f9ff;
	border-color: #bae6fd;
	font-weight: inherit;
	transform: translateY(-1px);
	text-decoration: none;
}

.ygame-menu-header .ygame-menu-item img {
	display: none;
}

.menu-icon {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0369a1;
	background: #e0f2fe;
	border-radius: 8px;
	font-size: 15px;
}

.menu-name {
	margin: 0;
	color: inherit;
	font-family: Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	white-space: nowrap;
}

.game-catalog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 24px 0 14px;
}

.game-catalog-header h2 {
	margin: 0;
	color: #2f2f35;
	font-family: Roboto, Arial, sans-serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.game-filter-tabs {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.game-filter-tab {
	min-width: 92px;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0 20px;
	color: #3f3a39;
	background: #f4f1f1;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-filter-tab[data-platform="all"] {
	min-width: 156px;
	justify-content: flex-start;
	padding-left: 0;
	padding-right: 20px;
	overflow: hidden;
}

.game-filter-tab:hover {
	color: #f05a28;
	background: #fff7ed;
	border-color: #fed7aa;
}

.game-filter-tab.active {
	color: #f05a28;
	background: #fff2eb;
	border-color: #f05a28;
	box-shadow: 0 6px 16px rgba(240, 90, 40, .12);
}

.filter-thumb {
	position: relative;
	width: 72px;
	height: 46px;
	margin-left: 0;
	margin-right: 12px;
	overflow: hidden;
	border-radius: 5px 0 0 5px;
	clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
	flex: 0 0 auto;
}

.filter-thumb::after {
	content: "";
	position: absolute;
	top: 0;
	right: 8px;
	width: 3px;
	height: 100%;
	background: #f05a28;
	transform: skew(-17deg);
}

.filter-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

@media only screen and (max-width: 768px) {
	header nav {
		max-height: none;
	}

	.ygame-navbar {
		min-height: 62px;
		gap: 10px;
	}

	.logo-ygame-pc {
		height: 42px;
	}

	.ygame-menu-nav {
		gap: 6px;
	}

	.ygame-menu-header .ygame-menu-item a {
		min-width: 64px;
		min-height: 48px;
		padding: 6px 7px;
	}

	.menu-icon {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	.menu-name {
		font-size: 10px;
	}

	.game-catalog-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		margin-top: 20px;
	}

	.game-catalog-header h2 {
		font-size: 19px;
	}

	.game-filter-tabs {
		width: 100%;
		justify-content: flex-start;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.game-filter-tab {
		min-width: 74px;
		height: 42px;
		padding: 0 14px;
		font-size: 12px;
	}

	.game-filter-tab[data-platform="all"] {
		min-width: 124px;
		padding-right: 14px;
	}

	.filter-thumb {
		width: 54px;
		height: 38px;
		margin-right: 8px;
	}
}

@media only screen and (max-width: 575px) {
	.ygame-navbar {
		min-height: 58px;
	}

	.ygame-logo-header {
		max-width: 38%;
	}

	.logo-ygame-pc {
		display: none;
	}

	.logo-ygame-mobile {
		display: block;
		max-width: 100%;
		height: auto;
		max-height: 36px;
	}

	.ygame-menu-nav {
		gap: 4px;
	}

	.ygame-menu-header .ygame-menu-item a {
		min-width: 48px;
		min-height: 44px;
		padding: 5px 4px;
	}

	.menu-icon {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.menu-name {
		font-size: 8.5px;
	}
}

@media only screen and (max-width: 420px) {
	.game-catalog-header h2 {
		font-size: 18px;
	}

	.game-filter-tab {
		min-width: 64px;
		height: 38px;
		padding: 0 10px;
		font-size: 11px;
	}

	.game-filter-tab[data-platform="all"] {
		min-width: 112px;
		padding-right: 10px;
	}

	.filter-thumb {
		width: 48px;
		height: 34px;
		margin-right: 7px;
	}
}

/* ======================== Recharge Detail Info Cards ======================== */
.recharge-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.recharge-info-card {
	min-height: 100%;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.recharge-info-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.recharge-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 8px;
	background: #eff6ff;
	color: #0879c9;
	font-size: 16px;
}

.recharge-info-label {
	margin: 0 0 2px;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.recharge-info-heading h4 {
	margin: 0;
	color: #0f172a;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.recharge-guide-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.recharge-guide-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.recharge-guide-list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 8px;
	background: #fff7ed;
	color: #f05a28;
	font-size: 12px;
	font-weight: 800;
}

.recharge-guide-list p,
.warranty-modern-item p,
.support-modern-desc {
	margin: 0;
	color: #475569;
	font-size: 13px;
	line-height: 1.55;
}

.recharge-info-note {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f8fafc;
	color: #334155;
	font-size: 13px;
	line-height: 1.5;
}

.warranty-modern-list,
.support-modern-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.warranty-modern-item {
	display: flex;
	gap: 10px;
	padding: 12px;
	border-radius: 8px;
	background: #f8fafc;
}

.warranty-modern-item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 999px;
	font-size: 12px;
}

.warranty-modern-item strong {
	display: block;
	margin-bottom: 3px;
	color: #0f172a;
	font-size: 14px;
}

.warranty-modern-item.is-covered i {
	background: #dcfce7;
	color: #15803d;
}

.warranty-modern-item.is-limited i {
	background: #fee2e2;
	color: #b91c1c;
}

.support-modern-desc {
	margin-bottom: 14px;
}

.support-modern-list div {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f8fafc;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
}

.support-modern-list i {
	width: 16px;
	color: #0879c9;
	text-align: center;
}

.detail-form-container {
	margin-bottom: 20px;
}

.recharge-form-spaced {
	margin-top: 20px;
}

.server-id-field {
	margin-bottom: 15px;
}

.uid-label {
	float: left;
}

.uid-help-link {
	font-size: 12px;
}

.uid-tutorial-image {
	max-width: 100%;
	height: auto;
}

.recharge-submit-btn,
.card-submit-btn {
	margin-top: 10px;
}

.additional-info-container,
.payment-page-container {
	padding-top: 10px;
}

.history-section-column {
	margin-bottom: 20px;
}

@media only screen and (max-width: 991px) {
	.recharge-info-grid {
		grid-template-columns: 1fr;
	}
}

/* ======================== Final Recharge Detail Refinements ======================== */
.recharge-info-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.recharge-info-card {
	padding: 16px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.recharge-info-heading {
	margin-bottom: 12px;
}

.recharge-info-icon {
	width: 34px;
	height: 34px;
	flex-basis: 34px;
}

.recharge-info-heading h4 {
	font-size: 15px;
}

.recharge-guide-list {
	gap: 8px;
}

.recharge-guide-list span {
	width: 25px;
	height: 25px;
	flex-basis: 25px;
	border-radius: 7px;
	font-size: 11px;
}

.recharge-guide-list p,
.support-modern-desc {
	font-size: 12.5px;
	line-height: 1.5;
}

.recharge-info-note,
.support-modern-list div {
	padding: 9px 10px;
	font-size: 12.5px;
}

.payment-method-label {
	position: relative;
	border: 1px solid #d7e1ec !important;
	background: #fff !important;
	color: #334155;
	box-shadow: none !important;
	opacity: 0.78;
}

.payment-method-item input[type="radio"]:checked+.payment-method-label,
.payment-method-label.active {
	border: 2px solid #f05a28 !important;
	background: #fff7ed !important;
	box-shadow: 0 8px 20px rgba(240, 90, 40, 0.16) !important;
	opacity: 1;
}

.payment-method-item input[type="radio"]:checked+.payment-method-label::after,
.payment-method-label.active::after {
	content: '\\f00c';
	position: absolute;
	top: 8px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #f05a28;
	color: #fff;
	font-family: "Font Awesome 5 Free";
	font-size: 10px;
	font-weight: 900;
}

.payment-method-item input[type="radio"]:checked+.payment-method-label i,
.payment-method-label.active i,
.payment-method-item input[type="radio"]:checked+.payment-method-label span,
.payment-method-label.active span {
	color: #f05a28 !important;
}

.card-form select.form-control {
	border: 2px solid #d7e1ec;
	background-color: #fff;
	color: #0f172a;
	font-weight: 700;
}

.card-form select.form-control:focus {
	border-color: #f05a28;
	box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.14);
}

.card-form select.form-control option:disabled {
	color: #9ca3af;
	background: #f3f4f6;
}

.card-form .form-control {
	min-height: 48px;
	padding: 10px 14px;
	border-width: 2px;
	border-radius: 8px;
	font-size: 14px;
}

.card-form select.form-control {
	height: 48px;
	padding-right: 38px;
}

.card-form .form-label {
	margin-bottom: 7px;
	color: #334155;
	font-size: 14px;
	font-weight: 800;
}

.card-denomination-warning {
	display: block;
	margin-top: 7px;
	color: #b45309;
	font-size: 12px;
	line-height: 1.35;
}

.card-denomination-warning i {
	margin-right: 4px;
}

.card-notice {
	padding: 12px 14px;
	border-radius: 8px;
	background: #f8fafc;
}

.card-notice .notice-item {
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	line-height: 1.45;
}

.card-notice .notice-item i {
	margin-top: 2px;
}

.card-notice-example,
.card-browser-note {
	margin: 4px 0 0;
	padding: 0;
	color: #475569;
	font-size: 12.5px;
	line-height: 1.4;
}

.card-browser-note {
	color: #b45309;
	font-weight: 700;
}

.game-directory-link-wrap {
	display: flex;
	justify-content: flex-end;
	margin: -8px 0 14px;
}

.game-directory-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0879c9;
	font-size: 13px;
	font-weight: 800;
}

.game-directory-page {
	padding-top: 24px;
	padding-bottom: 28px;
}

.game-image-wrap {
	position: relative;
}

.game-coming-link .game-card-image {
	filter: saturate(0.85);
	opacity: 0.9;
}

.coming-game-section {
	padding: 36px 0 42px;
}

.coming-game-card {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.coming-game-thumb img {
	width: 112px;
	height: 112px;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.coming-game-label {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 5px 9px;
	border-radius: 6px;
	background: #fff7ed;
	color: #f05a28;
	font-size: 12px;
	font-weight: 800;
}

.coming-game-content h1 {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 26px;
	font-weight: 800;
}

.coming-game-content p {
	margin: 0 0 16px;
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
}

.coming-game-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #0879c9;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.coming-game-back:hover {
	color: #fff;
	background: #066aad;
}

@media only screen and (max-width: 991px) {
	.recharge-info-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 640px) {
	.game-directory-link-wrap {
		justify-content: flex-start;
		margin-top: 2px;
	}

	.coming-game-card {
		align-items: flex-start;
		gap: 14px;
		padding: 16px;
	}

	.coming-game-thumb img {
		width: 68px;
		height: 68px;
		border-radius: 12px;
	}

	.coming-game-content h1 {
		font-size: 18px;
	}
}

/* ======================== Moved from resources/views/game/detail.blade.php ======================== */
/* Style block 1 */
/* ======================== RECHARGE HISTORY STYLES ======================== */
    .recharge-history-section {
        padding: 20px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 2px solid #e3f2fd;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
        position: relative;
        overflow: hidden;
    }

    .recharge-history-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% {
            left: -100%;
        }

        100% {
            left: 100%;
        }
    }

    .recharge-history-header {
        text-align: center;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .recharge-history-title {
        color: #1976D2;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .recharge-history-title i {
        color: #2196F3;
        font-size: 16px;
    }

    .recharge-history-subtitle {
        color: #666;
        font-size: 13px;
        margin: 0;
    }

    .recharge-history-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
        padding-right: 8px;
        position: relative;
        z-index: 1;
    }

    .recharge-history-grid::-webkit-scrollbar {
        width: 6px;
    }

    .recharge-history-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .recharge-history-grid::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .recharge-history-grid::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .recharge-history-item {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .recharge-history-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
        border-color: #2196F3;
    }

    .recharge-history-content {
        padding: 15px;
    }

    .recharge-info {
        margin-bottom: 12px;
    }

    .recharge-game {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .recharge-game i {
        color: #2196F3;
        font-size: 14px;
    }

    .game-name {
        font-weight: 600;
        color: #1976D2;
        font-size: 14px;
    }

    .recharge-details {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .recharge-amount,
    .recharge-server {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .recharge-amount i,
    .recharge-server i {
        color: #666;
        font-size: 12px;
    }

    .amount {
        font-weight: 600;
        color: #dc3545;
        font-size: 13px;
    }

    .server {
        color: #666;
        font-size: 12px;
    }

    .recharge-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .recharge-status {
        flex-shrink: 0;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .status-success {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
    }

    .status-processing {
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: white;
    }

    .status-waiting {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
    }

    .status-failed {
        background: linear-gradient(135deg, #f44336, #d32f2f);
        color: white;
    }

    .recharge-date {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #666;
        font-size: 11px;
    }

    .recharge-date i {
        color: #2196F3;
        font-size: 10px;
    }

    .recharge-history-empty {
        text-align: center;
        padding: 30px 15px;
        color: #666;
        grid-column: 1 / -1;
    }

    .recharge-history-empty .empty-icon {
        font-size: 36px;
        color: #ddd;
        margin-bottom: 12px;
    }

    /* Responsive styles */
    @media only screen and (max-width: 768px) {
        .recharge-history-section {
            padding: 15px;
        }

        .recharge-history-title {
            font-size: 17px;
        }

        .recharge-history-subtitle {
            font-size: 12px;
        }

        .recharge-history-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
            max-height: 350px;
        }

        .recharge-history-content {
            padding: 15px;
        }

        .game-name {
            font-size: 14px;
        }

        .recharge-details {
            gap: 15px;
        }

        .amount {
            font-size: 13px;
        }

        .server {
            font-size: 12px;
        }

        .status-badge {
            padding: 4px 8px;
            font-size: 10px;
        }

        .recharge-date {
            font-size: 11px;
        }
    }

    @media only screen and (max-width: 575px) {
        .recharge-history-section {
            padding: 12px;
        }

        .recharge-history-title {
            font-size: 16px;
        }

        .recharge-history-subtitle {
            font-size: 11px;
        }

        .recharge-history-grid {
            grid-template-columns: 1fr;
            gap: 12px;
            max-height: 300px;
        }

        .recharge-history-content {
            padding: 12px;
        }

        .game-name {
            font-size: 13px;
        }

        .recharge-details {
            gap: 12px;
        }

        .amount {
            font-size: 12px;
        }

        .server {
            font-size: 11px;
        }

        .status-badge {
            padding: 3px 6px;
            font-size: 9px;
        }

        .recharge-date {
            font-size: 10px;
        }
    }

    @media only screen and (max-width: 375px) {
        .recharge-history-section {
            padding: 10px;
        }

        .recharge-history-title {
            font-size: 15px;
        }

        .recharge-history-subtitle {
            font-size: 10px;
        }

        .recharge-history-grid {
            gap: 10px;
            max-height: 250px;
        }

        .recharge-history-content {
            padding: 10px;
        }

        .game-name {
            font-size: 12px;
        }

        .recharge-details {
            gap: 10px;
        }

        .amount {
            font-size: 11px;
        }

        .server {
            font-size: 10px;
        }

        .status-badge {
            padding: 2px 5px;
            font-size: 8px;
        }

        .recharge-date {
            font-size: 9px;
        }
    }
/* Style block 2 */
.game-banner {
        background: #f8f9fa;
        padding: 15px 0;
    }

    .banner-wrapper {
        max-width: 728px;
        margin: 0 auto;
        text-align: center;
    }

    .banner-wrapper img {
        width: 728px;
        height: 90px;
        object-fit: cover;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .payment-form-wrapper {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .game-logo {
        border-radius: 10px;
    }

    .payment-method-item {
        position: relative;
        margin-bottom: 10px;
    }

    .payment-method-item input[type="radio"] {
        display: none;
    }

    .payment-method-label {
        display: flex;
        align-items: center;
        padding: 15px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        height: 100%;
        min-height: 60px;
    }

    .payment-method-item input[type="radio"]:checked+.payment-method-label {
        border-color: #007bff;
        background: #f8f9ff;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    }

    .payment-method-label i {
        font-size: 1.2em;
        color: #007bff;
        margin-right: 10px;
    }

    .payment-method-label span {
        font-weight: 500;
        color: #333;
    }

    .package-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }

    .package-item {
        position: relative;
    }

    .package-item input[type="radio"] {
        display: none;
    }

    .package-label {
        display: block;
        padding: 15px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
    }

    .package-item input[type="radio"]:checked+.package-label {
        border-color: #007bff;
        background: #f8f9ff;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    }

    .package-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .package-name {
        font-weight: 600;
        color: #333;
    }

    .package-price {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .original-price {
        text-decoration: line-through;
        color: #6c757d;
        font-size: 0.9em;
    }

    .discounted-price,
    .final-price {
        font-weight: 600;
        color: #dc3545;
        font-size: 1.1em;
    }

    .no-packages-alert {
        margin-top: 15px;
    }

    .no-packages-alert .alert {
        border-radius: 10px;
        border: none;
        padding: 20px;
        text-align: center;
    }

    .no-packages-alert .alert i {
        font-size: 1.2em;
        margin-right: 8px;
    }

    .total-amount {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }

    .total-price {
        font-weight: 700;
        font-size: 1.3em;
        color: #dc3545;
    }

    .recent-transactions {
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: fit-content;
    }

    .transaction-list {
        max-height: 400px;
        overflow-y: auto;
    }

    .transaction-item {
        padding: 15px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .transaction-item:last-child {
        border-bottom: none;
    }

    .username {
        font-weight: 600;
        color: #333;
    }

    .amount {
        font-weight: 600;
        color: #28a745;
    }

    .transaction-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    .status-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.8em;
        font-weight: 600;
    }

    .status-success {
        background: #d4edda;
        color: #155724;
    }

    .game-content {
        background: #f8f9fa;
    }

    .content-wrapper {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .game-description {
        line-height: 1.6;
        color: #333;
    }

    .game-description img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 10px 0;
    }

    /* Additional Info Styles */
    .additional-info {
        background: #f8f9fa;
    }

    .info-card {
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: 100%;
    }

    .info-title {
        color: #333;
        font-weight: 600;
        margin-bottom: 20px;
        font-size: 1.2em;
    }

    .info-title i {
        color: #007bff;
    }

    /* Warranty Boxes */
    .warranty-box {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
        height: 100%;
    }

    .warranty-covered {
        background: #d4edda;
        border: 2px solid #28a745;
    }

    .warranty-not-covered {
        background: #f8d7da;
        border: 2px solid #dc3545;
    }

    .warranty-title {
        font-size: 0.95em;
        font-weight: 600;
        margin-bottom: 10px;
        color: #333;
    }

    .warranty-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .warranty-list li {
        font-size: 0.85em;
        margin-bottom: 8px;
        padding-left: 15px;
        position: relative;
        line-height: 1.4;
    }

    .warranty-list li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #333;
        font-weight: bold;
    }

    .warranty-list li:last-child {
        margin-bottom: 0;
    }

    /* Support Info */
    .support-info {
        padding: 15px 0;
    }

    .support-description {
        font-size: 0.9em;
        line-height: 1.5;
        color: #666;
        margin-bottom: 20px;
    }

    .support-contacts {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .support-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 0.9em;
        color: #333;
    }

    .support-item:last-child {
        margin-bottom: 0;
    }

    .support-item i {
        color: #007bff;
        width: 20px;
    }

    /* Instruction Styles */
    .instruction-steps {
        margin-bottom: 20px;
    }

    .step-item {
        display: flex;
        margin-bottom: 15px;
        align-items: flex-start;
    }

    .step-number {
        background: #ff6b35;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        border-radius: 6px;
        margin-right: 15px;
        min-width: 80px;
        text-align: center;
        font-size: 0.9em;
    }

    .step-content {
        flex: 1;
        line-height: 1.5;
        color: #333;
        font-size: 0.95em;
    }

    .instruction-note {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
        padding: 15px;
        color: #856404;
        font-size: 0.9em;
        line-height: 1.4;
    }

    .instruction-note strong {
        color: #d63031;
    }

    @media (max-width: 768px) {
        .banner-wrapper {
            max-width: 100%;
            padding: 0 15px;
        }

        .banner-wrapper img {
            width: 100%;
            height: auto;
            max-height: 90px;
        }

        .payment-method-label {
            padding: 12px;
            min-height: 50px;
        }

        .payment-method-label i {
            font-size: 1em;
        }

        .payment-method-label span {
            font-size: 0.9em;
        }

        .package-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .package-label {
            padding: 10px;
        }

        .package-name {
            font-size: 0.8em;
            line-height: 1.3;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .package-price {
            font-size: 0.8em;
        }

        .discounted-price,
        .final-price {
            font-size: 0.9em;
        }

        .original-price {
            font-size: 0.75em;
        }

        .recent-transactions {
            margin-top: 30px;
        }

        /* Additional Info Mobile */
        .info-card {
            padding: 20px;
        }

        .info-title {
            font-size: 1.1em;
        }

        .warranty-box {
            padding: 12px;
            margin-bottom: 10px;
        }

        .warranty-title {
            font-size: 0.9em;
        }

        .warranty-list li {
            font-size: 0.8em;
            margin-bottom: 6px;
        }

        .support-description {
            font-size: 0.85em;
        }

        .support-item {
            font-size: 0.85em;
        }

        /* Instruction Mobile */
        .step-item {
            flex-direction: column;
            margin-bottom: 12px;
        }

        .step-number {
            margin-right: 0;
            margin-bottom: 8px;
            min-width: auto;
            width: fit-content;
            font-size: 0.8em;
            padding: 6px 10px;
        }

        .step-content {
            font-size: 0.85em;
        }

        .instruction-note {
            font-size: 0.8em;
            padding: 12px;
        }
    }

    @media (max-width: 480px) {
        .package-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .package-label {
            padding: 6px;
        }

        .package-name {
            font-size: 0.6em;
            line-height: 1.2;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .package-price {
            font-size: 0.7em;
        }

        .discounted-price,
        .final-price {
            font-size: 0.8em;
        }

        .original-price {
            font-size: 0.65em;
        }

        /* Mobile styles for ID check */
        .input-group .btn {
            padding: 8px 12px;
            font-size: 0.8em;
        }

        #checkIdResult .alert {
            padding: 12px;
        }

        #checkIdResult .d-flex {
            flex-direction: column;
            text-align: center;
        }

        #checkIdResult .me-3 {
            margin-right: 0 !important;
            margin-bottom: 10px;
        }

        #characterImage {
            width: 40px !important;
            height: 40px !important;
        }
    }

    /* Detail recharge refresh */
    .payment-section {
        background: transparent;
    }

    .payment-form-wrapper {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        padding: 22px;
    }

    .header-game {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        padding: 14px 18px;
        border: 0;
        border-radius: 0;
        background: #f7f7f7;
        text-align: left;
    }

    .header-game-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 12px;
        object-fit: cover;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
    }

    .header-game h1 {
        color: #050505;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.3;
        margin: 0;
        text-shadow: none;
    }

    .payment-form .form-label {
        color: #0f172a;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .payment-form .form-control {
        min-height: 46px;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: none;
        color: #0f172a;
    }

    .payment-form .form-control:focus {
        border-color: #0284c7;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    }

    .payment-method-row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .payment-method-row>[class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .payment-method-item {
        margin-bottom: 0;
    }

    .payment-method-label {
        min-height: 54px;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        background: #fff;
        color: #0f172a;
        box-shadow: none;
    }

    .payment-method-item input[type="radio"]:checked+.payment-method-label,
    .payment-method-label.active {
        border-color: #0284c7;
        background: #eff6ff;
        box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12);
    }

    .payment-method-label i {
        margin-right: 0;
        color: #0284c7;
        font-size: 16px;
    }

    .payment-method-label span {
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    .package-list {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .package-label {
        min-height: 72px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
    }

    .package-item input[type="radio"]:checked+.package-label {
        border-color: #f05a28;
        background: #fff7ed;
        box-shadow: 0 8px 18px rgba(240, 90, 40, 0.12);
    }

    .package-info {
        gap: 7px;
    }

    .package-name {
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
    }

    .package-price {
        gap: 6px;
    }

    .discounted-price,
    .final-price,
    .price {
        color: #f05a28;
        font-size: 15px;
        font-weight: 800;
    }

    .original-price {
        color: #94a3b8;
        font-size: 12px;
    }

    .payment-form .btn-primary {
        min-height: 48px;
        border: 1px solid #0879c9;
        border-radius: 8px;
        background: #0984d8;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(9, 132, 216, 0.18);
    }

    .payment-form .btn-primary:hover,
    .payment-form .btn-primary:focus {
        background: #0674bf;
        border-color: #0674bf;
    }

    @media (max-width: 768px) {
        .payment-form-wrapper {
            padding: 16px;
        }

        .header-game h1 {
            font-size: 15px;
        }

        .header-game {
            gap: 10px;
            padding: 10px 12px;
        }

        .header-game-thumb {
            width: 48px;
            height: 48px;
            flex-basis: 48px;
            border-radius: 9px;
        }

        .payment-method-row {
            display: flex;
            flex-wrap: nowrap;
            margin-left: -5px;
            margin-right: -5px;
        }

        .payment-method-row>.col-xs-6 {
            width: 50%;
            float: none;
            padding-left: 5px;
            padding-right: 5px;
        }

        .payment-method-label {
            min-height: 48px;
            padding: 9px 6px;
        }

        .payment-method-label i {
            font-size: 14px;
        }

        .payment-method-label span {
            font-size: 12px;
        }

        .package-list {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .package-label {
            min-height: 66px;
            padding: 10px;
        }

        .package-name {
            font-size: 12px;
        }

        .discounted-price,
        .final-price,
        .price {
            font-size: 13px;
        }
    }

/* ======================== Moved from resources/views/game/detail-custom.blade.php ======================== */
/* Style block 1 */
/* ======================== RECHARGE HISTORY STYLES ======================== */
    .recharge-history-section {
        padding: 20px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 2px solid #e3f2fd;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
        position: relative;
        overflow: hidden;
    }

    .recharge-history-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% {
            left: -100%;
        }

        100% {
            left: 100%;
        }
    }

    .recharge-history-header {
        text-align: center;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .recharge-history-title {
        color: #1976D2;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .recharge-history-title i {
        color: #2196F3;
        font-size: 16px;
    }

    .recharge-history-subtitle {
        color: #666;
        font-size: 13px;
        margin: 0;
    }

    .recharge-history-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
        padding-right: 8px;
        position: relative;
        z-index: 1;
    }

    .recharge-history-grid::-webkit-scrollbar {
        width: 6px;
    }

    .recharge-history-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .recharge-history-grid::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .recharge-history-grid::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .recharge-history-item {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .recharge-history-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
        border-color: #2196F3;
    }

    .recharge-history-content {
        padding: 15px;
    }

    .recharge-info {
        margin-bottom: 12px;
    }

    .recharge-game {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .recharge-game i {
        color: #2196F3;
        font-size: 14px;
    }

    .game-name {
        font-weight: 600;
        color: #1976D2;
        font-size: 14px;
    }

    .recharge-details {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .recharge-amount,
    .recharge-server {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .recharge-amount i,
    .recharge-server i {
        color: #666;
        font-size: 12px;
    }

    .amount {
        font-weight: 600;
        color: #dc3545;
        font-size: 13px;
    }

    .server {
        color: #666;
        font-size: 12px;
    }

    .recharge-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .recharge-status {
        flex-shrink: 0;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .status-success {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
    }

    .status-processing {
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: white;
    }

    .status-waiting {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
    }

    .status-failed {
        background: linear-gradient(135deg, #f44336, #d32f2f);
        color: white;
    }

    .recharge-date {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #666;
        font-size: 11px;
    }

    .recharge-date i {
        color: #2196F3;
        font-size: 10px;
    }

    .recharge-history-empty {
        text-align: center;
        padding: 30px 15px;
        color: #666;
        grid-column: 1 / -1;
    }

    .recharge-history-empty .empty-icon {
        font-size: 36px;
        color: #ddd;
        margin-bottom: 12px;
    }

    /* Responsive styles */
    @media only screen and (max-width: 768px) {
        .recharge-history-section {
            padding: 15px;
        }

        .recharge-history-title {
            font-size: 17px;
        }

        .recharge-history-subtitle {
            font-size: 12px;
        }

        .recharge-history-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
            max-height: 350px;
        }

        .recharge-history-content {
            padding: 15px;
        }

        .game-name {
            font-size: 14px;
        }

        .recharge-details {
            gap: 15px;
        }

        .amount {
            font-size: 13px;
        }

        .server {
            font-size: 12px;
        }

        .status-badge {
            padding: 4px 8px;
            font-size: 10px;
        }

        .recharge-date {
            font-size: 11px;
        }
    }

    @media only screen and (max-width: 575px) {
        .recharge-history-section {
            padding: 12px;
        }

        .recharge-history-title {
            font-size: 16px;
        }

        .recharge-history-subtitle {
            font-size: 11px;
        }

        .recharge-history-grid {
            grid-template-columns: 1fr;
            gap: 12px;
            max-height: 300px;
        }

        .recharge-history-content {
            padding: 12px;
        }

        .game-name {
            font-size: 13px;
        }

        .recharge-details {
            gap: 12px;
        }

        .amount {
            font-size: 12px;
        }

        .server {
            font-size: 11px;
        }

        .status-badge {
            padding: 3px 6px;
            font-size: 9px;
        }

        .recharge-date {
            font-size: 10px;
        }
    }

    @media only screen and (max-width: 375px) {
        .recharge-history-section {
            padding: 10px;
        }

        .recharge-history-title {
            font-size: 15px;
        }

        .recharge-history-subtitle {
            font-size: 10px;
        }

        .recharge-history-grid {
            gap: 10px;
            max-height: 250px;
        }

        .recharge-history-content {
            padding: 10px;
        }

        .game-name {
            font-size: 12px;
        }

        .recharge-details {
            gap: 10px;
        }

        .amount {
            font-size: 11px;
        }

        .server {
            font-size: 10px;
        }

        .status-badge {
            padding: 2px 5px;
            font-size: 8px;
        }

        .recharge-date {
            font-size: 9px;
        }
    }
/* Style block 2 */
.game-banner {
        background: #f8f9fa;
        padding: 15px 0;
    }

    .banner-wrapper {
        max-width: 728px;
        margin: 0 auto;
        text-align: center;
    }

    .banner-wrapper img {
        width: 728px;
        height: 90px;
        object-fit: cover;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .payment-form-wrapper {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .game-logo {
        border-radius: 10px;
    }

    .payment-method-item {
        position: relative;
        margin-bottom: 10px;
    }

    .payment-method-item input[type="radio"] {
        display: none;
    }

    .payment-method-label {
        display: flex;
        align-items: center;
        padding: 15px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        height: 100%;
        min-height: 60px;
    }

    .payment-method-item input[type="radio"]:checked+.payment-method-label {
        border-color: #007bff;
        background: #f8f9ff;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    }

    .payment-method-label.active {
        border-color: #007bff;
        background: #f8f9ff;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
        cursor: default;
    }

    .payment-method-label i {
        font-size: 1.2em;
        color: #007bff;
        margin-right: 10px;
    }

    .payment-method-label span {
        font-weight: 500;
        color: #333;
    }

    .package-group {
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 15px;
        background: #f8f9fa;
    }

    .package-group-title {
        color: #1976D2;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #2196F3;
        text-align: center;
    }

    .package-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }

    .package-item {
        position: relative;
    }

    .package-item input[type="radio"] {
        display: none;
    }

    .package-label {
        display: block;
        padding: 15px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
    }

    .package-item input[type="radio"]:checked+.package-label {
        border-color: #007bff;
        background: #f8f9ff;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    }

    .package-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .package-name {
        font-weight: 600;
        color: #333;
    }

    .package-price {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .price {
        font-weight: 600;
        color: #dc3545;
        font-size: 1.1em;
    }

    .no-packages-alert {
        margin-top: 15px;
    }

    .no-packages-alert .alert {
        border-radius: 10px;
        border: none;
        padding: 20px;
        text-align: center;
    }

    .no-packages-alert .alert i {
        font-size: 1.2em;
        margin-right: 8px;
    }

    .total-amount {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }

    .total-price {
        font-weight: 700;
        font-size: 1.3em;
        color: #dc3545;
    }

    .recent-transactions {
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: fit-content;
    }

    .transaction-list {
        max-height: 400px;
        overflow-y: auto;
    }

    .transaction-item {
        padding: 15px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .transaction-item:last-child {
        border-bottom: none;
    }

    .username {
        font-weight: 600;
        color: #333;
    }

    .amount {
        font-weight: 600;
        color: #28a745;
    }

    .transaction-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    .status-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.8em;
        font-weight: 600;
    }

    .status-success {
        background: #d4edda;
        color: #155724;
    }

    .game-content {
        background: #f8f9fa;
    }

    .content-wrapper {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .game-description {
        line-height: 1.6;
        color: #333;
    }

    .game-description img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 10px 0;
    }

    /* Additional Info Styles */
    .additional-info {
        background: #f8f9fa;
    }

    .info-card {
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: 100%;
    }

    .info-title {
        color: #333;
        font-weight: 600;
        margin-bottom: 20px;
        font-size: 1.2em;
    }

    .info-title i {
        color: #007bff;
    }

    /* Warranty Boxes */
    .warranty-box {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
        height: 100%;
    }

    .warranty-covered {
        background: #d4edda;
        border: 2px solid #28a745;
    }

    .warranty-not-covered {
        background: #f8d7da;
        border: 2px solid #dc3545;
    }

    .warranty-title {
        font-size: 0.95em;
        font-weight: 600;
        margin-bottom: 10px;
        color: #333;
    }

    .warranty-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .warranty-list li {
        font-size: 0.85em;
        margin-bottom: 8px;
        padding-left: 15px;
        position: relative;
        line-height: 1.4;
    }

    .warranty-list li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #333;
        font-weight: bold;
    }

    .warranty-list li:last-child {
        margin-bottom: 0;
    }

    /* Support Info */
    .support-info {
        padding: 15px 0;
    }

    .support-description {
        font-size: 0.9em;
        line-height: 1.5;
        color: #666;
        margin-bottom: 20px;
    }

    .support-contacts {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .support-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 0.9em;
        color: #333;
    }

    .support-item:last-child {
        margin-bottom: 0;
    }

    .support-item i {
        color: #007bff;
        width: 20px;
    }

    /* Instruction Styles */
    .instruction-steps {
        margin-bottom: 20px;
    }

    .step-item {
        display: flex;
        margin-bottom: 15px;
        align-items: flex-start;
    }

    .step-number {
        background: #ff6b35;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        border-radius: 6px;
        margin-right: 15px;
        min-width: 80px;
        text-align: center;
        font-size: 0.9em;
    }

    .step-content {
        flex: 1;
        line-height: 1.5;
        color: #333;
        font-size: 0.95em;
    }

    .instruction-note {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
        padding: 15px;
        color: #856404;
        font-size: 0.9em;
        line-height: 1.4;
    }

    .instruction-note strong {
        color: #d63031;
    }

    @media (max-width: 768px) {
        .banner-wrapper {
            max-width: 100%;
            padding: 0 15px;
        }

        .banner-wrapper img {
            width: 100%;
            height: auto;
            max-height: 90px;
        }

        .payment-method-label {
            padding: 12px;
            min-height: 50px;
        }

        .payment-method-label i {
            font-size: 1em;
        }

        .payment-method-label span {
            font-size: 0.9em;
        }

        .package-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .package-label {
            padding: 10px;
        }

        .package-name {
            font-size: 0.8em;
            line-height: 1.3;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .package-price {
            font-size: 0.8em;
        }

        .price {
            font-size: 0.9em;
        }

        .recent-transactions {
            margin-top: 30px;
        }

        /* Additional Info Mobile */
        .info-card {
            padding: 20px;
        }

        .info-title {
            font-size: 1.1em;
        }

        .warranty-box {
            padding: 12px;
            margin-bottom: 10px;
        }

        .warranty-title {
            font-size: 0.9em;
        }

        .warranty-list li {
            font-size: 0.8em;
            margin-bottom: 6px;
        }

        .support-description {
            font-size: 0.85em;
        }

        .support-item {
            font-size: 0.85em;
        }

        /* Instruction Mobile */
        .step-item {
            flex-direction: column;
            margin-bottom: 12px;
        }

        .step-number {
            margin-right: 0;
            margin-bottom: 8px;
            min-width: auto;
            width: fit-content;
            font-size: 0.8em;
            padding: 6px 10px;
        }

        .step-content {
            font-size: 0.85em;
        }

        .instruction-note {
            font-size: 0.8em;
            padding: 12px;
        }
    }

    @media (max-width: 480px) {
        .package-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .package-label {
            padding: 6px;
        }

        .package-name {
            font-size: 0.6em;
            line-height: 1.2;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .package-price {
            font-size: 0.7em;
        }

        .price {
            font-size: 0.8em;
        }

        /* Mobile styles for ID check */
        .input-group .btn {
            padding: 8px 12px;
            font-size: 0.8em;
        }

        #checkIdResult .alert {
            padding: 12px;
        }

        #checkIdResult .d-flex {
            flex-direction: column;
            text-align: center;
        }

        #checkIdResult .me-3 {
            margin-right: 0 !important;
            margin-bottom: 10px;
        }

        #characterImage {
            width: 40px !important;
            height: 40px !important;
        }
    }

    /* Detail recharge refresh */
    .payment-section {
        background: transparent;
    }

    .payment-form-wrapper {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        padding: 22px;
    }

    .header-game {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        padding: 14px 18px;
        border: 0;
        border-radius: 0;
        background: #f7f7f7;
        text-align: left;
    }

    .header-game-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 12px;
        object-fit: cover;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
    }

    .header-game h1 {
        color: #050505;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.3;
        margin: 0;
        text-shadow: none;
    }

    .payment-form .form-label {
        color: #0f172a;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .payment-form .form-control {
        min-height: 46px;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: none;
        color: #0f172a;
    }

    .payment-form .form-control:focus {
        border-color: #0284c7;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    }

    .payment-method-single {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .payment-method-item {
        margin-bottom: 0;
    }

    .payment-method-label {
        min-height: 54px;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        background: #eff6ff;
        color: #0f172a;
        box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12);
    }

    .payment-method-label.active {
        border-color: #0284c7;
    }

    .payment-method-label i {
        margin-right: 0;
        color: #0284c7;
        font-size: 16px;
    }

    .payment-method-label span {
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    .package-group {
        margin-bottom: 18px !important;
    }

    .package-group-title {
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
        margin: 0 0 10px;
    }

    .package-list {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .package-label {
        min-height: 72px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
    }

    .package-item input[type="radio"]:checked+.package-label {
        border-color: #f05a28;
        background: #fff7ed;
        box-shadow: 0 8px 18px rgba(240, 90, 40, 0.12);
    }

    .package-info {
        gap: 7px;
    }

    .package-name {
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
    }

    .package-price {
        gap: 6px;
    }

    .discounted-price,
    .final-price,
    .price {
        color: #f05a28;
        font-size: 15px;
        font-weight: 800;
    }

    .original-price {
        color: #94a3b8;
        font-size: 12px;
    }

    .payment-form .btn-primary {
        min-height: 48px;
        border: 1px solid #0879c9;
        border-radius: 8px;
        background: #0984d8;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(9, 132, 216, 0.18);
    }

    .payment-form .btn-primary:hover,
    .payment-form .btn-primary:focus {
        background: #0674bf;
        border-color: #0674bf;
    }

    @media (max-width: 768px) {
        .payment-form-wrapper {
            padding: 16px;
        }

        .header-game h1 {
            font-size: 15px;
        }

        .header-game {
            gap: 10px;
            padding: 10px 12px;
        }

        .header-game-thumb {
            width: 48px;
            height: 48px;
            flex-basis: 48px;
            border-radius: 9px;
        }

        .payment-method-label {
            min-height: 48px;
            padding: 9px 6px;
        }

        .payment-method-label i {
            font-size: 14px;
        }

        .payment-method-label span {
            font-size: 12px;
        }

        .package-list {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .package-label {
            min-height: 66px;
            padding: 10px;
        }

        .package-name {
            font-size: 12px;
        }

        .discounted-price,
        .final-price,
        .price {
            font-size: 13px;
        }
    }

/* ======================== Moved from resources/views/game/payment.blade.php ======================== */
/* Style block 1 */
/* Payment Header */
    .payment-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }

    .payment-header-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .payment-info {
        text-align: center;
    }

    .payment-info h4 {
        margin: 0 0 0.5rem 0;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .status-badge {
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .status-pending {
        background: rgba(255, 193, 7, 0.2);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .status-processing {
        background: rgba(0, 123, 255, 0.2);
        color: #007bff;
        border: 1px solid rgba(0, 123, 255, 0.3);
    }

    .status-success {
        background: rgba(40, 167, 69, 0.2);
        color: #28a745;
        border: 1px solid rgba(40, 167, 69, 0.3);
    }

    .status-warning {
        background: rgba(255, 193, 7, 0.2);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .status-failed {
        background: rgba(220, 53, 69, 0.2);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.3);
    }

    /* Payment Cards */
    .payment-card,
    .order-info-card,
    .support-card {
        background: white;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        border: none;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .payment-card .card-header,
    .order-info-card .card-header,
    .support-card .card-header {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        padding: 1rem;
        font-weight: 600;
        color: #495057;
    }

    .payment-card .card-header h5,
    .order-info-card .card-header h5,
    .support-card .card-header h5 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .payment-card .card-body,
    .order-info-card .card-body,
    .support-card .card-body {
        padding: 1rem;
    }

    /* Detail Rows */
    .detail-row,
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f3f4;
    }

    .detail-row:last-child,
    .detail-item:last-child {
        border-bottom: none;
    }

    .detail-label {
        font-weight: 600;
        color: #495057;
        min-width: 120px;
    }

    .detail-value {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #212529;
        font-weight: 500;
    }

    .detail-value.amount {
        color: #dc3545;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .copyable-text {
        background: #f8f9fa;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-family: 'Courier New', monospace;
        font-weight: 600;
    }

    .btn-copy {
        background: #007bff;
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-copy:hover {
        background: #0056b3;
        transform: scale(1.05);
    }

    /* Card Payment Form */
    .payment-amount {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
    }

    .amount-display {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .amount-label {
        font-size: 1rem;
        opacity: 0.9;
    }

    .amount-value {
        font-size: 2rem;
        font-weight: 700;
    }

    .card-form .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
    }

    .card-form .form-control {
        border: 2px solid #e9ecef;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
    }

    .card-form .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .card-notice {
        margin-top: 1rem;
        background: #f8f9fa;
        border-radius: 10px;
        padding: 1rem;
    }

    .notice-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .notice-item:last-child {
        margin-bottom: 0;
    }

    /* Countdown */
    .countdown-section {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 10px;
        padding: 1rem;
        text-align: center;
    }

    .countdown-title {
        font-weight: 600;
        color: #856404;
        margin-bottom: 0.5rem;
    }

    .countdown-timer {
        font-size: 1.5rem;
        font-weight: 700;
        color: #dc3545;
        margin-bottom: 0.5rem;
    }

    .countdown-minutes,
    .countdown-seconds {
        background: #dc3545;
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 5px;
        margin: 0 0.1rem;
    }

    .countdown-expired {
        background: #dc3545;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
    }

    .countdown-note {
        font-size: 0.8rem;
        color: #856404;
    }

    /* Support */
    .support-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        color: #6c757d;
    }

    .support-item i {
        width: 20px;
        color: #007bff;
    }

    /* Warning Alert */
    .warning-alert {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
        padding: 1rem;
        margin: 1rem 0;
    }

    .warning-content {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .warning-content i {
        color: #856404;
        font-size: 1.1rem;
        margin-top: 0.1rem;
    }

    .warning-content div {
        color: #856404;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Action Buttons */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .action-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }

    .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .btn-secondary {
        background: #6c757d;
        color: white;
        border: none;
    }

    .btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-1px);
    }

    /* QR Section */
    .qr-container {
        position: relative;
        display: inline-block;
        cursor: pointer;
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .qr-container:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .qr-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .qr-container:hover .qr-overlay {
        opacity: 1;
    }

    .qr-overlay i {
        color: white;
        font-size: 20px;
    }

    .qr-note {
        color: #6c757d;
        font-size: 0.9rem;
    }

    /* Detail Rows */
    .detail-row,
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f3f4;
    }

    .detail-row:last-child,
    .detail-item:last-child {
        border-bottom: none;
    }

    .detail-label {
        font-weight: 600;
        color: #495057;
        min-width: 120px;
    }

    .detail-value {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #212529;
        font-weight: 500;
    }

    .detail-value.amount {
        color: #dc3545;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .copyable-text {
        background: #f8f9fa;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-family: 'Courier New', monospace;
        font-weight: 600;
    }

    .btn-copy {
        background: #007bff;
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-copy:hover {
        background: #0056b3;
        transform: scale(1.05);
    }

    /* Card Payment Form */
    .payment-amount {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
    }

    .amount-display {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .amount-label {
        font-size: 1rem;
        opacity: 0.9;
    }

    .amount-value {
        font-size: 2rem;
        font-weight: 700;
    }

    .card-form .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
    }

    .card-form .form-control {
        border: 2px solid #e9ecef;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
    }

    .card-form .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .card-notice {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 1rem;
    }

    .notice-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .notice-item:last-child {
        margin-bottom: 0;
    }

    /* Countdown */
    .countdown-section {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 10px;
        padding: 1rem;
        text-align: center;
    }

    .countdown-title {
        font-weight: 600;
        color: #856404;
        margin-bottom: 0.5rem;
    }

    .countdown-timer {
        font-size: 1.5rem;
        font-weight: 700;
        color: #dc3545;
        margin-bottom: 0.5rem;
    }

    /* Toast */
    .copy-toast {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(40, 167, 69, 0.9);
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 1000;
        animation: fadeInOut 2s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    @keyframes fadeInOut {
        0% {
            opacity: 0;
            transform: translate(-50%, 20px);
        }

        15% {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        85% {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        100% {
            opacity: 0;
            transform: translate(-50%, -20px);
        }
    }

    /* Responsive */
    @media (max-width: 576px) {
        .payment-header {
            padding: 0.75rem;
        }

        .payment-card .card-body,
        .order-info-card .card-body,
        .support-card .card-body {
            padding: 1rem;
        }

        .qr-container img {
            width: 200px !important;
        }

        .copyable-text {
            font-size: 0.9rem;
            padding: 0.4rem 0.8rem;
        }

        .payment-info {
            flex-direction: column;
            align-items: flex-start;
        }

        .payment-status {
            margin-top: 1rem;
        }

        .status-badge {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }

        .amount-value {
            font-size: 1.2rem;
        }

        .countdown-timer {
            font-size: 1.2rem;
        }
    }

    /* Card History Styles */
    .card-history-section {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .card-history-header {
        margin-bottom: 1rem;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0.5rem;
    }

    .card-history-title {
        margin: 0;
        color: #495057;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .card-history-title i {
        color: #007bff;
        font-size: 14px;
    }

    .card-history-list {
        max-height: 300px;
        overflow-y: auto;
    }

    .card-history-item {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        transition: all 0.3s ease;
    }

    .card-history-item:last-child {
        margin-bottom: 0;
    }

    .card-history-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .card-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .card-details {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
    }

    .card-main-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .card-secondary-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-type,
    .card-amount {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .card-type i,
    .card-amount i {
        color: #6c757d;
        font-size: 12px;
        width: 16px;
        flex-shrink: 0;
    }

    .type-name {
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
    }

    .card-amount .amount {
        font-weight: 600;
        color: #dc3545;
        font-size: 0.9rem;
    }

    .card-serial,
    .card-code {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #6c757d;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .serial-label,
    .code-label {
        font-weight: 600;
        color: #495057;
        min-width: 45px;
        flex-shrink: 0;
    }

    .serial-value,
    .code-value {
        font-family: 'Courier New', monospace;
        font-weight: 600;
        color: #212529;
        word-break: break-all;
        flex: 1;
        min-width: 0;
    }

    .card-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        min-width: 120px;
    }

    .card-status {
        text-align: right;
    }

    .card-status .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .status-waiting {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
    }

    .status-processing {
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: white;
    }

    .status-success {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
    }

    .status-failed {
        background: linear-gradient(135deg, #f44336, #d32f2f);
        color: white;
    }

    .card-time {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #6c757d;
        font-size: 11px;
    }

    .card-time i {
        color: #007bff;
        font-size: 10px;
    }

    .card-message {
        margin-top: 0.75rem;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 6px;
        border-left: 3px solid #007bff;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-message i {
        color: #007bff;
        font-size: 12px;
        margin-top: 2px;
    }

    .card-message span {
        color: #495057;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Game Info Text Styles */
    .game-info-text {
        font-size: 0.9em;
        color: #212529;
        line-height: 1.4;
        word-break: break-word;
        background: #f8f9fa;
        padding: 8px 10px;
        border-radius: 4px;
        border-left: 3px solid #007bff;
    }

    /* Mobile responsive */
    @media (max-width: 576px) {
        .game-info-text {
            font-size: 0.8em;
            padding: 6px 8px;
        }
    }

    /* Responsive for card history */
    @media (max-width: 576px) {
        .card-history-section {
            padding: 0.75rem;
        }

        .card-info {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
        }

        .card-details {
            width: 100%;
            gap: 0.5rem;
        }

        .card-main-info {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
        }

        .card-secondary-info {
            width: 100%;
            gap: 0.25rem;
        }

        .card-meta {
            align-items: stretch;
            min-width: auto;
            width: 100%;
            gap: 0.5rem;
        }

        .card-status {
            text-align: center;
            width: 100%;
        }

        .card-status .status-badge {
            width: 100%;
            justify-content: center;
        }

        .card-time {
            font-size: 10px;
            text-align: center;
            width: 100%;
        }

        .card-history-list {
            max-height: 250px;
        }

        .card-history-item {
            padding: 0.75rem;
        }

        .type-name,
        .card-amount .amount {
            font-size: 0.85rem;
        }

        .card-message {
            font-size: 0.8rem;
            padding: 0.4rem;
        }

        .card-serial,
        .card-code {
            font-size: 11px;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 4px 0;
        }

        .serial-label,
        .code-label {
            min-width: 40px;
            font-size: 10px;
            font-weight: 600;
        }

        .serial-value,
        .code-value {
            font-size: 10px;
            word-break: break-all;
            text-align: right;
            flex: 1;
            font-family: 'Courier New', monospace;
        }
    }

/* Stable layout for filtered game lists */
#list-game.game-list-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 22px;
    margin: 20px 0 0;
}

#list-game.game-list-row::before,
#list-game.game-list-row::after {
    display: none;
    content: none;
}

#list-game.game-list-row > .game-item {
    float: none;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 8px;
    clear: none !important;
}

#list-game.game-list-row > .game-item[style*="display: none"] {
    display: none !important;
}

#list-game.game-list-row .game-card-link {
    display: flex;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    #list-game.game-list-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 992px) {
    #list-game.game-list-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    #list-game.game-list-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 14px;
    }
}

@media only screen and (max-width: 575px) {
    #list-game.game-list-row {
        /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
        gap: 18px 12px;
    }
}
