/* Sonar66 Theme: Blue ยท Purple ยท Light Blue */
:root {
  --black: rgba(10, 10, 10, 0.3);
  --black-soft: #111111;
  --black-card: #1a1a1a;
  --black-border: #2a2a2a;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1e40af;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --purple: #9333ea;
  --purple-light: #a855f7;
  --purple-dark: #7e22ce;
  --purple-glow: rgba(147, 51, 234, 0.3);
  --cyan-neon: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.55);
  --neon-border: linear-gradient(
    120deg,
    var(--purple-dark) 0%,
    var(--cyan-neon) 35%,
    #e0f2fe 50%,
    var(--blue-light) 65%,
    var(--purple-light) 100%
  );
  --text: #f0f0f0;
  --text-muted: #9a9a9a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: 0.25s ease;
  --neon-green: #4ade80;
  --neon-green-bright: #86efac;
  --neon-green-dark: #166534;
  --neon-green-glow: rgba(74, 222, 128, 0.45);
  --btn-login-bg: linear-gradient(180deg, #252525 0%, #141414 55%, #0f0f0f 100%);
  --btn-register-bg: linear-gradient(180deg, #5a6b3a 0%, #45562c 40%, #354422 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Kanit", sans-serif;
  background: url("img/background/photo_2026-05-16_05-26-19.jpg") no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-purple {
  color: var(--purple-light);
}

/* Buttons โ€” Neon pill (เน€เธเนเธฒเธชเธนเนเธฃเธฐเธเธ / เธชเธกเธฑเธเธฃเธชเธกเธฒเธเธดเธ) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* เน€เธเนเธฒเธชเธนเนเธฃเธฐเธเธ (Solid Green) */
.btn--login {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #fff;
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn--login:hover {
  background: linear-gradient(180deg, #86efac 0%, #15803d 100%);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

/* เธชเธกเธฑเธเธฃเธชเธกเธฒเธเธดเธ (Outline Green) */
.btn--register {
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
  color: #fff;
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

.btn--register:hover {
  background: linear-gradient(180deg, #444 0%, #222 100%);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.5);
  border-color: #86efac;
}

/* CTA เธฃเธญเธ โ€” เนเธ—เธเน€เธเนเธก + เธเธญเธ Neon เน€เธเธตเธขเธง */
.btn--blue {
  background: linear-gradient(180deg, #1e3a2f 0%, #163328 50%, #0f241c 100%);
  color: #d1fae5;
  font-weight: 500;
  border-color: #10b981;
}

.btn--blue:hover {
  background: linear-gradient(180deg, #265a45 0%, #1c4536 50%, #143028 100%);
  color: #ecfdf5;
}

.btn--lg {
  padding: 14px 32px;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

/* Header: เธเธธเนเธกเธเธนเนเธเธ Mobile + Desktop */
.header__actions .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 600;
}

@media (max-width: 380px) {
  .header__actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 36px;
  }
}

@media (min-width: 480px) {
  .header__actions .btn {
    padding: 10px 20px;
  }
}

@media (min-width: 901px) {
  .header__actions .btn {
    min-height: 42px;
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  overflow-x: hidden;
}

/* Full width top background */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: linear-gradient(180deg, #4d4d4d 0%, #2a2a2a 100%);
  z-index: -2;
}

@media (max-width: 768px) {
  .header::before { height: 65px; }
}

.header__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Background elements inside inner to align perfectly with content */
.bg-announce {
  position: absolute;
  top: 75px;
  left: 35%; /* The slant point */
  right: -50vw; /* Stretch to screen edge */
  height: 36px;
  background: linear-gradient(180deg, #222, #050505);
  z-index: -2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.bg-slant {
  position: absolute;
  top: 75px;
  left: 35%;
  width: 40px;
  height: 36px;
  background: linear-gradient(180deg, #222, #050505);
  transform: skewX(30deg); /* \ slant */
  transform-origin: top left;
  border-left: 2px solid #a1a1aa; /* metallic edge */
  box-shadow: -3px 2px 6px rgba(0,0,0,0.6);
  z-index: -1;
  margin-left: -20px;
}

.bg-line {
  position: absolute;
  top: 75px;
  left: -50vw;
  width: calc(50vw + 35% - 20px);
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, #555 50%, #a1a1aa 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
  z-index: -1;
}

@media (max-width: 768px) {
  .bg-announce { top: 65px; height: 30px; left: 45%; }
  .bg-slant { top: 65px; height: 30px; left: 45%; }
  .bg-line { top: 65px; width: calc(50vw + 45% - 20px); }
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .header__top { height: 65px; padding: 0 5px; }
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  display: block;
  width: auto;
  height: clamp(34px, 7vw, 56px);
  object-fit: contain;
}

.logo__img--footer {
  max-width: clamp(160px, 45vw, 300px);
  max-height: clamp(48px, 12vw, 80px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .logo__img--footer {
    max-width: clamp(200px, 25vw, 320px);
    max-height: clamp(56px, 8vw, 90px);
  }
}

.header__bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 36px;
  padding-left: calc(35% + 15px);
  overflow: hidden;
}

@media (max-width: 768px) {
  .header__bottom { height: 30px; padding-left: calc(45% + 10px); }
}

.announce-label {
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 10px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.announce-marquee {
  color: #ddd;
  display: block;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px 8px 20px;
  margin-left: 5px;
  position: relative;
  z-index: 2;
}

.menu-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: -10px;
  width: 2px;
  height: 60px;
  background: #111;
  transform: skewX(25deg); /* / slant */
  box-shadow: -1px 0 1px rgba(255,255,255,0.1);
}

.menu-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--neon-green);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 5px var(--neon-green-glow);
}

.menu-line::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 4px;
  height: 3px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--neon-green-glow);
}

/* ===== Promo Section: Announce + Slider ===== */
.promo-section {
  background: rgba(10, 10, 10, 0.75);
}

/* Announcement ticker */
.announce-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-dark));
  border-bottom: 1px solid var(--blue-light);
  overflow: hidden;
}

.announce-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px;
}

.announce-bar__icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.announce-bar__wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.announce-bar__text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #fff;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hero slider */
.hero-slider {
  position: relative;
  padding: 16px 0 36px;
  background: var(--black);
}

.hero-slider__viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}

.hero-slider__viewport.is-dragging {
  cursor: grabbing;
}

.hero-slider__track {
  display: flex;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Slide card */
.slide {
  flex-shrink: 0;
  width: var(--slide-w, 88vw);
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide__inner {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: var(--black-card);
  aspect-ratio: 21 / 9;
}

.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ===== Image lightbox (admin-driven banner / promo / activity images) ===== */
.sonar-lightbox {
  position: fixed !important;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sonar-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sonar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.sonar-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sonar-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sonar-lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sonar-lightbox__image-link {
  display: block;
  line-height: 0;
}

.sonar-lightbox__image-link--active {
  cursor: pointer;
}

.sonar-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.sonar-lightbox__caption {
  color: #e8e8e8;
  font-size: 15px;
  text-align: center;
  max-width: 100%;
  line-height: 1.45;
}

img.sonar-lightbox-trigger {
  cursor: zoom-in;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 36px;
  height: 56px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(26, 143, 74, 0.5);
  color: var(--purple-light);
}

.slider-arrow--prev {
  left: 4px;
  border-radius: 0 8px 8px 0;
}

.slider-arrow--next {
  right: 4px;
  border-radius: 8px 0 0 8px;
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 16px;
}

.slider-dot {
  width: 28px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: #333;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  box-shadow: 0 0 8px var(--purple-glow);
}

.slider-dot:hover:not(.active) {
  background: var(--blue-dark);
}

.promo-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--black-border);
}

/* Desktop: wider slides, peek adjacent */
@media (min-width: 769px) {
  .hero-slider {
    padding: 20px 0 40px;
  }

  .slide {
    --slide-w: min(680px, 72vw);
  }

  .slider-arrow {
    width: 44px;
    height: 64px;
    font-size: 2.4rem;
  }

  .slider-arrow--prev { left: max(8px, calc((100% - 1200px) / 2)); }
  .slider-arrow--next { right: max(8px, calc((100% - 1200px) / 2)); }
}

@media (max-width: 768px) {
  .slide {
    --slide-w: 88vw;
  }

  .slider-arrow--prev { left: 0; }
  .slider-arrow--next { right: 0; }
}

/* ===== Game Hub: Left Sidebar + Content ===== */
.game-hub {
  background: var(--black);
  border-bottom: 1px solid var(--black-border);
}

.game-hub__layout {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 420px;
}

/* Side navigation */
.side-nav {
  flex-shrink: 0;
  width: 88px;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 70px;
  align-self: flex-start;
  z-index: 50;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.side-nav::-webkit-scrollbar {
  width: 0px;
}

.side-nav__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 0;
  gap: 8px;
}

.side-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 16px);
  margin: 0 8px;
  min-height: 72px;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.side-nav__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-nav__item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.side-nav__item:hover:not(.active)::before {
  opacity: 1;
}

.side-nav__item.active {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(147, 51, 234, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.side-nav__item.active::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  animation: pulseGlow 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.2); }
}

.side-nav__icon {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.side-nav__item:hover .side-nav__icon {
  transform: scale(1.15) translateY(-2px);
}

.side-nav__item.active .side-nav__icon {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transform: scale(1.15);
}

.side-nav__label {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
}

.side-nav__item.active .side-nav__label {
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Main content area */
.game-hub__main {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 20px;
}

.game-panel {
  display: none;
  animation: panelIn 0.3s ease;
}

.game-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-panel__title {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-panel__subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -6px 0 14px;
}

/* Featured inside hub */
.game-hub .featured {
  padding: 0 0 12px;
}

.game-hub .featured__card {
  padding: 16px 18px;
}

.game-hub .featured__card h2 {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
}

/* Game grid in hub - 2 columns mobile */
.game-hub .game-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 0;
}

.game-hub .slot-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Desktop sidebar wider */
@media (min-width: 769px) {
  .side-nav {
    width: 140px;
  }

  .side-nav__item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 56px;
    padding: 10px 14px;
  }

  .side-nav__label {
    font-size: 0.85rem;
    text-align: left;
  }

  .side-nav__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .game-hub__main {
    padding: 16px 20px 28px;
  }

  .game-hub .game-grid,
  .game-hub .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .game-hub .game-grid,
  .game-hub .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured (global fallback) */
.featured {
  padding: 24px 0;
}

.featured__card {
  position: relative;
  background: linear-gradient(135deg, var(--black-card) 0%, #1f2a1a 100%);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--blue));
  z-index: 2;
}

.featured__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.featured__image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(16, 16, 16, 1) 0%, transparent 100%);
  pointer-events: none;
}

.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured__card:hover .featured__image img {
  transform: scale(1.1);
}

.featured__content {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 480px) {
  .featured__content {
    padding: 20px;
  }
}

.featured__tag {
  display: inline-block;
  background: var(--purple);
  color: var(--black);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured__card h2 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section--alt {
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
}

.section__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__icon {
  font-size: 1.4rem;
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.game-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.game-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--purple-glow);
}

.game-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 2px solid var(--accent, var(--purple));
  background: var(--black-card);
}

.game-card__name {
  display: block;
  padding: 12px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.game-card:hover .game-card__name {
  color: var(--purple-light);
}

/* Slot grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.slot-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.slot-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--blue-glow);
}

.slot-card__thumb {
  width: 100%;
  height: auto;
  display: block;
  background: var(--black-card);
}

.slot-card span {
  display: block;
  padding: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slot-card:hover span {
  color: var(--blue-light);
}

/* Content */
.content-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  color: var(--text-muted);
  line-height: 1.8;
}

.content-card--baccarat {
  border-left-color: var(--purple);
  margin-top: 32px;
  margin-bottom: 0;
}

.content-card--baccarat h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.promo-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.promo-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  border-color: var(--blue-dark);
}

.promo-card--featured {
  border-color: var(--purple-dark);
  background: linear-gradient(160deg, #1a1810 0%, var(--black-card) 100%);
  box-shadow: 0 0 40px var(--purple-glow);
}

.promo-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.promo-card__highlight {
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.promo-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.promo-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Providers */
.providers {
  padding: 40px 0;
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  overflow: hidden;
}

.providers__track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.providers__track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.provider-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(152px, 18vw, 200px);
  min-height: clamp(68px, 10vw, 84px);
  padding: 14px 22px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.provider-logo img {
  display: block;
  width: auto;
  height: clamp(48px, 6.5vw, 60px);
  max-width: min(100%, 188px);
  object-fit: contain;
}

.provider-logo:hover {
  border-color: var(--purple);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.25), 0 0 24px rgba(56, 189, 248, 0.15);
}

.provider-logo:hover img {
  filter: brightness(1.08);
}

/* Footer CTA */
.footer-cta {
  padding: 56px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 70%),
    var(--black);
  border-top: 2px solid var(--purple-dark);
}

.footer-cta h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 8px;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.footer-cta img {
  margin: 24px auto 0;
  max-width: 100%;
  display: block;
}

/* Footer */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 40px 0 24px;
}

.footer__inner {
  text-align: center;
}

.logo--footer {
  justify-content: center;
  margin-bottom: 16px;
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.footer__terms {
  display: inline-block;
  color: var(--purple);
  font-size: 0.85rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.footer__terms:hover {
  color: var(--purple-light);
}

.footer__copy {
  color: #555;
  font-size: 0.8rem;
}

/* ===== Mobile Sticky Bottom Nav ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding-bottom: env(safe-area-inset-bottom, 0);
  pointer-events: none;
}

.floating-banner {
  position: absolute;
  bottom: 100%;
  right: 12px;
  margin-bottom: -10px;
  z-index: 10;
  pointer-events: all;
  text-align: right;
  width: auto;
  max-width: 160px; /* Adjust based on image size */
}

.floating-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: 0;
  filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.floating-banner img:active {
  transform: scale(0.96);
}

.bottom-nav__bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 76px;
  padding: 0 4px 10px;
  background: linear-gradient(
    180deg,
    #1a1520 0%,
    #120d14 35%,
    #0a0a0a 70%,
    #050505 100%
  );
  border-radius: 22px 22px 0 0;
  box-shadow:
    0 -6px 28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: all;
  width: 100%;
}

/* Top white border with center notch */
.bottom-nav__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.bottom-nav__border::before,
.bottom-nav__border::after {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}

.bottom-nav__border::before {
  left: 14px;
  right: calc(50% + 42px);
}

.bottom-nav__border::after {
  left: calc(50% + 42px);
  right: 14px;
}

/* Center notch arc */
.bottom-nav__bar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: none;
  border-radius: 88px 88px 0 0;
  background: transparent;
  pointer-events: none;
}

.bottom-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 0;
  color: #fff;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item:active {
  transform: scale(0.94);
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav__icon--line {
  width: 42px;
  height: 42px;
}

.bottom-nav__label {
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Center raised button */
.bottom-nav__item--center {
  flex: 0 0 76px;
  margin-top: -36px;
  z-index: 2;
  gap: 2px;
}

.bottom-nav__center-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: radial-gradient(
    circle at 35% 28%,
    #3d2a10 0%,
    #1f1508 45%,
    #0d0a06 100%
  );
  box-shadow:
    0 6px 24px rgba(201, 162, 39, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 2px 10px rgba(255, 255, 255, 0.12);
}

.bottom-nav__item--center .bottom-nav__icon--lg {
  width: 48px;
  height: 48px;
}

.bottom-nav__label--center {
  font-size: 0.65rem;
  margin-top: 2px;
}

.bottom-nav__item.active .bottom-nav__label,
.bottom-nav__item--center.active .bottom-nav__label {
  color: var(--purple-light);
}

.bottom-nav__item--center.active .bottom-nav__center-ring {
  box-shadow:
    0 6px 28px rgba(26, 143, 74, 0.5),
    0 0 20px var(--purple-glow),
    inset 0 2px 10px rgba(255, 255, 255, 0.15);
  border-color: var(--purple-light);
}

@media (max-width: 380px) {
  .bottom-nav__icon {
    width: 32px;
    height: 32px;
  }
  .bottom-nav__icon--line {
    width: 34px;
    height: 34px;
  }
  .bottom-nav__label {
    font-size: 0.55rem;
  }
  .bottom-nav__item--center {
    flex: 0 0 64px;
  }
  .bottom-nav__center-ring {
    width: 60px;
    height: 60px;
  }
  .bottom-nav__item--center .bottom-nav__icon--lg {
    width: 38px;
    height: 38px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }


  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0));
  }

  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  }

  /* Hide duplicate quick actions on mobile */
  .quick-bar {
    display: none;
  }
}

/* Navigation (Desktop Default) */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--black-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    gap: 0;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .header__actions {
    gap: 8px;
  }

  .header__actions .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    min-height: 36px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Promotions Page ===== */
.promotions-page {
  padding: 40px 20px 80px;
}

.promotions-page__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .promotions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promo-item {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.promo-item:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(26, 143, 74, 0.3);
}

.promo-item__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.promo-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-item__content {
  padding: 16px;
  text-align: center;
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-item__content p {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.page-link, .page-num {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.page-num.active {
  background: var(--black-border);
  color: #fff;
}

.page-num:hover:not(.active), .page-link:hover:not(.disabled) {
  color: var(--purple-light);
}

.page-link.disabled {
  opacity: 0.5;
  cursor: default;
}


/* ===== Activities Page ===== */
.activities-page {
  padding: 40px 20px 80px;
}

.activities-page__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.activity-item {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.activity-item:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(26, 143, 74, 0.3);
}

.activity-item__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.activity-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-item__content {
  padding: 20px 16px;
  text-align: left;
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  flex: 1;
  display: flex;
  align-items: center;
}

.activity-item__content p {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}


/* ===== SEO Content ===== */
.seo-content {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
}

.seo-content__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .seo-content__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.seo-content__text {
  flex: 1;
}

.seo-content__text h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.seo-content__text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.seo-content__text p:last-child {
  margin-bottom: 0;
}

.seo-content__image {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--blue-dark);
}

.seo-content__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== FAQ Section ===== */
.faq-section {
  position: relative;
  padding-top: 36px;
}

/* Neon accent bar โ€” เน€เธซเธกเธทเธญเธเธ•เธฑเธงเธญเธขเนเธฒเธเธ”เนเธฒเธเธเธเน€เธเธเธเธฑเธ */
.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 900px);
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--purple-dark) 0%,
    var(--purple-light) 18%,
    var(--cyan-neon) 48%,
    #f0f9ff 52%,
    var(--blue-light) 72%,
    var(--blue) 100%
  );
  box-shadow:
    0 0 10px var(--cyan-glow),
    0 0 22px var(--purple-glow),
    0 0 34px rgba(147, 51, 234, 0.35);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  color: #fff;
  text-align: center;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 24px;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(12, 16, 36, 0.92), rgba(18, 12, 40, 0.92)) padding-box,
    var(--neon-border) border-box;
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.35),
    0 0 28px rgba(147, 51, 234, 0.25),
    0 6px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.25s ease;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(10, 14, 28, 0.88), rgba(14, 12, 26, 0.92)) padding-box,
    var(--neon-border) border-box;
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.22),
    0 0 26px rgba(147, 51, 234, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.35),
    0 0 36px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.faq-item[open] {
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.45),
    0 0 42px rgba(147, 51, 234, 0.28),
    inset 0 0 50px rgba(37, 99, 235, 0.06);
}

.faq-question {
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}

/* Custom icon for details */
.faq-question::before {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  margin-right: 12px;
  color: var(--cyan-neon);
  width: 22px;
  text-align: center;
  transition: var(--transition);
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.faq-item[open] .faq-question::before {
  content: "โ’";
  color: var(--purple-light);
  filter: drop-shadow(0 0 8px var(--purple-glow));
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 20px 52px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Apollo Jackpot Widget Styles */
.ap-widget {
  background: linear-gradient(135deg, #FF6B00, #FF4500);
  padding: 15px;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
}
.ap-widget * {
  box-sizing: border-box;
}
.ap-widget .page-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.ap-widget .header-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.ap-widget .stat-box {
  flex: 1;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.ap-widget .stat-icon {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
}
.ap-widget .stat-icon i { opacity: .9; }
.ap-widget .stat-value {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.ap-widget .stat-label {
  color: #ffffff;
  font-size: .8rem;
}
.ap-widget .stat-box:nth-child(1) .stat-icon i { color: #4CAF50; animation: apPulse 1.5s infinite; }
.ap-widget .stat-box:nth-child(2) .stat-icon i { color: #FFC107; }
.ap-widget .stat-box:nth-child(3) .stat-icon i { color: #2196F3; }

.ap-widget .jackpot-container {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.ap-widget .jackpot-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #FF6B00;
  margin-bottom: 15px;
}
.ap-widget .jackpot-amount {
  background: linear-gradient(45deg, #ff0000, #ff0000);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  margin-bottom: 15px;
  overflow: hidden;
}
.ap-widget .jackpot-amount::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: apShine 2s infinite;
}
.ap-widget .amount-label {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  margin-bottom: 5px;
}
.ap-widget .amount-value {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.ap-widget .jackpot-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ap-widget .info-item {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}
.ap-widget .info-label {
  color: #FF6B00;
  font-size: .9rem;
  margin-bottom: 5px;
}
.ap-widget .info-value {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

@keyframes apShine { to { left: 100%; } }
@keyframes apPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.ap-widget .coin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  animation: apCoinAnim 2s ease forwards;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.ap-widget .coin.golden {
  background: linear-gradient(45deg, #FFD700, #DAA520);
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255,215,0,0.6), inset 0 0 10px rgba(255,255,255,0.8);
}
.ap-widget .coin.collect {
  animation: apCollectCoin 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ap-widget .coin::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: -1;
  animation: apShimmer 1.5s linear infinite;
}
.ap-widget .coin::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 30%, transparent 70%);
  border-radius: 50%;
}

@keyframes apCoinAnim {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.3); opacity: 0; }
}
@keyframes apCollectCoin {
  0% { transform: translate(var(--sx), var(--sy)) scale(1); opacity: 1; }
  60% { transform: translate(calc(var(--tx)*.7), calc(var(--ty)*.7)) scale(0.8); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.4); opacity: 0; }
}
@keyframes apShimmer {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.ap-widget .coin-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

@media(max-width: 480px) {
  .ap-widget { padding: 10px; border-radius: 12px; margin: 0 auto; }
  .ap-widget .stat-box { padding: 8px; }
  .ap-widget .stat-icon { font-size: 1rem; margin-bottom: 3px; }
  .ap-widget .stat-value { font-size: .9rem; }
  .ap-widget .stat-label { font-size: .7rem; }
  .ap-widget .jackpot-container { padding: 15px; }
  .ap-widget .jackpot-title { font-size: 1.4rem; }
  .ap-widget .jackpot-amount { padding: 15px; margin-bottom: 12px; }
  .ap-widget .amount-value { font-size: 1.8rem; }
  .ap-widget .info-item { padding: 12px; }
  .ap-widget .info-label { font-size: .8rem; }
  .ap-widget .info-value { font-size: 1rem; }
}

/* ===== Activity fullscreen modal + comments ===== */
.sonar-activity-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sonar-activity-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sonar-activity-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100vh;
  width: 100%;
}

.sonar-activity-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sonar-activity-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sonar-activity-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 56px 16px 24px;
}

.sonar-activity-modal__image-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.sonar-activity-modal__image-link {
  display: inline-block;
  max-width: 100%;
  cursor: pointer;
}

.sonar-activity-modal__image {
  display: block;
  max-width: 100%;
  max-height: 45vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.sonar-activity-modal__details {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.sonar-activity-modal__details-title {
    text-align: center;
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.35;
}

.sonar-activity-modal__details-body {
    text-align: center;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.sonar-activity-modal__form-section {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.sonar-activity-modal__form-title,
.sonar-activity-modal__comments-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3f4f6;
}

.sonar-activity-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sonar-activity-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sonar-activity-modal__field span {
  font-size: 14px;
  color: #d1d5db;
}

.sonar-activity-modal__field input {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

.sonar-activity-modal__field input:focus {
  outline: 2px solid var(--purple, #a855f7);
  outline-offset: 1px;
}

.sonar-activity-modal__submit {
  align-self: flex-start;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sonar-activity-modal__submit:hover:not(:disabled) {
  filter: brightness(1.08);
}

.sonar-activity-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sonar-activity-modal__form-error {
  margin: 0;
  font-size: 14px;
  color: #fca5a5;
}

.sonar-activity-modal__comments-section {
  padding-bottom: 24px;
}

.sonar-activity-modal__comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sonar-activity-comment {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.sonar-activity-comment__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.sonar-activity-comment__row:last-child {
  margin-bottom: 0;
}

.sonar-activity-comment__label {
  color: #9ca3af;
  flex: 0 0 auto;
  min-width: 72px;
}

.sonar-activity-comment__value {
  color: #f3f4f6;
  flex: 1 1 auto;
  word-break: break-word;
}

.sonar-activity-modal__comments-loading,
.sonar-activity-modal__comments-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 12px 0;
}

.sonar-activity-modal__comments-sentinel {
  height: 1px;
}

img.activity-item__img {
  cursor: pointer;
}
