/*
Theme Name: Club8th Master Theme
Theme URI: https://club8th.online/
Author: Club8th Development Team
Author URI: https://club8th.online/
Description: Theme ระดับพระกาฬสำหรับ Club8 / Club8th (คลับ8th) ออกแบบเพื่อทำ SEO ดันอันดับหน้า 1 Google รองรับโดเมน club8th.online โทนสีน้ำเงิน-ดำ Modern Cyber Luxury โหลดเร็ว รองรับมือถือ 100%
Version: 1.0.4
Tested up to: 7.1.2
Requires PHP: 7.4
Text Domain: club8-theme
License: Proprietary
*/

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

:root {
  /* Option 1: Glacier Clean / Light Luxury Palette */
  --c8-bg-main: #f3f7fb;
  --c8-bg-surface: #ffffff;
  --c8-bg-card: #ffffff;
  --c8-bg-card-hover: #f8fbff;
  --c8-bg-glass: rgba(255, 255, 255, 0.94);
  
  /* Primary Cyber Cyan & Royal Cobalt (Club8 Logo DNA) */
  --c8-cyan: #0099e6;
  --c8-cyan-vibrant: #00d2ff;
  --c8-cyan-light: #e0f6ff;
  --c8-cyan-glow: rgba(0, 180, 255, 0.25);
  --c8-blue: #0051ff;
  --c8-blue-dark: #0036b3;
  --c8-blue-gradient: linear-gradient(135deg, #00b4db 0%, #0051ff 100%);
  --c8-blue-gradient-hover: linear-gradient(135deg, #00c6ff 0%, #003ecb 100%);
  
  /* Accents */
  --c8-gold: #d97706;
  --c8-gold-light: #fffbeb;
  --c8-gold-glow: rgba(217, 119, 6, 0.25);
  --c8-green: #059669;
  --c8-line: #06c755;
  --c8-danger: #dc2626;
  
  /* Borders & Shadows */
  --c8-border: rgba(0, 81, 255, 0.12);
  --c8-border-strong: rgba(0, 81, 255, 0.26);
  --c8-shadow-sm: 0 2px 10px rgba(0, 50, 150, 0.05);
  --c8-shadow-neon: 0 8px 25px rgba(0, 150, 255, 0.18);
  --c8-shadow-card: 0 10px 25px -5px rgba(0, 60, 180, 0.07), 0 4px 10px rgba(0, 0, 0, 0.03);

  /* Typography */
  --c8-font: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --c8-text: #0f172a;
  --c8-text-muted: #475569;
  --c8-text-dim: #64748b;
  
  /* Transitions */
  --c8-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================
   Reset & Base Typography
======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--c8-font);
  background-color: var(--c8-bg-main);
  color: var(--c8-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 150, 255, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 100% 30%, rgba(0, 210, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 0% 70%, rgba(0, 81, 255, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ========================================================
   Layout Containers
======================================================== */
.c8-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.c8-container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================================
   Header & Navigation
======================================================== */
.c8-topbar {
  background: #08173d;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  font-size: 0.82rem;
  padding: 7px 0;
  color: #cbd5e1;
}

.c8-topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.c8-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c8-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--c8-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c8-green);
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.c8-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c8-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c8-border);
  box-shadow: 0 4px 20px rgba(0, 50, 150, 0.05);
  transition: var(--c8-transition);
}

.c8-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.c8-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c8-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 81, 255, 0.2));
}

.c8-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--c8-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.c8-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.c8-nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c8-text);
  padding: 8px 4px;
  position: relative;
}

.c8-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c8-blue);
  transition: var(--c8-transition);
  box-shadow: 0 0 8px rgba(0, 81, 255, 0.4);
}

.c8-nav-menu li a:hover,
.c8-nav-menu li.current-menu-item a {
  color: var(--c8-blue);
}

.c8-nav-menu li a:hover::after,
.c8-nav-menu li.current-menu-item a::after {
  width: 100%;
}

.c8-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================
   Buttons
======================================================= */
.c8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--c8-transition);
  text-align: center;
  white-space: nowrap;
}

.c8-btn-primary {
  background: var(--c8-blue-gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 81, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.c8-btn-primary:hover {
  background: var(--c8-blue-gradient-hover);
  box-shadow: 0 6px 24px rgba(0, 150, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.c8-btn-outline {
  background: rgba(0, 81, 255, 0.05);
  border-color: rgba(0, 81, 255, 0.3);
  color: var(--c8-blue);
}

.c8-btn-outline:hover {
  background: var(--c8-blue);
  border-color: var(--c8-blue);
  box-shadow: 0 6px 20px rgba(0, 81, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
}

.c8-btn-line {
  background: var(--c8-line);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}

.c8-btn-line:hover {
  background: #05b44c;
  transform: translateY(-2px);
}

.c8-btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 10px;
}

.c8-btn-block {
  width: 100%;
}

/* ========================================================
   Mobile Menu Trigger & Drawer
======================================================== */
.c8-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c8-cyan);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.c8-mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: calc(100vh - 74px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px 20px 100px;
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid var(--c8-border);
  box-shadow: 0 10px 30px rgba(0, 50, 150, 0.08);
}

.c8-mobile-drawer.active {
  display: block;
}

.c8-mobile-menu li {
  margin-bottom: 12px;
}

.c8-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--c8-border);
  color: var(--c8-text);
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 50, 150, 0.03);
}

.c8-mobile-menu li a:hover {
  background: rgba(0, 81, 255, 0.05);
  border-color: var(--c8-blue);
  color: var(--c8-blue);
}

/* ========================================================
   Hero Section
======================================================== */
.c8-hero {
  position: relative;
  padding: 40px 0 30px;
  overflow: hidden;
}

.c8-hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.c8-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0, 81, 255, 0.06);
  border: 1px solid rgba(0, 81, 255, 0.22);
  color: var(--c8-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 81, 255, 0.08);
}

.c8-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 980px;
  color: #0b1528;
}

.c8-text-gradient {
  background: var(--c8-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c8-hero-desc {
  font-size: 1.05rem;
  color: var(--c8-text-muted);
  max-width: 820px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.c8-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.c8-hero-banner-box {
  width: 100%;
  max-width: 1140px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 81, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 50, 150, 0.1), 0 0 25px rgba(0, 210, 255, 0.12);
  position: relative;
  background: #ffffff;
}

.c8-hero-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 500;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.c8-hero-banner-box:hover .c8-hero-banner-img {
  transform: scale(1.02);
}

/* ========================================================
   Quick Features Bar (4 Columns)
======================================================== */
.c8-features-section {
  padding: 30px 0;
}

.c8-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.c8-feature-card {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--c8-shadow-card);
  transition: var(--c8-transition);
}

.c8-feature-card:hover {
  background: var(--c8-bg-card-hover);
  border-color: var(--c8-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 81, 255, 0.12);
}

.c8-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.14), rgba(0, 81, 255, 0.1));
  color: var(--c8-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.c8-feature-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c8-text);
  margin-bottom: 2px;
}

.c8-feature-info p {
  font-size: 0.8rem;
  color: var(--c8-text-muted);
}

/* ========================================================
   Game Categories Grid (SEO Pillars)
======================================================== */
.c8-section {
  padding: 60px 0;
  position: relative;
}

.c8-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.c8-section-subtitle {
  color: var(--c8-blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.c8-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--c8-text);
  margin-bottom: 12px;
}

.c8-section-lead {
  font-size: 1rem;
  color: var(--c8-text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.c8-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c8-game-card {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--c8-shadow-card);
  transition: var(--c8-transition);
  display: flex;
  flex-direction: column;
}

.c8-game-card:hover {
  border-color: var(--c8-blue);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 81, 255, 0.14);
}

.c8-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 400;
  overflow: hidden;
  background: #eef4fb;
}

.c8-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.c8-game-card:hover .c8-game-thumb img {
  transform: scale(1.06);
}

.c8-game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--c8-blue-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 50, 150, 0.3);
}

.c8-game-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.c8-game-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c8-text);
}

.c8-game-body p {
  font-size: 0.9rem;
  color: var(--c8-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.c8-game-footer {
  display: flex;
  gap: 10px;
}

/* ========================================================
   Promotions Grid
======================================================== */
.c8-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c8-promo-card {
  background: var(--c8-bg-card);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--c8-shadow-card);
  transition: var(--c8-transition);
}

.c8-promo-card:hover {
  border-color: var(--c8-gold);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.18);
}

.c8-promo-thumb {
  width: 100%;
  aspect-ratio: 600 / 400;
  overflow: hidden;
  background: #f8fafc;
}

.c8-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c8-promo-body {
  padding: 20px;
}

.c8-promo-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c8-text);
}

.c8-promo-body p {
  font-size: 0.88rem;
  color: var(--c8-text-muted);
  margin-bottom: 16px;
}

/* ========================================================
   SEO Pillar & Long-form Content Section
======================================================== */
.c8-seo-article {
  background: #ffffff;
  border: 1px solid var(--c8-border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--c8-shadow-card);
}

.c8-seo-article h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--c8-blue);
  margin: 30px 0 14px;
  border-left: 4px solid var(--c8-blue);
  padding-left: 14px;
}

.c8-seo-article h2:first-of-type {
  margin-top: 0;
}

.c8-seo-article h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c8-text);
  margin: 22px 0 10px;
}

.c8-seo-article p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.c8-seo-article ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
  color: #334155;
}

.c8-seo-article ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.c8-seo-article strong {
  color: var(--c8-text);
}

/* ========================================================
   FAQ Accordion Section (FAQPage Schema Ready)
======================================================== */
.c8-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.c8-faq-item {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--c8-shadow-card);
  transition: var(--c8-transition);
}

.c8-faq-item:hover {
  border-color: var(--c8-border-strong);
}

.c8-faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--c8-text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.c8-faq-question i {
  color: var(--c8-blue);
  transition: transform 0.3s ease;
}

.c8-faq-item.active .c8-faq-question i {
  transform: rotate(180deg);
}

.c8-faq-answer {
  display: none;
  padding: 16px 20px 20px;
  background: #f8fbff;
  border-top: 1px solid rgba(0, 81, 255, 0.08);
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* ========================================================
   Blog / Articles Grid
======================================================== */
.c8-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c8-post-card {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--c8-shadow-card);
  transition: var(--c8-transition);
  display: flex;
  flex-direction: column;
}

.c8-post-card:hover {
  border-color: var(--c8-blue);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 81, 255, 0.12);
}

.c8-post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4fb;
}

.c8-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.c8-post-card:hover .c8-post-thumb img {
  transform: scale(1.05);
}

.c8-post-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.c8-post-meta {
  font-size: 0.8rem;
  color: var(--c8-blue);
  margin-bottom: 6px;
  font-weight: 500;
}

.c8-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c8-text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.c8-post-title a:hover {
  color: var(--c8-blue);
}

.c8-post-excerpt {
  font-size: 0.88rem;
  color: var(--c8-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* ========================================================
   Footer
======================================================== */
.c8-footer {
  background: linear-gradient(180deg, #08173d 0%, #040d24 100%);
  border-top: 2px solid rgba(0, 210, 255, 0.35);
  padding: 60px 0 100px; /* bottom padding for mobile sticky bar */
  margin-top: 80px;
  color: #94a3b8;
}

.c8-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.c8-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 14px 0 20px;
  color: #cbd5e1;
}

.c8-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.c8-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--c8-cyan-vibrant);
}

.c8-footer-links li {
  margin-bottom: 10px;
}

.c8-footer-links li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.c8-footer-links li a:hover {
  color: var(--c8-cyan-vibrant);
  padding-left: 4px;
}

.c8-footer-keywords {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-bottom: 24px;
}

.c8-footer-keywords h5 {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.c8-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c8-keyword-cloud a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.c8-keyword-cloud a:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--c8-cyan-vibrant);
  color: #ffffff;
}

.c8-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================================================
   Mobile Sticky Bottom Navigation Bar
======================================================== */
.c8-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c8-border);
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 50, 150, 0.08);
}

.c8-bottom-bar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  align-items: center;
}

.c8-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  gap: 3px;
  height: 100%;
}

.c8-bottom-item i {
  font-size: 1.15rem;
}

.c8-bottom-item span {
  font-size: 0.68rem;
  white-space: nowrap;
}

.c8-bottom-item:hover,
.c8-bottom-item.active {
  color: var(--c8-blue);
}

.c8-bottom-item.c8-bottom-register {
  color: var(--c8-blue);
  font-weight: 700;
}

.c8-bottom-item.c8-bottom-register i {
  color: var(--c8-blue);
  text-shadow: 0 0 10px rgba(0, 81, 255, 0.25);
}

/* Central Standout Register Button on Mobile */
.c8-bottom-item-highlight {
  position: relative;
  top: -12px;
}

.c8-highlight-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c8-blue-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 81, 255, 0.4), 0 0 15px rgba(0, 210, 255, 0.3);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.c8-highlight-btn:active {
  transform: scale(0.92);
}

.c8-highlight-btn i {
  font-size: 1.3rem;
  margin-bottom: 1px;
}

.c8-highlight-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

/* ========================================================
   Floating Sticky LINE Support Widget (เลื่อนตามหน้าจอ คลิกเด้งไลน์)
======================================================== */
.c8-floating-line-widget {
  position: fixed;
  right: 25px;
  bottom: 35px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: c8FloatWidget 3.5s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

@keyframes c8FloatWidget {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.c8-floating-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(0, 40, 120, 0.25)) drop-shadow(0 0 16px rgba(0, 210, 255, 0.35));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.c8-floating-link:hover {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 14px 28px rgba(0, 40, 120, 0.35)) drop-shadow(0 0 25px rgba(0, 210, 255, 0.55));
}

.c8-floating-link:active {
  transform: scale(0.96);
}

.c8-floating-img-wrap {
  width: 140px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c8-floating-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Online Status Pill Badge */
.c8-floating-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  box-shadow: 0 4px 12px rgba(0, 40, 120, 0.12);
  letter-spacing: 0.3px;
}

.c8-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: c8PulseDot 1.8s infinite;
}

@keyframes c8PulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Close / Dismiss button */
.c8-floating-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #475569;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  padding: 0;
}

.c8-floating-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.15);
}

/* Footer QR Code Card */
.c8-footer-qr-card {
  margin-top: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: var(--c8-transition);
}

.c8-footer-qr-card:hover {
  border-color: var(--c8-line);
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.3);
  transform: translateY(-2px);
}

.c8-footer-qr-card img {
  display: block;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}

.c8-footer-qr-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c8-line);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}



/* ========================================================
   Responsive Media Queries
======================================================== */
@media (max-width: 1024px) {
  .c8-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .c8-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .c8-promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .c8-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .c8-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .c8-nav-menu,
  .c8-header-actions {
    display: none;
  }
  
  .c8-mobile-toggle {
    display: block;
  }
  
  .c8-bottom-bar {
    display: block;
  }
  
  .c8-games-grid,
  .c8-promo-grid,
  .c8-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .c8-features-grid {
    grid-template-columns: 1fr;
  }
  
  .c8-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .c8-seo-article {
    padding: 24px 16px;
  }
  
  .c8-topbar {
    display: none; /* Hide topbar on mobile to save vertical space */
  }

  /* Floating Sticky LINE Widget on Mobile (ขยับขึ้นกึ่งกลางขวา ไม่บังปุ่มสมัคร/ทางเข้า/เมนูล่าง) */
  .c8-floating-line-widget {
    right: 0;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    animation: none;
  }
  .c8-floating-img-wrap {
    width: 100%;
  }
  .c8-floating-online-badge {
    display: none;
  }
  .c8-floating-close {
    top: -4px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
}

