.text_h {
  background: linear-gradient(to right,
      #7953cd 20%,
      #00affa 30%,
      #0190cd 70%,
      #764ada 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%;
  /* 16:9 */
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.metallic-text {
  font-size: 10vmin;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: #d4af37;
  /* สีทองพื้นฐาน */
  background: linear-gradient(90deg,
      #fff4c2 0%,
      #d4af37 40%,
      #b8860b 60%,
      #fff4c2 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: 0% center;
  }
}

.profile-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.profile-card img {
  width: 100%;
  display: block;
  height: 380px;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-tag {
  font-size: 18px;
  background: #000;
  color: white;
  padding: 5px 7px;
  border-radius: 10px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #fff;
  /*background: rgba(255, 255, 255, 0.2); */
  color: black;
  font-weight: bold;
  padding: 3px 5px;
  border-radius: 10px;
  font-size: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-sidebar {
  background: linear-gradient(180deg, #1a0033, #0d001a);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.6);
  /* Internet Explorer/Edge */
}

.main-sidebar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.navbar-dark .navbar-nav .nav-link {
  color: #8f00ff !important;
}

.navbar-dark {
  background-color: #0D0D0D !important;
}

body {
  background-color: #0D0D0D !important;
}

.card {
  background: linear-gradient(135deg, #1c1c2e, #2d003d) !important;
}

.wrapper {
  min-height: 100vh;
  background: url("../dist/img/bg11.png") center/cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  /* ครอบคลุมทั้งจอโดยไม่ขยายผิดสัดส่วน */
  background-attachment: fixed;
  /* ให้พื้นหลังนิ่งเวลาเลื่อน */

}

.content-wrapper {
  min-height: 100vh;
  background: url("../dist/img/bg11.png") center/cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

}

.btn {
  text-transform: uppercase;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(45deg, #FFD700, #FFA500) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 7px 14px !important;
  cursor: pointer !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #FFC107, #FF8C00) !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7) !important;
}

.btn-back {
  background-color: #4d4d4d !important;
  color: #a5a5a5 !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 7px 14px !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.btn-back:hover {
  background-color: #797979 !important;
  color: #525252 !important;
}

p {
  margin-bottom: 0;
}

.bg-red1 {
  background: #000;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 30%, rgb(69, 43, 0) 100%) !important;
}

.bg-red2 {
  background: #000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 30%, rgba(69, 0, 0, 1) 100%) !important;
}

.bg-red3 {
  background: #3a0061;
  background: linear-gradient(120deg, rgba(58, 0, 97, 1) 0%, rgba(253, 29, 29, 1) 66%, rgba(252, 176, 69, 1) 100%) !important;
}

.bg_red {
  background-color: #ff0000 !important;
  color: #fff !important;
}

.head_title0 {
  font-weight: bold;
  font-size: 16;
}

.head_title {
  font-weight: bold;
  color: #8B0000;
  font-size: 20px;
}

.head_title2 {
  font-weight: bold;
  color: #F5DEB3;
  font-size: 20px;
}

.head_title3 {
  font-weight: bold;
  color: #C99846;
  font-size: 18px;
}

.head_title4 {
  font-weight: bold;
  color: #FFD700;
  font-size: 18px;
}

.head_title5 {
  font-weight: bold;
  color: #ff0000;
  font-size: 18px;
}

.head_title_red {
  font-weight: bold;
  color: #8B0000;
  font-size: 18px;
}

.head_title_gray {
  font-weight: bold;
  color: #8d8d8d;
}

.text_b {
  font-weight: bold;
}

.text1 {
  color: #ff0000;
}

.text16 {
  font-size: 16px;
}

.text18 {
  font-size: 18px;
}

.text20 {
  font-size: 20px;
}

.text22 {
  font-size: 22px;
}

.price {
  color: #C99846;
}

.price2 {
  color: #ff9900;
}

.product-card,
.cart-item {
  background: #0D0D0D;
  border: 2px solid transparent;
  border-radius: 10px;
  background-image:
    linear-gradient(#0D0D0D, #0D0D0D),
    linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.product-name {
  font-weight: bold;
}

input:hover {
  border: 2px solid #ffb200 !important;
}


.box {
  border: 2px solid #7e000096;
}

#progressBarContainer {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
  /* ซ่อนไว้ก่อน */
}

#progressBar {
  width: 0%;
  height: 25px;
  background-color: #4CAF50;
  text-align: center;
  line-height: 25px;
  color: white;
  border-radius: 5px;
}

.blink-fast {
  animation: blink 3s linear infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.users-list>li img {
  padding-bottom: 5px;
  border-radius: 0% !important;
  height: auto !important;
  max-width: 50% !important;
}

.users-list-name {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gold {
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
}

.gold2 {
  background: linear-gradient(135deg, #4d3900 0%, #bfa74f 40%, #ffeb99 80%, #bfa74f 100%);
  border-radius: 10px;
}

.gold3 {
  background: linear-gradient(135deg, #4d3900 0%, #bfa74f 40%, #ffeb99 80%, #bfa74f 100%);
}

.gold4 {
  background: linear-gradient(324deg, #dd9d1a, #2a7ef8, #720c9a, #cf1c52, #a89b23);
  background-size: 300% 300%;
  animation: gold4 50s ease infinite;
}

@keyframes gold4 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg_dark {
  min-height: 100vh;
  /* สูงเต็มหน้าจอ */
  background-color: #2b2c2f;
  background-image: linear-gradient(45deg, #2b2c2f 0%, #000000 74%);
  background-repeat: no-repeat;
  background-size: cover;
  /* ครอบคลุมทั้งจอโดยไม่ขยายผิดสัดส่วน */
  background-attachment: fixed;
  /* ให้พื้นหลังนิ่งเวลาเลื่อน */
}

.dark2 {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #3a2f20 100%);
}

.text_black {
  color: #000 !important;
}

.bg-b1 {
  background-image: linear-gradient(to right, #420088 0%, #004bcc 100%);
}

.bg-b2 {
  background: #000428;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #004e92, #000428);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #004e92, #000428);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.bg-b3 {
  background: #0F2027;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to left, #2C5364, #203A43, #0F2027);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to left, #2C5364, #203A43, #0F2027);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.bg-b4 {
  background: #141E30;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to left, #243B55, #141E30);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to left, #243B55, #141E30);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.bg_b5 {
  background: linear-gradient(300deg, deepskyblue, darkviolet, blue);
  background-size: 180% 180%;
  animation: bg-b5 18s ease infinite;
}

@keyframes bg-b5 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg_b6 {
  background: linear-gradient(306deg, #7c765b, #e47e37, #640975, #393ffb, #aaa9f3);
  background-size: 300% 300%;
  animation: bg_b6 18s ease infinite;
}

@keyframes bg_b6 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg_b7 {
  background: linear-gradient(335deg, #38026c, #8c30ef, #e72631, #f0a328, #7fa6c4);
  background-size: 300% 300%;
  animation: bg_b7 15s ease infinite;
}



@keyframes bg_b7 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg_b8 {
   min-height: 100vh;
  background: url("../dist/img/bg11.png") center/cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.bg_b9 {
  background-image: linear-gradient(134.6deg, rgba(201, 37, 107, 1) 15.4%, rgba(116, 16, 124, 1) 74.7%);
}

.bg_b10 {
  background: #8E2DE2;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to left, #4A00E0, #8E2DE2);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to left, #4A00E0, #8E2DE2);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

table thead {
  color: #ff00ff; 
  /* สีตัวอักษร */
}

table thead th {
  /*padding: 10px 15px;     /* ช่องว่างรอบข้อความ */
  border-bottom: 2px solid #000000;
  /* เส้นแบ่งด้านล่าง */
}

table tr:hover {
  background: #170024 !important;
  /* ไล่ทองตอน hover */
  color: rgb(214, 214, 214);
  /* ตัวหนังสือดำเพื่อให้อ่านง่ายบนทอง */
  cursor: pointer;
}

.dark-mode .modal-content {
  background-image: radial-gradient(circle 815px at 23.4% -21.8%, rgb(42, 9, 85) 0.2%, rgba(0, 0, 0, 1) 100.2%) !important;
}

.bottom-nav {
  display: none;
}

/* แสดงเมื่อหน้าจอกว้างไม่เกิน 768px (โหมด mobile) */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #070707;
    border-top: 1px solid #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .nav-btn {
    flex: 1;
    border: none;
    background: none;
    text-align: center;
    color: #777;
    font-size: 12px;
    transition: all 0.2s;
    padding: 5px 0;
  }

  .nav-btn i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
  }

  .nav-btn.active,
  .nav-btn:hover {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
  }

  .nav-btn:active {
    transform: scale(0.95);
  }
}
