/* ========================================
   VREXTREME - VR KATALOG STYLING
   Modern, immersive design för VR-upplevelser
   ======================================== */

/* ========================================
   CSS VARIABLES - Theme configuration
   ======================================== */
:root {
  /* Color Palette - Mörkt tema */
  --bg-color: #131324;
  --surface-color: #181832;
  --primary-accent: #1f51ff;
  --primary-glow: rgba(31, 81, 255, 0.3);
  --text-primary: rgb(255, 255, 255);
  --text-secondary: rgb(148, 163, 184);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(24, 24, 50, 0.7);

  /* Primary Color RGBA Variants (blue #1f51ff) */
  --primary-rgba-05: rgba(31, 81, 255, 0.05);
  --primary-rgba-08: rgba(31, 81, 255, 0.08);
  --primary-rgba-10: rgba(31, 81, 255, 0.1);
  --primary-rgba-15: rgba(31, 81, 255, 0.15);
  --primary-rgba-20: rgba(31, 81, 255, 0.2);
  --primary-rgba-25: rgba(31, 81, 255, 0.25);
  --primary-rgba-30: rgba(31, 81, 255, 0.3);
  --primary-rgba-40: rgba(31, 81, 255, 0.4);
  --primary-rgba-50: rgba(31, 81, 255, 0.5);
  --primary-rgba-60: rgba(31, 81, 255, 0.6);

  /* White RGBA Variants */
  --white-rgba-05: rgba(255, 255, 255, 0.05);
  --white-rgba-10: rgba(255, 255, 255, 0.1);
  --white-rgba-15: rgba(255, 255, 255, 0.15);
  --white-rgba-20: rgba(255, 255, 255, 0.2);
  --white-rgba-50: rgba(255, 255, 255, 0.5);
  --white-rgba-80: rgba(255, 255, 255, 0.8);
  --white-rgba-90: rgba(255, 255, 255, 0.9);

  /* Black RGBA Variants */
  --black-rgba-30: rgba(0, 0, 0, 0.3);
  --black-rgba-50: rgba(0, 0, 0, 0.5);
  --black-rgba-60: rgba(0, 0, 0, 0.6);
  --black-rgba-70: rgba(0, 0, 0, 0.7);

  /* Secondary Colors */
  --color-light-blue: #60a5fa;
  --color-purple: #a855f7;
  --color-yellow: #fbbf24;
  --color-emerald: #10b981;

  /* Typography */
  --font-heading: 'Encode Sans', sans-serif;
  --font-body: 'Exo', sans-serif;

  /* Popup Configuration */
  --popup-max-width: 1100px;
  --popup-max-height: 95vh;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Grid Layout */
  --grid-columns: 3;
  --card-min-width: 220px;
  --card-max-width: 270px;
  --grid-gap: 1.25rem;
  --grid-max-width: 950px;
  --card-title-size: 1rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 81, 255, 0.6) rgba(20, 24, 39, 0.4);
  overflow-x: hidden;
}

/* Custom Scrollbar - WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 24, 39, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(31, 81, 255, 0.7) 0%, rgba(59, 130, 246, 0.6) 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(31, 81, 255, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(31, 81, 255, 1) 0%, rgba(59, 130, 246, 0.9) 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: rgba(20, 24, 39, 0.4);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

#mainContent {
  flex: 1;
}


/* Screen reader only */
.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;
}

/* ========================================
   ACCESSIBILITY - Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   NAVBAR WRAPPER - Floats above hero
   ======================================== */
.navbar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* ========================================
   TOP BANNER BAR
   ======================================== */
.top-banner {
  background: #131324;
  padding: 0.5rem 0;
}

.top-banner-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-banner-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.top-banner-link:hover {
  opacity: 0.8;
}

.top-banner-link i {
  width: 14px;
  height: 14px;
}

.top-banner-link i[data-lucide="trophy"] {
  color: #fbbf24;
}

.top-banner-link i[data-lucide="chevron-right"] {
  color: #1f51ff;
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.main-nav {
  background: transparent;
  padding: 0.75rem 0 0 0;
}

/* Sticky navbar - fast fixerad, ingen animation */
.main-nav.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0 !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: transform 0.15s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: 'Exo', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
  position: relative;
}

/* Blue underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #1f51ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #fff;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - Solid Black */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: none;
  border-radius: 0;
  padding: 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
}

.nav-item.has-dropdown:hover .dropdown-item {
  opacity: 1;
  transform: translateX(0);
}

.nav-item.has-dropdown:hover .dropdown-item:nth-child(1) {
  transition-delay: 0.05s;
}

.nav-item.has-dropdown:hover .dropdown-item:nth-child(2) {
  transition-delay: 0.1s;
}

.nav-item.has-dropdown:hover .dropdown-item:nth-child(3) {
  transition-delay: 0.15s;
}

.nav-item.has-dropdown:hover .dropdown-item:nth-child(4) {
  transition-delay: 0.2s;
}

/* Blue underline animation from left to right */
.dropdown-item::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: #1f51ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  color: #fff;
}

.dropdown-item:hover::after {
  transform: scaleX(1);
}

/* Nav Actions (Right Side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 2rem;
}

.nav-btn-book {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 0.75rem 1.8rem;
  border: 2px solid #1f51ff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

/* Blue fill animation from left to right */
.nav-btn-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #1f51ff;
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-btn-book:hover {
  box-shadow: 0 0 20px rgba(31, 81, 255, 0.5);
}

.nav-btn-book:hover::before {
  width: 100%;
}

/* Language Selector - moved to /styles/language-selector.css */

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: all 0.15s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.15s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Responsive Navbar */
@media (max-width: 1100px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 1.5rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem;
  }

  .hamburger {
    width: 26px;
    height: 2.5px;
  }

  .hamburger::before,
  .hamburger::after {
    width: 26px;
    height: 2.5px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #131324 0%, #0d0d1a 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    padding-right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 2rem));
    gap: 0.5rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-menu.open {
    right: 0;
  }

  /* Dark backdrop overlay when menu is open */
  .nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-menu.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 1.1rem 0.5rem;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  /* Remove underline animation on mobile - use background instead */
  .nav-link::after {
    display: none;
  }

  .nav-link:active {
    background: rgba(31, 81, 255, 0.15);
  }

  /* Dropdown arrow rotation */
  .nav-item.has-dropdown .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .nav-item.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(31, 81, 255, 0.08);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                margin 0.3s ease;
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    max-height: 400px;
    padding: 0.5rem;
  }

  .dropdown-item {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .dropdown-item:active {
    background: rgba(31, 81, 255, 0.2);
    color: #fff;
  }

  /* Divider before actions */
  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
  }

  .nav-btn-book {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f51ff 0%, #1a44d9 100%);
    box-shadow: 0 4px 15px rgba(31, 81, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .nav-btn-book:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(31, 81, 255, 0.2);
  }

  /* Language selector mobile styles moved to /styles/language-selector.css */
}

@media (max-width: 480px) {
  .top-banner-content {
    padding: 0 0.75rem;
  }

  .top-banner-link {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .top-banner-link span {
    font-size: 0.7rem;
  }

  .top-banner-link i {
    width: 10px;
    height: 10px;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-menu {
    width: min(280px, 75vw);
    padding: 4.5rem 1rem 2rem;
  }

  .nav-link {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
  }

  .dropdown-item {
    padding: 0.8rem 0.75rem;
    font-size: 0.85rem;
  }

  .nav-btn-book {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ========================================
   TOUCH OPTIMIZATIONS
   ======================================== */
button,
a,
.game-card,
.filter-buttons button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(31, 81, 255, 0.3);
}

button:active,
.game-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.filter-buttons button:active {
  transform: scale(0.95);
}

/* ========================================
   ANIMATED BACKGROUND ORBS (disabled)
   ======================================== */
.bg-orbs {
  display: none;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(31, 81, 255, 0.1);
  border-top-color: var(--primary-accent);
  border-right-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Popup Fade Animation */
.popup-content-wrapper {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.popup-content-wrapper.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   LOCATION POPUP - REMOVED (now in booking form)
   ======================================== */
/* Location popup styles removed - location selection now in booking form
.location-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-popup.show {
  opacity: 1;
}

.location-popup-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 2px solid rgba(31, 81, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  max-width: 480px;
  width: 90%;
  transform: scale(0.9);
  position: relative;
  overflow: visible;
  animation: popupEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popupEnter {
  to {
    transform: scale(1);
  }
}

.location-popup-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg,
    rgba(31, 81, 255, 0.3),
    rgba(139, 92, 246, 0.25),
    rgba(59, 130, 246, 0.3));
  border-radius: 2rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-popup-content:hover::before {
  opacity: 1;
}

.location-popup-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.location-popup-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.popup-buttons button {
  padding: 1.25rem 2rem;
  min-height: 64px;
  font-size: 1.125rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-accent), rgba(31, 81, 255, 0.85));
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(31, 81, 255, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.popup-buttons button i {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.popup-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 81, 255, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), var(--primary-accent));
}

.popup-buttons button:active {
  transform: translateY(0);
}

.popup-buttons button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.popup-buttons button:hover::before {
  width: 300px;
  height: 300px;
}

.popup-buttons button:hover {
  background: rgb(96, 165, 250);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.popup-buttons button:active {
  transform: scale(0.97);
  opacity: 0.9;
}
*/

/* ========================================
   HERO SECTION - Video Background
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height - works better on mobile */
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  z-index: 1; /* Below banner (1001) and nav (1000) */
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(19, 19, 36, 0.4) 50%,
    rgba(19, 19, 36, 0.65) 65%,
    rgba(19, 19, 36, 0.85) 80%,
    var(--bg-color) 100%
  );
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  padding-top: 100px;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-body), 'Exo', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;

}

.hero-btn-primary {
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(31, 81, 255, 0.4);
}

.hero-btn-primary:hover {
  background: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(31, 81, 255, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Hero responsive */
@media (max-width: 768px) {
  /* Hide scrollbar on mobile */
  body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
  }

  /* Make navbar fixed on mobile */
  .navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* Top banner responsive on mobile */
  .top-banner {
    padding: 0.4rem 0;
  }

  .top-banner-content {
    padding: 0 1rem;
  }

  .top-banner-link {
    font-size: 0.75rem;
    gap: 0.35rem;
  }

  .top-banner-link i {
    width: 12px;
    height: 12px;
  }

  /* Hero covers entire screen - NOT fixed, flows naturally */
  .hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    overflow: hidden;
  }

  .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .hero-content {
    padding: 1.5rem;
    padding-top: 140px; /* Space for fixed navbar + top banner */
    padding-left: max(1.5rem, env(safe-area-inset-left, 1.5rem));
    padding-right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 300px;
    min-height: 52px;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .hero-btn:active {
    transform: scale(0.98);
  }
}

/* ========================================
   SECTION TITLES (Global)
   ======================================== */
.section-title {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: clamp(1rem, 6vw, 2.05rem);
  font-weight: 900;
  text-align: left;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Skip game selection banner */
.skip-selection-banner {
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.08), rgba(31, 81, 255, 0.15));
  border: 1px solid rgba(31, 81, 255, 0.25);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(31, 81, 255, 0.2), 0 4px 20px rgba(31, 81, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(31, 81, 255, 0), 0 8px 30px rgba(31, 81, 255, 0.2);
  }
}

/* Animated shimmer effect on banner */
.skip-selection-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: bannerShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bannerShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.skip-selection-banner:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(31, 81, 255, 0.5);
  box-shadow: 0 12px 40px rgba(31, 81, 255, 0.25);
  animation: none;
}

.skip-selection-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.skip-selection-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.skip-selection-text i {
  width: 20px;
  height: 20px;
  color: var(--primary-accent);
  opacity: 0.8;
  animation: questionPulse 2s ease-in-out infinite;
}

@keyframes questionPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.skip-selection-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-accent), #3b82f6);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  outline: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(31, 81, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.skip-selection-btn:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

.skip-selection-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.skip-selection-btn:hover::before {
  left: 100%;
}

.skip-selection-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), #2563eb);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(31, 81, 255, 0.5);
}

.skip-selection-btn i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skip-selection-btn:hover i {
  transform: translateX(5px);
  animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(5px); }
  50% { transform: translateX(8px); }
}

@media (max-width: 600px) {
  .skip-selection-content {
    flex-direction: column;
    text-align: center;
  }

  .skip-selection-text {
    justify-content: center;
  }

  .skip-selection-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
  padding: 5rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: -3rem;
  position: relative;
}

.how-it-works-section .section-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
}

/* Animerad tidslinje som växer vid scroll */
.steps-container::before {
  content: '';
  position: absolute;
  top: 65px; /* Centered through step-number circles */
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-accent) 15%, #60a5fa 50%, var(--primary-accent) 85%, transparent 100%);
  z-index: 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 15px rgba(31, 81, 255, 0.6);
}

/* När sektionen syns - aktiveras via JS */
.how-it-works-section.in-view .steps-container::before {
  animation: timelineGrow 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes timelineGrow {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.step-card {
  background: transparent;
  border: none;
  border-radius: 1.5rem;
  text-align: center;
  flex: 1;
  max-width: 220px;
  position: relative;
  z-index: 1;
  padding: 1.5rem 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.step-card:hover {
  transform: translateY(-12px) scale(1.05);
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #1f51ff, #60a5fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 10px 40px rgba(31, 81, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(31, 81, 255, 0.3);
  opacity: 0;
  transition: all 0.4s ease;
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow:
    0 15px 50px rgba(31, 81, 255, 0.5),
    0 0 30px rgba(31, 81, 255, 0.3);
}

.step-card:hover .step-number::after {
  opacity: 1;
  inset: -8px;
  animation: stepRingPulse 1.5s ease-in-out infinite;
}

@keyframes stepRingPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.step-icon {
  display: none;
}

.step-card h3 {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.step-card:hover h3 {
  color: #60a5fa;
  transform: scale(1.05);
}

.step-card p {
  font-family: var(--font-body), 'Exo', sans-serif;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.step-card:hover p {
  color: var(--text-primary);
}

/* Responsiv design för step-cards */
@media (max-width: 768px) {
  .how-it-works-section {
    padding: 4rem 1.5rem 4rem;
    margin-top: -2rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .steps-container::before {
    display: none;
  }

  .step-card {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .step-card {
    max-width: 100%;
    padding: 1.25rem 1rem;
  }

  .step-number {
    width: 65px;
    height: 65px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .step-card h3 {
    font-size: 1rem;
  }

  .step-card p {
    font-size: 0.85rem;
  }
}

/* ========================================
   STICKY SCROLL HOW IT WORKS
   ======================================== */

/* Ny sticky variant */
.how-it-works-sticky {
  padding: 0;
  margin-top: 6rem; /* Avstånd från hero-sektionen */
  max-width: none;
  /* VIKTIGT: Ingen overflow hidden - bryter sticky! */
}

/* Steg-header med titel */
.steps-header {
  padding: 2rem 0 3rem;
}

.how-it-works-sticky .section-title {
  margin: 0;
  text-align: left;
  max-width: none;
  font-size: 3.5rem;
  font-weight: 800;
}

/* Huvudcontainer - full bredd */
.how-it-works-container {
  display: flex;
  position: relative;
  max-width: none;
  margin: 0;
  align-items: flex-start; /* Viktigt för sticky */
}

/* Vänster kolumn - STORA step cards */
.steps-scroll-column {
  width: 50%;
  position: relative;
  z-index: 10;
  padding: 0 3rem 0 5rem;
}

.step-scroll-item {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* När ett steg har blivit synligt - stanna synligt! */
.step-scroll-item.revealed,
.step-scroll-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Aktiva steg är lite mer framträdande */
.step-scroll-item.active {
  opacity: 1;
}

.step-scroll-item.revealed:not(.active) {
  opacity: 0.6;
}

.step-scroll-spacer {
  height: 30vh;
}

/* Steg-innehåll - MYCKET större */
.step-content {
  max-width: 550px;
}

.step-number-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Exo', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.1s;
}

.step-scroll-item.revealed .step-number-badge,
.step-scroll-item.active .step-number-badge {
  opacity: 1;
  transform: translateY(0);
}

.step-scroll-item .step-icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--primary-accent), #60a5fa);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
  box-shadow: 0 15px 40px rgba(31, 81, 255, 0.35);
}

.step-scroll-item.revealed .step-icon,
.step-scroll-item.active .step-icon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.step-scroll-item .step-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* Text - MYCKET större */
.step-scroll-item .step-title {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  perspective: 1000px;
}

.step-scroll-item .step-desc {
  font-family: var(--font-body), 'Exo', sans-serif;
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  max-width: 450px;
}

/* Beskrivning stannar synlig efter reveal */
.step-scroll-item.revealed .step-desc,
.step-scroll-item.active .step-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Text reveal animation */
.reveal-text {
  perspective: 1000px;
  display: block;
}

.reveal-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(3px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text .char.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Höger kolumn - sticky bild från mitten till höger kant */
.sticky-image-column {
  width: 50%;
  height: calc(100vh - 8rem);
  position: sticky;
  top: 6rem;
  right: 0;
  padding: 0;
  align-self: flex-start;
}

.sticky-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  box-shadow:
    -20px 0 60px rgba(0, 0, 0, 0.4),
    0 10px 40px rgba(0, 0, 0, 0.2);
}

.sticky-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.sticky-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(19, 19, 36, 0.4) 0%,
    transparent 50%,
    rgba(31, 81, 255, 0.1) 100%
  );
  pointer-events: none;
}

/* ========================================
   RESPONSIVE - STICKY SCROLL
   ======================================== */

/* Large desktop */
@media (min-width: 1600px) {
  .steps-scroll-column {
    padding-left: 8rem;
    width: 50%;
  }

  .step-scroll-item .step-title {
    font-size: 3.5rem;
  }

  .step-scroll-item .step-desc {
    font-size: 1.5rem;
    max-width: 500px;
  }

  .step-scroll-item .step-icon {
    width: 100px;
    height: 100px;
  }

  .step-scroll-item .step-icon svg {
    width: 48px;
    height: 48px;
  }

  .sticky-image-column {
    width: 50%;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .how-it-works-container {
    max-width: 100%;
  }

  .how-it-works-sticky {
    margin-top: 5rem;
  }

  .how-it-works-sticky .section-title {
    font-size: 3rem;
  }

  .steps-scroll-column {
    width: 50%;
    padding-left: 3rem;
  }

  .sticky-image-column {
    width: 50%;
  }

  .step-scroll-item {
    min-height: 60vh;
  }

  .step-scroll-item .step-title {
    font-size: 2.25rem;
  }

  .step-scroll-item .step-desc {
    font-size: 1.15rem;
  }

  .step-scroll-item .step-icon {
    width: 72px;
    height: 72px;
  }
}

/* ========================================
   MOBILE DESIGN - Horizontal Swipe Carousel
   ======================================== */

@media (max-width: 1024px) {
  .how-it-works-sticky {
    padding: 4rem 0 3rem;
    margin-top: 3rem;
    overflow: hidden;
  }

  .steps-header {
    padding: 0 1.5rem 2rem;
    text-align: center;
  }

  .how-it-works-sticky .section-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .how-it-works-container {
    flex-direction: column;
  }

  /* Dölj bilden helt på mobil */
  .sticky-image-column {
    display: none;
  }

  /* Horisontell scroll-container */
  .steps-scroll-column {
    width: 100%;
    display: flex;
    gap: 1.25rem;
    padding: 1rem 1.5rem 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .steps-scroll-column::-webkit-scrollbar {
    display: none;
  }

  .step-scroll-spacer {
    display: none;
  }

  /* Karusell-kort */
  .step-scroll-item {
    min-height: auto;
    padding: 0;
    opacity: 1;
    transform: none;
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  .step-scroll-item:first-child {
    margin-left: 5%;
  }

  .step-scroll-item:last-child {
    margin-right: 5%;
  }

  .step-scroll-item.revealed,
  .step-scroll-item.active {
    opacity: 1;
  }

  /* Karusell kort-design */
  .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(
      170deg,
      rgba(31, 81, 255, 0.15) 0%,
      rgba(19, 19, 36, 0.98) 40%,
      rgba(19, 19, 36, 0.98) 100%
    );
    border: 1px solid rgba(31, 81, 255, 0.2);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }

  /* Glödande topp-accent */
  .step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--primary-accent) 20%,
      #60a5fa 50%,
      var(--primary-accent) 80%,
      transparent 100%
    );
  }

  /* Bakgrundsglöd */
  .step-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(31, 81, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Stort gradient-nummer */
  .step-number-badge {
    position: relative;
    z-index: 1;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #60a5fa 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    opacity: 1;
    transform: none;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(31, 81, 255, 0.3);
  }

  /* Ikon */
  .step-scroll-item .step-icon {
    position: relative;
    z-index: 1;
    display: flex;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-accent), #60a5fa);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: none;
    box-shadow:
      0 10px 30px rgba(31, 81, 255, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }

  .step-scroll-item .step-icon svg {
    width: 32px;
    height: 32px;
  }

  .step-scroll-item .step-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .step-scroll-item .step-desc {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0.9;
    transform: none;
    max-width: 280px;
  }

  /* Visa allt på mobil */
  .reveal-text .char {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Scroll-indikatorer (prickar) */
  .steps-scroll-column::after {
    content: '● ○ ○ ○';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    letter-spacing: 0.5rem;
    color: var(--primary-accent);
    opacity: 0.6;
  }
}

/* Tablet - lite större kort */
@media (min-width: 769px) and (max-width: 1024px) {
  .step-scroll-item {
    flex: 0 0 45%;
  }

  .step-scroll-item:first-child {
    margin-left: 2.5%;
  }

  .step-content {
    min-height: 380px;
    padding: 3rem 2.5rem;
  }

  .step-number-badge {
    font-size: 4.5rem;
  }

  .step-scroll-item .step-icon {
    width: 80px;
    height: 80px;
  }

  .step-scroll-item .step-icon svg {
    width: 36px;
    height: 36px;
  }

  .step-scroll-item .step-title {
    font-size: 1.65rem;
  }

  .step-scroll-item .step-desc {
    font-size: 1.05rem;
    max-width: 320px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .how-it-works-sticky {
    padding: 3rem 0 2.5rem;
    margin-top: 2rem;
  }

  .steps-header {
    padding: 0 1rem 1.5rem;
  }

  .how-it-works-sticky .section-title {
    font-size: 2rem;
  }

  .steps-scroll-column {
    padding: 0.75rem 1rem 1.5rem;
    gap: 1rem;
  }

  .step-scroll-item {
    flex: 0 0 85%;
  }

  .step-content {
    min-height: 300px;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .step-number-badge {
    font-size: 3.5rem;
  }

  .step-scroll-item .step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1.25rem;
  }

  .step-scroll-item .step-icon svg {
    width: 28px;
    height: 28px;
  }

  .step-scroll-item .step-title {
    font-size: 1.35rem;
  }

  .step-scroll-item .step-desc {
    font-size: 0.95rem;
    max-width: 260px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .how-it-works-sticky {
    padding: 2.5rem 0 2rem;
  }

  .how-it-works-sticky .section-title {
    font-size: 1.75rem;
  }

  .steps-scroll-column {
    padding: 0.5rem 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  .step-scroll-item {
    flex: 0 0 88%;
  }

  .step-scroll-item:first-child {
    margin-left: 3%;
  }

  .step-content {
    min-height: 280px;
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .step-number-badge {
    font-size: 3rem;
  }

  .step-scroll-item .step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .step-scroll-item .step-icon svg {
    width: 24px;
    height: 24px;
  }

  .step-scroll-item .step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .step-scroll-item .step-desc {
    font-size: 0.875rem;
    max-width: 240px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-text .char,
  .step-scroll-item,
  .step-number-badge,
  .step-scroll-item .step-icon,
  .step-scroll-item .step-desc {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ========================================
   HOW IT WORKS - TEXT ONLY VARIANT
   ======================================== */

.how-it-works-text-only {
  padding: 6rem 2rem 8rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 4rem;
}

/* Centered Header */
.steps-header-centered {
  text-align: center;
  margin-bottom: 5rem;
}

.steps-label {
  display: block;
  font-family: var(--font-body), 'Exo', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.steps-title {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.steps-header-line {
  width: 120px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--primary-accent), var(--color-light-blue));
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
}

/* Steps Grid - 2x2 Layout */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Individual Step Item */
.step-text-item {
  opacity: 0;
  transform: translateY(30px);
}

.step-number-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-number-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.step-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 81, 255, 0.5), transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.step-text-title {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.step-text-desc {
  font-family: var(--font-body), 'Exo', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

/* Hover Effects */
.step-text-item:hover .step-text-title {
  color: var(--primary-accent);
}

.step-text-item:hover .step-divider-line {
  background: linear-gradient(90deg, rgba(31, 81, 255, 0.8), rgba(96, 165, 250, 0.3));
}

/* Animated States - set by JS */
.step-text-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-text-item.revealed .step-divider-line {
  opacity: 1;
  transform: scaleX(1);
}

/* ========================================
   RESPONSIVE - TEXT ONLY VARIANT
   ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .how-it-works-text-only {
    padding: 8rem 2rem 10rem;
  }

  .steps-header-centered {
    margin-bottom: 6rem;
  }

  .steps-grid {
    gap: 6rem 5rem;
    max-width: 1000px;
  }

  .step-text-title {
    font-size: 2.25rem;
  }

  .step-text-desc {
    font-size: 1.125rem;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .how-it-works-text-only {
    padding: 5rem 1.5rem 6rem;
    margin-top: 3rem;
  }

  .steps-header-centered {
    margin-bottom: 4rem;
  }

  .steps-grid {
    gap: 3.5rem 3rem;
  }

  .step-text-desc {
    max-width: 100%;
  }
}

/* Mobile - Single Column */
@media (max-width: 640px) {
  .how-it-works-text-only {
    padding: 4rem 1.25rem 5rem;
    margin-top: 2rem;
  }

  .steps-header-centered {
    margin-bottom: 3rem;
  }

  .steps-label {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
  }

  .steps-title {
    font-size: 2rem;
  }

  .steps-header-line {
    width: 80px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .step-number-mono {
    font-size: 1rem;
  }

  .step-text-title {
    font-size: 1.375rem;
  }

  .step-text-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .how-it-works-text-only {
    padding: 3rem 1rem 4rem;
  }

  .steps-title {
    font-size: 1.75rem;
  }

  .step-text-title {
    font-size: 1.25rem;
  }
}

/* Reduced motion for Text Only variant */
@media (prefers-reduced-motion: reduce) {
  .steps-label,
  .steps-title,
  .steps-header-line,
  .step-text-item,
  .step-divider-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   CATALOG SECTION
   ======================================== */
.catalog-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   CATEGORY TABS
   ======================================== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 auto 3rem;
  padding: 0.5rem;
  background: rgba(24, 24, 50, 0.5);
  border-radius: 50px;
  width: fit-content;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 81, 255, 0.1);
}

.category-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body), 'Exo', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab:hover {
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(31, 81, 255, 0.3);
}

/* Location filter tabs */
.location-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.location-tab .tab-icon {
  width: 14px;
  height: 14px;
}

.location-tab[data-location="goteborg"].active {
  background: linear-gradient(135deg, #1f51ff, #1a44d9);
  color: white;
}

.location-tab[data-location="kungalv"].active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.location-filter-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.25rem;
  align-self: center;
}

@media (max-width: 768px) {
  .category-tabs {
    border-radius: 0.75rem;
    padding: 0.35rem;
    gap: 0.25rem;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .category-tab {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2rem;
  }
  
  .location-tab {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .location-tab .tab-icon {
    width: 12px;
    height: 12px;
  }
  
  .location-filter-divider {
    height: 20px;
    margin: 0 0.15rem;
  }
}

@media (max-width: 600px) {
  .category-tabs {
    border-radius: 0.5rem;
    padding: 0.3rem;
    gap: 0.25rem;
    background: rgba(24, 24, 50, 0.6);
  }

  .category-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 1.5rem;
    min-height: 36px;
  }

  .category-tab.active {
    box-shadow: 0 2px 8px rgba(31, 81, 255, 0.3);
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 4rem 2rem 1.5rem;
  background: linear-gradient(to bottom, rgba(15, 15, 35, 0.95), rgba(10, 10, 30, 1));
  border-top: 1px solid rgba(31, 81, 255, 0.2);
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-heading), 'Encode Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Footer About Section */
.footer-about p {
  margin-bottom: 1.5rem;
}

/* Google Review Badge */
.google-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-icon svg {
  display: block;
}

.google-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.google-label {
  font-size: 0.75rem;
  color: #5f6368;
  font-weight: 500;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-size: 1rem;
  font-weight: 700;
  color: #202124;
}

.stars {
  display: flex;
  gap: 1px;
}

.stars i.star-filled {
  width: 14px;
  height: 14px;
  color: #fbbc05;
  fill: #fbbc05;
}

.review-count {
  font-size: 0.7rem;
  color: #5f6368;
}

/* Footer Hours Section */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.hours-list .day {
  color: var(--text-secondary);
  min-width: 80px;
}

.hours-list .time {
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer Contact Section */
.contact-locations {
  margin-bottom: 1.25rem;
}

.location-block {
  margin-bottom: 1rem;
}

.location-block strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.location-block p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.opening-hours-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.opening-hours-link:hover {
  color: var(--primary-accent);
}

.opening-hours-link u {
  text-decoration: underline;
}

.contact-phone {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-email {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: underline;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-email:hover {
  color: var(--primary-accent);
}

/* Payment Section */
.payment-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.walley-logo {
  margin-bottom: 0.5rem;
}

.walley-text {
  font-family: 'Arial', sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.walley-img {
  height: 32px;
  width: auto;
}

.payment-options {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-icons img {
  height: 36px;
  width: auto;
}

.payment-icon-text {
  background: #fff;
  color: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Footer Divider */
.footer-divider {
  max-width: 1200px;
  margin: 2rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 81, 255, 0.4), transparent);
}

/* Footer Logo Section */
.footer-logo-section {
  text-align: center;
  padding: 1.5rem 0;
}

.footer-main-logo {
  height: 50px;
  width: auto;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(148, 163, 184, 1);
  font-size: 0.85rem;
  margin: 0;
  opacity: 1 !important;
}

.footer-bottom a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-accent), #60a5fa);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-bottom a:hover {
  color: #4d7aff;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1rem;
    text-align: center;
  }

  .footer-about p {
    font-size: 0.85rem;
    text-align: center;
  }

  .google-review-badge {
    padding: 0.6rem 1rem;
    margin: 0 auto;
    justify-content: center;
  }

  .footer-hours {
    text-align: center;
  }

  .hours-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hours-list li {
    font-size: 0.85rem;
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }

  .footer-contact {
    text-align: center;
  }

  .contact-locations {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .location-block {
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .location-block strong {
    font-size: 0.9rem;
  }

  .location-block p {
    font-size: 0.8rem;
    text-align: center;
  }

  .contact-phone {
    font-size: 0.9rem;
    justify-content: center;
  }

  .contact-email {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    justify-content: center;
  }

  .payment-section {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .walley-text {
    font-size: 1.5rem;
  }

  .payment-options {
    font-size: 0.7rem;
    text-align: center;
  }

  .payment-icons {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .payment-icons img {
    height: 28px;
  }

  .footer-divider {
    margin: 1.5rem auto;
  }

  .footer-main-logo {
    height: 40px;
  }

  .footer-logo-section {
    padding: 1rem 0;
  }

  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0.75rem 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-about p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .google-review-badge {
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .google-icon svg {
    width: 24px;
    height: 24px;
  }

  .google-label {
    font-size: 0.7rem;
  }

  .rating-number {
    font-size: 0.9rem;
  }

  .stars i.star-filled {
    width: 12px;
    height: 12px;
  }

  .review-count {
    font-size: 0.65rem;
  }

  .hours-list li {
    font-size: 0.8rem;
    gap: 1rem;
  }

  .hours-list .day {
    min-width: 70px;
  }

  .location-block strong {
    font-size: 0.85rem;
  }

  .location-block p {
    font-size: 0.75rem;
  }

  .opening-hours-link {
    font-size: 0.8rem;
  }

  .contact-phone {
    font-size: 0.85rem;
  }

  .contact-email {
    font-size: 0.8rem;
  }

  .walley-text {
    font-size: 1.25rem;
  }

  .payment-options {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .payment-icons img {
    height: 24px;
  }

  .payment-icon-text {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .footer-main-logo {
    height: 36px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.8;
  }

  .footer-bottom a {
    display: inline;
  }
}

/* ========================================
   GAME GRID - Bento Layout
   ======================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

/* Featured card - 2x2 */
.game-card.card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.game-card.card-featured .image-container {
  position: absolute;
  inset: 0;
  height: 100%;
}

.game-card.card-featured .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  padding: 2rem;
  z-index: 5;
}

.game-card.card-featured .card-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.game-card.card-featured .card-category {
  font-size: 1.1rem;
}

/* Tall card - 1x2 - bild tar upp större del */
.game-card.card-tall {
  grid-row: span 2;
}

.game-card.card-tall .image-container {
  height: 70%;
  min-height: 320px;
}

.game-card.card-tall .card-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card.card-tall .card-title {
  font-size: 1.25rem;
}

/* Wide card - 2x1 - bild tar upp mer bredd */
.game-card.card-wide {
  grid-column: span 2;
  flex-direction: row;
}

.game-card.card-wide .image-container {
  width: 60%;
  height: 100%;
}

.game-card.card-wide .card-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.game-card.card-wide .card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}


/* Featured badge */
.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  letter-spacing: 0.02em;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Featured glow border */
.game-card.card-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
    linear-gradient(135deg, var(--primary-accent), #60a5fa, var(--primary-accent)) border-box;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Featured card hover - subtilare effekt */
.game-card.card-featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(31, 81, 255, 0.2),
              0 0 40px rgba(31, 81, 255, 0.1);
}

/* Bildzoom på hover borttagen */

/* Featured content animation */
.game-card.card-featured .card-content {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.game-card.card-featured:hover .card-content {
  transform: translateY(-5px);
}

/* ========================================
   GAME CARDS - Grid Style
   ======================================== */
.game-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  min-height: 280px;
}

/* Glödande border - 1.5 sekund smooth fade */
.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--primary-accent);
  box-shadow: 0 0 15px rgba(31, 81, 255, 0.2);
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(31, 81, 255, 0.15),
              0 0 30px rgba(31, 81, 255, 0.08);
}

/* Ingen image zoom på hover */

.game-card.bestseller {
  border: 2px solid var(--primary-accent);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.game-card.bestseller:hover {
  box-shadow: 0 15px 35px var(--primary-glow);
}

.image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
  opacity: 0;
}

.image-container img.loaded {
  opacity: 1;
}

/* Image gradient overlay - Bento style */
.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* Lighter gradient on hover for contrast */
.game-card:hover .image-gradient-overlay {
  opacity: 0.85;
}

.card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title-overlay {
  display: none;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-category {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.duration-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(19, 19, 36, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Location Badge - shows where game is available */
.location-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.location-badge .badge-icon {
  width: 12px;
  height: 12px;
}

.location-goteborg {
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.9), rgba(26, 68, 217, 0.9));
  color: white;
}

.location-kungalv {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  color: white;
}

.location-both {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
  color: white;
}

.badge-custom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 15;
}

@keyframes badgeScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   GAME DETAIL POPUP
   ======================================== */
.game-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 2rem;
  opacity: 0;
}

.popup-container {
  background: var(--surface-color);
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  max-width: var(--popup-max-width);
  width: 100%;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-accent) var(--surface-color);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide scrollbar when content fits */
.popup-container.no-scroll {
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.popup-container.no-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
}

.game-popup.active .popup-container {
  transform: scale(1);
}

.popup-container::-webkit-scrollbar {
  width: 12px;
}

.popup-container::-webkit-scrollbar-track {
  background: var(--surface-color);
}

.popup-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-accent);
  border-radius: 20px;
  border: 3px solid var(--surface-color);
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(31, 81, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.close-button svg,
.close-button i {
  width: 18px;
  height: 18px;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.popup-banner {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
}

.popup-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
}

.popup-banner img.loaded {
  opacity: 1;
}

.popup-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--surface-color) 0%, rgba(30, 41, 59, 0.5) 50%, rgba(30, 41, 59, 0.3) 100%);
  z-index: 2;
}

.banner-content-overlay {
  position: relative;
  z-index: 3;
  padding: 0.75rem 1rem 1rem;
}

.game-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: white;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.game-subtitle {
  display: none;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-style: italic;
}

.game-subtitle.visible {
  display: block;
}

.social-proof-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.social-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.social-stat .stat-icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2;
  flex-shrink: 0;
}

.social-stat .stat-icon-gold {
  stroke: #fbbf24;
  fill: #fbbf24;
}

.social-stat.highlight {
  color: #fbbf24;
}

.game-meta {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(19, 19, 36, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.meta-icon {
  width: 14px;
  height: 14px;
  stroke: rgba(147, 197, 253, 0.9);
  stroke-width: 2;
  fill: none;
}

.popup-content {
  padding: 1rem 1.5rem;
}

.popup-content .section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text-secondary);
  background-clip: unset;
}

.section-icon {
  width: 14px;
  height: 14px;
  fill: var(--primary-accent);
  stroke: var(--primary-accent);
  stroke-width: 2;
  opacity: 0.8;
}

.game-description {
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  max-height: 11em; /* ~4 paragraphs */
  overflow: hidden;
  position: relative;
}

.game-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, transparent, var(--surface-color));
  pointer-events: none;
}

.game-description.expanded {
  max-height: none;
}

.game-description.expanded::after {
  display: none;
}

.game-description p {
  margin-bottom: 0.5rem;
}

/* Description headings (h1, h2, h3) */
.game-description .description-heading,
.game-description h1,
.game-description h2,
.game-description h3 {
  color: var(--text-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.game-description h1 {
  font-size: 1.1rem;
}

.game-description h2 {
  font-size: 1rem;
}

.game-description h3 {
  font-size: 0.95rem;
}

.game-description h1:first-child,
.game-description h2:first-child,
.game-description h3:first-child {
  margin-top: 0;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  margin-bottom: 0.75rem;
}

.video-section .section-title {
  margin-bottom: 0.35rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 50%; /* Slightly shorter than 16:9 to save space */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* ========================================
   SPLIT-VIEW POPUP LAYOUT
   ======================================== */

/* Split view container */
.popup-split-view {
  max-width: 1100px;
  overflow: hidden;
}

.popup-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  height: 100%;
}

/* Left side - Media/Image */
.popup-media-side {
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 1.5rem 0 0 1.5rem;
  height: 100%;
  min-height: 600px;
}

.popup-game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-game-image.loaded {
  opacity: 1;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 60%,
    rgba(10, 10, 26, 0.4) 100%
  );
  pointer-events: none;
}

.popup-media-side .video-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 5;
  border-radius: 1.5rem 0 0 1.5rem;
  overflow: hidden;
}

.popup-media-side .video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  border-radius: 0;
  background: #000;
}

.popup-media-side .video-container iframe,
.popup-media-side .video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  border: none;
  object-fit: cover;
}

/* Right side - Content */
.popup-info-side {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(95vh - 4rem);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Header section */
.popup-header {
  margin-bottom: 1.5rem;
}

.popup-header .game-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.popup-header .game-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Meta boxes - Icon card style */
.game-meta-boxes {
  display: flex;
  gap: 0.75rem;
}

/* Meta box entrance animations */
.game-popup.show .meta-box {
  animation: metaBoxEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.game-popup.show .meta-box:nth-child(1) {
  animation-delay: 0.2s;
}

.game-popup.show .meta-box:nth-child(2) {
  animation-delay: 0.3s;
}

.game-popup.show .meta-box:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes metaBoxEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Meta box icon animation on hover */
.meta-box:hover .meta-box-icon {
  animation: metaIconPulse 0.4s ease;
}

@keyframes metaIconPulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.meta-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(31, 81, 255, 0.2);
  border-radius: 12px;
  flex: 1;
  transition: all 0.3s ease;
}

.meta-box:hover {
  border-color: rgba(31, 81, 255, 0.4);
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  transform: translateY(-2px);
}

.meta-box-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: 10px;
  color: var(--primary-accent);
}

.meta-box-icon svg {
  width: 20px;
  height: 20px;
}

.meta-box-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

/* Body/Description section */
.popup-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.popup-body .game-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 280px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.popup-body .game-description.expanded {
  max-height: 500px;
}

.popup-body .description-toggle {
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
  border: 1px solid rgba(31, 81, 255, 0.3);
  border-radius: 50px;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(31, 81, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.popup-body .description-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.popup-body .description-toggle:hover::before {
  left: 100%;
}

.popup-body .description-toggle:hover {
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.25) 0%, rgba(96, 165, 250, 0.18) 100%);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 81, 255, 0.25),
              0 0 15px rgba(96, 165, 250, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.popup-body .description-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(31, 81, 255, 0.2);
}

.popup-body .description-toggle i,
.popup-body .description-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-body .description-toggle.expanded i,
.popup-body .description-toggle.expanded svg {
  transform: rotate(180deg);
}

/* CTA Section */
.popup-cta-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

/* Hero-style book buttons */
.book-button-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1f51ff 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(31, 81, 255, 0.4),
    0 0 0 0 rgba(31, 81, 255, 0.3);
}

.book-button-hero .btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-button-hero .btn-content i,
.book-button-hero .btn-content svg {
  width: 20px;
  height: 20px;
}

.book-button-hero .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* Pulsing glow effect */
.book-button-hero {
  animation: heroButtonPulse 2.5s ease-in-out infinite;
}

@keyframes heroButtonPulse {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(31, 81, 255, 0.4),
      0 0 0 0 rgba(31, 81, 255, 0.3);
  }
  50% {
    box-shadow:
      0 8px 35px rgba(31, 81, 255, 0.6),
      0 0 30px rgba(31, 81, 255, 0.3),
      0 0 0 4px rgba(31, 81, 255, 0.1);
  }
}

/* Hover states */
.book-button-hero:hover {
  transform: translateY(-3px) scale(1.02);
  animation: none;
  box-shadow:
    0 12px 40px rgba(31, 81, 255, 0.6),
    0 0 50px rgba(31, 81, 255, 0.3);
}

.book-button-hero:hover .btn-arrow {
  transform: translateX(4px);
}

/* Shimmer effect on hover */
.book-button-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.book-button-hero:hover::before {
  left: 100%;
}

/* Back button in CTA section */
.popup-cta-section .back-button {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.popup-cta-section .back-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Close button positioning for split view */
.popup-split-view .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

/* Split-view responsive - Tablet */
@media (max-width: 900px) {
  .popup-split-view {
    max-width: 95vw;
  }

  .popup-split {
    grid-template-columns: 45% 55%;
  }

  .popup-info-side {
    padding: 1.5rem;
  }

  .popup-header .game-title {
    font-size: 1.5rem;
  }
}

/* Split-view responsive - Mobile */
@media (max-width: 768px) {
  /* Fullscreen popup on mobile */
  .game-popup {
    padding: 0;
  }

  .popup-split-view {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .popup-content-wrapper {
    height: 100%;
  }

  .popup-split {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    min-height: 100%;
    height: 100%;
  }

  /* Image section - compact on mobile */
  .popup-media-side {
    border-radius: 0;
    height: 220px;
    min-height: 220px;
  }

  .popup-game-image {
    height: 100%;
    object-position: center top;
  }

  /* Content section - fills remaining space */
  .popup-info-side {
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  /* Header adjustments */
  .popup-header {
    margin-bottom: 1rem;
  }

  .popup-header .game-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .popup-header .game-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* Meta boxes - compact on mobile */
  .game-meta-boxes {
    gap: 0.5rem;
  }

  .meta-box {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    border-radius: 10px;
  }

  .meta-box-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
  }

  .meta-box-icon svg {
    width: 16px;
    height: 16px;
  }

  .meta-box-value {
    font-size: 0.85rem;
  }

  /* Description - scrollable area */
  .popup-body {
    flex: 1;
    margin-bottom: 1rem;
    overflow-y: auto;
    min-height: 0;
  }

  .popup-body .game-description {
    max-height: none;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: visible;
  }

  .popup-body .description-toggle {
    display: none;
  }

  /* CTA Section - fixed at bottom feel */
  .popup-cta-section {
    gap: 0.6rem;
    padding-top: 1rem;
    margin-top: auto;
    flex-shrink: 0;
  }

  /* Touch-friendly button */
  .book-button-hero {
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 12px;
  }

  .book-button-hero .btn-content i,
  .book-button-hero .btn-content svg {
    width: 20px;
    height: 20px;
  }

  .book-button-hero .btn-arrow {
    width: 20px;
    height: 20px;
  }

  /* Back button touch-friendly */
  .popup-cta-section .back-button {
    min-height: 44px;
    font-size: 0.85rem;
  }

  /* Close button - more visible on mobile */
  .popup-split-view .close-button {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Extra small screens (iPhone SE, small Android) */
@media (max-width: 380px) {
  .popup-split {
    grid-template-rows: 150px 1fr;
  }

  .popup-media-side {
    height: 150px;
    min-height: 150px;
  }

  .popup-info-side {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .popup-header .game-title {
    font-size: 1.25rem;
  }

  /* Meta boxes - even more compact */
  .game-meta-boxes {
    gap: 0.35rem;
  }

  .meta-box {
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
  }

  .meta-box-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .meta-box-icon svg {
    width: 14px;
    height: 14px;
  }

  .meta-box-value {
    font-size: 0.75rem;
  }

  .popup-body .game-description {
    font-size: 0.85rem;
  }

  .book-button-hero {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .popup-split {
    grid-template-columns: 40% 60%;
    grid-template-rows: 1fr;
  }

  .popup-media-side {
    height: 100%;
    min-height: auto;
    border-radius: 0;
  }

  .popup-info-side {
    max-height: 100dvh;
    padding: 1rem 1.25rem;
  }

  .popup-header .game-title {
    font-size: 1.25rem;
  }

  /* Meta boxes in landscape - horizontal compact */
  .game-meta-boxes {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .meta-box {
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
  }

  .meta-box-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .meta-box-icon svg {
    width: 14px;
    height: 14px;
  }

  .meta-box-value {
    font-size: 0.75rem;
  }

  .popup-body {
    margin-bottom: 0.75rem;
  }

  .popup-body .game-description {
    font-size: 0.85rem;
    max-height: 80px;
    overflow: hidden;
  }

  .popup-cta-section {
    padding-top: 0.75rem;
  }

  .book-button-hero {
    padding: 0.9rem 1rem;
    min-height: 48px;
  }
}

/* ========================================
   END SPLIT-VIEW STYLES
   ======================================== */

/* Legacy CTA Footer (kept for compatibility) */
.popup-cta-footer {
  position: relative;
  padding: 1.25rem 1.5rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-cta-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 81, 255, 0.4), transparent);
}

/* Primary CTA - Boka denna upplevelse */
.book-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #1f51ff 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(31, 81, 255, 0.4),
              0 0 0 0 rgba(31, 81, 255, 0.5);
  position: relative;
  overflow: hidden;
}

/* Primary button with pulsing glow */
.book-button-primary {
  padding: 1.35rem 2rem;
  font-size: 1.15rem;
  border-radius: 14px;
  animation: bookButtonGlow 2.5s ease-in-out infinite;
}

@keyframes bookButtonGlow {
  0%, 100% {
    box-shadow:
      0 6px 25px rgba(31, 81, 255, 0.5),
      0 0 0 0 rgba(31, 81, 255, 0.4);
  }
  50% {
    box-shadow:
      0 10px 40px rgba(31, 81, 255, 0.7),
      0 0 35px rgba(31, 81, 255, 0.4),
      0 0 0 6px rgba(31, 81, 255, 0.1);
  }
}

.book-button-primary .btn-arrow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-button-primary:hover .btn-arrow {
  animation: arrowPulse 0.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.book-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.book-button:hover::before {
  left: 100%;
}

.book-button:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 45px rgba(31, 81, 255, 0.6),
              0 0 60px rgba(31, 81, 255, 0.3);
  animation: none;
}

.book-button i,
.book-button svg {
  width: 22px !important;
  height: 22px !important;
}

/* Compact back button in CTA footer */
.popup-cta-footer .back-button {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.popup-cta-footer .back-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.popup-footer {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Secondary - Tillbaka till spelkatalog */
.back-button {
  width: 100%;
  padding: 0.65rem 1.25rem;
  min-height: 40px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

/* ========================================
   RESPONSIVE - Bento Grid
   ======================================== */
@media (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    max-width: 1000px;
  }

  .game-card.card-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .game-card.card-wide {
    grid-column: span 2;
  }

  .game-card.card-tall {
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    max-width: 700px;
    gap: 1rem;
  }

  /* Behåll bento på tablet! */
  .game-card.card-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .game-card.card-featured .card-title {
    font-size: 1.5rem;
  }

  .game-card.card-wide {
    grid-column: span 2;
    flex-direction: column;
  }

  .game-card.card-wide .image-container {
    width: 100%;
    height: 140px;
  }

  .game-card.card-wide .card-content {
    width: 100%;
  }

  /* BEHÅLL tall på 2 rows för bento-effekt! */
  .game-card.card-tall {
    grid-row: span 2;
  }

  .game-card.card-tall .image-container {
    height: 65%;
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  /* Behåll bento på mobil med 2 kolumner */
  .game-card.card-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .game-card.card-wide {
    grid-column: span 2;
    flex-direction: row;
  }

  .game-card.card-wide .image-container {
    width: 50%;
    height: 100%;
  }

  .game-card.card-wide .card-content {
    width: 50%;
    padding: 1rem;
  }

  .game-card.card-tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  /* Inaktivera image zoom på mobil för prestanda */
  .game-card:hover .image-container img {
    transform: none;
  }

  .game-card:hover {
    transform: translateY(-4px);
  }

  .game-card {
    min-height: auto;
  }

  .game-card.card-featured .image-container {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .game-card.card-featured .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 1rem;
  }

  .game-card.card-featured .card-title {
    font-size: 1.25rem;
  }

  .game-card.card-tall .image-container {
    height: 60%;
    min-height: auto;
  }

  .featured-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .game-card.card-featured:hover {
    transform: translateY(-6px);
  }
}

/* Mycket små skärmar - 1 kolumn */
@media (max-width: 400px) {
  .game-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .game-card.card-featured,
  .game-card.card-wide,
  .game-card.card-tall {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
  }

  .game-card {
    min-height: 300px;
  }

  .game-card.card-wide .image-container,
  .game-card.card-tall .image-container {
    width: 100%;
    height: 180px;
  }

  .game-card.card-wide .card-content {
    width: 100%;
  }

  .game-card.card-featured .image-container {
    position: relative;
    height: 180px;
  }

  .game-card.card-featured .card-content {
    position: relative;
    background: var(--glass-bg);
    padding: 1rem;
  }
}

/* Touch devices - minska hover transforms */
@media (hover: none) and (pointer: coarse) {
  .game-card:hover,
  .game-card.card-featured:hover {
    transform: none;
  }

  .game-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

@media (max-width: 768px) {
  .game-popup {
    padding: 0;
  }

  .popup-container {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .popup-banner {
    height: 250px;
  }

  .game-title {
    font-size: 2rem;
  }

  .popup-content {
    padding: 1.5rem;
  }

  .sort-indicator {
    padding: 0 0.25rem;
  }

  .sort-left {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
  }

  .sort-right {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }

  /* Progressive image sizing */
  .image-container {
    height: 140px;
  }

  .game-grid {
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .game-card {
    min-height: auto;
    border-radius: 0.5rem;
  }

  .image-container {
    height: 115px;
  }

  .card-content {
    padding: 0.5rem;
  }

  .card-content h3 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .duration-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.35rem;
    margin-bottom: 0.2rem;
  }

  .card-content .category-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.35rem;
  }

  /* Hide bestseller badge on mobile to save space */
  .game-card .bestseller-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .sort-line,
  .sort-right {
    display: none;
  }

  /* ========================================
     POPUP MOBILE OPTIMIZATIONS - COMPACT
     ======================================== */
  .game-popup {
    padding: 0;
    align-items: stretch;
  }

  .popup-container {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  /* Compact banner - smaller height */
  .popup-banner {
    height: 160px;
    min-height: 160px;
  }

  .popup-banner::after {
    background: linear-gradient(to top, var(--surface-color) 0%, rgba(30, 41, 59, 0.6) 60%, transparent 100%);
  }

  .banner-content-overlay {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  .game-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    line-height: 1.1;
  }

  /* Hide subtitle on mobile */
  .game-subtitle {
    display: none !important;
  }

  /* Compact social proof - single line */
  .social-proof-bar {
    gap: 0.75rem;
    margin-bottom: 0.35rem;
  }

  .social-stat {
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .social-stat .stat-icon {
    width: 0.75rem;
    height: 0.75rem;
  }

  /* Compact meta - smaller pills */
  .game-meta {
    gap: 0.35rem;
    margin-top: 0.5rem;
  }

  .meta-item {
    padding: 0.3rem 0.5rem;
    font-size: 0.6rem;
    border-radius: 6px;
    gap: 0.2rem;
  }

  .meta-icon {
    width: 11px;
    height: 11px;
  }

  .close-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    top: 0.4rem;
    right: 0.4rem;
    border-radius: 8px;
  }

  .close-button svg {
    width: 16px;
    height: 16px;
  }

  /* Compact content area */
  .popup-content {
    padding: 0.75rem;
  }

  .popup-content .section-title {
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }

  /* Compact description - limited lines */
  .game-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    max-height: 4.5em; /* ~3 lines */
    overflow: hidden;
    position: relative;
  }

  .game-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, transparent, var(--surface-color));
    pointer-events: none;
  }

  /* Allow expansion when focused */
  .game-description.expanded {
    max-height: none;
  }

  .game-description.expanded::after {
    display: none;
  }

  .game-description p {
    margin-bottom: 0.5rem;
  }

  /* Hide headings in description on mobile for compactness */
  .game-description h1,
  .game-description h2,
  .game-description h3 {
    display: none;
  }

  /* Compact video section */
  .video-section {
    margin-bottom: 0.5rem;
  }

  .video-container {
    width: 100%;
    padding-bottom: 50%;
    border-radius: 0.4rem;
  }

  /* Compact buttons */
  .book-button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    gap: 0.4rem;
  }

  .book-button i,
  .book-button svg {
    width: 16px !important;
    height: 16px !important;
  }

  .popup-footer {
    padding: 0 0.75rem 0.75rem 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .back-button {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    min-height: 40px;
    gap: 0.4rem;
  }

  .back-button svg {
    width: 16px;
    height: 16px;
  }

  /* Hide scrollbar on mobile */
  .popup-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .popup-container::-webkit-scrollbar {
    display: none;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .popup-banner {
    height: 140px;
    min-height: 140px;
  }

  .game-title {
    font-size: 1.1rem;
  }

  .meta-item {
    padding: 0.25rem 0.4rem;
    font-size: 0.55rem;
  }

  .meta-icon {
    width: 10px;
    height: 10px;
  }

  .game-description {
    font-size: 0.8rem;
    max-height: 3.75em; /* ~2.5 lines */
  }

  .book-button,
  .back-button {
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    min-height: 38px;
  }

  .popup-content {
    padding: 0.6rem;
  }

  .popup-footer {
    padding: 0 0.6rem 0.6rem 0.6rem;
  }

  /* Footer för mycket små skärmar */
  .footer {
    padding: 1.25rem 0.5rem 0.75rem;
  }

  .footer-content {
    gap: 1.25rem;
  }

  .footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-about p {
    font-size: 0.75rem;
  }

  .google-review-badge {
    padding: 0.4rem 0.6rem;
  }

  .google-icon svg {
    width: 20px;
    height: 20px;
  }

  .rating-number {
    font-size: 0.85rem;
  }

  .stars i.star-filled {
    width: 10px;
    height: 10px;
  }

  .hours-list li {
    font-size: 0.75rem;
    gap: 0.75rem;
  }

  .hours-list .day {
    min-width: 60px;
  }

  .location-block strong {
    font-size: 0.8rem;
  }

  .location-block p {
    font-size: 0.7rem;
  }

  .contact-phone,
  .contact-email,
  .opening-hours-link {
    font-size: 0.75rem;
  }

  .walley-text {
    font-size: 1.1rem;
  }

  .payment-options {
    font-size: 0.6rem;
  }

  .payment-icons img {
    height: 20px;
  }

  .footer-main-logo {
    height: 32px;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }
}

/* ========================================
   DESCRIPTION READ MORE TOGGLE
   ======================================== */
.description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.12), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(31, 81, 255, 0.3);
  border-radius: 2rem;
  color: var(--primary-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(31, 81, 255, 0.1);
}

.description-toggle:hover {
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.2), rgba(96, 165, 250, 0.15));
  border-color: rgba(31, 81, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 81, 255, 0.2);
}

.description-toggle:active {
  transform: translateY(0);
}

.description-toggle i,
.description-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.description-toggle.expanded i,
.description-toggle.expanded svg {
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .description-toggle {
    font-size: 0.72rem;
    padding: 0.5rem 0.9rem;
    gap: 0.35rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .description-toggle i,
  .description-toggle svg {
    width: 12px;
    height: 12px;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-accent);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(31, 81, 255, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: backToTopBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes backToTopBounce {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.back-to-top:hover i,
.back-to-top:hover svg {
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(31, 81, 255, 0.6);
  background: #3366ff;
}

.back-to-top:focus {
  outline: 3px solid rgba(31, 81, 255, 0.5);
  outline-offset: 3px;
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top i,
.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
    width: 44px;
    height: 44px;
  }

  .back-to-top i,
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
  }
}

/* Landscape mode - position closer to edge */
@media (max-width: 768px) and (orientation: landscape) {
  .back-to-top {
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
  }
}

/* ========================================
   CATEGORY TABS - SWIPE & WRAPPER
   ======================================== */
.category-tabs-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  max-width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.swipe-hint {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.7;
  animation: swipeHintPulse 2s ease-in-out infinite;
}

.swipe-hint i,
.swipe-hint svg {
  width: 16px;
  height: 16px;
}

@keyframes swipeHintPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(5px); }
}

@media (max-width: 768px) {
  .category-tabs-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .category-tabs {
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  .swipe-hint {
    display: flex;
  }

  .swipe-hint.hidden {
    display: none;
  }
}

/* ========================================
   IMPROVED CARD HOVER EFFECTS
   ======================================== */
/* Hover effekter hanteras i GAME CARDS - Grid Style sektionen */

/* ========================================
   ACCESSIBILITY - FOCUS INDICATORS
   ======================================== */

/* Focus visible for keyboard navigation */
.category-tab:focus-visible,
.game-card:focus-visible,
.hero-btn:focus-visible,
.step-card:focus-visible,
.close-button:focus-visible,
.book-button:focus-visible,
.back-button:focus-visible {
  outline: 3px solid var(--primary-accent);
  outline-offset: 3px;
}

/* Remove default outline for mouse users */
.category-tab:focus:not(:focus-visible),
.game-card:focus:not(:focus-visible),
.hero-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Make game cards focusable */
.game-card {
  cursor: pointer;
}

.game-card:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 12px 35px rgba(31, 81, 255, 0.4),
    0 0 0 3px var(--primary-accent);
}

/* Category tab improvements */
.category-tab {
  position: relative;
  overflow: hidden;
}

/* Animerad linje borttagen */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .game-card {
    border: 2px solid var(--text-primary);
  }

  .category-tab.active {
    border: 2px solid white;
  }

  .back-to-top {
    border: 2px solid white;
  }
}

/* Screen reader announcements */
.sr-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   ADVANCED ANIMATIONS & EFFECTS
   Parallax, floating, pulse, glow effects
   ======================================== */

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Floating animation - gentle up/down */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Floating with rotation */
@keyframes floatRotate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

/* Pulse glow effect */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(31, 81, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(31, 81, 255, 0.6), 0 0 60px rgba(31, 81, 255, 0.3);
  }
}

/* Shimmer effect for buttons */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Scale pulse */
@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Bounce in animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide up fade */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rotate hover */
@keyframes rotateHover {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Text glow pulse */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(31, 81, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(31, 81, 255, 0.6), 0 0 40px rgba(31, 81, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

/* Border glow animation */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(31, 81, 255, 0.3);
  }
  50% {
    border-color: rgba(31, 81, 255, 0.8);
  }
}

/* ========================================
   PARALLAX EFFECTS
   ======================================== */

/* Hero parallax container */
.hero-section {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Parallax background layer - slower movement */
.hero-video-container {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hero content parallax - faster movement */
.hero-content {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Parallax decorative orbs */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  opacity: 0.4;
}

.parallax-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31, 81, 255, 0.4) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: float 20s ease-in-out infinite;
}

.parallax-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  bottom: 20%;
  right: -5%;
  animation: float 25s ease-in-out infinite reverse;
}

.parallax-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatRotate 30s ease-in-out infinite;
}

/* ========================================
   FLOATING ANIMATIONS
   ======================================== */

/* Floating elements utility class */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation-slow {
  animation: float 8s ease-in-out infinite;
}

.float-animation-fast {
  animation: float 4s ease-in-out infinite;
}

/* Floating icons in step cards */
.step-icon {
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:nth-child(1) .step-icon {
  animation-delay: 0s;
}

.step-card:nth-child(2) .step-icon {
  animation-delay: 0.5s;
}

.step-card:nth-child(3) .step-icon {
  animation-delay: 1s;
}

.step-card:nth-child(4) .step-icon {
  animation-delay: 1.5s;
}

/* Step number floating with pulse */
.step-number {
  animation: scalePulse 3s ease-in-out infinite;
}

.step-card:nth-child(1) .step-number {
  animation-delay: 0s;
}

.step-card:nth-child(2) .step-number {
  animation-delay: 0.3s;
}

.step-card:nth-child(3) .step-number {
  animation-delay: 0.6s;
}

.step-card:nth-child(4) .step-number {
  animation-delay: 0.9s;
}

/* ========================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ======================================== */

/* Game card hover hanteras i GAME CARDS - Grid Style sektionen */

/* Enhanced step card hover - simple scale only */
.step-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: scale(1.05);
}

.step-card:hover .step-icon {
  animation-play-state: paused;
}

/* Hero button enhanced effects */
.hero-btn-primary {
  position: relative;
  overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-btn-primary:hover::after {
  left: 100%;
}

.hero-btn-primary:hover {
  animation: none;
  box-shadow: 0 8px 40px rgba(31, 81, 255, 0.6),
              0 0 60px rgba(31, 81, 255, 0.3);
}

/* Secondary button shimmer */
.hero-btn-secondary {
  position: relative;
  overflow: hidden;
}

.hero-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-btn-secondary:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

/* Category tab - ren utan animerad linje */
.category-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Nav book button glow on hover */
.nav-btn-book {
  position: relative;
}

.nav-btn-book:hover {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

/* Back to top button enhanced */
.back-to-top {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(31, 81, 255, 0.5),
              0 0 40px rgba(31, 81, 255, 0.3);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* ========================================
   GLOW EFFECTS
   ======================================== */

/* Hero title - glow removed */

/* Section title - hover glow removed */

/* Footer logo glow */
.footer-main-logo {
  transition: filter 0.4s ease, transform 0.4s ease;
}

.footer-main-logo:hover {
  filter: drop-shadow(0 0 20px rgba(31, 81, 255, 0.6));
  transform: scale(1.05);
}

/* Google review badge hover */
.google-review-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-review-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SCROLL-TRIGGERED EFFECTS
   ======================================== */

/* Elements that animate on scroll (enhanced AOS) */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Custom AOS animations */
[data-aos="fade-up-scale"] {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition-property: opacity, transform;
}

[data-aos="fade-up-scale"].aos-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-aos="zoom-in-soft"] {
  opacity: 0;
  transform: scale(0.9);
  transition-property: opacity, transform;
}

[data-aos="zoom-in-soft"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

[data-aos="slide-right-fade"] {
  opacity: 0;
  transform: translateX(-30px);
  transition-property: opacity, transform;
}

[data-aos="slide-right-fade"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   FOOTER ENHANCED ANIMATIONS
   ======================================== */

/* Footer section staggered entrance */
.footer-section {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-section:hover {
  transform: translateY(-5px);
}

/* Footer links hover effects */
.footer-section a {
  position: relative;
  transition: color 0.3s ease;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.footer-section a:hover::after {
  width: 100%;
}

/* Payment icons hover */
.payment-icons img,
.payment-icon-text {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.payment-icons img:hover,
.payment-icon-text:hover {
  transform: translateY(-3px) scale(1.1);
  filter: brightness(1.2);
}

/* Walley logo animation */
.walley-logo {
  transition: transform 0.3s ease;
}

.walley-logo:hover {
  transform: scale(1.05);
}

/* ========================================
   MOBILE-FRIENDLY ANIMATIONS
   Reduced/disabled for better performance
   ======================================== */

@media (max-width: 768px) {
  /* Reduce floating animations on mobile */
  .step-icon {
    animation: float 6s ease-in-out infinite;
  }

  .step-number {
    animation: none;
  }

  /* Simpler hover effects */
  .game-card:hover {
    transform: translateY(-6px);
  }

  .step-card:hover {
    transform: scale(1.03);
  }

  .step-card:hover .step-icon {
    animation-play-state: running;
  }

  /* Disable parallax orbs on mobile */
  .parallax-orb {
    display: none;
  }

  /* Simpler button effects */
  .hero-btn-primary {
    animation: none;
  }

  .hero-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(31, 81, 255, 0.4);
  }

  /* Disable category tab ripple */
  .category-tab::before {
    display: none;
  }

  .category-tab.active {
    animation: none;
  }

  /* Footer simpler effects */
  .footer-section:hover {
    transform: none;
  }

  .footer-main-logo:hover {
    transform: none;
    filter: none;
  }
}

/* Extra small screens - minimal animations */
@media (max-width: 480px) {
  .step-icon {
    animation: none;
  }

  .game-card:hover {
    transform: translateY(-4px);
  }

  .hero-btn-primary::after,
  .hero-btn-secondary::before {
    display: none;
  }
}

/* ========================================
   REDUCED MOTION PREFERENCE
   Respect user accessibility settings
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .float-animation,
  .float-animation-slow,
  .float-animation-fast,
  .step-icon,
  .step-number,
  .hero-title,
  .hero-btn-primary,
  .category-tab.active,
  .parallax-orb-1,
  .parallax-orb-2,
  .parallax-orb-3 {
    animation: none !important;
  }

  .hero-btn-primary::after,
  .hero-btn-secondary::before,
  .category-tab::before {
    display: none !important;
  }

  .game-card,
  .step-card,
  .hero-btn,
  .category-tab,
  .back-to-top,
  .footer-section,
  .footer-main-logo {
    transition: none !important;
  }

  .game-card:hover,
  .step-card:hover {
    transform: none !important;
  }
}

/* ========================================
   ADVANCED GAME CARD ANIMATIONS
   Enhanced visual effects for game cards
   ======================================== */

/* Game card base enhancements for 3D */
.game-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Disable glare layer - använder border-animation istället */
.game-card .card-glare {
  display: none !important;
}

/* Enhanced image container for parallax */
.game-card .image-container {
  transform: translateZ(0);
  will-change: transform;
}

/* 3D depth for card content */
.game-card .card-content {
  transform: translateZ(10px);
  position: relative;
  z-index: 5;
}

/* Enhanced bestseller badge with depth */
.game-card .bestseller-badge {
  transform: translateZ(25px);
  position: relative;
  z-index: 15;
}

/* Category badge 3D effect */
.game-card .category-badge {
  transform: translateZ(20px);
  position: relative;
  z-index: 12;
}

/* Smooth transitions for card children */
.game-card h3,
.game-card p,
.game-card .game-details,
.game-card .tag {
  transition: transform 0.3s ease-out, opacity 0.3s ease;
}

/* Border glow container */
.game-card .card-border-glow {
  mix-blend-mode: screen;
}

/* 3D hover borttagen - använder enkel smooth translateY */

/* Bestseller card special glow effect */
.game-card.bestseller {
  --glow-color: rgba(31, 81, 255, 0.4);
}

.game-card.bestseller::before {
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0.15) 0%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 100%
  );
}

/* Disable advanced effects on mobile for performance */
@media (max-width: 768px) {
  .game-card {
    transform-style: flat;
    perspective: none;
  }

  .game-card .card-glare,
  .game-card .card-border-glow {
    display: none !important;
  }

  .game-card .card-content,
  .game-card .bestseller-badge,
  .game-card .category-badge {
    transform: none;
  }

  .game-card:hover {
    transform: translateY(-6px);
  }
}

/* Disable for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .game-card .card-glare,
  .game-card .card-border-glow {
    display: none !important;
  }

  .game-card,
  .game-card * {
    transition: none !important;
    animation: none !important;
  }
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton-card {
  background: var(--card-bg, rgba(30, 30, 60, 0.6));
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.skeleton-image {
  width: 100%;
  height: 60%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-title {
  height: 1.2rem;
  width: 70%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 0.8rem;
  width: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.1s;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ========================================
   SKIP TO CONTENT (Accessibility)
   ======================================== */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--primary-color, #1f51ff);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
  box-shadow: 0 4px 20px rgba(31, 81, 255, 0.4);
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========================================
   ACTIVE NAV STATE (Scroll-based)
   ======================================== */
.nav-link.active-section {
  color: var(--primary-color, #1f51ff) !important;
}

.nav-link.active-section::after {
  width: 100% !important;
  opacity: 1 !important;
}

/* ========================================
   FORTUNE 500 LEVEL ENHANCEMENTS
   Premium animations and effects
   ======================================== */

/* ----------------------------------------
   1. ANIMATED GRADIENT BACKGROUND
   Subtle flowing gradient effect
   ---------------------------------------- */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(31, 81, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
  animation: gradientFlow 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gradientFlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.8;
    transform: scale(1.1) rotate(1deg);
  }
  66% {
    opacity: 0.9;
    transform: scale(1.05) rotate(-1deg);
  }
}

/* Mesh gradient overlay for depth */
.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(19, 19, 36, 0) 0%,
      rgba(19, 19, 36, 0.4) 50%,
      rgba(19, 19, 36, 0.95) 100%
    ),
    radial-gradient(ellipse at center top, rgba(31, 81, 255, 0.1) 0%, transparent 60%);
}

/* ----------------------------------------
   2. SCROLL-SNAP FOR CATEGORY TABS
   Native smooth scrolling for tabs
   Note: scrollbar hiding defined in CATEGORY TABS section
   ---------------------------------------- */
.category-tabs {
  scroll-snap-type: x mandatory;
}

.category-tab {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Animated tab indicator borttagen */

/* Card hover effekter hanteras i GAME CARDS - Grid Style sektionen */

/* ----------------------------------------
   5. VIEW TRANSITIONS API
   Smooth page transitions
   ---------------------------------------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.3s ease-out forwards;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease-in forwards;
}

@keyframes fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.98); }
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* Named view transitions for specific elements */
.hero-title {
  view-transition-name: hero-title;
}

.game-card {
  view-transition-name: game-card;
}

/* ----------------------------------------
   7. SCROLL-DRIVEN ANIMATIONS (CSS Native)
   Modern scroll-linked effects
   ---------------------------------------- */
@supports (animation-timeline: view()) {
  .section-title {
    animation: slideUp 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  .game-card {
    animation: cardReveal 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }

  .step-card {
    animation: stepReveal 0.6s ease-out both;
    animation-timeline: view();
    animation-range: entry 20% entry 70%;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(60px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes cardReveal {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes stepReveal {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ----------------------------------------
   8. TOAST NOTIFICATION SYSTEM
   Slide-in notifications
   ---------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(24, 24, 50, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(31, 81, 255, 0.1);
  animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform: translateX(120%);
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-success {
  border-left: 3px solid #10b981;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-info {
  border-left: 3px solid var(--primary-accent);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-close {
  margin-left: auto;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ----------------------------------------
   9. ENHANCED FLOATING ORBS
   More dynamic animations
   ---------------------------------------- */
.parallax-orb {
  animation: orbFloat 8s ease-in-out infinite;
  filter: blur(60px);
}

.parallax-orb-1 {
  animation-delay: 0s;
  animation-duration: 10s;
}

.parallax-orb-2 {
  animation-delay: -3s;
  animation-duration: 12s;
}

.parallax-orb-3 {
  animation-delay: -6s;
  animation-duration: 14s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: 0.5;
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
    opacity: 0.7;
  }
}

/* Glow pulse on orbs */
.parallax-orb::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: inherit;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbPulse 4s ease-in-out infinite alternate;
}

@keyframes orbPulse {
  from {
    transform: scale(0.8);
    opacity: 0.3;
  }
  to {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* ----------------------------------------
   10. SMOOTH REVEAL ANIMATIONS
   Staggered content reveals
   ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-up"].revealed {
  transform: translateY(0);
}

[data-reveal="fade-down"] {
  transform: translateY(-30px);
}

[data-reveal="fade-left"] {
  transform: translateX(30px);
}

[data-reveal="fade-right"] {
  transform: translateX(-30px);
}

[data-reveal="zoom-in"] {
  transform: scale(0.9);
}

[data-reveal="zoom-in"].revealed {
  transform: scale(1);
}

[data-reveal="blur-in"] {
  filter: blur(10px);
}

[data-reveal="blur-in"].revealed {
  filter: blur(0);
}

/* Stagger delays */
[data-stagger-children] > *:nth-child(1) { transition-delay: 0s; }
[data-stagger-children] > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger-children] > *:nth-child(3) { transition-delay: 0.2s; }
[data-stagger-children] > *:nth-child(4) { transition-delay: 0.3s; }
[data-stagger-children] > *:nth-child(5) { transition-delay: 0.4s; }
[data-stagger-children] > *:nth-child(6) { transition-delay: 0.5s; }

/* ----------------------------------------
   11. MAGNETIC BUTTON EFFECT
   Buttons that follow cursor slightly
   ---------------------------------------- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------
   12. TEXT GRADIENT ANIMATION
   Animated gradient text
   ---------------------------------------- */
.gradient-text {
  background: linear-gradient(
    90deg,
    #fff 0%,
    #60a5fa 25%,
    var(--primary-accent) 50%,
    #a78bfa 75%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 5s linear infinite;
}

@keyframes textGradient {
  to {
    background-position: 200% center;
  }
}

/* ----------------------------------------
   13. GLASSMORPHISM ENHANCEMENT
   Premium glass effects
   ---------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* ----------------------------------------
   14. BENTO GRID LAYOUT
   Modern asymmetric grid
   ---------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(200px, auto));
  gap: 1.5rem;
}

.bento-item {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 81, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
  }
}

/* ----------------------------------------
   15. NOISE TEXTURE OVERLAY
   Subtle grain for premium feel
   ---------------------------------------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ----------------------------------------
   16. BUTTON LOADING STATE
   Spinner inside button
   ---------------------------------------- */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------
   17. RIPPLE EFFECT ENHANCEMENT
   More prominent click feedback
   ---------------------------------------- */
[data-ripple] {
  position: relative;
  overflow: hidden;
}

[data-ripple] .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ----------------------------------------
   18. PROGRESS BAR ANIMATION
   Smooth progress indicator
   ---------------------------------------- */
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-accent), #60a5fa);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* ----------------------------------------
   19. FOCUS RING ENHANCEMENT
   Beautiful focus indicators
   ---------------------------------------- */
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg-color),
    0 0 0 4px var(--primary-accent),
    0 0 20px rgba(31, 81, 255, 0.3);
}

/* ----------------------------------------
   20. CONTAINER QUERIES
   Component-level responsiveness
   ---------------------------------------- */
@container (min-width: 400px) {
  .card-container {
    padding: 2rem;
  }
}

@container (max-width: 300px) {
  .card-title {
    font-size: 0.9rem;
  }
}

/* ----------------------------------------
   21. REDUCED MOTION ENHANCEMENTS
   Respect user preferences fully
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .parallax-orb::after {
    display: none;
  }
}

/* ----------------------------------------
   22. LQIP - LOW QUALITY IMAGE PLACEHOLDER
   Blur-up progressive image loading
   ---------------------------------------- */
.lqip-container {
  position: relative;
  overflow: hidden;
  background: var(--surface-color);
}

.lqip-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.5s ease-out;
  z-index: 1;
}

.lqip-full {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  z-index: 2;
}

.lqip-full.loaded {
  opacity: 1;
}

.lqip-full.loaded + .lqip-placeholder,
.lqip-container.loaded .lqip-placeholder {
  opacity: 0;
  pointer-events: none;
}

/* Shimmer loading for LQIP */
.lqip-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: lqipShimmer 1.5s infinite;
  z-index: 3;
}

.lqip-container.loaded::before {
  display: none;
}

@keyframes lqipShimmer {
  to { left: 100%; }
}

/* ----------------------------------------
   23. FLOATING INPUT LABELS
   Animated form labels
   ---------------------------------------- */
.floating-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-input {
  width: 100%;
  padding: 1.25rem 1rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.3s ease;
  min-height: 48px;
}

/* Prevent iOS zoom on input focus - must be 16px */
@media (max-width: 768px) {
  .floating-input,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.floating-input::placeholder {
  color: transparent;
}

.floating-input:focus {
  border-color: var(--primary-accent);
  background: rgba(31, 81, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(31, 81, 255, 0.1);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.4rem;
  font-size: 0.7rem;
  color: var(--primary-accent);
  transform: translateY(0);
}

/* Validation states */
.floating-input.valid {
  border-color: #10b981;
}

.floating-input.valid ~ .floating-label {
  color: #10b981;
}

.floating-input.invalid {
  border-color: #ef4444;
  animation: inputShake 0.5s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Error message */
.input-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ef4444;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.floating-input.invalid ~ .input-error {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   24. RESPONSIVE IMAGE OPTIMIZATION
   WebP with fallback
   ---------------------------------------- */
.optimized-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aspect ratio containers */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-card { aspect-ratio: 16 / 10; }
.aspect-portrait { aspect-ratio: 3 / 4; }

/* Lazy loading background */
img[loading="lazy"] {
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
}

/* ----------------------------------------
   25. SUCCESS/ERROR ANIMATION STATES
   ---------------------------------------- */
.success-state {
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.error-state {
  animation: errorShake 0.5s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success checkmark */
.success-checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkmarkAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-checkmark svg {
  width: 30px;
  height: 30px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmarkDraw 0.5s ease 0.3s forwards;
}

@keyframes checkmarkAppear {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes checkmarkDraw {
  to { stroke-dashoffset: 0; }
}

/* ========================================
   APPLE / CLICKUP / FRAMER LEVEL EFFECTS
   Premium Fortune 500 features
   ======================================== */

/* ----------------------------------------
   26. MARQUEE - Infinite scrolling logos
   Like Apple, ClickUp, Stripe
   ---------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  flex-shrink: 0;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-reverse .marquee-content {
  animation-direction: reverse;
}

.marquee-fast .marquee-content {
  animation-duration: 15s;
}

.marquee-slow .marquee-content {
  animation-duration: 45s;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2rem)); }
}

.marquee-item {
  flex-shrink: 0;
  padding: 1rem 2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.marquee-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Vertical marquee */
.marquee-vertical {
  flex-direction: column;
  height: 400px;
}

.marquee-vertical .marquee-content {
  flex-direction: column;
  animation: marqueeScrollVertical 20s linear infinite;
}

@keyframes marqueeScrollVertical {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% - 2rem)); }
}

/* ----------------------------------------
   27. TEXT TYPING ANIMATION
   Like Framer, Linear
   ---------------------------------------- */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--primary-accent);
  animation:
    typing 3s steps(30) forwards,
    blinkCursor 0.75s step-end infinite;
}

.typing-text.no-cursor {
  border-right: none;
  animation: typing 3s steps(30) forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-accent); }
}

/* Multi-line typing with delays */
.typing-container .typing-text:nth-child(1) { animation-delay: 0s; }
.typing-container .typing-text:nth-child(2) { animation-delay: 3s; }
.typing-container .typing-text:nth-child(3) { animation-delay: 6s; }

/* Text scramble effect */
.text-scramble {
  font-family: monospace;
}

/* ----------------------------------------
   28. ANIMATED COUNTERS
   Like ClickUp stats sections
   ---------------------------------------- */
.counter-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.counter-item {
  text-align: center;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.counter-value::after {
  content: attr(data-suffix);
  -webkit-text-fill-color: var(--primary-accent);
}

.counter-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Counter animation */
.counter-animate {
  animation: counterPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes counterPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ----------------------------------------
   29. HORIZONTAL SCROLL SECTION
   Like Apple product showcases
   ---------------------------------------- */
.horizontal-scroll-section {
  position: relative;
  height: 300vh; /* Adjust based on content */
}

.horizontal-scroll-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.horizontal-scroll-track {
  display: flex;
  gap: 2rem;
  padding: 0 10vw;
  transition: transform 0.1s linear;
  will-change: transform;
}

.horizontal-scroll-item {
  flex-shrink: 0;
  width: 80vw;
  max-width: 600px;
}

/* ----------------------------------------
   30. STICKY CTA BUTTON
   Appears after scrolling
   ---------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(31, 81, 255, 0.4),
    0 0 40px rgba(31, 81, 255, 0.2);
  transition: all 0.3s ease;
}

.sticky-cta-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 30px rgba(31, 81, 255, 0.5),
    0 0 60px rgba(31, 81, 255, 0.3);
}

/* Mobile: full width */
@media (max-width: 640px) {
  .sticky-cta {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
  }

  .sticky-cta.visible {
    transform: translateX(0) translateY(0);
  }

  .sticky-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------
   31. TESTIMONIAL CAROUSEL
   Like ClickUp, Notion
   ---------------------------------------- */
.testimonial-section {
  padding: 5rem 2rem;
  overflow: hidden;
}

.testimonial-carousel {
  display: flex;
  gap: 2rem;
  animation: testimonialScroll 40s linear infinite;
}

.testimonial-carousel:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex-shrink: 0;
  width: 350px;
  padding: 2rem;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

@keyframes testimonialScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------------------
   32. ACCORDION / FAQ ANIMATIONS
   Like ClickUp, Notion
   ---------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(31, 81, 255, 0.2);
}

.accordion-item.active {
  border-color: rgba(31, 81, 255, 0.3);
  box-shadow: 0 4px 20px rgba(31, 81, 255, 0.1);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--primary-accent);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------
   33. MORPHING BLOB SHAPES
   Like Framer, Stripe
   ---------------------------------------- */
.blob-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobMorph 15s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.5), rgba(139, 92, 246, 0.3));
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(31, 81, 255, 0.3));
  bottom: -15%;
  right: -5%;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(244, 63, 94, 0.2));
  top: 40%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes blobMorph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(30px, -50px) rotate(90deg) scale(1.1);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
    transform: translate(-20px, 20px) rotate(180deg) scale(0.95);
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    transform: translate(20px, 30px) rotate(270deg) scale(1.05);
  }
}

/* ----------------------------------------
   34. PARALLAX TEXT LAYERS
   Like Apple product pages
   ---------------------------------------- */
.parallax-text-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-text-bg {
  position: absolute;
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.parallax-text-fg {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ----------------------------------------
   35. VIDEO PREVIEW ON HOVER
   Like Framer templates
   ---------------------------------------- */
.video-preview-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-preview-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.video-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-preview-container:hover .video-preview-poster {
  opacity: 0;
}

.video-preview-container:hover .video-preview-video {
  opacity: 1;
}

/* Play indicator */
.video-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-preview-container:hover .video-preview-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ----------------------------------------
   36. SPLIT TEXT REVEAL
   Letter-by-letter animation
   ---------------------------------------- */
.split-text {
  display: inline-block;
  overflow: hidden;
}

.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.5s ease forwards;
}

.split-text .char:nth-child(1) { animation-delay: 0.02s; }
.split-text .char:nth-child(2) { animation-delay: 0.04s; }
.split-text .char:nth-child(3) { animation-delay: 0.06s; }
.split-text .char:nth-child(4) { animation-delay: 0.08s; }
.split-text .char:nth-child(5) { animation-delay: 0.10s; }
.split-text .char:nth-child(6) { animation-delay: 0.12s; }
.split-text .char:nth-child(7) { animation-delay: 0.14s; }
.split-text .char:nth-child(8) { animation-delay: 0.16s; }
.split-text .char:nth-child(9) { animation-delay: 0.18s; }
.split-text .char:nth-child(10) { animation-delay: 0.20s; }
.split-text .char:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Word-by-word reveal */
.split-words .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.3em;
}

.split-words .word-inner {
  display: inline-block;
  transform: translateY(100%);
  animation: wordReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes wordReveal {
  to { transform: translateY(0); }
}

/* ----------------------------------------
   37. GLOWING BORDER ANIMATION
   Like Linear, Vercel
   ---------------------------------------- */
.glow-border {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--primary-accent),
    transparent 30%
  );
  border-radius: inherit;
  animation: glowRotate 4s linear infinite;
  z-index: -1;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--surface-color);
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
}

@keyframes glowRotate {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------
   38. NUMBER TICKER
   Slot machine style counting
   ---------------------------------------- */
.number-ticker {
  display: inline-flex;
  overflow: hidden;
  height: 1.2em;
}

.ticker-column {
  display: flex;
  flex-direction: column;
  animation: tickerRoll 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tickerRoll {
  from { transform: translateY(-90%); }
  to { transform: translateY(0); }
}

/* ----------------------------------------
   39. CARD SPOTLIGHT EFFECT
   Like Stripe, Linear cards
   ---------------------------------------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(31, 81, 255, 0.15) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ----------------------------------------
   40. COMPARISON SLIDER
   Before/after effect
   ---------------------------------------- */
.comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
}

.comparison-before,
.comparison-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ADDITIONAL APPLE/FRAMER LEVEL EFFECTS
   ============================================ */

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-image {
  aspect-ratio: 16/9;
  border-radius: 12px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-button {
  height: 44px;
  width: 120px;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Text Scramble Effect */
.text-scramble {
  font-family: 'Courier New', monospace;
  position: relative;
}

.text-scramble::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.text-scramble.scrambling {
  animation: textGlitch 0.3s ease-in-out;
}

@keyframes textGlitch {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  50% {
    opacity: 0.9;
    transform: translateX(2px);
  }
  75% {
    opacity: 0.8;
    transform: translateX(-1px);
  }
}

/* Staggered Entrance Animations */
.stagger-container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-container.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-container.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-container.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-container.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-container.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-container.visible > *:nth-child(6) { transition-delay: 500ms; }
.stagger-container.visible > *:nth-child(7) { transition-delay: 600ms; }
.stagger-container.visible > *:nth-child(8) { transition-delay: 700ms; }
.stagger-container.visible > *:nth-child(9) { transition-delay: 800ms; }
.stagger-container.visible > *:nth-child(10) { transition-delay: 900ms; }

/* Animated Underlines */
.animated-underline {
  position: relative;
  text-decoration: none;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-underline:hover::after {
  width: 100%;
}

/* Underline from center */
.animated-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Underline from right */
.animated-underline-right::after {
  left: auto;
  right: 0;
}

.animated-underline-right:hover::after {
  width: 100%;
}

/* Image Zoom (Ken Burns) */
.image-zoom-container {
  overflow: hidden;
  border-radius: 12px;
}

.image-zoom {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.image-zoom-container:hover .image-zoom {
  transform: scale(1.1);
}

/* Ken Burns continuous animation */
.ken-burns {
  animation: kenBurnsZoom 20s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.2) translate(-2%, -2%);
  }
}

/* Scroll-linked Color Shift */
.color-shift-section {
  transition: background-color 0.5s ease-out;
}

.color-shift-section[data-section="1"] {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
}

.color-shift-section[data-section="2"] {
  background: linear-gradient(180deg, #1a0a2e 0%, #0a1a2e 100%);
}

.color-shift-section[data-section="3"] {
  background: linear-gradient(180deg, #0a1a2e 0%, #0a2a1a 100%);
}

.color-shift-section[data-section="4"] {
  background: linear-gradient(180deg, #0a2a1a 0%, #0a0a0a 100%);
}

/* Flip Card 3D */
.flip-card {
  perspective: 1000px;
  width: 100%;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.flip-card-front {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
}

/* Confetti Celebration */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confettiFall 3s ease-out forwards;
}

.confetti:nth-child(odd) {
  background: #a855f7;
  animation-delay: calc(var(--i) * 0.1s);
}

.confetti:nth-child(even) {
  background: #06b6d4;
  animation-delay: calc(var(--i) * 0.1s + 0.05s);
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-100vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Dot Grid Background */
.dot-grid-bg {
  position: relative;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(10, 10, 10, 0.8) 70%
  );
  pointer-events: none;
}

/* Animated Dot Grid */
.animated-dot-grid {
  background-image: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.3) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  animation: dotGridMove 20s linear infinite;
}

@keyframes dotGridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

/* Odometer Number Effect */
.odometer {
  display: inline-flex;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
}

.odometer-digit {
  display: inline-block;
  animation: odometerRoll 0.6s ease-out forwards;
}

@keyframes odometerRoll {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.odometer-digit:nth-child(1) { animation-delay: 0ms; }
.odometer-digit:nth-child(2) { animation-delay: 100ms; }
.odometer-digit:nth-child(3) { animation-delay: 200ms; }
.odometer-digit:nth-child(4) { animation-delay: 300ms; }
.odometer-digit:nth-child(5) { animation-delay: 400ms; }
.odometer-digit:nth-child(6) { animation-delay: 500ms; }

/* Elastic Button */
.elastic-button {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-button:hover {
  transform: scale(1.05);
}

.elastic-button:active {
  transform: scale(0.95);
}

/* Breathing Glow */
.breathing-glow {
  animation: breathingGlow 3s ease-in-out infinite;
}

@keyframes breathingGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
  }
}

/* Text Gradient Animation */
.animated-gradient-text {
  background: linear-gradient(
    90deg,
    #a855f7,
    #06b6d4,
    #10b981,
    #f59e0b,
    #ef4444,
    #a855f7
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Shimmer Text */
.shimmer-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 2s linear infinite;
}

@keyframes shimmerText {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pulse Ring */
.pulse-ring {
  position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: inherit;
  animation: pulseRing 2s ease-out infinite;
}

.pulse-ring::after {
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Floating Animation */
.floating {
  animation: floatingAnimation 3s ease-in-out infinite;
}

@keyframes floatingAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Slide In Animations */
.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out forwards;
}

.slide-in-down {
  animation: slideInDown 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale Bounce */
.scale-bounce {
  animation: scaleBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes scaleBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Neon Glow Effect */
.neon-glow {
  text-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 40px currentColor;
}

.neon-glow-box {
  box-shadow:
    0 0 5px rgba(168, 85, 247, 0.5),
    0 0 10px rgba(168, 85, 247, 0.3),
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 10px rgba(168, 85, 247, 0.1);
}

/* Gradient Border Animation */
.gradient-border-animated {
  position: relative;
  background: #0a0a0a;
  border-radius: 12px;
}

.gradient-border-animated::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    var(--gradient-angle, 0deg),
    #a855f7,
    #06b6d4,
    #10b981,
    #a855f7
  );
  border-radius: inherit;
  z-index: -1;
  animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
  0% {
    --gradient-angle: 0deg;
  }
  100% {
    --gradient-angle: 360deg;
  }
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Mask Reveal */
.mask-reveal {
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black var(--reveal-progress, 0%),
    transparent var(--reveal-progress, 0%)
  );
  mask-image: linear-gradient(
    to right,
    black 0%,
    black var(--reveal-progress, 0%),
    transparent var(--reveal-progress, 0%)
  );
}

.mask-reveal.revealed {
  animation: maskReveal 1s ease-out forwards;
}

@keyframes maskReveal {
  to {
    --reveal-progress: 100%;
  }
}

/* Reduced Motion - respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .text-scramble,
  .ken-burns,
  .confetti,
  .animated-dot-grid,
  .odometer-digit,
  .breathing-glow,
  .animated-gradient-text,
  .shimmer-text,
  .pulse-ring::before,
  .pulse-ring::after,
  .floating,
  .slide-in-left,
  .slide-in-right,
  .slide-in-up,
  .slide-in-down,
  .scale-bounce,
  .gradient-border-animated::before,
  .mask-reveal {
    animation: none;
  }

  .stagger-container > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flip-card-inner {
    transition: none;
  }

  .image-zoom {
    transition: none;
  }
}

/* ========================================
   REVIEWS SECTION
   Customer testimonials above footer
   ======================================== */

.reviews-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(31, 81, 255, 0.03) 50%, transparent 100%);
  position: relative;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-header .section-title {
  margin-bottom: 1.5rem;
}

/* Slim Google Badge - Horizontal compact design */
.google-badge-slim {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  font-size: 0.85rem;
}

.google-icon-slim {
  flex-shrink: 0;
}

.rating-stars-slim {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rating-stars-slim .half {
  background: linear-gradient(90deg, #fbbf24 50%, rgba(255, 255, 255, 0.3) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-value {
  font-weight: 600;
  color: var(--text-primary);
}

.rating-divider {
  color: rgba(255, 255, 255, 0.3);
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-card {
  background: rgba(24, 24, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #60a5fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.reviewer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

.reviews-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary-accent);
  border-radius: 2rem;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: flex;
  width: fit-content;
}

.reviews-cta:hover {
  background: var(--primary-accent);
  color: white;
}

.reviews-cta svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-section {
    padding: 3rem 1rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .google-badge-slim {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .rating-stars-slim {
    font-size: 0.8rem;
  }
}

/* ========================================
   REVIEWS CAROUSEL
   Infinite smooth scrolling carousel
   ======================================== */

.reviews-carousel {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 20px;
  margin-bottom: 1.5rem;
  padding-block: 15px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: infiniteScroll 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track .review-card {
  flex: 0 0 350px;
  min-width: 300px;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Subtle progress dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.5);
  width: 18px;
  border-radius: 3px;
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
  .carousel-track .review-card {
    flex: 0 0 320px;
  }

  .carousel-track {
    animation-duration: 35s;
  }
}

@media (max-width: 600px) {
  .reviews-carousel {
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  }

  .carousel-track .review-card {
    flex: 0 0 280px;
    min-width: 260px;
  }

  .carousel-track {
    animation-duration: 30s;
    gap: 1rem;
  }
}

/* ========================================
   SCROLL INDICATOR
   Animated arrow below hero buttons
   ======================================== */

.scroll-indicator {
  position: absolute;
  bottom:3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 5;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.8);
}

.scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  position: relative;
}

.scroll-arrow svg {
  width: 12px;
  height: 12px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.scroll-indicator:hover .scroll-arrow {
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-text {
    display: none;
  }

  .scroll-arrow {
    width: 20px;
    height: 32px;
  }

  .scroll-arrow svg {
    width: 10px;
    height: 10px;
  }
}

/* ========================================
   FOOTER FAQ ACCORDION
   FAQ section in footer
   ======================================== */

/* ========================================
   PREMIUM FAQ ACCORDION - Modern Design
   ======================================== */

.footer-faq {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-faq h4 {
  margin-bottom: 1.25rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Accordion Item - Glass Morphism */
.faq-accordion .accordion-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient border on hover */
.faq-accordion .accordion-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0) 0%,
    rgba(31, 81, 255, 0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
  pointer-events: none;
}

.faq-accordion .accordion-item:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0.5) 0%,
    rgba(99, 102, 241, 0.3) 50%,
    rgba(31, 81, 255, 0.5) 100%
  );
}

.faq-accordion .accordion-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(31, 81, 255, 0.03) 100%
  );
  transform: translateY(-2px);
  box-shadow:
    0 10px 40px -10px rgba(31, 81, 255, 0.15),
    0 0 0 1px rgba(31, 81, 255, 0.1);
}

/* Active State */
.faq-accordion .accordion-item.active {
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0.08) 0%,
    rgba(99, 102, 241, 0.04) 100%
  );
  border-color: rgba(31, 81, 255, 0.2);
  box-shadow:
    0 15px 50px -15px rgba(31, 81, 255, 0.2),
    0 0 30px -10px rgba(31, 81, 255, 0.1);
}

.faq-accordion .accordion-item.active::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(31, 81, 255, 0.6) 0%,
    rgba(99, 102, 241, 0.4) 50%,
    rgba(31, 81, 255, 0.6) 100%
  );
}

/* Accordion Header */
.faq-accordion .accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.faq-accordion .accordion-header span {
  flex: 1;
  transition: color 0.3s ease;
}

.faq-accordion .accordion-item:hover .accordion-header span,
.faq-accordion .accordion-item.active .accordion-header span {
  color: #fff;
}

/* Icon Container with Animation */
.faq-accordion .accordion-header .icon-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion .accordion-item:hover .icon-wrapper {
  background: rgba(31, 81, 255, 0.2);
}

.faq-accordion .accordion-item.active .icon-wrapper {
  background: rgba(31, 81, 255, 0.3);
  transform: rotate(180deg);
}

.faq-accordion .accordion-header svg,
.faq-accordion .accordion-header i[data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion .accordion-item:hover .accordion-header svg,
.faq-accordion .accordion-item:hover .accordion-header i[data-lucide] {
  color: var(--primary-accent);
}

.faq-accordion .accordion-item.active .accordion-header svg,
.faq-accordion .accordion-item.active .accordion-header i[data-lucide] {
  color: #fff;
  transform: rotate(180deg);
}

/* Accordion Content - Smooth Animation */
.faq-accordion .accordion-content {
  overflow: hidden;
  will-change: height, opacity, transform;
  transition:
    height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion .accordion-content p {
  padding: 0 1.25rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: blur(0px);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease-out,
    filter 0.25s ease-out;
}

/* Opening animation - bouncy spring */
.faq-accordion .accordion-item.active .accordion-content p {
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease-out;
}

/* 3D perspective for rotateX effect */
.faq-accordion .accordion-content {
  perspective: 600px;
}

/* Icon wrapper - different timing for open vs close */
.faq-accordion .accordion-header .icon-wrapper {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-accordion .accordion-item:not(.active) .icon-wrapper {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

/* Stagger Animation for Multiple Items */
.faq-accordion .accordion-item:nth-child(1) { transition-delay: 0ms; }
.faq-accordion .accordion-item:nth-child(2) { transition-delay: 50ms; }
.faq-accordion .accordion-item:nth-child(3) { transition-delay: 100ms; }
.faq-accordion .accordion-item:nth-child(4) { transition-delay: 150ms; }

/* Shine Effect on Hover */
.faq-accordion .accordion-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.faq-accordion .accordion-item:hover::after {
  left: 100%;
}

/* ========================================
   OPEN STATUS INDICATOR
   Shows if the business is currently open
   ======================================== */

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.open-status.is-open {
  border-left: 3px solid #10b981;
}

.open-status.is-closed {
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.open-status .status-text {
  color: var(--text-secondary);
}

.open-status.is-open .status-text .status-label {
  color: #10b981;
  font-weight: 600;
}

.open-status.is-closed .status-text .status-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.open-status.is-open .status-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

.open-status.is-closed .status-dot {
  background: rgba(255, 255, 255, 0.4);
  animation: none;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hours-list li.current-day {
  background: rgba(31, 81, 255, 0.08);
  border-radius: 0.35rem;
  padding: 0.2rem 0.4rem;
  margin: 0.1rem -0.4rem;
}

/* ========================================
   HERO COUNTER ANIMATION
   Animated number for "30+ spel"
   ======================================== */

.hero-subtitle .counter-value {
  display: inline;
  font-weight: inherit;
  font-size: inherit;
  color: white !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: white !important;
}

/* ========================================
   STEP COUNTER ANIMATION
   Animated numbers on step cards
   ======================================== */

.step-number[data-step-counter] {
  transition: transform 0.3s ease, color 0.3s ease;
}

.step-number.animate-in {
  animation: stepCountIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stepCountIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ========================================
   MOBILE RESPONSIVE - NEW COMPONENTS
   Responsive styles for FAQ, open-status, etc.
   ======================================== */

@media (max-width: 768px) {
  /* Footer FAQ Accordion - Mobile */
  .footer-faq {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .footer-faq h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .accordion-header {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }

  .accordion-header svg {
    width: 16px;
    height: 16px;
  }

  .accordion-content p {
    padding: 0 0.875rem 0.875rem;
    font-size: 0.8rem;
  }

  /* Open Status Indicator - Mobile */
  .open-status {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }

  /* Review cards text - Mobile */
  .review-card {
    padding: 1.25rem;
  }

  .review-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .reviewer-name {
    font-size: 0.85rem;
  }

  .review-date {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Footer FAQ Accordion - Small Mobile */
  .accordion-header {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }

  .accordion-content p {
    padding: 0 0.75rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .accordion-item.active .accordion-content {
    max-height: 250px; /* More space for longer content on small screens */
  }

  /* Open Status - Small Mobile */
  .open-status {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  /* Review cards - Small Mobile */
  .review-card {
    padding: 1rem;
  }

  .review-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 5; /* Allow more lines on mobile */
    line-clamp: 5;
  }

  .review-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ========================================
   ENHANCED FOCUS STYLING
   Better keyboard navigation visibility
   ======================================== */

/* Global focus-visible styling */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove focus ring for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Navigation links focus */
.nav-link:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Dropdown items focus */
.dropdown-item:focus-visible {
  background: rgba(31, 81, 255, 0.2);
  outline: none;
}

/* Language selector focus */
.lang-btn:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

.lang-option:focus-visible {
  background: rgba(31, 81, 255, 0.2);
  outline: none;
}

/* Skip to content focus */
.skip-to-content:focus {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 1rem 2rem;
  background: var(--primary-accent);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TILT DESKTOP ONLY
   Disable tilt effect on touch devices
   ======================================== */

@media (hover: hover) and (pointer: fine) {
  [data-tilt-desktop] {
    transition: transform 0.3s ease;
  }

  [data-tilt-desktop]:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
  }
}

@media (hover: none), (pointer: coarse) {
  [data-tilt-desktop]:hover {
    transform: none;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   GDPR-compliant Cookiebot-style banner
   ======================================== */

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
  /* Layout stability: reserve space to prevent CLS */
  contain: layout style;
}

.cookie-consent.active {
  opacity: 1;
  visibility: visible;
}

.cookie-consent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-consent-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(
    165deg,
    rgba(25, 25, 45, 0.98) 0%,
    rgba(15, 15, 30, 0.98) 100%
  );
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 40px -10px rgba(31, 81, 255, 0.15);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.active .cookie-consent-container {
  transform: translateY(0);
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.cookie-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.2), rgba(99, 102, 241, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-consent-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cookie-consent-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Cookie Categories */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.cookie-consent.show-details .cookie-categories {
  max-height: 300px;
  opacity: 1;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.875rem;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-category-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.cookie-category-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cookie-category-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 20px;
  font-weight: 500;
}

.cookie-category-desc {
  margin: 0.5rem 0 0 3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cookie-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary-accent), #6366f1);
}

.cookie-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle.disabled .toggle-slider {
  background: rgba(16, 185, 129, 0.3);
}

.cookie-toggle.disabled .toggle-slider::before {
  background: #10b981;
}

/* Action Buttons */
.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 120px;
  min-height: 44px; /* 2026 touch target standard */
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-productive);
}

.cookie-btn:active {
  transform: scale(0.96);
  transition-duration: var(--duration-instant);
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  flex: 0;
  min-width: auto;
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--primary-accent), #6366f1);
  color: white;
  box-shadow: 0 4px 20px -5px rgba(31, 81, 255, 0.4);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -5px rgba(31, 81, 255, 0.5);
}

/* Footer */
.cookie-consent-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8rem;
}

.cookie-consent-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-consent-footer a:hover {
  color: var(--primary-accent);
}

.cookie-footer-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.75rem;
}

/* Hidden when showing details */
.cookie-consent.show-details .cookie-btn-settings {
  display: none;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .cookie-consent-container {
    padding: 1.25rem;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }

  .cookie-consent {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-btn-settings {
    order: 3;
  }

  .cookie-category-desc {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* ========================================
   CONTACT POPUP - Premium Design
   ======================================== */

/* ========================================
   CONTACT POPUP - Enhanced Glassmorphism Design
   ======================================== */

/* Backdrop & Container */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
}

.contact-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Main Container with Glassmorphism */
.contact-popup-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(25, 25, 45, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow:
    0 40px 120px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.contact-popup.active .contact-popup-container {
  transform: scale(1) translateY(0);
}

/* Decorative Glow Effects */
.contact-popup-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.contact-popup-glow-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.4), transparent);
  top: -60px;
  right: -60px;
  animation: pulseGlowOrb 4s ease-in-out infinite;
}

.contact-popup-glow-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), transparent);
  bottom: -40px;
  left: -40px;
  animation: pulseGlowOrb 4s ease-in-out infinite 2s;
}

@keyframes pulseGlowOrb {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* Close Button */
.contact-popup-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.contact-popup-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(90deg) scale(1.05);
}

.contact-popup-close svg {
  width: 20px;
  height: 20px;
}

/* Header Section */
.contact-popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Typography */
.contact-popup-header h3 {
  font-size: 1.625rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-popup-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Options */
.contact-popup-options {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Option Card */
.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Background & Shine Effects */
.contact-option-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.contact-option-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-option:hover .contact-option-shine {
  left: 100%;
}

.contact-option:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.4);
}

.contact-option:hover .contact-option-bg {
  opacity: 1;
}

/* Icon Styling */
.contact-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

.contact-option:hover .contact-option-icon {
  transform: scale(1.08);
}

.contact-option-icon svg {
  width: 26px;
  height: 26px;
}

/* Phone Option - Emerald */
.contact-option-phone .contact-option-icon {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.2) 0%, 
    rgba(5, 150, 105, 0.1) 100%);
  color: #34d399;
}

.contact-option-phone .contact-option-bg {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1) 0%, 
    transparent 100%);
}

.contact-option-phone:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 
    0 12px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(16, 185, 129, 0.2) inset;
}

/* Email Option - Blue */
.contact-option-email .contact-option-icon {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2) 0%, 
    rgba(37, 99, 235, 0.1) 100%);
  color: #60a5fa;
}

.contact-option-email .contact-option-bg {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    transparent 100%);
}

.contact-option-email:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 
    0 12px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

/* Content Styling */
.contact-option-content {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-option-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.contact-option-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.contact-option-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Arrow */
.contact-option-arrow {
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-option:hover .contact-option-arrow {
  opacity: 1;
  transform: translateX(0);
  color: rgba(255, 255, 255, 0.8);
}

.contact-option-arrow svg {
  width: 22px;
  height: 22px;
}

/* Footer Section */
/* Mobile Responsive */
@media (max-width: 480px) {
  .contact-popup {
    padding: 0;
    align-items: flex-end;
  }

  .contact-popup-container {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 28px 28px 0 0;
    max-width: 100%;
    transform: translateY(100%);
  }

  .contact-popup.active .contact-popup-container {
    transform: translateY(0);
  }

  .contact-popup-glow {
    display: none;
  }

  .contact-popup-header h3 {
    font-size: 1.375rem;
  }

  .contact-popup-subtitle {
    font-size: 0.9rem;
  }

  .contact-option {
    padding: 1rem 1.125rem;
  }

  .contact-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .contact-option-label {
    font-size: 0.95rem;
  }

  .contact-option-value {
    font-size: 0.85rem;
  }

  .contact-option-arrow {
    opacity: 1;
    transform: none;
    color: rgba(255, 255, 255, 0.3);
  }
}

/* Entrance Animations */
.contact-popup.active .contact-option {
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.contact-popup.active .contact-option:nth-child(1) {
  animation-delay: 0.08s;
}

.contact-popup.active .contact-option:nth-child(2) {
  animation-delay: 0.16s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Animation */
.contact-popup.active .contact-popup-header {
  animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(0.95);
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile styles for location badge */
@media (max-width: 480px) {
  .location-badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .location-badge .badge-icon {
    width: 10px;
    height: 10px;
  }
}

/* Original Language Indicator */
.original-language-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: help;
}

.translation-notice {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.translation-notice small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

