/* Layout base */
body{background:#0b1420;}
.head-bg{background:#08101a;padding-bottom:2rem;}
.foot-bg{background:#060b12;padding:2rem 0;}
.bg-alpa{background:rgba(0,0,0,.5)}
.menu-center{transform:translateY(-18px)}

/* Navbar buttons */
.bg-btn-blue{background:#0ea5e9;border-radius:.5rem;margin:0 .25rem}
.bg-btn-blue .font-nev{color:#fff;padding:.5rem .75rem;display:inline-block}
.navbar .nav-link{color:#fff}
.navbar .nav-link:hover{opacity:.9}

/* CTA buttons */
.btn-register {
  background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%); 
  color: #fff;
  margin: .25rem .5rem;
  border-radius: 30px;
  padding: .5rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-register:hover {
  background: linear-gradient(135deg, #22c55e 0%, #86efac 100%); /* Hover: เขียวสว่าง */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}

.btn-login {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%); /* ส้ม → แดง */
  color: #111;
  margin: .25rem .5rem;
  border-radius: 30px;
  padding: .5rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-login:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 50%, #f87171 100%); /* Hover: สว่างขึ้น */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}


/* Cosmetic helpers */
.modal-box{background:#0b1420;color:#fff;border:1px solid #243041}
.rounded-3{border-radius:.75rem!important}



/* ===== Base: ใช้ร่วมกันทุกปุ่ม ===== */
:root { --cpf-btn-radius: 60px; }

.btn-cpf, .btn-cpf-green, .btn-cpf-gold, .btn-cpf-blue, .btn-cpf-crimson {
  display:inline-block;
	width: 120px;        /* 👈 กำหนดความกว้างตายตัว 
  text-align: center;   /* จัดข้อความให้อยู่กลาง */
  color:#fff;
  font-weight: 600;        /* ลดความหนาลงใกล้ปุ่มปกติ */
  font-size: 1rem;         /* ขนาดตัวอักษรเท่ามาตรฐาน */
  border:none;
  border-radius:var(--cpf-btn-radius);
  padding: 0.375rem 0.75rem; /* padding มาตรฐานปุ่ม */
  text-transform:uppercase;
  letter-spacing: .5px;    /* ลด spacing ให้ใกล้ปกติ */
  text-decoration:none;
  position:relative;
  overflow:hidden;
  transition:all .35s ease;
}

/* กล่องข้างใน (inner box) โค้งเกือบเท่าขอบนอก */
.btn-cpf::before,
.btn-cpf-green::before,
.btn-cpf-gold::before,
.btn-cpf-blue::before,
.btn-cpf-crimson::before {
  content:"";
  position:absolute;
  inset:4px; /* ช่องว่างรอบใน */
  border-radius:calc(var(--cpf-btn-radius) - 4px);
  border:2px solid rgba(255,255,255,.22);
  pointer-events:none;
}

/* เส้นแสงวิ่ง */
.btn-cpf::after,
.btn-cpf-green::after,
.btn-cpf-gold::after,
.btn-cpf-blue::after,
.btn-cpf-crimson::after {
  content:"";
  position:absolute;
  top:0; left:-75%;
  width:50%; height:100%;
  background:rgba(255,255,255,.28);
  transform:skewX(-25deg);
  transition:.75s;
  pointer-events:none;
}

.btn-cpf:hover,
.btn-cpf-green:hover,
.btn-cpf-gold:hover,
.btn-cpf-blue:hover,
.btn-cpf-crimson:hover {
  transform:translateY(-3px) scale(1.04);
  text-decoration:none;
}
.btn-cpf:hover::after,
.btn-cpf-green:hover::after,
.btn-cpf-gold:hover::after,
.btn-cpf-blue:hover::after,
.btn-cpf-crimson:hover::after {
  left:130%;
}

/* ===== 5 โทนสี ===== */

/* 1) Magenta → Purple (หลัก) */
.btn-cpf {
  background:linear-gradient(135deg,#ff6a00,#ee0979,#7928ca);
  background-size:220% 220%;
  box-shadow:0 10px 28px rgba(238,9,121,.45);
}
.btn-cpf:hover {
  background-position:right center;
  box-shadow:0 14px 32px rgba(238,9,121,.6);
}

/* 2) Green → Aqua (สดใส) */
.btn-cpf-green {
  background:linear-gradient(135deg,#00c9ff,#40e0d0,#93f9b9);
  background-size:220% 220%;
  box-shadow:0 10px 28px rgba(0,201,255,.45);
}
.btn-cpf-green:hover {
  background-position:right center;
  box-shadow:0 14px 32px rgba(0,201,255,.6);
}

/* 3) Gold → Amber (VIP) */
.btn-cpf-gold {
  background:linear-gradient(135deg,#ffb347,#ffcc33,#ff9900);
  background-size:220% 220%;
  color:#111;
  box-shadow:0 10px 28px rgba(255,179,71,.45);
}
.btn-cpf-gold:hover {
  background-position:right center;
  box-shadow:0 14px 36px rgba(255,179,71,.65);
  color:#111;
}

/* 4) Royal Blue → Indigo */
.btn-cpf-blue {
  background:linear-gradient(135deg,#00a2ff,#0062ff,#5b3ee4);
  background-size:220% 220%;
  box-shadow:0 10px 28px rgba(0,98,255,.45);
}
.btn-cpf-blue:hover {
  background-position:right center;
  box-shadow:0 14px 36px rgba(0,98,255,.6);
}

/* 5) Crimson → Rose */
.btn-cpf-crimson {
  background:linear-gradient(135deg,#ff355e,#ff5f7e,#ff88a2);
  background-size:220% 220%;
  box-shadow:0 10px 28px rgba(255,85,120,.45);
}
.btn-cpf-crimson:hover {
  background-position:right center;
  box-shadow:0 14px 36px rgba(255,85,120,.6);
}

/* bg */
/* ===== ปุ่ม Hamburger ===== */
.cpf-toggle {
  margin-left: auto; /* ดันไปขวาสุด */
}
.cpf-toggle__btn {
  position: relative;
  width: 42px; height: 38px;
  border: 1px solid rgba(255,210,74,.28);
  border-radius: 12px;
  background: rgba(11,15,16,.55);
  cursor: pointer;
}
.cpf-toggle__bar {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--cpf-text, #E8F6EA);
  transition: transform .25s, opacity .25s, top .25s;
}
.cpf-toggle__bar:nth-child(1){ top:11px; }
.cpf-toggle__bar:nth-child(2){ top:18px; }
.cpf-toggle__bar:nth-child(3){ top:25px; }

/* เปลี่ยนเป็นกากบาทเมื่อเปิด */
.cpf-header.is-open .cpf-toggle__bar:nth-child(1){ top:18px; transform:rotate(45deg); }
.cpf-header.is-open .cpf-toggle__bar:nth-child(2){ opacity:0; }
.cpf-header.is-open .cpf-toggle__bar:nth-child(3){ top:18px; transform:rotate(-45deg); }

/* ===== Slide Menu ===== */
@media (max-width:1024px){
  .cpf-wpnav .menu {
    position: fixed;
    top:0; right:0; bottom:0;
    width: 70vw; max-width: 400px;
    background: linear-gradient(180deg,#0B0F10,#062414);
    border-left:1px solid rgba(255,210,74,.2);
    box-shadow: -10px 0 25px rgba(0,0,0,.5);
    padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
  }
  .cpf-header.is-open .cpf-wpnav .menu {
    transform: translateX(0);
  }

  /* รายการเมนู */
  .cpf-wpnav .menu > li > a {
    display:block; padding:14px 16px;
    color: var(--cpf-text,#E8F6EA); 
    border-radius: 12px;
    border:1px solid rgba(255,210,74,.1);
    background:rgba(255,255,255,.02);
    text-decoration:none;
  }
  .cpf-wpnav .menu > li > a:hover {
    color: var(--cpf-accent,#FFD24A);
    background: linear-gradient(90deg,rgba(255,210,74,.08),transparent);
  }

  /* ===== Overlay ด้านซ้าย (30%) ===== */
  #cpf-overlay {
    position: fixed; inset: 0;
    right: 70vw; /* ให้เหลือพื้นที่ทึบแค่ 30% */
    background: rgba(0,0,0,.55);
    opacity:0; pointer-events:none;
    transition:opacity .2s ease;
    z-index:1000;
  }
  .cpf-header.is-open + #cpf-overlay {
    opacity:1; pointer-events:auto;
  }
}

/* ===== carousel-bg ===== */

/* ===== Green banner background for Elementor carousels ===== */
.cpf-carousel-green {
  /* พื้นหลังโทนเขียว + ลายไล่เฉดแบบหรู */
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(0,255,170,0.15), transparent 60%),
    radial-gradient(900px 300px at 90% 100%, rgba(0,255,128,0.12), transparent 60%),
    linear-gradient(135deg, #0b3d2e 0%, #146a3d 45%, #14b86a 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 200, 120, 0.25);
  padding: 12px;              /* ระยะห่างรอบตัวสไลด์ */
  position: relative;
  overflow: hidden;           /* ให้ความโค้งทำงานกับพื้นหลัง */
}

/* ขอบด้านในเล็ก ๆ ให้ดูพรีเมียม */
.cpf-carousel-green::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ===== Swiper/Elementor core ===== */
.cpf-carousel-green .swiper,
.cpf-carousel-green .elementor-image-carousel-wrapper,
.cpf-carousel-green .elementor-main-swiper {
  background: transparent;   /* ให้พื้นหลังเห็นจาก wrapper */
  border-radius: 10px;
}

/* เว้นช่องว่างระหว่างสไลด์เล็กน้อย */
.cpf-carousel-green .swiper-slide {
  padding: 4px;
}

/* รูปภาพโค้งมน และเงานุ่ม */
.cpf-carousel-green .swiper-slide img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== ปุ่มลูกศร ===== */
.cpf-carousel-green .elementor-swiper-button {
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
  color: #eafff4;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.cpf-carousel-green .elementor-swiper-button:hover {
  background: rgba(20, 184, 106, 0.38); /* เขียวอ่อนโปร่ง */
  box-shadow: 0 0 0 6px rgba(20,184,106,0.2);
  transform: translateY(-1px);
}

/* ===== จุดนำทาง (pagination bullets) ===== */
.cpf-carousel-green .swiper-pagination-bullet {
  opacity: .6;
  background: rgba(255,255,255,0.7);
}
.cpf-carousel-green .swiper-pagination-bullet-active {
  background: #14b86a;
  box-shadow: 0 0 0 5px rgba(20,184,106,0.22);
  opacity: 1;
}

/* ===== Responsive padding ===== */
@media (min-width: 768px) {
  .cpf-carousel-green { padding: 10px; }
}
@media (min-width: 1200px) {
  .cpf-carousel-green { padding: 18px; }
}

/* ===== Section divider โทนเขียว (บน/ล่างเป็นเส้นไล่เฉด) ===== */
/* ใส่ที่ Section */
/* ===== ทำ full-bleed divider (ยืดเต็ม viewport) ===== */
/* ยืดเต็มขอบเหมือนเดิม */
.cpf-divider-green {
  --accent: #14b86a;
  --glow: rgba(20,184,106,.35);
  --h: 4px;                 /* ความหนาเส้น (ลดได้อีกเป็น 3px/2px) */
  position: relative;
  overflow: visible;
}
.cpf-divider-green > .elementor-container {
  background: linear-gradient(180deg,#0c0f10 0%, #0a0e0b 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* เส้นบน/ล่าง — บางขึ้น + ขอบคมกริบ */
.cpf-divider-green::before,
.cpf-divider-green::after {
  content:"";
  position:absolute;
  left:50%; transform:translateX(-50%);
  width:100vw; max-width:100vw;
  height:var(--h);
  /* ทำแกนกลางคมด้วย hard stops + ไล่จางด้านข้างเล็กน้อย */
  background:
    linear-gradient(90deg,
      transparent 0 8%,
      rgba(20,184,106,.18) 10%,
      #14b86a 49%,
      #14b86a 51%,
      rgba(20,184,106,.18) 90%,
      transparent 92%);
  /* ขอบคมด้วยเส้น 1px บน/ล่างแบบคม (ไม่เบลอ) */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),   /* ขอบบนคม */
    inset 0 -1px 0 rgba(0,0,0,.45),        /* ขอบล่างคม */
    0 0 10px var(--glow);                   /* โกลว์นอกนิด ๆ */
  border-radius: 999px;
  pointer-events:none;
  z-index:1;
}
.cpf-divider-green::before { top: calc(var(--h) * -0.6); }
.cpf-divider-green::after  { bottom: calc(var(--h) * -0.6); }

/* เส้นบางคั่นภายใน (ถ้าชอบเลเยอร์ด้านในด้วย) */
.cpf-divider-green > .elementor-container::before,
.cpf-divider-green > .elementor-container::after{
  content:"";
  position:absolute; left:0; right:0; height:1px;
  background: linear-gradient(90deg,transparent, rgba(255,255,255,.10), transparent);
  z-index:2;
}
.cpf-divider-green > .elementor-container::before{ top:-8px; }
.cpf-divider-green > .elementor-container::after { bottom:-8px; }

/* รูป/สไลด์ */
.cpf-divider-green .elementor-image-carousel-wrapper,
.cpf-divider-green .swiper{ background:transparent; border-radius:10px; }
.cpf-divider-green .swiper-slide img{ border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.25); }

/* ปรับให้ “เล็กลงอีก” บนมือถืออัตโนมัติ */
@media (max-width: 767.98px){
  .cpf-divider-green{ --h: 3px; }
}

.elementor-location-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  position: relative;   /* ไม่ให้ลอยทับ */
  z-index: 10;
}

.my-carousel .swiper-slide img {
  max-height: 500px;   /* ความสูง */
  width: auto;         /* คงอัตราส่วน */
}
.my-carousel .elementor-image-carousel-wrapper {
  max-width: 1400px;   /* กำหนดความกว้าง */
  margin: 0 auto;
}

/* Gradient โทนเขียวสดใส สไตล์ bg-girls */
.bg-girls {
  background: linear-gradient(180deg,
    rgba(20, 184, 106, 0.9) 0%,   /* Emerald green */
    rgba(132, 204, 22, 0.9) 50%,  /* Lime green */
    rgba(192, 255, 0, 0.9) 100%   /* Yellow-green */
  );
  border-radius: 1.25rem;
  padding: 1rem;
  color: #fff;                    /* ให้ข้อความอ่านง่าย */
  text-align: center;
  box-shadow: 0 6px 18px rgba(20, 184, 106, 0.35); /* เงาโทนเขียว */
}

/* ปรับพื้นหลังและระยะ */
.game-carousel {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #009688 0%, #FF5722 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ให้รูปสวย */
.game-carousel .item img {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-carousel .item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ปุ่มควบคุม */
.owl-nav button {
  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  border-radius: 50%;
  width: 40px; height: 40px;
  margin: 0 5px;
  transition: 0.3s;
}
.owl-nav button:hover {
  background: #14b86a !important;
}

.cpf-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
  color: #f1f5f9;
  font-family: "Prompt", sans-serif;
  text-align: center;
  padding: 2rem 1rem;
}
.cpf-providers img {
  height: 36px;
  margin: 0 .5rem;
  filter: brightness(1.1);
}
.cpf-join {
  margin-top: .75rem;
  color: #fff;
  font-weight: 600;
}
.cpf-join span {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.cpf-footer__banks {
  margin-top: 1.5rem;
}
.cpf-footer__banks p {
  margin-bottom: .5rem;
  font-weight: 600;
  color: #22c55e;
}
.cpf-banks img {
  height: 42px;
  margin: .4rem;
  filter: brightness(1.1);
}
.cpf-footer__buttons {
  margin: 1.5rem 0;
}
.cpf-footer__buttons a {
  display: inline-block;
  margin: .3rem;
  padding: .4rem 1rem;
  background: #22c55e;
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.cpf-footer__buttons a:hover {
  background: #16a34a;
  transform: translateY(-2px);
}
.cpf-footer__logo img {
  width: 140px;
  margin-top: .5rem;
}
.cpf-footer__bottom {
  font-size: .9rem;
  color: #9ca3af;
  margin-top: .75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: .75rem;
}
@media (max-width:600px){
  .cpf-providers img{height:28px;}
  .cpf-banks img{height:34px;}
  .cpf-footer__buttons a{padding:.35rem .7rem;font-size:.9rem;}
}
.divinder_footer {
  position: relative;
  width: 100%;
  height: 3px;
  background: radial-gradient(circle at 50% 50%, #facc15 0%, #fbbf24 30%, #b45309 80%);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.25);
  margin: 2rem auto;
  overflow: hidden;
}

/* สร้างปลายแหลมแบบหอก */
.divinder_footer::before,
.divinder_footer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, #facc15 100%);
  transform: translateY(-50%) scaleX(1.5);
  filter: blur(1px);
}
.divinder_footer::after {
  right: 0;
  transform: translateY(-50%) rotate(180deg) scaleX(1.5);
}

/* เงาเรืองขอบ */
.divinder_footer::before,
.divinder_footer::after {
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}
.bankcontainer {
  display: flex;
  justify-content: center; /* จัดแนวนอนให้อยู่กลาง */
  align-items: center;      /* จัดแนวตั้งให้อยู่กลาง */
  flex-wrap: wrap;          /* ให้ขึ้นบรรทัดใหม่ถ้าเกิน */
  gap: 2px;                /* ระยะห่างระหว่างโลโก้ */
  text-align: center;
  padding: 10px 0;
}

.bankcontainer img {
  width: 30px;
  height: auto;
  margin: 5px;
  border: none !important;
  display: block;
}

.divinder_footer2 {
  position: relative;
  z-index: 1;
}

.divinder_footer2::before,
.divinder_footer2::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    #ffffff 15%,
    #fef3c7 35%,
    #facc15 50%,
    #fef3c7 65%,
    #ffffff 85%,
    rgba(255,255,255,0) 100%
  );
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(250, 204, 21, 0.5),
    0 0 24px rgba(250, 204, 21, 0.2);
}

/* เส้นด้านบน */
.divinder_footer2::before {
  top: 0;
  transform: translateY(-50%);
}

/* เส้นด้านล่าง */
.divinder_footer2::after {
  bottom: 0;
  transform: translateY(50%);
}


html::before{content:"PG999ST";position:fixed;top:8px;left:8px;background:#111;color:#0ea5e9;font:12px/1.6 monospace;padding:2px 6px;z-index:99999}

