/* -------------------------------------------------- */
/* 🌑 พื้นหลังดำ + แสงวิ่ง */
/* -------------------------------------------------- */

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  overflow-x: hidden;
  position: relative;
  padding-right: 10px;
}

/* แสงวิ่งพื้นหลัง */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(0, 150, 255, 0) 0%,
    rgba(0, 150, 255, 0.15) 50%,
    rgba(0, 150, 255, 0) 100%
  );
  filter: blur(40px);
  animation: lightRun 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes lightRun {
  0% { transform: translateX(-50%) skewX(-15deg); }
  100% { transform: translateX(150%) skewX(-15deg); }
}

/* -------------------------------------------------- */
/* ⭐ HEADER */
/* -------------------------------------------------- */

header {
  width: 100%;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* ปุ่ม Header */
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  padding-right: 350px;   /* 👈 เพิ่มช่องว่างจากขอบขวา */
}



header .buttons button {
  background: linear-gradient(45deg, #0099ff, #33ccff);
  border: none;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 0 12px rgba(0,150,255,0.5);

    /* 🔥 ส่วนสำคัญป้องกันปุ่มย่อ */
  min-width: 180px;      /* บังคับให้ปุ่มไม่น้อยกว่านี้ */
  white-space: nowrap;   /* กันปุ่มขึ้นบรรทัดใหม่ */
  flex-shrink: 0;        /* กัน flex บีบตัว */
}

header .buttons button:hover {
  transform: translateY(-3px) scale(1.07);
  background: linear-gradient(45deg, #00aaff, #66ddff);
  box-shadow: 0 0 20px rgba(0,180,255,0.9), 0 0 35px rgba(0,160,255,1);
}

/* แสงวิ่งบนปุ่ม */
header .buttons button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.45);
  filter: blur(8px);
  transform: skewX(-25deg);
  transition: 0.35s ease;
}
header .buttons button:hover::after { left: 140%; }

/* -------------------------------------------------- */
/* 🟦 กล่องข้อความ (Scrolling Text) */
/* -------------------------------------------------- */

.mid-text {
  margin-left: 25px;
  margin-right: 25px;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 32px;
}

.scroll-text {
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollLeft 14s linear infinite;
  color: #000;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* -------------------------------------------------- */
/* 🌟 เมนูโปร่งแสง (Glass Menu Bar) */
/* -------------------------------------------------- */

.menu-bar {
  margin: 15px auto 25px;
  padding: 12px 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1200px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.3);

  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.menu-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 10px;
  transition: 0.25s ease;
}

.menu-bar a:hover {
  color: #00c3ff;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

/* -------------------------------------------------- */
/* 🎯 HERO SECTION */
/* -------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.hero-left {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    0 0 25px rgba(255,255,255,0.18),
    inset 0 0 35px rgba(255,255,255,0.05);
}

.hero-left img {
  width: 100%;
  max-width: 950px;
  border-radius: 15px;
}

/* ปุ่มแดงใต้รูป */
.cta-btn {
  display: block;
  background: linear-gradient(#ff0000, #b00000);
  padding: 16px 50px;
  border-radius: 12px;
  color: white;
  font-size: 32px;
  font-weight: 800;
  text-decoration: none;
  margin: 0 auto;
  text-align: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(#ff3333, #cc0000);
}

/* -------------------------------------------------- */
/* ⭐ บริการของเรา */
/* -------------------------------------------------- */

.service-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #ffd700;
  margin-top: 25px;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255,215,0,0.7);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 10px;
}

.service-box {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 100%;
  border-radius: 10px;
}

.service-box p {
  color: #ffd700;
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 700;
}

/* ========================================================= */
/* ⭐ FOOTER */
/* ========================================================= */

.footer {
  background: #000;
  padding: 50px 20px 0;
  color: #d4c48b;
  margin-top: 40px;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h3 {
  font-size: 22px;
  color: #e8d28f;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.footer-logo img {
  width: 180px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 20px;
  line-height: 1.5;
  max-width: 280px;
}

.footer-logo p {
  color: #fff; /* สีขาว */
}

  .promo-section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
  }

  /* รูปโปรโมชันด้านบน */
  .promo-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 25px;
  }

  /* กล่องลิสต์ 2 คอลัมน์ */
  .list-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .list-box {
    flex: 1;
    min-width: 300px;
  }

  /* ลิสต์แบบจุดสีทอง */
  .list-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .list-box li {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
  }

  .list-box li::before {
    content: "✔";
    color: #f4c542;
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
  }

  

/* ⭐ ทำให้ 3 หัวข้อเป็นสีขาว */
.footer .footer-column:nth-child(1) h3,
.footer .footer-column:nth-child(2) h3,
.footer .footer-column:nth-child(3) h3 {
  color: #ffffff !important;
}

/* ==================================================== */
/* ⭐ รูปซ้าย + ข้อความขวา */
/* ==================================================== */

.promo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 40px;
}

.promo-left img {
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
}

.promo-right {
  max-width: 650px;
}

.promo-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.promo-title span {
  color: #ffbf31;
  font-size: 70px;
}

.promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promo-list li {
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 18px;
}

.promo-list li::before {
  content: "📌";
  position: absolute;
  left: 0;
  top: 0;
}

/* กล่องรวม */
.promo-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 25px;
    background: linear-gradient(180deg, #111, #0a0a0a);
    border: 1px solid #222;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

/* รูปภาพ */
.promo-section .promo-image {
    text-align: center;
    margin-bottom: 25px;
}

.promo-section .promo-image img {
    width: 60%;                    /* ขนาดกำลังดี ไม่ใหญ่ไป */
    max-width: 780px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.promo-section .promo-image img:hover {
    transform: scale(1.03);        /* zoom นิด ๆ */
}

/* ข้อความ 2 คอลัมน์ */
.promo-lists {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.promo-lists ul {
    list-style: none;
    padding: 0;
}

/* ข้อความแต่ละข้อ */
.promo-lists li {
    font-size: 17px;
    line-height: 1.5;
    color: #f5d67b;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

/* ไอคอนติ๊ก ✓ */
.promo-lists li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 18px;
    color: #ffcc33;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

/* Mobile */
@media (max-width: 768px) {
    .promo-section {
        padding: 20px 15px;
    }

    .promo-section .promo-image img {
        width: 90%;
    }

    .promo-lists {
        flex-direction: column;
        gap: 20px;
    }

    .promo-lists li {
        font-size: 15px;
    }
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
  .promo-section {
    flex-direction: column;
    text-align: center;
  }

  .promo-right {
    max-width: 100%;
  }

  .promo-list li {
    text-align: left;
  }

  .mid-text {
    font-size: 16px;
    padding: 8px 18px;
    margin: 10px 0;
  }

  header {
    flex-direction: column;
    gap: 10px;
  }

  .buttons {
    justify-content: center;
    margin-right: 0;
  }
}

@media (max-width: 768px) {

  .hero-left {
    max-width: 95%;
    padding: 15px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {

  .menu-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  .cta-btn {
    font-size: 22px;
    padding: 12px 28px;
  }
}

.footer-bottom {
  margin-top: 40px;
  background: #bda66a;
  padding: 15px 0;
  text-align: center;
  font-size: 16px;
  color: #000;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-left img {
    width: 100%;
    max-width: 1000px; /* เพิ่มจากของเดิม 950px */
    transform: scale(1.15); /* ขยายรูปเพิ่มขึ้น 15% */
  }

  .footer-logo img {
    margin: auto;
  }

  /* ⭐ ทำให้ข้อความบนรูป (UFA169 / รองรับมือถือ / ไม่ต้องโหลด App) เป็นสีขาวทั้งหมด */
.hero {
  color: #ffffff !important;
}

/* ⭐ ขยายรูปบนมือถือให้ใหญ่ขึ้น (สวยเต็มตา) */
@media (max-width: 600px) {
  .hero-left img {
    width: 100%;
    max-width: 1000px;
    transform: scale(1.22); /* เดิม 1.15 → เพิ่มเป็น 1.22 เพื่อให้เด่นขึ้น */
  }
}

  
}

#chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px;
  z-index: 9999;
}

#chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

@media (max-width: 600px) {
  #chat-box {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

.chat-header {
  background: #2563eb;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#admin-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: auto;
  margin-left: 8px;
  background: #9ca3af; /* เริ่มต้น offline */
}

#chat-close {
  cursor: pointer;
}

#chat-messages {
  padding: 10px;
  height: 280px;
  overflow-y: auto;
  background: #f3f4f6;
  font-size: 13px;
}

.chat-msg {
  margin-bottom: 8px;
  max-width: 80%;
  padding: 6px 8px;
  border-radius: 10px;
}

.chat-msg.user {
  background: #2563eb;
  color: #fff;
  margin-left: auto;
}

.chat-msg.admin {
  background: #e5e7eb;
  color: #111827;
  margin-right: auto;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid #e5e7eb;
}

#chat-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 13px;
  outline: none;
}

#chat-send {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
}

.main-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffcc66; /* ทองนวลพรีเมียม */
  margin: 30px auto 20px auto;
  padding: 12px 20px;
  max-width: 900px;
  font-family: 'Prompt', sans-serif;
  line-height: 1.4;
}
