/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.20.3
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

@media (max-width: 768px) {
  .tab-content.active {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .game-card img {
    height: 200px;
  }
}
 
 /* ===== Sidebar ===== */
  .menu-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: #f1c84b;
margin-right: 16px;
  }

.menu-item span {
  font-size: 17px;
  color: #ccc;
  text-align: left;
  margin-left: 6px;          /* nếu icon dính quá gần chữ */
}


.sidebar {
  width: 119px;
  margin-left: 30px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: sticky;   /* 🟢 đổi từ fixed sang sticky */
  top: 20px;          /* 🟢 khoảng cách với mép trên */
  height: fit-content;/* 🟢 để cao bằng nội dung thực tế */
}

.menu-item {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 157px;
  padding: 14px 8px;
  border-radius: 10px;
  background: #1e1e1e;
  transition: all 0.3s ease;
  cursor: pointer;
  color: #979797;
  font-size: 19px;
}

.menu-item:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
}

.menu-item img {
  width: 45px;
  margin-left: -2px;
  margin-right: 8px;
}

/* ===== Main Content ===== */
.main {
  flex: 1;
  margin-left: 167px;
  padding: 20px;
  overflow-y: visible;  /* 🟢 bỏ scroll riêng */
  
margin-top:-833px;
}



  /* ===== Main Content ===== */
  .main {
    flex: 1;
    margin-left: 167px;
    padding: 20px;
    overflow-y: visible;

  }

  /* Tabs */
  .tabs {
    display: flex;
    gap: 50px;
    justify-content: center;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
  }

 .tab {
    font-size: 23px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    color: #cccccc;
    transition: 0.3s;
}

  .tab.active {
    color: #f1c84b;
  }

  .tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f1c84b;
  }

  /* Game grid */
  .tab-content {
    display: none;
  }
.tab-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ép luôn 3 cột */
  gap: 20px;
  justify-items: center;
}


  .game-card:hover {
    transform: translateY(-4px);
  }

 .game-card {
width: 100%; 
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card img {
  width: 100%;
  height: 220px;              /* tăng chiều cao */
  object-fit: cover;
  display: block;
}



.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.game-card .title {
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.game-card .title {
    padding: 1px;
    font-size: 15px;
    color: #fff;
    text-align: center;
    margin-top: -60px;
}

  /* Footer info */
  .footer {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 22px;
  }

  .footer span {
    color: #f1c84b;
    cursor: pointer;
  }

  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
  }

/* topbar đăng nhập */
.headerbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 10px 30px;
  color: #d4af37; /* vàng ánh kim */
  font-family: 'Inter', sans-serif;
  flex-wrap: wrap; /* cho phép xuống dòng khi hẹp */
}

.headerbar-auth {
  display: flex;
  gap: 10px;
}

.headerbar-btn-login,
.headerbar-btn-register {
  padding: 2px 25px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  text-transform: capitalize;
}

.headerbar-btn-login {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
}

.headerbar-btn-login:hover {
  background: #d4af37;
  color: #111;
}

.headerbar-btn-register {
  background: #D1AE52;
  border: none;
  color: #111;
}

.headerbar-btn-register:hover {
  background: #b8952f;
}

.headerbar-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.headerbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d4af37;
  cursor: pointer;
  transition: 0.3s;
  font-size: 18px;
}

.headerbar-item i {
  font-size: 26px;
  margin-bottom: 6px;
}

.headerbar-item:hover {
  color: #f5d46a;
}

/* =========================
   Responsive cho mobile
========================= */
@media (max-width: 768px) {
  .headerbar-container {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 15px;
    gap: 10px;
  }

  .headerbar-auth {
    justify-content: center;
  }

  .headerbar-btn-login,
  .headerbar-btn-register {
    padding: 8px 20px;
    font-size: 16px;
  }

  .headerbar-menu {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
  }

  .headerbar-item {
    font-size: 14px;
  }

  .headerbar-item i {
    font-size: 22px;
    margin-bottom: 4px;
  }
}

/* Responsive nhỏ hơn (điện thoại rất nhỏ) */
@media (max-width: 480px) {
  .headerbar-menu {
    flex-direction: column;
    align-items: center;
  }

  .headerbar-item {
    flex-direction: row;
    gap: 8px;
    font-size: 16px;
  }

  .headerbar-item i {
    font-size: 20px;
    margin-bottom: 0;
  }
}

/* ---------------------------------notify  --------------------------*/ 
.notifybar-container {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  position: relative;
  overflow: hidden;
margin-top: -37px;
}

/* Loa bên trái (cố định) */
.notifybar-left {
  flex-shrink: 0;
  margin-right: 10px;
}

.notifybar-left i {
  color: #ccc;
  font-size: 17px;
}

/* Vùng chữ chạy */
.notifybar-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
    font-size: 20px;
}
.notifybar-text a {
    color: #fff;
}

.notifybar-text {
  display: inline-block;
  animation: scroll-text 12s linear infinite;
  color: #ddd;
}

.notifybar-text span {
  color: #ffd700;
  font-weight: bold;
}

/* Hiệu ứng chạy ngang */
@keyframes scroll-text {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Biểu tượng phong bì bên phải */
.notifybar-mail {
  position: relative;
  flex-shrink: 0;
  margin-left: 15px;
}

.notifybar-mail i {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.notifybar-mail i:hover {
  color: #ffd700;
}

/* Số thông báo đỏ */
.notifybar-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  padding: 2px 5px;
}


/* ---------------------------------notify  --------------------------*/ 

/* ---------------------------------slide--------------------------*/ 
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #d1a741;
  background: #111;
  margin: 20px auto;
}

/* Slide hình */
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  transition: opacity 1s;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dấu chấm điều hướng */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #777;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #f1c84b;
  transform: scale(1.2);
}


/* ---------------------------------slide--------------------------*/ 

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    margin-top: 2px;
    border-top: 1px solid #333;
}

.section-header h3 {
    color: #fff;
    font-size: 28px;
    margin-left: 10px;
    margin-top: 11px;
}

.section-header a {
  color: #cccccc;
  font-size: 22px;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap; /* ⚡ ép chữ nằm trên 1 dòng */
    text-decoration: none !important;
}

  .section-header a:hover {
    text-decoration: underline;
  }

.section-header img {
    width: 62px;
    margin-right: -2px;
}



.footer-banner {
  position: fixed;
  bottom: 0px;           /* cách đáy một chút */
  left: 50%;              /* canh giữa theo chiều ngang */
  transform: translateX(-50%);  /* dịch lại để nằm chính giữa */
  z-index: 99999;         /* luôn nằm trên cùng */
}

.footer-banner img {
  width: 600px;           /* bạn có thể chỉnh tùy thích, ví dụ 400px hoặc 800px */
  height: auto;
  display: block;
}



@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 5px;
    background: #1a1a1a;
    gap: 10px;
    top: 0;
  }

  .menu-item {
    width: auto;
    font-size: 15px;
    padding: 8px 10px;
    background: #2a2a2a;
    border-radius: 8px;
  }

  .menu-item img {
    width: 30px;
    margin-right: 5px;
  }

  .main {
    margin-left: 0;
    margin-top: 0;
    padding: 15px 10px;
  }

  .tabs {
    gap: 20px;
    flex-wrap: wrap;
  }

  .tab {
    font-size: 18px;
    padding: 6px 8px;
  }

  .tab-content.active {
    grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
    gap: 10px;
  }

  .game-card img {
    height: 160px;
  }

  .footer {
    font-size: 16px;
  }
}

/* Điện thoại nhỏ (màn < 600px) */
@media (max-width: 600px) {
  .sidebar {
    flex-direction: column;
    align-items: center;
    background: transparent;
  }

  .menu-item {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    background: #1f1f1f;
  }

  .menu-item img {
    width: 28px;
  }

  .tab-content.active {
    grid-template-columns: repeat(1, 1fr); /* 1 cột cho điện thoại */
  }

  .game-card img {
    height: 180px;
  }

  .game-card .title {
    font-size: 14px;
  }

  .tabs {
    justify-content: center;
    gap: 10px;
  }

  .tab {
    font-size: 16px;
  }

  .footer {
    font-size: 14px;
    padding: 15px 0;
  }
}


/* === Responsive cho mobile nhưng vẫn 3 cột nhỏ === */
@media (max-width: 768px) {
  .tab-content.active {
    grid-template-columns: repeat(3, 1fr); /* vẫn 3 cột */
    gap: 10px;
  }

  .game-card img {
    height: 100px; /* giảm chiều cao hình */
  }

  .game-card .title {
    font-size: 12px;
  }

  .sidebar {
    display: none; /* ẩn sidebar nếu muốn trên mobile */
  }

  .main {
    margin-left: 0; /* bỏ khoảng trống sidebar */
    padding: 10px;
  }

  .tabs {
    gap: 20px;
  }

  .tab {
    font-size: 16px;
    padding: 6px;
  }
}

/* === Nếu nhỏ hơn 480px vẫn giữ 3 cột nhưng hình bé hơn === */
@media (max-width: 480px) {
  .tab-content.active {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .game-card img {
    height: 80px;
  }

  .game-card .title {
    font-size: 10px;
  }
}

/* === Responsive cho mobile nhưng vẫn 3 cột nhỏ === */


.headerbar-auth a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.slider-top img {
    border-radius: 19px;
}

/* ===== Icon nổi góc trái ===== */
#floating-icon {
    position: fixed;
    bottom: 107px;
    width: 90px;
    margin-left: 10px;
    height: 90px;
    border-radius: 50%;
    /* background: radial-gradient(circle at center, #2b2b2b 40%, #000 100%); */
    /* box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    /* border: 2px solid rgba(255, 215, 0, 0.6); */
    transition: left 0.4s 
ease, transform 0.3s ease;
    overflow: visible !important;
}

#floating-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Nút đóng (❌) ===== */
#floating-icon .close-btn {
    position: absolute;
    top: -13px;
    right: -34px;
    width: 30px;
    height: 8px;
    border: none;
    padding: 17px;
    border-radius: 50%;
    /* background: rgba(0, 0, 0, 0.7); */
    color: #fff;
    font-size: 17px;
    margin-right: 18px;
    line-height: 9px;
    /* text-align: center; */
    cursor: pointer;
    z-index: 10000;

}

#floating-icon .close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Khi cuộn thì dịch trái 20px */
#floating-icon.moving {
  margin-left: 1px;
}

/* Hover nhẹ */
#floating-icon:hover {
  transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 600px) {
  #floating-icon {
    bottom: 25px;
    left: 15px;
    width: 70px;
    height: 70px;
  }

  #floating-icon .close-btn {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    font-size: 13px;
  }
}

/* ===== Icon nổi góc trái ===== */


/* ===== Nút Back To Top ===== */
.back-to-top {
    position: fixed;
    bottom: 128px;
    right: 922px !important;
    display: flex;
    align-items: center;
    gap: 3px;
    background: #0c0c0cf0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 9999;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
 /* background: #f5d46a;*/
  transform: translateY(-3px);
}

/* Icon bên trái chữ */
.back-to-top img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ===== Nút Back To Top ===== */


/* --- Banner cố định trên đầu trang --- */
.top-banner {
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
}

/* Logo bên trái */
.banner-logo {
     height: 47px;
    margin-right: -22px;
}

/* Nội dung chữ */
.banner-text {
  flex: 1;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #fff;
}

/* Nút tải app */
.banner-btn {
  background: #d4af37;
  color: #111;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.banner-btn:hover {
  background: #b8931e;
}

/* Nút X đóng banner */
.banner-close {
  position: absolute;
  left: 1px;
  top: 8px;
  background: none;
  border: none;
  color: #d4af37;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}

.banner-close:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .banner-text {
    font-size: 16px;
  }
  .banner-logo {
    height: 30px;
  }
  .banner-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* --- Banner cố định trên đầu trang --- */