/* ========================================
   hi88 - Modern CSS Framework
   ======================================== */

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

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Gray Scale */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-body: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Prompt', sans-serif;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #000000;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Improved for readability */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: #000000;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-5);
  line-height: 1.9;
}

/* Links */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-700);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Spacing */
.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* Navigation Links */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-1);
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* Mobile Navigation */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--gray-200);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile Menu */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 72px;
    /* Height of the header */
    left: 0;
    right: 0;
    /* Use 100dvh for better mobile browser support, fallback to 100vh */
    height: calc(100dvh - 72px);
    height: calc(100vh - 72px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-6) var(--space-4) calc(var(--space-10) + 72px) var(--space-4);
    /* Add extra bottom padding so last items aren't cut off */
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
    overscroll-behavior: contain;
    /* Prevent scrolling the body beneath */
  }

  .nav-links.active {
    transform: translateX(0);
    display: flex;
  }

  .nav-link {
    padding: var(--space-4);
    font-size: 1.125rem;
    text-align: center;
    width: 100%;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  color: var(--white);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-600);
  background: var(--white);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-outline:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-600);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-600) 100%);
  color: var(--white);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero with Background Image */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(29, 78, 216, 0.88) 50%, rgba(37, 99, 235, 0.85) 100%);
}

/* ========================================
   Cards & Features
   ======================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: #000000;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.game-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card-body {
  padding: var(--space-6);
}

.game-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.game-card p {
  font-size: 0.9375rem;
  color: #000000;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  padding: var(--space-16) 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-section>.container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary-600);
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-6);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  padding: var(--space-4) 0;
  background: var(--gray-50);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--gray-400);
}

.breadcrumb-item a {
  color: var(--primary-600);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item span {
  color: var(--gray-600);
}

/* ========================================
   Content Area - Improved Readability
   ======================================== */
.content-area {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content-area h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary-100);
  font-size: 1.5rem;
}

.content-area h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
  color: var(--gray-800);
}

.content-area p {
  margin-bottom: var(--space-5);
  text-align: left;
  line-height: 1.9;
}

.content-area ul,
.content-area ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.content-area li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.content-area li::marker {
  color: var(--primary-500);
}

.content-area strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Info Box */
.info-box {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-6) 0;
}

.info-box p {
  margin-bottom: 0;
}

/* Step Cards */
.step-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-content h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
}

.step-content p {
  margin: 0;
  color: var(--gray-600);
}

/* FAQ Details */
details {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

summary {
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background 0.2s ease;
}

summary:hover {
  background: var(--gray-100);
}

summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary-500);
  flex-shrink: 0;
}

details[open] summary::after {
  content: '−';
}

details>*:not(summary) {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--gray-600);
  line-height: 1.7;
}

details>*:not(summary) p {
  margin: 0;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

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

/* ========================================
   Utilities
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

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

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--primary-600);
  color: var(--white);
  font-weight: 500;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 639px) {
  .section {
    padding: var(--space-10) 0;
  }

  .hero {
    padding: var(--space-10) 0;
  }

  .cta-section {
    padding: var(--space-10) 0;
  }

  .feature-card {
    padding: var(--space-6);
  }
}

/* ========================================
   Sticky CTA Footer
   ======================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.sticky-cta.hidden {
  transform: translateY(100%);
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
}

.sticky-cta-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.sticky-cta-badge {
  background: #ef4444;
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sticky-cta-title {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.sticky-cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.sticky-cta-btn {
  background: var(--white);
  color: var(--primary-700);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sticky-cta-btn:hover {
  background: var(--primary-50);
  color: var(--primary-800);
  transform: translateY(-1px);
}

.sticky-cta-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sticky-cta-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 639px) {
  .sticky-cta-content {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .sticky-cta-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .sticky-cta-title {
    font-size: 0.875rem;
  }

  .sticky-cta-desc {
    font-size: 0.75rem;
  }

  .sticky-cta-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
  }
}

/* Add padding to body when sticky CTA is visible */
body.has-sticky-cta {
  padding-bottom: 70px;
}

@media (max-width: 639px) {
  body.has-sticky-cta {
    padding-bottom: 90px;
  }
}

/* Print styles */
@media print {

  .site-header,
  .site-footer,
  .nav-toggle,
  .btn-cta,
  .sticky-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    padding-bottom: 0 !important;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* --- PREMIUM UI EXTRACTED FROM INDEX.ASTRO --- */
/* --- PREMIUM UI REDESIGN CSS --- */
:root {
  --color-blue-100: #dbeafe;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-900: #1e3a8a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  /* New Luxury Variables */
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
}

/* Animations */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.8);
  }
}

@keyframes goldPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(234, 179, 8, 0.8);
  }
}

.animate-slide-up {
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 1.2s ease-in forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-blue-600), var(--primary-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Luxury Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.glass-card.dark {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.glass-card.dark:hover {
  border-color: rgba(234, 179, 8, 0.5);
  /* Gold hover on dark */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Form Styling - Glass */
.glass-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #1e293b;
}

.glass-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: #fff;
}

/* Premium Buttons */
.btn-premium {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

.btn-premium-gold {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a !important;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-premium-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(234, 179, 8, 0.5);
}

.btn-glow {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: glowPulse 3s infinite;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.btn-glass {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb !important;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid #2563eb;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-glass:hover {
  background: #2563eb;
  color: #fff !important;
}

/* Hero Section Base */
.hero-premium {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 0;
}

.hero-premium.dark {
  background: var(--dark-bg);
}

.hero-premium-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-premium.dark .hero-premium-overlay {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

.hero-content-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 4rem 3rem;
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-premium.dark .hero-content-glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.hero-premium.dark .hero-title,
.hero-premium.dark .hero-subtitle,
.hero-premium.dark .breadcrumb-item a,
.hero-premium.dark .breadcrumb-item span {
  color: white !important;
}

.hero-premium.dark .breadcrumb-item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.5);
}

.hero-promo-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #334155 !important;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Features Grid */
.premium-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.premium-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.icon-glow {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.premium-feature-card h3 {
  font-size: 1.35rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.premium-feature-card p {
  color: #4b5563;
}

/* Games Section */
.premium-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.premium-game-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.game-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.game-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.premium-game-card:hover .game-img-wrapper img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
}

.premium-game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  z-index: 2;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.game-info h3 {
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.25rem;
}

.game-info p {
  color: #64748b;
  font-size: 0.95rem;
}

.btn-glow-small {
  padding: 0.8rem 1.8rem;
  background: #fff;
  color: #2563eb !important;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 30px;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: inline-block;
  text-decoration: none;
}

.premium-game-card:hover .btn-glow-small {
  transform: translateY(0);
}

.btn-glow-small:hover {
  background: #3b82f6;
  color: #fff !important;
}

/* Promo Banner */
.promo-wrapper {
  position: relative;
  display: inline-block;
}

.promo-img-premium {
  max-width: 1000px;
  width: 100%;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
  border: 4px solid #fff;
}

.promo-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 110%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  filter: blur(30px);
}

/* Premium CTA */
.cta-premium {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 20%);
}

.cta-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.2rem;
  color: #bfdbfe;
  margin-bottom: 2.5rem;
}

.btn-glow-large {
  padding: 1.2rem 3.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a !important;
  background: #fff;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-glow-large:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* --- PREMIUM UI EXTRACTED FROM INDEX.ASTRO --- */