/* ============================================
   GoGaming - Main Stylesheet
   Responsive, Modern Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #00c853;
  --color-primary-dark: #00a843;
  --color-accent: #00ff88;
  --color-accent-hover: #00cc6a;
  --color-dark: #0f1412;
  --color-darker: #0a0e0c;
  --color-text: #e8f5e9;
  --color-text-muted: #a5d6a7;
  --color-border: #1b2e1f;
  --color-success: #2e7d32;
  --color-danger: #c62828;
  --color-neon-green: #00ff88;
  --color-neon-green-glow: rgba(0, 255, 136, 0.35);
  --font-main: 'Kanit', sans-serif;
  --font-heading: 'Kanit', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-darker);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Top header — พื้นดำ + โลโก้รูป + ปุ่มธีมเขียว ========== */
.top-header {
  --th-green: var(--color-primary);
  --th-green-hi: var(--color-accent);
  background: #000000;
  border-bottom: 1px solid rgba(120, 120, 128, 0.55);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  font-family: var(--font-main);
}

.top-header a {
  text-decoration: none;
}

.top-header__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .top-header__inner {
    padding: 0 1.5rem;
  }
}

.top-header__bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(130, 130, 138, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.top-header__col {
  display: flex !important;
  align-items: center;
  min-width: 0;
}

.top-header__col--left {
  justify-content: flex-start;
}

.top-header__col--center {
  justify-content: center;
}

.top-header__col--right {
  justify-content: flex-end;
}

.top-header__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* เข้าสู่ระบบ — สีสไตล์เดิม (พื้นเข้ม ตัวเขียว ขอบเขียว) ขอบมน 50px */
.top-header__btn--ghost {
  border-radius: 50px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--th-green-hi) !important;
  background: #0f1a12 !important;
  border: 1px solid rgba(0, 255, 136, 0.22);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-header__btn--ghost:hover {
  color: #fff !important;
  background: #152a1a !important;
  border-color: rgba(0, 255, 136, 0.45);
  transform: scale(1.05);
  box-shadow:
    0 0 20px var(--color-neon-green-glow),
    0 0 36px rgba(0, 255, 136, 0.15);
}

/* สมัครสมาชิก — แคปซูล ไล่สีเขียว */
.top-header__btn--solid {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #0a0e0c !important;
  background: linear-gradient(180deg, var(--th-green-hi) 0%, var(--th-green) 52%, var(--color-primary-dark) 100%) !important;
  border: none;
  box-shadow:
    0 2px 14px rgba(0, 200, 83, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.top-header__btn--solid:hover {
  filter: brightness(1.08);
  transform: scale(1.05);
  box-shadow:
    0 0 24px rgba(0, 255, 136, 0.45),
    0 4px 20px rgba(0, 200, 83, 0.35);
}

@media (min-width: 640px) {
  .top-header__btn--ghost,
  .top-header__btn--solid {
    font-size: 0.9375rem;
  }

  .top-header__btn--ghost {
    padding: 0.5rem 1.25rem;
  }

  .top-header__btn--solid {
    padding: 0.5rem 1.5rem;
  }
}

.top-header__brand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.top-header__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.top-header__brand:hover .top-header__logo {
  filter: brightness(1.08);
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .top-header__logo {
    height: 46px;
    max-width: 160px;
  }
}

.top-header__nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0 0.65rem;
  border-top: none;
  background: #000000;
  position: relative;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.top-header__toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: none !important;
}

.top-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  cursor: pointer;
}

.top-header__burger span {
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(2) {
  opacity: 0;
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.top-header__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-header__menu-link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff !important;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-header__menu-link:hover {
  color: var(--color-accent) !important;
  background: rgba(0, 255, 136, 0.1);
}

.top-header__menu-link--on {
  color: var(--color-accent) !important;
  background: rgba(0, 200, 83, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.12);
}

.top-header__menu-link--on:hover {
  color: #fff !important;
  background: rgba(0, 200, 83, 0.32);
}

/* เมนูมือถือ header — แถวปุ่ม 4 รายการ (ซ่อนบนเดสก์ท็อป) */
.top-header__nav-mobile {
  display: none;
  width: 100%;
}

.top-header__mobile-pills {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.top-header__mobile-pills li {
  flex: 1;
  min-width: 0;
}

.top-header__mobile-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.45rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-accent) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.top-header__mobile-pill:hover {
  color: #fff !important;
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.35);
}

.top-header__mobile-pill--on {
  color: #fff !important;
  background: rgba(0, 200, 83, 0.28);
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.15);
}

@media (min-width: 640px) and (max-width: 992px) {
  .top-header__mobile-pill {
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    min-height: 2.85rem;
  }
}

@media (min-width: 993px) {
  .top-header__nav-mobile {
    display: none !important;
  }

  .top-header__burger {
    display: none !important;
  }

  .top-header__nav {
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}

@media (max-width: 992px) {
  .top-header__nav-wrap {
    justify-content: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .top-header__nav-mobile {
    display: block;
  }

  .top-header__burger {
    display: none !important;
  }

  .top-header__nav {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .top-header__bar {
    gap: 0.35rem;
    min-height: 3rem;
    padding: 0.45rem 0;
  }

  .top-header__btn--ghost,
  .top-header__btn--solid {
    font-size: 0.8rem;
    padding: 0.42rem 0.75rem;
  }

  .top-header__logo {
    height: 34px;
    max-width: 120px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-darker);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: var(--color-darker);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-darker);
}

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

.main-content .section {
  text-align: center;
}

.main-content .form-box,
.main-content .form-group,
.main-content .contact-line,
.main-content .toc {
  text-align: left;
}

.main-content .card-grid {
  justify-content: center;
}

.main-content .card-body {
  text-align: center;
}

.main-content .section-title {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.section-title-center {
  text-align: center;
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

.section-title-center::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--color-accent);
  margin: 0 auto 0.5rem;
  border-radius: 2px;
}

/* หน้าแรก - เนื้อหา 5 หัวข้อ H2 */
/* กรอบเนื้อหาแบบเลื่อนอ่านได้ */
.content-scroll-wrap {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-dark);
}
.content-scroll-wrap::-webkit-scrollbar {
  width: 8px;
}
.content-scroll-wrap::-webkit-scrollbar-track {
  background: var(--color-darker);
  border-radius: 4px;
}
.content-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.content-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
  padding: 1.5rem;
}

.content-block-item {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.content-block-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content-block-item .content-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.content-body {
  color: var(--color-text);
  line-height: 1.75;
}

.content-body p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.content-body p:last-child {
  margin-bottom: 0;
}

/* โลโก้ในหน้าต่างๆ */
.page-logo-wrap {
  margin-bottom: 1.25rem;
  text-align: center;
}

.page-logo {
  display: inline-block;
  height: auto;
  max-width: 200px;
  margin: 0 auto;
}

/* Footer โลโก้ */
.footer-logo-title {
  margin-bottom: 0.5rem;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  display: block;
  height: auto;
}

/* ========== หน้าแรก: แบนเนอร์รูปเดียวเต็มความกว้าง ========== */
.main-content > .home-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  padding: 0;
  line-height: 0;
}

.home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
}

/* ========== หน้าแรก: เกมแนะนำ 6 รูป แถวเดียว ========== */
.main-content > .home-featured-games {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 0.75rem 0 1rem;
  box-sizing: border-box;
  background: var(--color-darker);
}

/* เส้นซ้าย–ขวาเท่ากับ .top-header__inner (ปุ่ม header) */
.home-featured-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .home-featured-inner {
    padding: 0 1.5rem;
  }
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-featured-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(0, 255, 136, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.home-featured-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-featured-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  vertical-align: top;
}

@media (max-width: 900px) {
  .home-featured-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }

  .home-featured-item {
    flex: 0 0 calc((100% - 100px) / 6);
    min-width: 72px;
    max-width: none;
  }
}

/* ========== หน้าแรก: JACKPOT ใต้เกมแนะนำ (ธีมชนะรางวัล) ========== */
.main-content > .home-jackpot {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 2.35rem 0 2.65rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--color-darker);
  border-top: none;
  border-bottom: none;
}

.home-jackpot-bg,
.home-jackpot-confetti {
  display: none;
}

.home-jackpot-inner {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 640px) {
  .home-jackpot-inner {
    padding: 0 1.5rem;
  }
}

.home-jackpot-head {
  position: relative;
  margin-bottom: 0.85rem;
}

.home-jackpot-stars {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-55%);
  display: flex;
  justify-content: space-between;
  max-width: min(520px, 92vw);
  margin: 0 auto;
  pointer-events: none;
  padding: 0 0.25rem;
}

.home-jackpot-star {
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
  color: #ffc107;
  text-shadow:
    0 0 20px rgba(255, 193, 7, 0.9),
    0 4px 0 #b8860b,
    0 6px 8px rgba(0, 0, 0, 0.45);
  animation: home-jackpot-star-pulse 1.6s ease-in-out infinite;
}

.home-jackpot-star--r {
  animation-delay: 0.35s;
}

@keyframes home-jackpot-star-pulse {
  0%,
  100% {
    transform: scale(1) rotate(-6deg);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08) rotate(6deg);
    filter: brightness(1.2);
  }
}

.home-jackpot-crown {
  position: absolute;
  left: 50%;
  top: -0.15em;
  transform: translateX(18%);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  z-index: 3;
  animation: home-jackpot-crown-bob 2.2s ease-in-out infinite;
}

@keyframes home-jackpot-crown-bob {
  0%,
  100% {
    transform: translateX(18%) translateY(0);
  }
  50% {
    transform: translateX(18%) translateY(-4px);
  }
}

.home-jackpot-marquee {
  margin: 0;
  padding: 0.35em 0 0.2em;
  font-size: clamp(2.15rem, 9.5vw, 3.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
}

.home-jackpot-marquee__track {
  display: inline-flex;
  gap: 0.07em;
  justify-content: center;
  flex-wrap: wrap;
}

.jp-L {
  position: relative;
  display: inline-block;
  color: #ffe566;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 #9b1c1c,
    2px 2px 0 #7a1515,
    3px 3px 0 #5c1010,
    4px 4px 0 #450c0c,
    0 0 24px rgba(255, 220, 100, 0.55);
  animation: home-jackpot-letter-pop 2.5s ease-in-out infinite;
}

.jp-L::before {
  content: '';
  position: absolute;
  inset: 12% 10% 28% 10%;
  border-radius: 4px;
  background-image: radial-gradient(circle 1.5px at 20% 35%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 55% 25%, rgba(255, 255, 255, 0.95) 98%, transparent),
    radial-gradient(circle 1.5px at 78% 55%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 35% 70%, rgba(255, 255, 255, 0.85) 98%, transparent),
    radial-gradient(circle 1.5px at 65% 78%, rgba(255, 255, 255, 0.9) 98%, transparent);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: home-jackpot-bulbs-twinkle 0.9s steps(2, end) infinite;
}

.jp-L:nth-child(2) {
  animation-delay: 0.08s;
}
.jp-L:nth-child(3) {
  animation-delay: 0.16s;
}
.jp-L:nth-child(4) {
  animation-delay: 0.24s;
}
.jp-L:nth-child(5) {
  animation-delay: 0.32s;
}
.jp-L:nth-child(6) {
  animation-delay: 0.4s;
}
.jp-L:nth-child(7) {
  animation-delay: 0.48s;
}

@keyframes home-jackpot-letter-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
  }
}

@keyframes home-jackpot-bulbs-twinkle {
  0% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

.home-jackpot-tagline {
  margin: 0.55rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.home-jackpot-tagline__pink {
  font-family: 'Brush Script MT', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: clamp(1.22rem, 4.2vw, 1.72rem);
  color: #ff7eb3;
  text-shadow:
    0 0 16px rgba(255, 100, 180, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.home-jackpot-tagline__blue {
  font-size: clamp(1.12rem, 3.8vw, 1.58rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #4fc3f7;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 #1565c0,
    2px 2px 0 #0d47a1,
    0 0 20px rgba(79, 195, 247, 0.55);
}

.home-jackpot-pill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 1.5rem;
  gap: 0;
}

.home-jackpot-ribbon {
  flex-shrink: 0;
  width: clamp(22px, 5vw, 32px);
  height: clamp(56px, 14vw, 76px);
  z-index: 0;
}

.home-jackpot-ribbon--l {
  margin-right: -10px;
  background: linear-gradient(180deg, #ff8fb8 0%, #e91e63 45%, #ad1457 100%);
  border-radius: 4px 70% 70% 4px / 4px 45% 45% 4px;
  box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
}

.home-jackpot-ribbon--r {
  margin-left: -10px;
  background: linear-gradient(180deg, #ff8fb8 0%, #e91e63 45%, #ad1457 100%);
  border-radius: 70% 4px 4px 70% / 45% 4px 4px 45%;
  box-shadow: -3px 2px 10px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
}

.home-jackpot-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  padding: 0.65rem 1.5rem 0.72rem;
  min-width: min(100%, 360px);
  background: linear-gradient(180deg, #5e35b1 0%, #4527a0 40%, #311b92 100%);
  border: 4px solid #d4af37;
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(100, 60, 180, 0.5),
    0 8px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-jackpot-pill__sym,
.home-jackpot-pill__num {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-size: clamp(1.28rem, 4.8vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-jackpot-pill__num {
  display: inline-block;
  animation: home-jackpot-pill-num 2.3s ease-in-out infinite;
}

@keyframes home-jackpot-pill-num {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.home-jackpot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 300px);
  padding: 0.85rem 2rem;
  margin-top: 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.45);
  background: linear-gradient(180deg, #00e676 0%, #00c853 35%, #009624 100%);
  box-shadow:
    0 4px 0 #006b2e,
    0 8px 24px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.home-jackpot-cta:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #006b2e,
    0 12px 28px rgba(0, 255, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-jackpot-cta:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 #006b2e,
    0 4px 16px rgba(0, 200, 83, 0.35);
}

.home-jackpot-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ========== หน้าแรก: โปรโมชั่น 3 การ์ด (ริบบิ้นมุม + ปุ่มเขียว) ========== */
.main-content > .home-promo-row {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0 1.75rem;
  box-sizing: border-box;
  background: var(--color-darker);
}

.main-content > .section.home-promo-row {
  padding-top: 1.25rem;
}

.main-content > .section.home-promo-row .section-title.section-title-center {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.home-promo-row__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-promo-row__inner {
    padding: 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .home-promo-row__inner {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.home-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.15rem 1.5rem;
  background: var(--color-darker);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-promo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 28px var(--color-neon-green-glow),
    0 0 0 1px rgba(0, 255, 136, 0.18);
}

.home-promo-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.home-promo-card__ribbon-text {
  position: absolute;
  top: 1rem;
  right: -2.15rem;
  width: 8.75rem;
  padding: 0.38rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111;
  text-align: center;
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 45%, #d4a017 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

.home-promo-card__badge {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111;
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 50%, #e6ac00 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-promo-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  max-width: 18rem;
}

.home-promo-card__desc {
  margin: 0 0 1.15rem;
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 20rem;
}

.home-promo-card__cta,
.promo-page-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 16rem;
  padding: 0.72rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.45);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  box-shadow:
    0 3px 0 #0d4d24,
    0 6px 20px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.home-promo-card__cta:hover,
.promo-page-card__cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 #0d4d24,
    0 0 32px var(--color-neon-green-glow),
    0 10px 28px rgba(0, 200, 83, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-promo-card__cta:active,
.promo-page-card__cta:active {
  transform: translateY(0);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow:
    0 2px 0 #0d4d24,
    0 4px 14px rgba(0, 200, 83, 0.35);
}

.home-promo-card__cta:focus-visible,
.promo-page-card__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========== หน้าแรก: 3 ขั้นตอนเริ่มเล่น (ใต้แบนเนอร์) — ไม่มีกรอบ สีพื้นเดียวกับหน้า ========== */
.main-content > .home-steps {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-darker);
  padding: 1.75rem 1rem 2.25rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  border: none;
  box-shadow: none;
  outline: none;
}

.home-steps-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-steps-title {
  text-align: center;
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.65rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.home-steps-brand {
  color: var(--color-accent);
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}

.home-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.home-steps-card {
  background: linear-gradient(160deg, #111916 0%, #0a0e0c 55%, #080b09 100%);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.15rem 1.5rem;
  text-align: center;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 255, 136, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-steps-card:hover {
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(0, 255, 136, 0.1);
}

.home-steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #00ff88 0%, #00c853 52%, #00a843 100%);
  color: #0a0e0c;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 0.95rem;
  box-shadow: 0 2px 14px rgba(0, 200, 83, 0.45);
}

.home-steps-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.home-steps-card-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.home-steps-cta-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.home-steps-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0a0e0c !important;
  text-decoration: none;
  border-radius: 9999px;
  background: linear-gradient(180deg, #00ff88 0%, #00c853 52%, #00a843 100%);
  box-shadow:
    0 3px 18px rgba(0, 200, 83, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.home-steps-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  color: #050705 !important;
  box-shadow:
    0 0 26px rgba(0, 255, 136, 0.45),
    0 5px 22px rgba(0, 200, 83, 0.35);
}

/* ========== ทดลองเล่น สล็อตเดโม (Demo Slots Grid) ========== */
.demo-slots-section {
  margin-bottom: 2rem;
}

.demo-slots-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.demo-slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.demo-slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.demo-slot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.18);
  border-color: rgba(0, 255, 136, 0.35);
}

.demo-slot-icon {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.demo-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-slot-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.demo-slot-card:hover .demo-slot-name {
  color: var(--color-neon-green);
}

@media (max-width: 1200px) {
  .demo-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .demo-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .demo-slot-card {
    padding: 0.75rem 0.35rem;
  }

  .demo-slot-icon {
    max-width: 80px;
  }

  .demo-slot-name {
    font-size: 0.75rem;
  }
}

/* ========== สล็อต / คาสิโนสด ใต้แบนเนอร์ (แบบรายการแนวตั้ง ชิดซ้าย) ========== */
.slots-under-banner {
  background: var(--color-darker);
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}

.slots-under-banner + .slots-under-banner {
  margin-top: 0;
}

.slots-under-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.slots-list-layout {
  max-width: 380px;
  margin-left: 0;
  margin-right: auto;
}

/* แถวการ์ด 6 ช่อง - ระยะกระชับ ไม่ห่างเกินไป */
.game-cards-row.game-cards-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

/* แถว 6 รูปแบบง่าย (รูป + จำนวนคนเข้าเล่น + ชื่อ) */
/* สล็อต + คาสิโน: รูปแนวสี่เหลี่ยมผืนผ้า (แนวนอน) */
.slots-simple-row .slots-list-img {
  aspect-ratio: 16/9;
}

@media (max-width: 1200px) {
  .game-cards-row.game-cards-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .game-cards-row.game-cards-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.slots-two-cols .slots-header-full {
  margin-bottom: 1rem;
  width: 100%;
}

.slots-two-cols-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 1rem;
  align-items: start;
}

.slots-col-1 {
  min-width: 0;
}

.slots-item-large .slots-list-img {
  aspect-ratio: 3/4;
  min-height: 320px;
}

.slots-grid-2rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.75rem;
}

.slots-grid-2rows .slots-list-item .slots-list-img {
  aspect-ratio: 1;
}

@media (max-width: 992px) {
  .slots-two-cols-wrap {
    grid-template-columns: 1fr;
  }

  .slots-item-large .slots-list-img {
    min-height: 240px;
    aspect-ratio: 4/3;
  }

  .slots-grid-2rows {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
  }
}

@media (max-width: 480px) {
  .slots-grid-2rows {
    grid-template-columns: 1fr;
  }
}

.slots-header {
  margin-bottom: 0.5rem;
}

.slots-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.slots-title-icon {
  font-size: 1.25em;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slots-list-item {
  display: block;
  background: var(--color-dark);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slots-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.25);
}

.slots-list-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-darker);
}

.slots-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge แสดงจำนวนคนเล่น มุมซ้ายบน (จุดสีเขียว + ตัวเลขขาว) */
.slots-player-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 2;
}

.slots-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.slots-player-num {
  color: #fff;
  line-height: 1;
}

/* Badge แสดงเปอร์เซ็นแตก (RTP) มุมขวาบน - ไอคอนเพชรทอง + ตัวเลข */
.slots-rtp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  z-index: 2;
}

.slots-rtp-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M12 2L15 9l7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z"/></svg>') no-repeat center;
  background-size: contain;
}

.slots-list-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.slots-list-play {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-neon-green);
}

/* ชื่อเกม - ตัวใหญ่เด่น (แบบการ์ดสล็อต) */
.slots-simple-row .slots-list-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slots-list-name {
  display: block;
  font-size: 0.9rem;
  color: var(--color-neon-green);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .slots-under-banner {
    padding: 1rem;
  }

  .slots-list-layout {
    max-width: 100%;
  }
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-img {
  aspect-ratio: 16/9;
  background: var(--color-darker);
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-img-cover {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}

.card-img-promo-full {
  min-height: 280px;
  aspect-ratio: 3/4;
}

#promo .card-img.card-img-cover {
  min-height: 280px;
  aspect-ratio: 3/4;
}

/* ========== มินิเกม - ไอคอนแทนรูป (สล็อต, บาคาร่า, หวย, แทงบอล) ========== */
.minigame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.minigame-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.minigame-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.minigame-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 1.25rem auto 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* สล็อต - เครื่องสล็อต 3 รีล */
.minigame-icon-slot {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="2" fill="%234b5563"/><rect x="5" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><rect x="10" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><rect x="15" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><circle cx="7" cy="11" r="2" fill="%23dc2626"/><circle cx="12" cy="11" r="2" fill="%23dc2626"/><circle cx="17" cy="11" r="2" fill="%23dc2626"/><circle cx="21" cy="12" r="1.5" fill="%23ef4444"/></svg>');
}

/* บาคาร่า - ไพ่ */
.minigame-icon-baccarat {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="5" y="2" width="14" height="20" rx="2" fill="%23fef3c7" stroke="%23d97706" stroke-width="1"/><path d="M12 5l2 4-2 2-2-2 2-4z" fill="%23b45309"/><circle cx="12" cy="16" r="2.5" fill="none" stroke="%23b45309" stroke-width="1"/></svg>');
}

/* หวย - ลูกบอล 8 (สีดำ-ขาว) */
.minigame-icon-lottery {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%231f2937"/><circle cx="12" cy="12" r="8" fill="%23fff"/><circle cx="12" cy="12" r="5" fill="%231f2937"/></svg>');
}

/* แทงบอล - ลูกฟุตบอล */
.minigame-icon-soccer {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23fff" stroke="%23374151" stroke-width="1"/><path d="M12 2v20M2 12h20" stroke="%23374151" stroke-width="1" fill="none"/><path d="M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10 15 15 0 0 1 4-10z" fill="none" stroke="%23374151" stroke-width="1"/></svg>');
}

.minigame-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 992px) {
  .minigame-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .minigame-grid {
    grid-template-columns: 1fr;
  }
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== ทำไมต้องเรา (Why Us) - Icon Block ========== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-us-item {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.why-us-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.why-us-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.why-us-icon-lock {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}

.why-us-icon-lightning {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23eab308"><path d="M13 2L3 14h6l-2 8 10-12h-6l2-8z"/></svg>');
}

.why-us-icon-game {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239ca3af"><path d="M21.58 16.09l-1.09-7.66A3.996 3.996 0 0 0 16.53 5H7.47C5.48 5 3.79 6.46 3.51 8.43l-1.09 7.66C2.2 17.63 3.39 19 4.94 19c.69 0 1.32-.28 1.8-.78L12 13.5l5.26 4.72c.48.5 1.11.78 1.8.78 1.55 0 2.74-1.37 2.49-2.91zM11 11H9v2H8v-2H6v-1h2V8h1v2h2v1zm4-1.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2 2.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/></svg>');
}

.why-us-icon-gift {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 15H8v-6h8v6zm4-8H4V8h16v3z"/></svg>');
}

.why-us-icon-device {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b7280"><path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/></svg>');
}

.why-us-icon-target {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-14c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>');
}

.why-us-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.why-us-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== รายการฝาก-ถอน (ตาราง) ========== */
.deposit-table-wrap {
  overflow: hidden;
  background: var(--color-dark);
  border-radius: var(--radius);
  position: relative;
}

.deposit-table-scroll {
  height: 420px;
  overflow: hidden;
  overflow-x: auto;
}

.deposit-table-scroll .deposit-table {
  animation: deposit-scroll 25s linear infinite;
}

@keyframes deposit-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.deposit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.deposit-table thead {
  background: rgba(0, 255, 136, 0.08);
}

.deposit-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.deposit-table td {
  padding: 0.75rem 1rem;
  color: var(--color-text);
}

.deposit-table tbody tr {
  background: var(--color-dark);
}

.deposit-table tbody tr:nth-child(even) {
  background: rgba(15, 20, 18, 0.6);
}

.deposit-table .amt-deposit {
  color: var(--color-neon-green);
  font-weight: 600;
}

.deposit-table .amt-withdraw {
  color: #ef4444;
  font-weight: 600;
}

.deposit-type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deposit-type-badge.type-deposit {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.deposit-type-badge.type-withdraw {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ========== Mini Games / Formula Sections ========== */
.formula-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.formula-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition);
}

.formula-card:hover {
  border-color: var(--color-accent);
}

.formula-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-darker);
}

.formula-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.formula-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.formula-card h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem 0;
}

.formula-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* การ์ดสูตรที่เป็นลิงก์ไปหน้าบทความ */
.formula-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.formula-card-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.formula-card-link .formula-card-body h3 {
  color: var(--color-accent);
}
.formula-card-link:hover .formula-card-body h3 {
  color: var(--color-neon-green);
}

/* ========== Table of Contents (Collapsible) ========== */
.toc {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.toc-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.toc-toggle:hover {
  background: rgba(0, 255, 136, 0.1);
}

.toc-toggle::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  line-height: 1;
}

.toc.open .toc-toggle::after {
  transform: rotate(45deg);
}

.toc-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.toc.open .toc-list {
  max-height: 800px;
  padding: 0 1.25rem 1.25rem;
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list a {
  color: var(--color-text);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), padding-left var(--transition);
}

.toc-list li:last-child a {
  border-bottom: none;
}

.toc-list a:hover {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0, 255, 136, 0.1);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 2.5rem 1.5rem 1rem;
}

/* Footer แบบ 4 คอลัมน์ - ตรีมเขียวเสียว (spicy green) */
.site-footer-style {
  --footer-accent: #00ff88;
  --footer-accent-hover: #00cc6a;
  background: #0a0e0c;
  border-top: 1px solid #1b2e1f;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand-logo-wrap {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-col-brand .footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  max-width: 320px;
}

.site-footer-style .footer-social-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
}

.site-footer-style .footer-social-circles .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--footer-accent);
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.site-footer-style .footer-social-circles .footer-social-link:hover {
  background: var(--footer-accent-hover);
  transform: scale(1.08);
}

.site-footer-style .footer-social-circles .footer-social-link {
  color: #fff;
}

.site-footer-style .footer-social-circles .footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer-style .footer-social-circles .footer-social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-footer-style .footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer-style .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-style .footer-col li {
  margin-bottom: 0.5rem;
}

.site-footer-style .footer-col a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.site-footer-style .footer-col a:hover {
  color: var(--footer-accent);
}

.site-footer-style .footer-bottom {
  border-top: 1px solid #1b2e1f;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== แถบเมนูล่าง (มือถือ) — fixed / sticky ========== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
  }

  .mobile-bottom-nav__bar {
    pointer-events: auto;
    margin: 0 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: #050505;
    border-radius: 22px 22px 16px 16px;
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-bottom-nav__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.15rem;
    padding: 0.4rem 0.35rem 0.55rem;
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-bottom-nav__link {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    text-decoration: none;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    padding: 0.2rem 0.1rem 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-bottom-nav__link:active {
    transform: scale(0.96);
  }

  .mobile-bottom-nav__link.is-active .mobile-bottom-nav__label {
    color: var(--color-accent);
  }

  .mobile-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }

  .mobile-bottom-nav__icon--blogs svg {
    filter: drop-shadow(0 2px 3px rgba(21, 101, 192, 0.45));
  }

  .mobile-bottom-nav__icon--line {
    background: #06c755;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.45);
  }

  .mobile-bottom-nav__icon--line img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .mobile-bottom-nav__link--center {
    flex: 0 0 auto;
    margin-top: -1.35rem;
    position: relative;
    z-index: 2;
  }

  .mobile-bottom-nav__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(160deg, #ffb347 0%, #ff8c00 45%, #ff6f00 100%);
    box-shadow:
      0 4px 0 rgba(0, 0, 0, 0.2),
      0 8px 20px rgba(255, 140, 0, 0.45),
      inset 0 2px 0 rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
  }

  .mobile-bottom-nav__label {
    color: rgba(255, 255, 255, 0.92);
    max-width: 4.2rem;
    word-break: break-word;
  }

  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand-logo {
    height: 40px;
    max-width: 140px;
  }

  .footer-col-brand .footer-brand-desc {
    max-width: 100%;
  }
}

.footer-time {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-muted);
}
.footer-time-label {
  margin-right: 0.5rem;
}
.footer-time time {
  font-weight: 600;
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-accent);
}

/* โซเชียล - ไอคอนรูปจริง */
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-darker);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, border-color 0.2s;
}
.footer-social-link:hover {
  border-color: var(--color-accent);
  transform: scale(1.08);
}
.footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* พาร์ทเนอร์ & ธนาคาร - โลโก้รูปจริง */
.footer-bank-logo {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.95;
  filter: grayscale(0.2);
  transition: opacity 0.2s;
}
.footer-bank-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* พาร์ทเนอร์ & ธนาคาร + TAG อยู่ตรงกลาง */
.footer-center-block {
  text-align: center;
  margin-bottom: 2rem;
}
.footer-section-center {
  margin-bottom: 1.5rem;
}
.footer-section-center:last-child {
  margin-bottom: 0;
}
.footer-section-center h4 {
  margin-bottom: 0.75rem;
}
.footer-section-center .footer-partners,
.footer-section-center .footer-tags {
  justify-content: center;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.footer-partners img {
  height: 32px;
  opacity: 0.8;
  filter: grayscale(0.5);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--color-darker);
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.tag:hover {
  background: var(--color-accent);
  color: var(--color-darker);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-sitemap a {
  margin-left: 1rem;
  color: var(--color-text-muted);
}

/* ========== Forms & Iframe ========== */
.form-box {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-box iframe {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-darker);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-darker);
  color: var(--color-text);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ========== Message Box (PHP result) ========== */
.message-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  display: none;
}

.message-box.show {
  display: block;
}

.message-box.success {
  background: rgba(25, 135, 84, 0.2);
  border: 1px solid var(--color-success);
  color: #75c997;
}

.message-box.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid var(--color-danger);
  color: #f5a2a2;
}

/* ========== หน้าโปรโมชั่น - รายละเอียดโปร ========== */
.promo-detail-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.promo-detail-two-cols {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section.promo-images .card-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.section.promo-images .card-promo-1 {
  grid-column: 1;
}

@media (max-width: 768px) {
  .promo-detail-two-cols {
    grid-template-columns: 1fr;
  }
}

.promo-detail-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.promo-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.promo-detail-turn {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.promo-detail-desc {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.promo-detail-notice {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== หน้าสมัครสมาชิก (เนื้อหาสั้น + ปุ่มกลาง + การ์ดโปรเดียว) ========== */
.register-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem 2.75rem;
  box-sizing: border-box;
  text-align: center;
}

.register-page__lead {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.register-page__lead strong {
  color: var(--color-accent);
  font-weight: 700;
}

.register-page__sub {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.register-page__cta-wrap {
  margin-bottom: 2rem;
}

.register-page__cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  padding: 0.95rem 2.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.5);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  box-shadow:
    0 4px 0 #0d4d24,
    0 10px 32px rgba(0, 200, 83, 0.4),
    0 0 28px var(--color-neon-green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.register-page__cta-main:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #0d4d24,
    0 14px 36px rgba(0, 255, 136, 0.35),
    0 0 36px var(--color-neon-green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.register-page__cta-main:active {
  transform: translateY(0);
}

.register-page__cta-main:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.register-page__promo-wrap {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

.register-page__more {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}

.register-page__more a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.register-page__more a:hover {
  text-decoration: underline;
}

/* ========== หน้าโปรโมชั่น – การ์ดธีมเขียว (ริบบิ้น + ป้าย + CTA) ========== */
.promo-page {
  padding-bottom: 2rem;
}

.promo-page__grid {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .promo-page__grid {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .promo-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .promo-page__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.promo-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.15rem 1.5rem;
  background: var(--color-darker);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 28px var(--color-neon-green-glow),
    0 0 0 1px rgba(0, 255, 136, 0.18);
}

.promo-page-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.promo-page-card__ribbon-text {
  position: absolute;
  top: 1rem;
  right: -2.15rem;
  width: 8.75rem;
  padding: 0.38rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #69f0ae 0%, var(--color-primary) 40%, #006b3a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

.promo-page-card__badge {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 48%, var(--color-primary-dark) 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 8px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.promo-page-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  max-width: 20rem;
}

.promo-page-card__turn {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.4;
  max-width: 20rem;
}

.promo-page-card__desc {
  margin: 0 0 0.75rem;
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 20rem;
}

.promo-page-card__notice {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 20rem;
}

.promo-page-card__cta {
  max-width: 17rem;
  margin-top: auto;
}

/* ========== หน้าโปรโมชั่น – โปรแบบ image blog (คอลัมน์เดียว) ========== */
.promo-blog-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.promo-blog-item {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-blog-img {
  width: 100%;
  aspect-ratio: 21/9;
  background: var(--color-darker);
  flex-shrink: 0;
  overflow: hidden;
}

.promo-blog-img-fill {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}

.promo-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.promo-blog-img-fill img {
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

@media (max-width: 576px) {
  .promo-blog-list {
    grid-template-columns: 1fr;
  }
}

.promo-blog-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.promo-blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.35rem 0;
}

.promo-blog-turn {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem 0;
}

.promo-blog-desc {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
}

.promo-blog-notice {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== Promo Image ========== */
.promo-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.promo-image img {
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}

/* ========== Article Template ========== */
.article-hero {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-content {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.article-content h2, .article-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--color-accent);
}

/* ========== Contact - LINE ========== */
.contact-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--color-dark);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-line img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.btn-line {
  background: #06c755;
  color: #fff;
}

.btn-line:hover {
  background: #05a847;
  color: #fff;
}

.main-content .contact-line {
  text-align: center;
}

/* ========== Two Column Layout ========== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive - เนื้อหา ========== */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .formula-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .formula-section {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-sitemap a {
    margin: 0 0.5rem;
  }
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
