/* UFAGOOL theme addon CSS — Modal สมัคร / เมนูมือถือ / hero swiper / หน้า generic */

/* ---------- Modal สมัครสมาชิก ---------- */
.ufagool-modal { align-items: center; display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 999999; }
.ufagool-modal[hidden] { display: none; }
.ufagool-modal__backdrop { background: rgba(0,0,0,.78); inset: 0; position: absolute; }
.ufagool-modal__card {
  background: linear-gradient(160deg, #1a1a1a, #0b0e11);
  border: 1px solid rgba(255,215,0,.35);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.7);
  color: #fff;
  font-family: "Prompt", sans-serif;
  max-height: calc(100vh - 40px);
  max-width: 410px;
  overflow-y: auto;
  padding: 34px 28px 26px;
  position: relative;
  text-align: center;
  width: 100%;
}
.ufagool-modal__close {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  height: 34px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
}
.ufagool-modal__close:hover { background: rgba(255,255,255,.18); }
.ufagool-modal__logo { display: block; height: 56px; margin: 0 auto 10px; object-fit: contain; width: auto; }
.ufagool-modal__title { color: gold; font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ufagool-modal__sub { color: #cfcfcf; font-size: 14px; margin: 0 0 16px; }
.ufagool-modal__list { list-style: none; margin: 0 0 20px; padding: 0; text-align: left; }
.ufagool-modal__list li { color: #eee; font-size: 14px; padding: 6px 0; }
.ufagool-modal__list i { color: #f1c40f; margin-right: 8px; width: 18px; text-align: center; }
.ufagool-modal__cta {
  animation: ufagoolCtaPulse 1s ease-in-out infinite alternate;
  background: linear-gradient(180deg, #ffe566, #d4a800);
  border: 2px solid #d4a800;
  border-radius: 10px;
  color: #1a1400;
  cursor: pointer;
  display: block;
  font-size: 18px;
  font-weight: 800;
  padding: 13px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease;
}
.ufagool-modal__cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
@keyframes ufagoolCtaPulse {
  from { box-shadow: 0 0 8px rgba(255,215,0,.5); }
  to   { box-shadow: 0 0 20px rgba(255,215,0,.85); }
}
.ufagool-modal__note { color: #9a9a9a; font-size: 12px; margin: 12px 0 0; }

/* ---------- เมนูมือถือ (Vue เดิม v-if — เรา toggle ด้วย class) ---------- */
.nav-mobile:not(.is-open) { display: none !important; }
.btn-mobile-login { background: linear-gradient(180deg, #1a1a1a, #0a0a0a); color: #eaeaea; font-weight: 700; }
.btn-mobile-signup.highlight { color: #1a1a1a !important; }
.nav-mobile.mobile-item a { display: block; }

/* ---------- Hero banner swiper (แทน VueCarousel เดิม) ---------- */
.banner-swiper { background: #000; }
.banner-swiper .banner-slide img { display: block; height: auto; max-height: 620px; object-fit: cover; width: 100%; }
.banner-swiper .banner-pagination { bottom: 12px; position: absolute; text-align: center; width: 100%; z-index: 5; }
.banner-swiper .banner-pagination-bullet {
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 10px;
  margin: 0 4px;
  opacity: 1;
  transition: background .2s;
  width: 10px;
}
.banner-swiper .banner-pagination-bullet-active { background: #f1c40f; }

/* ---------- Promotion accordion (เริ่มแบบปิด) ---------- */
.pc-acc-body { display: none; }
.pc-acc-toggle .pc-chevron { transition: transform .2s ease; }
.pc-acc-toggle.is-open .pc-chevron { transform: rotate(180deg); }

/* ---------- หน้า generic (page/single/404/blog) ---------- */
.ufa-page-wrap { background: #0b0e11; color: #fff; font-family: "Prompt", sans-serif; min-height: 60vh; padding: 40px 16px 80px; }
.ufa-page-inner { margin: 0 auto; max-width: 1100px; }
.ufa-page-inner--center { text-align: center; }
.ufa-page-title { color: gold; font-size: 30px; font-weight: 700; margin: 0 0 14px; }
.ufa-page-content { color: #e0e0e0; font-size: 16px; line-height: 1.9; }
.ufa-page-content a { color: #f1c40f; }
.ufa-page-content img { height: auto; max-width: 100%; }
.ufa-blog__grid--archive { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }

/* ปุ่ม .btn-login ใน header (ต้นฉบับไม่มีสไตล์ — เสริมให้กดง่ายขึ้นเล็กน้อย ไม่ทับโครงเดิม) */
.goal7-mode .btn-login {
  background: transparent;
  border: 1px solid rgba(255,215,0,.5);
  border-radius: 6px;
  color: #eaeaea;
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 4px 12px;
}
.goal7-mode .btn-login:hover { border-color: gold; color: gold; }

/* ป้องกัน back-to-top ซ้อนกับ modal */
.ufagool-modal ~ .sticky .back-to-top { z-index: 1; }
