/* ==========================================================================
   PG333SLOT.VIP — TOP-STICKY HEADER & LUXURY 2026 DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg-main: #06060e;
  --bg-card: rgba(15, 15, 30, 0.92);
  --bg-card-hover: rgba(22, 22, 44, 0.96);
  --bg-glass: rgba(10, 10, 22, 0.88);
  --border-color: rgba(251, 191, 36, 0.2);
  --border-glow: rgba(249, 115, 22, 0.5);
  --primary: #f97316;
  --primary-glow: #fb923c;
  --secondary: #ec4899;
  --gold: #fbbf24;
  --gold-glow: #fde047;
  --green: #22c55e;
  --cyan: #06b6d4;
  --text-main: #f0f0f4;
  --text-muted: #b0b8c4;
  --text-dim: #8a929e;
  --font-base: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  padding-top: 70px; /* Offset for fixed top header */
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DYNAMIC AURORA & PARTICLE CANVAS BACKGROUND
   ========================================================================== */
.animated-bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, #121028 0%, #06060e 85%);
}

#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.85;
}

.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(251, 191, 36, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 115, 22, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 40%, transparent 90%);
  z-index: 1;
}

.aurora-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.aurora-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.45;
  will-change: transform;
}

.aurora-beam-1 {
  top: -10%;
  left: -5%;
  width: 65vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45), rgba(251, 191, 36, 0.20), transparent 70%);
  animation: auroraFlow1 16s ease-in-out infinite alternate;
}

.aurora-beam-2 {
  top: 25%;
  right: -10%;
  width: 60vw;
  height: 55vh;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.40), rgba(147, 51, 234, 0.20), transparent 70%);
  animation: auroraFlow2 20s ease-in-out infinite alternate;
}

.aurora-beam-3 {
  bottom: -10%;
  left: 20%;
  width: 55vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.20), transparent 70%);
  animation: auroraFlow3 18s ease-in-out infinite alternate;
}

@keyframes auroraFlow1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.1); }
  100% { transform: translate3d(-40px, 70px, 0) scale(0.95); }
}

@keyframes auroraFlow2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -30px, 0) scale(1.1); }
  100% { transform: translate3d(50px, 60px, 0) scale(0.9); }
}

@keyframes auroraFlow3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -40px, 0) scale(1.15); }
  100% { transform: translate3d(-60px, 20px, 0) scale(0.85); }
}

/* ==========================================================================
   FIXED TOP HEADER & NAVBAR (0px Gap from Top)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 2px solid var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SUPERCHARGED HIGH-CONVERTING CTA BUTTONS WITH PULSE & SHINE
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.45rem;
  border-radius: 12px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Shimmer Light Sweep Effect for Buttons */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(28deg);
  pointer-events: none;
  animation: btnShimmer 3.2s infinite ease-in-out;
}

@keyframes btnShimmer {
  0% { left: -75%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Primary Flame CTA with Rhythmic Pulsing Glow (สมัครสมาชิก) */
.btn-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #ff3b00 50%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 59, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  animation: ctaPulseAura 2.4s infinite ease-in-out;
}

@keyframes ctaPulseAura {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.75), 0 4px 18px rgba(255, 59, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 94, 0, 0), 0 6px 24px rgba(255, 59, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: scale(1.035);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 94, 0, 0), 0 4px 18px rgba(255, 59, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 12px 32px rgba(255, 59, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
  filter: brightness(1.1);
}

/* Golden Amber Demo CTA (ทดลองเล่นสล็อต pg ฟรี) */
.btn-gold {
  background: linear-gradient(135deg, #fff066 0%, #fbbf24 45%, #f59e0b 80%, #d97706 100%) !important;
  color: #1a0c00 !important;
  font-weight: 900 !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
  color: #1a0c00 !important;
  filter: brightness(1.08);
}

/* Outline CTA (ทางเข้าเล่น) */
.btn-outline {
  background: rgba(14, 18, 27, 0.75) !important;
  color: #ffffff !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.btn-outline:hover {
  border-color: var(--gold) !important;
  color: #ffffff !important;
  background: rgba(251, 191, 36, 0.20) !important;
  box-shadow: 0 0 20px var(--gold-glow) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Badges */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid var(--border-glow);
  color: var(--primary-glow);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Bento Section & Layout */
.bento-section {
  padding: 1.25rem 0 2rem;
  width: 100%;
}

/* Twelve-column foundation for the page card layouts.
   Several route templates already declare their intended span inline; without
   this grid those declarations were ignored and every card rendered full width. */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

.bento-grid > .bento-box {
  min-width: 0;
}

/* Consistent compact cards for listing pages. */
.card-grid > .bento-box:not(:first-child) {
  display: flex;
  flex-direction: column;
}

.card-grid > .bento-box:not(:first-child) .card-thumb {
  width: 100%;
  height: clamp(150px, 13vw, 185px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.card-grid > .bento-box:not(:first-child) > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-grid--demo > .bento-box:not(:first-child) > .btn {
  align-self: center;
}

/* Blog cards use the artwork as the full card surface, not as a squeezed
   thumbnail. Text stays legible on every image through the layered overlay. */
.card-grid--blog > .bento-box.blog-card {
  display: block;
  height: 330px;
  min-height: 330px;
  max-height: 330px;
  padding: 0;
  background: #090614;
  border-color: rgba(99, 102, 241, 0.28);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.card-grid--blog > .bento-box.blog-card .card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 2, 13, 0.15) 0%, rgba(5, 3, 16, 0.55) 45%, rgba(3, 2, 13, 0.98) 100%);
  pointer-events: none;
}

.blog-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.15rem;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.blog-card-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 999px;
  background: rgba(6, 35, 56, 0.85);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.blog-card-content {
  margin-top: auto;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 0.4rem 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.38;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.1rem;
}

.blog-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 2.45rem;
}

.blog-card:hover { border-color: rgba(251, 191, 36, 0.72); }
.blog-card:hover .card-thumb { transform: scale(1.055); filter: brightness(1.08); }

/* Keep the final promotion centered when the five-card collection wraps. */
.card-grid--promotion > .bento-box:last-child {
  grid-column: 5 / span 4;
}

/* HERO ROW: 1.3fr Left, 1fr Right */
.hero-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.bento-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bento-box:hover {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 18px rgba(249, 115, 22, 0.25);
}

/* Hero Box (Left) */
.box-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(24, 24, 48, 0.94), rgba(16, 16, 32, 0.96));
  min-height: 380px;
}

.hero-title {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0.6rem 0;
  letter-spacing: -0.5px;
}

.hero-title .glow-text {
  color: var(--gold);
}

.hero-desc {
  color: #b8bfc9;
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ==========================================================================
   AI Slot Signal Radar Box (Right Box)
   ========================================================================== */
.box-scanner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.16) 0%, rgba(6, 182, 212, 0.08) 50%, var(--bg-card) 90%);
  border: 1px solid rgba(249, 115, 22, 0.45);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(249, 115, 22, 0.15);
  padding: 1.5rem;
  min-height: 380px;
}

.box-scanner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(249, 115, 22, 0) 0deg, rgba(249, 115, 22, 0.15) 60deg, rgba(249, 115, 22, 0) 120deg);
  animation: radarSweep 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scanner-top {
  width: 100%;
  text-align: center;
  z-index: 2;
}

.scanner-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: block;
}

.scanner-radar-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 200px;
  margin: 0.75rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.radar-circle-outer {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px dashed rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-circle-inner {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
}

.radar-game-thumb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fbbf24;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.8), 0 0 50px rgba(249, 115, 22, 0.5);
  z-index: 3;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.radar-game-thumb.scanning {
  filter: brightness(1.4) blur(1px);
  transform: scale(0.9);
}

.scanner-live-info {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  width: 100%;
  margin-bottom: 0.75rem;
  z-index: 2;
  text-align: left;
}

.scanner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: var(--text-dim);
  gap: 0.5rem;
}

.scanner-row:last-child {
  margin-bottom: 0;
}

.scanner-row span.val-highlight {
  color: var(--gold);
  font-weight: 700;
  text-align: right;
}

.scanner-row span.val-green {
  color: var(--green);
  font-weight: 700;
  text-align: right;
}

.scanner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  z-index: 2;
}

.scanner-actions .btn {
  width: 100%;
  padding: 0.48rem 0.5rem;
  font-size: 0.82rem;
}

/* Full Width Live RTP Section */
.box-rtp {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.35rem;
}

.rtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rtp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.rtp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.rtp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.rtp-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
}

.rtp-card img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.rtp-info {
  flex: 1;
  min-width: 0;
}

.rtp-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rtp-val-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.rtp-val-row span.rtp-percent {
  color: var(--green);
  font-weight: 700;
}

.rtp-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rtp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Content & Article Styles */
.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  line-height: 1.85;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.content-card h1, .content-card h2, .content-card h3, .content-card h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-card h1 {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  margin-top: 0;
  color: #fff;
}

.content-card h2 {
  font-size: clamp(1.18rem, 1.65vw, 1.4rem);
  color: #f0ead6;
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
}

.content-card h3 {
  font-size: 1.1rem;
  color: #dcc99a;
}

.content-card h4 {
  font-size: 1rem;
  color: #b8a87a;
}

.content-card p {
  color: #b0b8c4;
  font-size: 0.98rem;
  line-height: 1.78;
  margin-bottom: 1.15rem;
}

.content-card strong, .content-card b {
  color: #f0d78a;
  font-weight: 600;
}

.content-card a {
  color: var(--primary-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(251, 146, 60, 0.4);
  transition: color 0.2s ease;
}

.content-card a:hover {
  color: #fcd9a8;
}

.content-card ul, .content-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: #b0b8c4;
  font-size: 0.97rem;
  line-height: 1.72;
}

.content-card li {
  margin-bottom: 0.5rem;
}

.content-card li strong {
  color: #f0d78a;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

table.bento-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(18, 18, 36, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
}

table.bento-table th {
  background: rgba(249, 115, 22, 0.25);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

table.bento-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

table.bento-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* FAQ Accordion */
.faq-wrap {
  margin-top: 2rem;
  width: 100%;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: #b0b8c4;
  font-size: 0.96rem;
  line-height: 1.72;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem 1.25rem;
}

/* Live Win Toast */
.live-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: rgba(15, 15, 30, 0.96);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-toast.show {
  transform: translateY(0);
}

.live-toast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.live-toast-text {
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.3;
}

.live-toast-text strong {
  color: var(--gold);
}

/* Footer (High-Contrast & Semantic) */
.footer {
  background: #04040a;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.footer-desc {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 320px;
  line-height: 1.65;
}

.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .rtp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid > .bento-box[style*="span 4"],
  .bento-grid > .bento-box[style*="span 6"],
  .card-grid--promotion > .bento-box:last-child { grid-column: span 6 !important; }
}

@media (max-width: 640px) {
  body { padding-top: 64px; }
  .header { height: 64px; }
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .navbar {
    padding: 0 0.25rem !important;
  }
  .brand-logo img {
    height: 36px !important;
  }
  .nav-cta {
    gap: 0.65rem !important;
    margin-right: 0.35rem !important;
  }
  .nav-cta .btn-sm {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
  }
  .nav-menu { display: none; }
  .rtp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr !important; gap: 1.15rem !important; width: 100% !important; }
  .bento-grid > .bento-box { grid-column: 1 !important; }
  .card-grid > .bento-box:not(:first-child) .card-thumb { height: 180px; }
  .card-grid--blog > .bento-box.blog-card,
  .blog-card-link { min-height: 270px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .content-card { padding: 1.5rem 1.15rem !important; border-radius: 16px !important; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; margin-bottom: 0.65rem; }
  .bento-box { padding: 1.35rem 1.1rem !important; border-radius: 16px !important; }
  .scanner-actions { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HERO BANNER, ARTICLE IMAGES & RELATED ARTICLES (Compact Professional Style)
   ========================================================================== */
.hero-banner {
  width: 100% !important;
  max-width: 760px !important;
  margin: 1.25rem auto 1.5rem !important;
  position: relative !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.25), 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  height: auto !important;
  max-height: none !important;
}

.hero-banner img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  transition: transform 0.3s ease !important;
}

.hero-banner:hover img {
  transform: scale(1.02);
}

/* Article Body Images */
.article-img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  margin: 1.25rem auto;
  border: 1px solid var(--border-color);
  object-fit: cover;
  max-height: 240px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Blog & Promo Card Thumbnails */
.bento-box img.card-thumb,
.article-card img.card-thumb {
  width: 100%;
  max-height: 130px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Related Articles Grid */
.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.related-card {
  display: block;
  background: var(--bg-card, rgba(15, 15, 35, 0.85));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
  border-color: var(--gold);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.related-card h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE FOOTER ACCORDION — collapse long footer columns on phones
   Desktop stays exactly as-is; only active under 640px.
   ========================================================================== */
.footer-col-toggle {
  display: none;
}

@media (max-width: 640px) {
  .footer {
    padding: 1.75rem 0 1rem;
    margin-top: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 1rem !important;
  }

  /* Brand block (first child, no heading) stays open */
  .footer-grid > div:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-heading {
    position: relative;
    margin-bottom: 0 !important;
    padding: 0.9rem 0.15rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.95rem;
  }

  .footer-heading::after {
    content: '+';
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.25s ease;
    line-height: 1;
  }

  .footer-col.open .footer-heading::after {
    content: '\2212'; /* minus sign */
  }

  .footer-links {
    display: none;
    padding: 0 0.15rem 0.9rem;
  }

  .footer-col.open .footer-links {
    display: block;
  }

  .footer-links li {
    margin-bottom: 0.65rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    padding-top: 1rem;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   PROMOTION PAGE — 2x2 promo card layout on desktop (bigger, balanced)
   ========================================================================== */
@media (min-width: 1025px) {
  .promo-2x2 > .bento-box[style*="span 4"] {
    grid-column: span 6 !important;
    padding: 2rem !important;
  }

  .promo-2x2 > .bento-box[style*="span 4"] .card-thumb {
    height: auto !important;
    max-height: none;
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .promo-2x2 > .bento-box[style*="span 4"] h2 {
    font-size: 1.55rem !important;
  }

  .promo-2x2 > .bento-box[style*="span 4"] p {
    font-size: 1rem !important;
  }

  .promo-2x2 > .bento-box[style*="span 4"] .btn {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }
}

/* ==========================================================================
   PROMOTION PAGE — 2x2 promo card layout (Perfect 16:9 proportions, uniform heights)
   ========================================================================== */
.promo-2x2 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.promo-2x2 > .bento-box {
  display: flex !important;
  flex-direction: column !important;
  border-radius: var(--radius-lg);
  padding: 1.5rem !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.promo-2x2 > .bento-box:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.25);
}

.promo-2x2 .card-thumb,
.card-grid--promotion .card-thumb {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 0.75rem 0 1rem 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #06060e !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.promo-2x2 > .bento-box h2 {
  font-size: 1.35rem !important;
  color: #fff !important;
  margin: 0 0 0.5rem 0 !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.promo-2x2 > .bento-box p {
  font-size: 0.96rem !important;
  color: #b0b8c4 !important;
  line-height: 1.65 !important;
  margin-bottom: 1.25rem !important;
  flex-grow: 1;
}

.promo-2x2 > .bento-box > .btn {
  margin-top: auto !important;
  align-self: flex-start !important;
  font-size: 0.95rem !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 10px !important;
}

@media (min-width: 900px) {
  .promo-2x2 > .bento-box[style*="span 4"],
  .promo-2x2 > .bento-box[style*="span 6"] {
    grid-column: span 6 !important;
    padding: 1.75rem !important;
  }
}

@media (max-width: 899px) {
  .promo-2x2 > .bento-box[style*="span 4"],
  .promo-2x2 > .bento-box[style*="span 6"] {
    grid-column: span 12 !important;
  }
}

/* Accessibility: Skip Link (WCAG 2.1 & Google Lighthouse UX Standard) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #f97316;
  color: #ffffff;
  padding: 10px 20px;
  z-index: 999999;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.6);
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fbbf24;
}

/* ==========================================================================
   E-E-A-T AUTHOR & VERIFIED EXPERIENCE BENCHMARK STYLES
   ========================================================================== */
.eeat-author-card {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-left: 4px solid var(--gold, #fbbf24);
  border-radius: 12px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 640px) {
  .eeat-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.eeat-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.eeat-author-info {
  flex: 1;
}
.eeat-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.eeat-author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.eeat-author-role {
  font-size: 0.85rem;
  color: var(--gold, #fbbf24);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.eeat-author-bio {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.eeat-author-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.eeat-test-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
}
.eeat-test-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.eeat-test-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.eeat-test-table th {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
}
.eeat-test-table td {
  padding: 8px 12px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

