* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../img/02.jpg'); /* กำหนดภาพพื้นหลัง */
    background-size: cover;               /* ปรับขนาดภาพให้ครอบคลุมพื้นที่ */
    background-repeat: no-repeat;         /* ไม่ให้ภาพพื้นหลังซ้ำ */
    background-attachment: fixed;        /* ภาพพื้นหลังคงที่เมื่อเลื่อนหน้า */
    background-position: center;    /* จัดตำแหน่งภาพพื้นหลังให้อยู่ตรงกลาง */
}

/* เมนูด้านบน */
nav {
  position: sticky;
  top: 10px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(94%, 950px);
  margin: 12px auto;
  padding: 10px 14px;
  border: 1px solid rgba(0, 217, 255, 0.7);
  border-radius: 16px;
  background: rgba(4, 17, 40, 0.9);
  box-shadow:
    0 0 15px rgba(0, 217, 255, 0.45),
    inset 0 0 16px rgba(0, 217, 255, 0.1);
  backdrop-filter: blur(10px);
}

nav img {
  display: block;
  width: 125px;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.7));
}

/* ปุ่มสมัครสมาชิก */
#สมัครสมาชิก {
  position: relative;
  overflow: hidden;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #00b8e6, #006cff, #8b2cff);
  background-size: 200% 200%;
  box-shadow:
    0 0 10px #00d9ff,
    0 0 22px rgba(0, 108, 255, 0.7);
  animation: สีปุ่มสมัคร 3s ease infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

#สมัครสมาชิก::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  transform: skewX(-25deg);
  animation: แสงวิ่งปุ่มสมัคร 2.5s infinite;
}

#สมัครสมาชิก:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
}

#สมัครสมาชิก:active {
  transform: scale(0.96);
}

@keyframes สีปุ่มสมัคร {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes แสงวิ่งปุ่มสมัคร {
  from { left: -130%; }
  to { left: 150%; }
}

@media (max-width: 480px) {
  nav {
    top: 5px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  nav img {
    width: 95px;
    max-height: 42px;
  }

  #สมัครสมาชิก {
    padding: 9px 13px;
    font-size: 13px;
  }
}

#โลโก้ img {
  width: 300px;     /* กำหนดความกว้างของโลโก้ */
  height: auto; /* ปรับความสูงอัตโนมัติตามสัดส่วน */
  display: block; /* แสดงเป็นบล็อกเพื่อจัดตำแหน่ง */
  margin: 30px auto; /* จัดกึ่งกลางและเพิ่มระยะห่างด้านบนและล่าง */
  margin-top: -40px; /* ระยะห่างด้านบนของโลโก้ */
}

/* กล่องจำนวนผู้เล่นออนไลน์ */
.ผู้เล่น {
  width: min(92%, 420px);
  margin: 18px auto;
  padding: 14px 20px;
  text-align: center;
  border: 2px solid #00d9ff;
  margin-top: -50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #06152d, #0b2550);
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.8),
    inset 0 0 16px rgba(0, 217, 255, 0.15);
}

.ผู้เล่น p {
  margin: 0 0 6px;
  color: #d9faff;
  font-size: 15px;
}

#ผู้เล่น {
  color: #55f7a5;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 0 8px #55f7a5,
    0 0 18px rgba(85, 247, 165, 0.8);
  animation: กระพริบผู้เล่น 1.5s infinite alternate;
}

@keyframes กระพริบผู้เล่น {
  from {
    opacity: 0.7;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.กล่องปุ่ม {
  text-align: center; /* จัดกึ่งกลางกล่อง */
  margin-top: 30px; /*  ระยะห่างด้านบนของกล่อง */
}

#สมัครสมาชิก1 {
  position: relative; /* กำหนดตำแหน่งเป็น relative เพื่อให้สามารถจัดการกับ pseudo-element */
  padding: 14px 113px;   /* ระยะห่างภายในปุ่ม */
  border: none;     
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #1d4ed8,
    #38bdf8,
    #ffffff,
    #38bdf8,
    #1d4ed8
  );
  background-size: 300% 100%;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px #38bdf8, 0 0 25px #2563eb;
  animation: แสงวิ่ง 3s linear infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#สมัครสมาชิก1:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #ffffff, 0 0 45px #38bdf8;
}

#สมัครสมาชิก1:active {
  transform: scale(0.98);
}

@keyframes แสงวิ่ง {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.แอดไลน์ {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
  padding: 8px;
}

#แอดไลน์ {
  width: min(90vw, 325px); /* กำหนดความกว้างของปุ่ม */
  padding: 10px 15px; /* ระยะห่างภายในปุ่ม */
  border: 2px solid #ffffff;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  background: linear-gradient(135deg, #00c853, #00a844, #00d95f);
  box-shadow:
    0 0 10px #00ff6a,
    0 0 25px #00c853,
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: 0.3s ease;
  animation: แอดไลน์กระพริบ 1.5s infinite alternate;
}

#แอดไลน์:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #16ff76, #00b84d, #00e66a);
  box-shadow:
    0 0 15px #ffffff,
    0 0 35px #00ff6a,
    0 0 55px #00c853;
}

#แอดไลน์:active {
  transform: scale(0.96);
}

@keyframes แอดไลน์กระพริบ {
  from {
    filter: brightness(0.95);
  }
  to {
    filter: brightness(1.2);
  }
}
.รายการถอนเงิน {
  width: min(90%, 500px); /* กำหนดความกว้างของกล่อง */
  margin: 30px auto; /* จัดกึ่งกลางกล่อง */
  padding: 22px; /* ระยะห่างภายในกล่อง */
  border: 1px solid rgba(56, 189, 248, 0.45);  /* สีขอบและความกว้างของขอบ */
  border-radius: 16px; /* มุมโค้งของกล่อง */
  background: linear-gradient(145deg, #0f172a, #172554); /* สีพื้นหลังแบบไล่เฉด */
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25); /* เงาของกล่อง */
  color: #fff; /* สีตัวอักษร */
}

.รายการถอนเงิน-item {
  display: flex; /* ใช้ Flexbox ในการจัดเรียง */
  align-items: center; /* จัดแนวแนวตั้งให้อยู่กลาง */
  justify-content: space-between; /* จัดแนวแนวนอนให้กระจาย */
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  color: white;
  background: rgba(15, 30, 65, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  animation: รายการเข้า 0.45s ease both;
}

.แจ็คพอตรวม {
  width: min(90%, 525px);
  margin: 28px auto;
  padding: 22px;
  border: 2px solid #00d9ff;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, #073b66 0%, transparent 45%),
    linear-gradient(145deg, #020b1d, #061a38);
  box-shadow:
    0 0 12px #00d9ff,
    0 0 35px #0066ff77,
    inset 0 0 25px #008cff22;
}

.แจ็คพอตรวม h2 {
  margin: 7px 0 25px;
  color: #66edff;
  font-size: clamp(23px, 6vw, 30px);
  text-shadow: 0 0 8px #00d9ff, 0 0 20px #0066ff;
}

.มูลค่ารวม {
  position: relative;
  overflow: hidden;
  padding: 22px 15px 25px;
  border: 1px solid #45eaff;
  border-radius: 18px;
  background: linear-gradient(135deg, #062c68, #0067d9, #00c6ff);
  box-shadow:
    inset 0 2px 10px rgba(150, 245, 255, 0.35),
    inset 0 -10px 18px rgba(0, 20, 90, 0.4),
    0 0 22px #00bfff99;
}

.มูลค่ารวม::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  transform: rotate(25deg);
  background: rgba(255, 255, 255, 0.3);
  animation: แสงแจ็คพอต 3s infinite;
}

.มูลค่ารวม span,
.สถิติ span {
  position: relative;
  z-index: 1;
  display: block;
  color: #e8fbff;
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 800;
}

#ยอดแจ็คพอต {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(38px, 9vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow:
    0 0 5px #fff,
    0 0 15px #00d9ff,
    0 0 30px #0066ff;
}

.สถิติแจ็คพอต {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.สถิติ {
  padding: 18px 8px;
  border: 1px solid #0c5fa5;
  border-radius: 14px;
  background: linear-gradient(145deg, #04152e, #020916);
  box-shadow: inset 0 0 15px #000000cc;
  transition: 0.3s ease;
}

.สถิติ:hover {
  transform: translateY(-4px);
  border-color: #00d9ff;
  box-shadow: 0 0 16px #00bfff99, inset 0 0 15px #000000cc;
}

.สถิติ b {
  display: block;
  margin-top: 10px;
  color: #55f7ff;
  font-size: clamp(27px, 6vw, 36px);
  text-shadow: 0 0 8px #00d9ff, 0 0 18px #0066ff;
}

@keyframes แสงแจ็คพอต {
  from {
    left: -80%;
  }
  to {
    left: 150%;
  }
}

@media (max-width: 400px) {
  .แจ็คพอตรวม {
    width: 92%;
    padding: 16px;
  }

  .สถิติแจ็คพอต {
    gap: 9px;
  }

  .สถิติ {
    padding: 15px 5px;
  }
}

.ข้อมูลผู้ถอน {
  display: flex;
  align-items: center;
  gap: 10px;
}

.รูปธนาคาร {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  border-radius: 50%;
  background: white;
}

.ข้อมูลผู้ถอน strong,
.ข้อมูลผู้ถอน small {
  display: block;
}

.ข้อมูลผู้ถอน small {
  margin-top: 3px;
  color: #8edbff;
  font-size: 12px;
}

.จำนวนเงินถอน {
  color: #55f7a5;
  font-size: 17px;
  font-weight: bold;
}

@keyframes รายการเข้า {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ยอดถอน {
  text-align: right;
}

.โอนสำเร็จ {
  display: block;
  margin-top: 3px;
  color: #55f7a5;
  font-size: 12px;
}

.บริการ {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 15px;
  margin-top: -30px; /* เพิ่มระยะห่างด้านบน */
  margin-bottom: -30px; /* เพิ่มระยะห่างด้านล่าง */
}

#บริการ {
  position: relative;
  width: min(100%, 900px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 18px;
  background: #08152e;
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.35),
    0 0 30px rgba(37, 99, 235, 0.25);
}

#บริการ::before {
  content: "";
  position: absolute;
  inset: -100%;
  z-index: 1;
  background: linear-gradient(
    120deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 58%
  );
  animation: แสงวิ่งบริการ 4s linear infinite;
  pointer-events: none;
}

#บริการ img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
}

#บริการ:hover img {
  transform: scale(1.04);
  filter: brightness(1.12);
}

@keyframes แสงวิ่งบริการ {
  from {
    transform: translateX(-45%) rotate(20deg);
  }
  to {
    transform: translateX(45%) rotate(20deg);
  }
}

@media (max-width: 600px) {
  .บริการ {
    padding: 18px 10px;
  }

  #บริการ {
    border-radius: 12px;
  }
}

/* กล่องแนะนำเพื่อน */
.แนะนำเพื่อน {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
  margin-top: 20px; /* เพิ่มระยะห่างด้านบน */
}

#แนะนำเพื่อน {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 2px solid #00d9ff;
  border-radius: 16px;
  background: #07162c;
  box-shadow:
    0 0 12px #00d9ff,
    0 0 28px rgba(0, 217, 255, 0.45);
}

#แนะนำเพื่อน img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

/* แสงวิ่ง */
#แนะนำเพื่อน::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: แสงวิ่งแนะนำเพื่อน 3s infinite;
}

#แนะนำเพื่อน:hover img {
  transform: scale(1.03);
}

@keyframes แสงวิ่งแนะนำเพื่อน {
  0% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

@media (max-width: 576px) {
  .แนะนำเพื่อน {
    padding: 12px 8px;
  }

  #แนะนำเพื่อน {
    border-radius: 12px;
  }
}

/* กล่องโบนัส */
.โบนัส_0 {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
}

#โบนัส_0 {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 2px solid #ffd700;
  border-radius: 16px;
  background: linear-gradient(135deg, #1b1200, #3d2600);
  box-shadow:
    0 0 12px #ffd700,
    0 0 28px rgba(255, 215, 0, 0.45);
}

#โบนัส_0 img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

/* แสงวิ่งสีทอง */
#โบนัส_0::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  z-index: 2;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: แสงวิ่งโบนัส 3s infinite;
}

#โบนัส_0:hover img {
  transform: scale(1.03);
}

@keyframes แสงวิ่งโบนัส {
  from {
    left: -120%;
  }
  to {
    left: 140%;
  }
}

@media (max-width: 576px) {
  .โบนัส_0 {
    padding: 12px 8px;
  }

  #โบนัส_0 {
    border-radius: 12px;
  }
}

/* กล่องอัปเดตใหม่ */
.อัฟใหม่_0 {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
}

#อัฟใหม่_0 {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 2px solid #a855f7;
  border-radius: 16px;
  background: linear-gradient(135deg, #16052b, #2b0b4b);
  box-shadow:
    0 0 12px #a855f7,
    0 0 28px rgba(168, 85, 247, 0.45);
}

#อัฟใหม่_0 img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

/* แสงวิ่ง */
#อัฟใหม่_0::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  z-index: 2;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: แสงวิ่งอัฟใหม่ 3s infinite;
}

#อัฟใหม่_0:hover img {
  transform: scale(1.03);
}

@keyframes แสงวิ่งอัฟใหม่ {
  from {
    left: -120%;
  }
  to {
    left: 140%;
  }
}

@media (max-width: 576px) {
  .อัฟใหม่_0 {
    padding: 12px 8px;
  }

  #อัฟใหม่_0 {
    border-radius: 12px;
  }
}

/* กล่องระบบแรง */
.ระบบแรง_0 {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
}

#ระบบแรง_0 {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 2px solid #ff2d55;
  border-radius: 18px;
  background: linear-gradient(135deg, #21030a, #500817, #18020a);
  box-shadow:
    0 0 10px #ff2d55,
    0 0 28px rgba(255, 45, 85, 0.65),
    inset 0 0 20px rgba(255, 45, 85, 0.2);
  animation: เรืองแสงระบบแรง 1.8s infinite alternate;
}

#ระบบแรง_0 img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* แสงวิ่งบนรูป */
#ระบบแรง_0::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  z-index: 2;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    rgba(255, 45, 85, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  animation: แสงวิ่งระบบแรง 2.8s infinite;
}

#ระบบแรง_0::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 180, 190, 0.5);
  border-radius: 16px;
}

#ระบบแรง_0:hover img {
  transform: scale(1.035);
  filter: brightness(1.12) saturate(1.15);
}

@keyframes แสงวิ่งระบบแรง {
  from {
    left: -130%;
  }
  to {
    left: 150%;
  }
}

@keyframes เรืองแสงระบบแรง {
  from {
    box-shadow:
      0 0 8px #ff2d55,
      0 0 20px rgba(255, 45, 85, 0.45),
      inset 0 0 14px rgba(255, 45, 85, 0.15);
  }

  to {
    box-shadow:
      0 0 16px #ff2d55,
      0 0 38px rgba(255, 45, 85, 0.8),
      inset 0 0 25px rgba(255, 45, 85, 0.3);
  }
}

@media (max-width: 576px) {
  .ระบบแรง_0 {
    padding: 12px 8px;
  }

  #ระบบแรง_0 {
    border-radius: 13px;
  }

  #ระบบแรง_0::after {
    border-radius: 11px;
  }
}