
/* ==========================================================================
   2. TOP HEADER & NAVBAR (EXACT REPLICA OF USER SCREENSHOT)
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #020b04 !important;
  border-bottom: 1px solid rgba(22, 101, 52, 0.4) !important;
  height: 52px !important;
  padding: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
}

.header-inner {
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 10px !important;
}

/* Hamburger menu button */
.lucky-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.lucky-menu-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 2px !important;
  width: 28px !important;
  height: 28px !important;
}

.lucky-menu-btn svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #ffffff !important;
  stroke-width: 2.4 !important;
}

/* Logo */
.logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.site-logo-image {
  height: 34px !important;
  width: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5)) !important;
}

/* Right buttons container */
.lucky-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-shrink: 0 !important;
}

/* Circular icon buttons (Search, Bell, Sun) */
.lucky-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  width: 30px !important;
  height: 30px !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-decoration: none !important;
  opacity: 0.92 !important;
  transition: opacity 0.18s ease, transform 0.18s ease !important;
}

.lucky-icon-btn:hover {
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

.lucky-icon-btn svg {
  width: 19px !important;
  height: 19px !important;
  stroke: #ffffff !important;
}

/* CREDIT & COIN Pills - Exactly like screenshot */
.lucky-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 34px !important;
  padding: 2px 10px 2px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
  background: radial-gradient(circle at 40% 30%, rgba(22, 101, 52, 0.65) 0%, rgba(3, 20, 8, 0.95) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(34, 197, 94, 0.15) !important;
  text-decoration: none !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.lucky-pill:hover {
  border-color: #39ff14 !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4), inset 0 0 10px rgba(34, 197, 94, 0.25) !important;
}

.lucky-pill-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.lucky-pill-credit .lucky-pill-icon svg {
  width: 18px !important;
  height: 14px !important;
  stroke: #86efac !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.8)) !important;
}

.lucky-pill-coin .lucky-pill-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #86efac !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.8)) !important;
}

.lucky-pill-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.lucky-pill-label {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: #86efac !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 2px !important;
}

.lucky-pill-val {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Sun button */
.lucky-sun-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

/* User avatar circular */
.lucky-avatar-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  margin-left: 2px !important;
}

.lucky-user-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(74, 222, 128, 0.6) !important;
  object-fit: cover !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35) !important;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 6px !important;
  }
  .lucky-header-right {
    gap: 4px !important;
  }
  .site-logo-image {
    height: 30px !important;
  }
  .lucky-pill {
    height: 32px !important;
    padding: 2px 7px 2px 6px !important;
    gap: 4px !important;
  }
  .lucky-pill-val {
    font-size: 11.5px !important;
  }
  .lucky-pill-label {
    font-size: 7.5px !important;
  }
  .lucky-user-avatar {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ==========================================================================
   LUCKY FAMILY.ONE ULTIMATE THEME OVERRIDE (MATCHING MOCKUP PRECISELY)
   ========================================================================== */

/* 1. Global Dark Neon Background & Typography */
:root {
  --primary: #16a34a !important;
  --primary-dark: #15803d !important;
  --accent: #22c55e !important;
  --accent-neon: #39ff14 !important;
  --bg-dark: #040d07 !important;
  --card-bg: rgba(6, 26, 12, 0.82) !important;
  --card-border: #154522 !important;
  --card-border-glow: #22c55e !important;
  --text-main: #f0fdf4 !important;
  --text-muted: #86efac !important;
}

body {
  background-color: #040d07 !important;
  background-image: radial-gradient(circle at 50% 10%, rgba(22, 163, 74, 0.18) 0%, transparent 65%),
                    radial-gradient(circle at 10% 60%, rgba(21, 128, 61, 0.12) 0%, transparent 50%),
                    radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  color: var(--text-main) !important;
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 3. Ticker Announcement Bar */
.announcement-ticker {
  background: linear-gradient(90deg, #062210 0%, #0d401e 50%, #062210 100%) !important;
  border-top: 1px solid #16562b !important;
  border-bottom: 1px solid #16562b !important;
  height: 36px !important;
  color: #86efac !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.announcement-ticker-track {
  display: flex !important;
  align-items: center !important;
}

.announcement-ticker-track > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #dcfce7 !important;
}

.announcement-ticker-track b {
  color: #22c55e !important;
  font-size: 16px !important;
}

/* 4. Hero Banner Section */
.hero-frame {
  margin: 14px auto 16px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.25) !important;
  border: 1px solid #155729 !important;
}

#heroBanner {
  border-radius: 18px !important;
  min-height: auto !important;
  height: auto !important;
  aspect-ratio: 632 / 295 !important;
  padding: 0 !important;
  background: #021206 url('/images/lucky/lucky_hero_banner.png') center center / cover no-repeat !important;
}

#heroBanner .hero-copy,
#heroBanner .hero-device {
  display: none !important;
}

.hero-frame .slider-btn {
  display: none !important;
}

/* 5. Four Quick Service Buttons (Grid) */
.lucky-quick-services {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 16px 0 24px !important;
}

.lucky-service-btn {
  display: block !important;
  text-decoration: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #1b5329 !important;
  background: linear-gradient(180deg, #072512 0%, #03140a 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(34, 197, 94, 0.08) !important;
  transition: all 0.22s cubic-bezier(0.2, 0, 0, 1) !important;
  aspect-ratio: 140 / 115 !important;
}

.lucky-service-btn:hover,
.lucky-service-btn:active {
  transform: translateY(-3px) scale(1.02) !important;
  border-color: #22c55e !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3), inset 0 0 16px rgba(34, 197, 94, 0.18) !important;
}

.lucky-service-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 600px) {
  .lucky-quick-services {
    gap: 8px !important;
    margin: 12px 0 20px !important;
  }
}

/* 6. "🍀 เกมมาใหม่" Section Header & Cards Grid */
.lucky-section-heading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 24px 0 16px !important;
  padding: 0 4px !important;
}

.lucky-heading-clover-icon {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.75)) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  animation: luckyCloverPulse 3s ease-in-out infinite alternate !important;
}

@keyframes luckyCloverPulse {
  0% {
    transform: scale(0.96) rotate(-3deg);
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
  }
  100% {
    transform: scale(1.04) rotate(3deg);
    filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.9));
  }
}

.lucky-heading-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0.2px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(34, 197, 94, 0.4) !important;
}

.lucky-games-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 40px !important;
}

@media (max-width: 768px) {
  .lucky-games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .lucky-games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
}

/* Individual Game Card */
.lucky-game-card {
  position: relative !important;
  background: #072211 !important;
  border: 1px solid #144421 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease !important;
}

.lucky-game-card:hover {
  transform: translateY(-4px) !important;
  border-color: #22c55e !important;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.25) !important;
}

.lucky-game-thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #031309 !important;
}

.lucky-game-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.lucky-game-card:hover .lucky-game-thumb img {
  transform: scale(1.06) !important;
}

/* Badges on Game Thumb (e.g. ลดสูงสุด 22%, NEW!) */
.lucky-game-badge {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  z-index: 2 !important;
}

.lucky-game-badge.new {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
}

.lucky-game-name {
  padding: 6px 4px 8px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #dcfce7 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background: #072211 !important;
}

/* 7. Right Floating Action Buttons Stack */
.lucky-floating-stack {
  position: fixed !important;
  right: 14px !important;
  bottom: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 999 !important;
}

.lucky-float-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 0 !important;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease !important;
}

.lucky-float-btn:hover {
  transform: scale(1.1) !important;
}

.lucky-float-btn.cart {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
}

.lucky-float-btn.chat {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
}

.lucky-float-btn.line {
  background: #06c755 !important;
  color: #fff !important;
}

.lucky-float-btn.facebook {
  background: #1877f2 !important;
  color: #fff !important;
}

.lucky-float-btn svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

/* 8. Bottom Navigation Bar */
.mobile-bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #05140a !important;
  border-top: 1px solid #144421 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 8px 0 10px !important;
  backdrop-filter: blur(16px) !important;
}

.mobile-bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6ee7b7 !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  gap: 3px !important;
  padding: 4px 10px !important;
  transition: all 0.2s ease !important;
}

.mobile-bottom-nav-item svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  fill: none !important;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
  color: #22c55e !important;
  font-weight: 700 !important;
}

.mobile-bottom-nav-item.active svg {
  stroke: #22c55e !important;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5)) !important;
}

/* Ensure padding on main container so bottom nav doesn't overlap */
body {
  padding-bottom: 75px !important;
}

/* Hide legacy showcase cards that don't belong on Lucky Family One home */
.home-promo-grid,
.home-service-showcase {
  display: none !important;
}


/* ==========================================================================
   5. FOUR QUICK SERVICE BUTTONS (PURE CSS / SVG NEON UI)
   ========================================================================== */
.lucky-quick-services {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 16px 0 24px !important;
}

.lucky-service-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  padding: 14px 6px 12px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(74, 222, 128, 0.45) !important;
  background: radial-gradient(circle at 50% 25%, rgba(22, 101, 52, 0.42) 0%, rgba(3, 20, 9, 0.95) 85%) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55),
              inset 0 0 16px rgba(34, 197, 94, 0.12),
              0 0 10px rgba(34, 197, 94, 0.2) !important;
  transition: all 0.24s cubic-bezier(0.2, 0, 0, 1) !important;
  overflow: hidden !important;
  min-height: 108px !important;
  box-sizing: border-box !important;
}

/* Subtle glowing circuit / web effect inside card */
.lucky-service-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.18) 0%, transparent 70%) !important;
  pointer-events: none !important;
  opacity: 0.8 !important;
}

.lucky-service-card:hover,
.lucky-service-card:active {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #39ff14 !important;
  box-shadow: 0 8px 26px rgba(34, 197, 94, 0.45),
              inset 0 0 20px rgba(34, 197, 94, 0.25),
              0 0 16px rgba(57, 255, 20, 0.35) !important;
}

/* Icon container */
.lucky-service-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 8px !important;
  z-index: 1 !important;
}

.lucky-svc-svg {
  width: 44px !important;
  height: 44px !important;
  stroke: #86efac !important;
  color: #86efac !important;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.85)) drop-shadow(0 0 12px rgba(34, 197, 94, 0.45)) !important;
  transition: all 0.2s ease !important;
}

.lucky-service-card:hover .lucky-svc-svg {
  stroke: #39ff14 !important;
  color: #39ff14 !important;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.95)) drop-shadow(0 0 16px rgba(34, 197, 94, 0.7)) !important;
}

/* Mini clover emblem on gamepad */
.lucky-gamepad-clover {
  position: absolute !important;
  right: -3px !important;
  bottom: 0px !important;
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.9)) !important;
}

/* Typography */
.lucky-service-text {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100% !important;
  text-align: center !important;
}

.lucky-svc-main {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f0fdf4 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.1px !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.lucky-svc-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #bbf7d0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

@media (max-width: 600px) {
  .lucky-quick-services {
    gap: 8px !important;
    margin: 12px 0 20px !important;
  }
  .lucky-service-card {
    padding: 10px 4px 10px !important;
    min-height: 98px !important;
    border-radius: 14px !important;
  }
  .lucky-service-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 6px !important;
  }
  .lucky-svc-svg {
    width: 38px !important;
    height: 38px !important;
  }
  .lucky-svc-main {
    font-size: 11.5px !important;
  }
  .lucky-svc-sub {
    font-size: 9.5px !important;
  }
}


/* ==========================================================================
   DESKTOP DEDICATED LAYOUT & GAMING UI ENHANCEMENTS (>= 1024px and >= 1200px)
   STRICT RULE: Only affects Desktop Viewport without altering Mobile layout.
   ========================================================================== */

/* 1. Remove Mobile Bottom Navigation on Desktop */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0 !important;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* 2. Desktop Shell & Main Container (Centered, 1400px - 1480px, Proper Spacing) */
@media (min-width: 1024px) {
  .shell,
  .site-header .shell,
  #shopView .shell,
  main .shell {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 1440px) {
  .shell,
  .site-header .shell,
  #shopView .shell,
  main .shell {
    max-width: 1480px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

/* 3. Subtle & Slow Background Clover Ambient (Less distracting on PC) */
@media (min-width: 1024px) {
  .clover-fall-container.bg-layer {
    opacity: 0.12 !important;
  }
  .clover-fall-container.fg-layer {
    opacity: 0.25 !important;
  }
  .falling-clover-leaf {
    animation-duration: 24s, 8s !important;
  }
}

/* 4. Desktop Top Announcement Bar */
@media (min-width: 1024px) {
  .announcement-ticker {
    height: 36px !important;
    background: #031509 !important;
    border-top: 1px solid rgba(34, 197, 94, 0.18) !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.18) !important;
  }
  .announcement-ticker-track {
    max-width: 1440px !important;
    margin: 0 auto !important;
  }
  .announcement-ticker-track > span {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    gap: 12px !important;
  }
}

/* 5. Desktop Header & Navigation Bar (72px - 76px, Gaming Clean Look) */
@media (min-width: 1024px) {
  .site-header {
    height: 72px !important;
    background: rgba(3, 13, 6, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.25) !important;
  }

  .header-inner {
    height: 72px !important;
    padding: 0 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Hide hamburger button on desktop */
  .lucky-menu-btn {
    display: none !important;
  }

  .lucky-header-left {
    gap: 0 !important;
  }

  .site-logo-image {
    height: 42px !important;
  }

  /* Desktop Navigation Menu (Center-Left) */
  .desktop-main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 28px !important;
    margin-right: auto !important;
  }

  .desktop-nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
    letter-spacing: 0.2px !important;
  }

  .desktop-nav-link:hover {
    color: #39ff14 !important;
    background: rgba(22, 101, 52, 0.25) !important;
  }

  .desktop-nav-link.active {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
    font-weight: 700 !important;
  }

  .desktop-nav-link.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 16px !important;
    right: 16px !important;
    height: 2.5px !important;
    background: #22c55e !important;
    border-radius: 2px !important;
    box-shadow: 0 0 8px #22c55e !important;
  }

  /* Desktop Header Right Controls */
  .lucky-header-right {
    gap: 12px !important;
  }

  .lucky-icon-btn {
    width: 38px !important;
    height: 38px !important;
    background: rgba(8, 32, 16, 0.6) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 10px !important;
  }

  .lucky-icon-btn:hover {
    background: rgba(22, 101, 52, 0.5) !important;
    border-color: #22c55e !important;
  }

  /* Desktop Credit & Coin Cards */
  .lucky-pill {
    height: 42px !important;
    padding: 4px 14px 4px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    gap: 10px !important;
  }

  .lucky-pill-icon {
    width: 22px !important;
    height: 22px !important;
  }

  .lucky-pill-credit .lucky-pill-icon svg {
    width: 22px !important;
    height: 18px !important;
  }

  .lucky-pill-coin .lucky-pill-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .lucky-pill-label {
    font-size: 9.5px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
  }

  .lucky-pill-val {
    font-size: 15px !important;
    letter-spacing: 0.2px !important;
  }

  .lucky-user-avatar {
    width: 40px !important;
    height: 40px !important;
  }
}

/* On mobile (< 1024px), hide desktop nav */
@media (max-width: 1023px) {
  .desktop-main-nav {
    display: none !important;
  }
  .lucky-heading-subtitle {
    display: none !important;
  }
}

/* 6. Desktop Hero Banner (16:6 / 16:5 ratio, height 360-440px, no distortion) */
@media (min-width: 1024px) {
  .hero-frame {
    margin: 24px auto 32px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(34, 197, 94, 0.15) !important;
    height: 380px !important;
    aspect-ratio: auto !important;
  }

  #heroBanner {
    height: 100% !important;
    min-height: 380px !important;
    border-radius: 22px !important;
    background: #020c04 url('/images/lucky/lucky_hero_banner.png') center center / cover no-repeat !important;
  }
}

@media (min-width: 1440px) {
  .hero-frame {
    height: 430px !important;
  }
  #heroBanner {
    min-height: 430px !important;
  }
}

/* 7. Desktop Quick Service Cards (4 Columns, 120px height, Premium Glass Neon) */
@media (min-width: 1024px) {
  .lucky-quick-services {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
    margin: 0 0 36px !important;
  }

  .lucky-service-card {
    height: 124px !important;
    padding: 16px 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
  }

  .lucky-service-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
  }

  .lucky-svc-svg {
    width: 46px !important;
    height: 46px !important;
  }

  .lucky-svc-main {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .lucky-svc-sub {
    font-size: 12px !important;
    color: #86efac !important;
  }
}

@media (min-width: 1440px) {
  .lucky-quick-services {
    gap: 22px !important;
  }
  .lucky-service-card {
    height: 132px !important;
  }
}

/* 8. Desktop Section Header ("🍀 เกมมาใหม่" + "ดูทั้งหมด >") */
@media (min-width: 1024px) {
  .lucky-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 20px !important;
    padding: 0 2px !important;
  }

  .lucky-heading-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .lucky-heading-clover-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .lucky-heading-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .lucky-heading-subtitle {
    font-size: 13.5px !important;
    color: #86efac !important;
    margin: 2px 0 0 !important;
    font-weight: 400 !important;
  }

  .lucky-view-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border-radius: 10px !important;
    background: rgba(22, 101, 52, 0.25) !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    color: #86efac !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .lucky-view-all-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .lucky-view-all-btn:hover {
    color: #39ff14 !important;
    border-color: #39ff14 !important;
    background: rgba(34, 197, 94, 0.25) !important;
    transform: translateX(3px) !important;
  }
}

/* 9. Desktop Game Grid (4 to 5 Columns on PC, 1.4:1 / 16:9 Image Aspect Ratio) */
@media (min-width: 1024px) {
  .lucky-games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 64px !important;
  }

  .lucky-game-card {
    border-radius: 16px !important;
    background: #051a0d !important;
    border: 1px solid rgba(34, 197, 94, 0.24) !important;
  }

  .lucky-game-thumb {
    aspect-ratio: 1.35 / 1 !important;
  }

  .lucky-game-badge {
    top: 8px !important;
    left: 8px !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }

  .lucky-game-name {
    padding: 12px 10px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #f0fdf4 !important;
  }
}

@media (min-width: 1360px) {
  .lucky-games-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px !important;
  }
}

@media (min-width: 1560px) {
  .lucky-games-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }
}

/* 10. Desktop Floating Contact Buttons (Refined Size & Margin) */
@media (min-width: 1024px) {
  .lucky-floating-stack {
    right: 28px !important;
    bottom: 36px !important;
    gap: 12px !important;
  }

  .lucky-float-btn {
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
  }

  .lucky-float-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* 11. Left LINE Widget desktop positioning */
@media (min-width: 1024px) {
  .line-chat-widget,
  .line-bubble-widget,
  #lineChatWidget {
    left: 28px !important;
    bottom: 36px !important;
  }
}

/* ==========================================================================
   FORCE PERSISTENT DARK GAMING HEADER COLOR
   ========================================================================== */
html body .site-header,
html body header.site-header,
header.site-header,
.site-header {
  background: #020b04 !important;
  background-color: #020b04 !important;
  border-bottom: 1px solid rgba(34, 197, 94, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

html body .header-inner,
.header-inner {
  background: transparent !important;
  background-color: transparent !important;
}

html body .site-nav a,
.desktop-main-nav a {
  color: #94a3b8 !important;
}

html body .site-nav a:hover,
.desktop-main-nav a:hover {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.12) !important;
}

html body .site-nav a.active,
.desktop-main-nav a.active {
  color: #ffffff !important;
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
}
