/* 
  Onetara Gamezone - Main Stylesheet
  Design Theme: Premium Dark Mode with Neon Accents (Green, Gold, Cyan, Pink)
  Typography: Fredoka (Bauhaus style) & Helvetica/Inter
  Note: Fonts are loaded via <link> in components/header.php, so no @import here
  (an @import would block rendering and double-fetch the font CSS).
*/

/* --- DESIGN SYSTEM & UTILITIES --- */
:root {
  --bg-dark: #040407;
  --bg-panel: #0a0a10;
  --bg-card: rgba(10, 10, 16, 0.75);
  --border-color: rgba(255, 255, 255, 0.04);
  
  /* Neon Palette */
  --neon-green: #39ff14;
  --neon-green-glow: rgba(57, 255, 20, 0.25);
  --neon-gold: #ffd700;
  --neon-gold-glow: rgba(255, 215, 0, 0.25);
  --neon-pink: #ff007f;
  --neon-pink-glow: rgba(255, 0, 127, 0.25);
  --neon-cyan: #00ffff;
  --neon-cyan-glow: rgba(0, 255, 255, 0.25);
  
  /* Text colors */
  --text-white: #fcfcff;
  --text-gray: #9494a3;
  --text-muted: #525263;
  
  --font-heading: 'Fredoka', 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 10px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
}

/* Page Loading Transitions (Anti-Snappy) */
.page-transition-body {
  opacity: 0;
  animation: pageFadeIn 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes pageFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Scroll Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #14141d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green-glow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Gradient and Glow Text */
.gradient-text-green-gold {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink-cyan {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-green {
  text-shadow: 0 0 10px var(--neon-green-glow), 0 0 20px rgba(57, 255, 20, 0.15);
}

.glow-gold {
  text-shadow: 0 0 10px var(--neon-gold-glow), 0 0 20px rgba(255, 215, 0, 0.15);
}

.glow-pink {
  text-shadow: 0 0 10px var(--neon-pink-glow), 0 0 20px rgba(255, 0, 127, 0.15);
}

/* --- LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-gray);
}

/* --- NAV BAR --- */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar-header.scrolled {
  background: rgba(4, 4, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

/* While the mobile drawer is open the header must NOT use backdrop-filter:
   a filtered ancestor becomes the containing block for the drawer's
   position:fixed, which anchors it off-screen once the page is scrolled. */
.navbar-header.menu-open {
  background: var(--bg-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border-color);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
  filter: drop-shadow(0 0 15px var(--neon-green)) !important;
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-gray);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--neon-green), #24d60c);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.35);
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
  background: linear-gradient(135deg, #24d60c, var(--neon-gold));
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -90px;
  padding: 190px 0 100px 0;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-green-glow) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  z-index: 0;
  pointer-events: none;
  animation: floatEffect 10s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--neon-gold-glow) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  z-index: 0;
  pointer-events: none;
  animation: floatEffect 14s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}

/* Allow grid tracks to shrink below their content's intrinsic width
   so the fixed-width gamepad visual can't force horizontal overflow on mobile. */
.hero-grid > * {
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.15);
  color: var(--neon-green);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.05);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-gray);
  margin-bottom: 48px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-gold));
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 35px rgba(57, 255, 20, 0.6);
}

.btn-secondary {
  border: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 38px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-gold);
  box-shadow: 0 0 20px var(--neon-gold-glow);
  transform: translateY(-4px) scale(1.02);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- PREMIUM CODED ANIMATED VISUALS --- */

/* Hero Coded Gamepad Container */
.coded-visual-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, transparent 70%);
  perspective: 1200px;
}

.cyber-console {
  width: 370px;
  height: 240px;
  background: linear-gradient(135deg, #09090f, #141424);
  border: 3px solid var(--neon-green);
  border-radius: 48px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6),
              0 0 30px var(--neon-green-glow), 
              inset 0 0 25px rgba(57, 255, 20, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

/* Screw caps in console corners */
.console-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px #000;
}
.screw-tl { top: 18px; left: 24px; }
.screw-tr { top: 18px; right: 24px; }
.screw-bl { bottom: 18px; left: 24px; }
.screw-br { bottom: 18px; right: 24px; }

/* Handle grips */
.console-handle-l, .console-handle-r {
  position: absolute;
  width: 48px;
  height: 190px;
  background: linear-gradient(to bottom, #050508, #11111a);
  border: 3px solid var(--neon-green);
  top: 22px;
  z-index: -1;
  box-shadow: 0 0 25px var(--neon-green-glow);
  transform: translateZ(-10px);
}

.console-handle-l {
  left: -20px;
  border-radius: 40px 0 0 40px;
  border-right: none;
}

.console-handle-r {
  right: -20px;
  border-radius: 0 40px 40px 0;
  border-left: none;
}

/* Left controls: 3D D-pad & Analog stick */
.left-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 3D D-Pad */
.d-pad-3d {
  width: 64px;
  height: 64px;
  position: relative;
  filter: drop-shadow(0 0 8px var(--neon-green-glow));
}

.d-pad-cross {
  position: absolute;
  background: #19192c;
  border: 2px solid var(--neon-green);
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.d-pad-horz {
  width: 64px;
  height: 22px;
  top: 21px;
  left: 0;
}

.d-pad-vert {
  width: 22px;
  height: 64px;
  top: 0;
  left: 21px;
}

.d-pad-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}
.arrow-up    { border-bottom-color: var(--neon-green); top: 3px; left: 27px; }
.arrow-down  { border-top-color: var(--neon-green); bottom: 3px; left: 27px; }
.arrow-left  { border-right-color: var(--neon-green); left: 3px; top: 27px; }
.arrow-right { border-left-color: var(--neon-green); right: 3px; top: 27px; }

/* 3D Analog Stick */
.analog-stick {
  width: 44px;
  height: 44px;
  background: #141422;
  border: 2px solid #2d2d44;
  border-radius: 50%;
  box-shadow: inset 0 3px 6px #000, 0 2px 4px rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.analog-thumb {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 35%, #2a2a3e 0%, #161622 70%);
  border: 1px solid #333;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.6);
  position: absolute;
  transition: transform 0.1s ease;
  animation: analogIdle 4s ease-in-out infinite alternate;
}

/* Center LCD Screen */
.console-screen-wrapper {
  flex-grow: 1;
  margin: 0 20px;
  height: 120px;
  background: #040407;
  border: 2px solid var(--neon-green);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px #000, 0 0 15px var(--neon-green-glow);
}

.console-screen-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.08) 30%, transparent 35%);
  pointer-events: none;
}

/* 3D Retro grid space warp */
.screen-space-grid {
  position: absolute;
  inset: 0;
  background: #020205;
  perspective: 60px;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(rgba(57, 255, 20, 0.25) 2px, transparent 2px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.25) 2px, transparent 2px);
  background-size: 20px 20px;
  transform: rotateX(75deg);
  animation: gridWarp 2.5s linear infinite;
  transform-origin: center center;
}

.screen-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: starTravel 2s linear infinite;
}
.star-1 { top: 20%; left: 30%; animation-delay: 0s; }
.star-2 { top: 60%; left: 70%; animation-delay: 0.7s; }
.star-3 { top: 40%; left: 80%; animation-delay: 1.3s; }

.screen-logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10;
  background: rgba(0,0,0,0.15);
}

.screen-logo-icon {
  font-size: 2.25rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  animation: heartPulse 1.2s infinite;
}

/* Right controls: Glossy action buttons & Speaker grill */
.right-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Action button layout */
.action-diamond {
  width: 64px;
  height: 64px;
  position: relative;
}

.btn-3d {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #303046 0%, #151522 75%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--text-white);
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.1s;
}

.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-y { top: 0; left: 22px; border-color: var(--neon-gold); box-shadow: 0 0 8px var(--neon-gold-glow); color: var(--neon-gold); }
.btn-x { top: 22px; left: 0; border-color: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink-glow); color: var(--neon-pink); }
.btn-a { top: 22px; right: 0; border-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan-glow); color: var(--neon-cyan); }
.btn-b { bottom: 0; left: 22px; border-color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green-glow); color: var(--neon-green); }

/* Speaker grill detail */
.speaker-grill {
  display: grid;
  grid-template-columns: repeat(4, 4px);
  gap: 3px;
  opacity: 0.4;
}

.speaker-hole {
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.05);
}

/* Hardware battery status indicator */
.hardware-lights {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hw-led {
  width: 6px;
  height: 6px;
  background: #222;
  border-radius: 50%;
}
.hw-led.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulseGlow 1.5s infinite;
}


/* --- SOFT PLAY AREA / TUMBLING BALL POOL --- */
.coded-softplay {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0d0a18 0%, #040407 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.softplay-structure {
  width: 280px;
  height: 180px;
  position: relative;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Diagonal Neon Slide */
.softplay-slide {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, var(--neon-pink) 0%, transparent 80%);
  clip-path: polygon(0 0, 30% 0, 100% 90%, 100% 100%, 70% 100%, 0 20%);
  opacity: 0.8;
  filter: drop-shadow(0 0 10px var(--neon-pink-glow));
  animation: slideGlow 3s ease-in-out infinite alternate;
  z-index: 1;
}

/* Net grid background */
.softplay-net-bg {
  position: absolute;
  inset: 10px;
  background-image: 
    linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 15px 15px;
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.05), 0 0 10px rgba(255, 215, 0, 0.1);
  z-index: 0;
}

/* 3D Ball Pool Frame */
.softplay-pool-frame {
  position: absolute;
  bottom: 10px;
  width: 220px;
  height: 70px;
  background: linear-gradient(to bottom, #111122, #07070f);
  border: 3px solid var(--neon-cyan);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 15px var(--neon-cyan-glow);
  z-index: 3;
  overflow: hidden;
}

.pool-glass-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  pointer-events: none;
}

/* Tumbling balls container */
.pool-balls {
  position: absolute;
  bottom: 13px;
  width: 214px;
  height: 64px;
  z-index: 2;
  overflow: hidden;
}

.sp-ball {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.4);
}

.ball-cyan {
  background: radial-gradient(circle at 35% 35%, #9fffff 0%, var(--neon-cyan) 70%);
  box-shadow: 0 0 8px var(--neon-cyan-glow), inset -2px -2px 6px rgba(0,0,0,0.4);
}
.ball-pink {
  background: radial-gradient(circle at 35% 35%, #ff9fcf 0%, var(--neon-pink) 70%);
  box-shadow: 0 0 8px var(--neon-pink-glow), inset -2px -2px 6px rgba(0,0,0,0.4);
}
.ball-gold {
  background: radial-gradient(circle at 35% 35%, #fff5bf 0%, var(--neon-gold) 70%);
  box-shadow: 0 0 8px var(--neon-gold-glow), inset -2px -2px 6px rgba(0,0,0,0.4);
}
.ball-green {
  background: radial-gradient(circle at 35% 35%, #c2ff9f 0%, var(--neon-green) 70%);
  box-shadow: 0 0 8px var(--neon-green-glow), inset -2px -2px 6px rgba(0,0,0,0.4);
}

/* Individual Ball Placements & Bouncing Animations */
.b-1 { left: 10px; bottom: 0; animation: ballTumble1 4s ease-in-out infinite alternate; }
.b-2 { left: 35px; bottom: 2px; animation: ballTumble2 3.5s ease-in-out infinite alternate; }
.b-3 { left: 60px; bottom: 0; animation: ballTumble3 5s ease-in-out infinite alternate; }
.b-4 { left: 85px; bottom: 4px; animation: ballTumble4 4.5s ease-in-out infinite alternate; }
.b-5 { left: 110px; bottom: 1px; animation: ballTumble2 4.2s ease-in-out infinite alternate; }
.b-6 { left: 135px; bottom: 3px; animation: ballTumble1 3.8s ease-in-out infinite alternate; }
.b-7 { left: 160px; bottom: 0; animation: ballTumble4 4.8s ease-in-out infinite alternate; }
.b-8 { left: 185px; bottom: 2px; animation: ballTumble3 3.6s ease-in-out infinite alternate; }

/* Bouncing Animations */
@keyframes ballTumble1 {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) translateX(3px) rotate(180deg); }
  100% { transform: translateY(2px) translateX(-2px) rotate(360deg); }
}

@keyframes ballTumble2 {
  0% { transform: translateY(-2px) rotate(0deg); }
  50% { transform: translateY(-8px) translateX(-4px) rotate(-180deg); }
  100% { transform: translateY(1px) translateX(2px) rotate(-360deg); }
}

@keyframes ballTumble3 {
  0% { transform: translateY(1px) rotate(0deg); }
  50% { transform: translateY(-15px) translateX(2px) rotate(180deg); }
  100% { transform: translateY(-1px) translateX(-3px) rotate(360deg); }
}

@keyframes ballTumble4 {
  0% { transform: translateY(-4px) rotate(0deg); }
  50% { transform: translateY(-6px) translateX(5px) rotate(-180deg); }
  100% { transform: translateY(0px) translateX(-1px) rotate(-360deg); }
}

@keyframes slideGlow {
  0% { opacity: 0.6; filter: drop-shadow(0 0 5px var(--neon-pink-glow)); }
  100% { opacity: 0.95; filter: drop-shadow(0 0 15px var(--neon-pink-glow)); }
}

/* --- TRAMPOLINE PREMIUM VISUAL --- */
.coded-trampoline {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 80%, #0c0b16 0%, #040407 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  overflow: hidden;
}

/* 3D perspective trampoline frame */
.trampoline-frame-3d {
  position: absolute;
  bottom: 20%;
  width: 260px;
  height: 90px;
  border-radius: 50%;
  background: transparent;
  border: 8px solid #222;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8),
              inset 0 0 15px rgba(0,0,0,0.5);
  transform: rotateX(60deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing safety pad ring */
.safety-pad-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 4px solid var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink-glow),
              inset 0 0 10px var(--neon-pink-glow);
}

/* Elastic jumping bed */
.jumping-bed {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #09090f, #09090f 2px, #0e0e18 2px, #0e0e18 4px);
  position: relative;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
}

/* Springs connecting bed to ring */
.spring-bindings {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px dashed #444;
  opacity: 0.7;
}

/* Trampoline steel structural legs */
.trampoline-base-legs {
  position: absolute;
  bottom: 8%;
  width: 250px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.t-leg {
  width: 25px;
  height: 40px;
  border: 4px solid #1a1a26;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.05);
}

.t-leg-l { transform: skewX(-15deg); border-left-color: var(--neon-pink); }
.t-leg-r { transform: skewX(15deg); border-right-color: var(--neon-pink); }
.t-leg-c { height: 25px; margin-top: 15px; border-color: #222; }

/* Bouncing character details */
.jumper-character {
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: 40%;
  animation: jumperFlip 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: center center;
}

/* Glowing silhouette of jumper */
.jumper-body {
  width: 100%;
  height: 100%;
  background: var(--text-white);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--text-white), 0 0 35px var(--neon-pink-glow);
  position: relative;
}

/* Jumper trail effects */
.jumper-trail {
  position: absolute;
  width: 6px;
  height: 70px;
  background: linear-gradient(to top, var(--text-white), transparent);
  bottom: 30px;
  left: 13px;
  opacity: 0.8;
  filter: blur(2px);
  transform-origin: bottom center;
  animation: trailStretch 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Ripple shockwave on trampoline impact */
.impact-shockwave {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%) rotateX(60deg) scale(0);
  opacity: 0;
  box-shadow: 0 0 15px var(--neon-pink-glow);
  pointer-events: none;
  animation: shockwaveExpand 1.6s infinite;
}

/* --- VR HEADSET VISUAL --- */
.coded-vr {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0b121c 0%, #040407 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-headset-premium {
  width: 180px;
  height: 90px;
  background: linear-gradient(135deg, #10101c, #1a1a2b);
  border: 3px solid var(--neon-cyan);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px var(--neon-cyan-glow);
  animation: floatEffect 5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-glass-visor {
  width: 154px;
  height: 64px;
  background: rgba(0, 255, 255, 0.03);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.vr-glass-visor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--neon-pink-glow) 0%, transparent 60%);
  opacity: 0.8;
}

.vr-light-bar {
  width: 100%;
  height: 3px;
  background: var(--neon-cyan);
  position: absolute;
  top: 0;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: screenScan 4s linear infinite;
}

.vr-lens-l, .vr-lens-r {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #000;
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  top: 22px;
  box-shadow: 0 0 8px var(--neon-pink-glow);
}
.vr-lens-l { left: 24px; }
.vr-lens-r { right: 24px; }

/* Side vents */
.vr-vent {
  position: absolute;
  width: 4px;
  height: 30px;
  background: #09090f;
  border-radius: 2px;
}
.vent-l1 { left: -8px; top: 30px; }
.vent-r1 { right: -8px; top: 30px; }

/* Dynamic data stream arcs */
.data-arc {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  pointer-events: none;
}
.arc-1 {
  width: 230px;
  height: 230px;
  border-top-color: var(--neon-cyan-glow);
  animation: rotateGently 12s linear infinite;
}
.arc-2 {
  width: 250px;
  height: 250px;
  border-bottom-color: var(--neon-pink-glow);
  animation: rotateGently 18s linear infinite reverse;
}

/* --- ARCADE CABINET VISUAL --- */
.coded-arcade {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0d1612 0%, #040407 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arcade-cabinet-premium {
  width: 120px;
  height: 190px;
  background: linear-gradient(to bottom, #11111c, #1b1b2f);
  border: 3px solid var(--neon-green);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px var(--neon-green-glow);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* side art borders */
.arcade-cabinet-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: 2px solid var(--neon-pink);
  border-right: 2px solid var(--neon-pink);
  border-radius: 12px 12px 0 0;
  opacity: 0.7;
}

.arcade-marquee {
  width: 100%;
  height: 28px;
  background: #181829;
  border-bottom: 2px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
  animation: textFlicker 3s infinite;
}

.arcade-screen-bezel {
  width: 96px;
  height: 70px;
  background: #000;
  border: 2px solid var(--neon-green);
  margin: 12px auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px #000;
}

.arcade-game-graphics {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(rgba(57, 255, 20, 0.08) 0px, rgba(57, 255, 20, 0.08) 1px, transparent 1px, transparent 3px);
}

.invader-icon {
  font-size: 1.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
  animation: invaderDance 2s ease-in-out infinite alternate;
}

.arcade-deck {
  width: 100%;
  height: 24px;
  background: #151522;
  border-top: 2px solid var(--neon-green);
  border-bottom: 2px solid var(--neon-green);
  position: relative;
}

.joystick-3d {
  position: absolute;
  width: 6px;
  height: 16px;
  background: #ffd700;
  left: 24px;
  top: -5px;
  border-radius: 3px;
  transform-origin: bottom center;
  animation: joyWiggle 2s ease-in-out infinite alternate;
}

.joystick-3d::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--neon-pink);
  border-radius: 50%;
  top: -8px;
  left: -3px;
  box-shadow: 0 0 8px var(--neon-pink);
}

.deck-btn {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 7px;
}
.deck-btn-1 { right: 35px; background: var(--neon-cyan); box-shadow: 0 0 5px var(--neon-cyan); }
.deck-btn-2 { right: 23px; background: var(--neon-green); box-shadow: 0 0 5px var(--neon-green); }
.deck-btn-3 { right: 11px; background: var(--neon-gold); box-shadow: 0 0 5px var(--neon-gold); }

/* Coin Door Details */
.arcade-coin-door {
  width: 60px;
  height: 45px;
  border: 2px solid #2d2d3d;
  margin: 4px auto 0 auto;
  border-radius: 6px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #09090f;
}

.coin-slot {
  width: 16px;
  height: 24px;
  border: 1px solid #444;
  background: #050508;
  position: relative;
}

.coin-reject-btn {
  width: 8px;
  height: 6px;
  background: #ff3b30;
  border-radius: 1px;
  margin: 3px auto;
  box-shadow: 0 0 5px #ff3b30;
  animation: neonFlicker 5s infinite;
}

/* --- RETAIL STORE SHELF VISUAL --- */
.coded-retail {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0a141c 0%, #040407 80%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
}

.retail-shelf {
  width: 80%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.retail-shelf::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: #111;
  bottom: -4px;
  left: 0;
}

.shelf-item {
  position: relative;
  bottom: 8px;
  animation: floatEffect 4s ease-in-out infinite alternate;
}
.shelf-item-1 { animation-delay: 0s; }
.shelf-item-2 { animation-delay: 0.8s; }
.shelf-item-3 { animation-delay: 1.6s; }

.item-toy-robot {
  width: 36px;
  height: 45px;
  border: 2px solid var(--neon-gold);
  background: rgba(255, 215, 0, 0.05);
  border-radius: 6px;
  box-shadow: 0 0 12px var(--neon-gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 4px 0;
}

.robot-head {
  width: 16px;
  height: 12px;
  border: 1.5px solid var(--neon-gold);
  border-radius: 3px;
}

.robot-body {
  width: 22px;
  height: 18px;
  border: 1.5px solid var(--neon-gold);
  border-radius: 3px;
  background: var(--neon-gold);
  opacity: 0.8;
  animation: neonFlicker 3s infinite;
}

.item-book {
  width: 34px;
  height: 46px;
  border: 2px solid var(--neon-pink);
  background: rgba(255, 0, 127, 0.05);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 0 12px var(--neon-pink-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spine {
  position: absolute;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--neon-pink);
}

.item-chocolate {
  width: 44px;
  height: 28px;
  border: 2px solid var(--neon-green);
  background: rgba(57, 255, 20, 0.05);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--neon-green-glow);
  display: flex;
  align-items: center;
  justify-content: space-around;
  transform: rotate(-10deg);
}

.chocolate-block {
  width: 8px;
  height: 16px;
  border: 1px solid var(--neon-green);
}

/* --- 3D SPINNING GAME CARD --- */
.coded-gamecard-3d {
  width: 100%;
  height: 100%;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamecard-inner {
  width: 270px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.gamecard-inner:hover {
  transform: rotateY(180deg);
}

.gamecard-front, .gamecard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-color);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gamecard-front {
  background: linear-gradient(145deg, #09090f, #151526);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.gamecard-front.vip-tier {
  border-color: var(--neon-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-gold-glow);
}

.gamecard-front.gold-tier {
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-cyan-glow);
}

.gamecard-back {
  background: linear-gradient(145deg, #151526, #09090f);
  transform: rotateY(180deg);
  border-color: var(--neon-green);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-green-glow);
}

.gamecard-chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, #ffd700 0%, #aa8000 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.gamecard-chip::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
  background-image: 
    linear-gradient(90deg, transparent 40%, #000 40%, #000 60%, transparent 60%),
    linear-gradient(transparent 40%, #000 40%, #000 60%, transparent 60%);
  opacity: 0.4;
}

.gamecard-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gamecard-number {
  font-family: monospace;
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: 0.15em;
  margin: 36px 0;
  text-shadow: 0 0 4px rgba(255,255,255,0.3);
}

/* Rising Bar Chart (ROI Coded Graphic) */
.coded-roi-chart {
  width: 100%;
  height: 100%;
  background: #09090e;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-grid-lines {
  height: 160px;
  width: 100%;
  border-bottom: 2px solid var(--text-muted);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 10px;
}

.chart-grid-lines::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  top: 30%;
}

.chart-grid-lines::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  top: 65%;
}

.chart-bar {
  width: 45px;
  background: linear-gradient(to top, var(--neon-gold), #ffbf00);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 15px var(--neon-gold-glow);
  position: relative;
  transition: height 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chart-bar-1 { height: 40%; }
.chart-bar-2 { height: 68%; background: linear-gradient(to top, var(--neon-cyan), #00bbd6); box-shadow: 0 0 15px var(--neon-cyan-glow); }
.chart-bar-3 { height: 95%; background: linear-gradient(to top, var(--neon-green), #2ed80c); box-shadow: 0 0 15px var(--neon-green-glow); }

.chart-bar::after {
  content: attr(data-val);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.chart-label-row {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
}

/* --- GLASSMOPHISM CARDS --- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.card-grid > .neon-card {
  flex: 1 1 320px;
  max-width: 380px;
}

.neon-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.neon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neon-card:hover {
  transform: translateY(-8px);
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 0 25px var(--neon-green-glow);
}

.neon-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.05);
  transition: var(--transition-smooth);
}

.neon-card:hover .card-icon {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 20px var(--neon-green);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--neon-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.card-link i {
  transition: transform 0.3s ease;
}

.neon-card:hover .card-link i {
  transform: translateX(4px);
}

/* --- ACTIVITIES DISPLAY --- */
.activity-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.activity-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 25px var(--neon-gold-glow);
}

/* Retail Card specific full-width spans */
@media (min-width: 800px) {
  .activity-card.retail-card {
    grid-column: span 2;
  }
  .activity-card.retail-card .activity-visual-wrapper {
    aspect-ratio: 21/9;
  }
}

.activity-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.activity-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(4px);
  border: 1.5px solid var(--neon-gold);
  color: var(--neon-gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.activity-tag.retail-tag {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.activity-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-title {
  font-size: 1.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.activity-desc {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 28px;
  flex-grow: 1;
}

.activity-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.activity-highlights li {
  font-size: 0.9rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-highlights li i {
  color: var(--neon-green);
}

/* --- PRICING CARDS --- */
.pricing-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.pricing-tabs {
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  gap: 6px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-white);
}

.tab-btn.active {
  background: var(--text-white);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.pricing-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.pricing-panel.active {
  display: block;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.pricing-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

.pricing-tier {
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.pricing-price {
  font-size: 3.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 28px;
}

.pricing-price span {
  font-size: 1.05rem;
  color: var(--text-gray);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 44px;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li i {
  color: var(--neon-green);
}

/* Card Recharge Simulator */
.simulator-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 56px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.simulator-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
  right: -5%;
  bottom: -5%;
  pointer-events: none;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.slider-label .value {
  color: var(--neon-cyan);
}

.neon-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #181822;
  border-radius: 4px;
  outline: none;
  transition: background 0.3s;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--neon-cyan);
  transition: transform 0.1s;
}

.neon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex: 1 0 100px;
  text-align: center;
}

.preset-btn:hover, .preset-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

/* Recharge breakdown panel styling */
.recharge-breakdown {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-label {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.breakdown-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-white);
}

.bonus-highlight {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green-glow);
}

.breakdown-item.total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.breakdown-item.total .breakdown-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.total-highlight {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan-glow);
}

.simulator-result-box {
  background: rgba(0, 255, 255, 0.01);
  border: 1px dashed rgba(0, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: 40px;
  text-align: center;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 1rem;
  color: var(--text-gray);
}

.result-val {
  font-size: 1.35rem;
  font-weight: 700;
}

.result-val.total-get {
  font-size: 2.25rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-glow);
  font-family: var(--font-heading);
}

.result-val.bonus {
  color: var(--neon-green);
}

/* --- FORMS & INPUTS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-content p, .info-content a {
  font-size: 1rem;
  color: var(--text-gray);
}

.info-content a:hover {
  color: var(--neon-cyan);
}

.form-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-glow);
}

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

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-gold));
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
}

.form-status {
  padding: 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  margin-top: 24px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-status.success {
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  display: block;
}

.form-status.error {
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  display: block;
}

/* Map block */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 64px;
}

/* --- FRANCHISE ROI CALCULATOR --- */
.roi-card-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.roi-select-card {
  background: rgba(255, 255, 255, 0.01);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.roi-select-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--neon-gold);
}

.roi-select-card.active {
  background: rgba(255, 215, 0, 0.03);
  border-color: var(--neon-gold);
  box-shadow: 0 0 18px var(--neon-gold-glow);
}

.roi-select-card .size {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.roi-select-card .model {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-gray);
}

.roi-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
}

.roi-inputs {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 36px;
}

.roi-outputs {
  background: rgba(255, 215, 0, 0.005);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--border-radius-md);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roi-stat-box {
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px 20px;
  text-align: center;
}

.roi-stat-box.highlight {
  border-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.02);
}

.roi-stat-title {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.roi-stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--text-white);
}

.roi-stat-box.highlight .roi-stat-num {
  color: var(--neon-gold);
  text-shadow: 0 0 10px var(--neon-gold-glow);
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 80px;
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-panel);
}

.roi-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.roi-table td {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1rem;
}

.roi-table tr:last-child td {
  border-bottom: none;
}

.roi-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.008);
}

/* --- ADMIN INQUIRY PANEL --- */
.admin-login-container {
  max-width: 420px;
  margin: 120px auto;
  padding: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-select {
  background: #151522;
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  outline: none;
  font-family: var(--font-body);
}

.admin-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-white);
}

.admin-btn.danger {
  color: var(--neon-pink);
  border-color: rgba(255, 0, 127, 0.25);
}

.admin-btn.danger:hover {
  background: rgba(255, 0, 127, 0.06);
  border-color: var(--neon-pink);
}

.admin-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 28px;
  text-align: center;
}

.admin-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.admin-stat .label {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.badge-contact { background: rgba(0, 255, 255, 0.08); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge.badge-birthday { background: rgba(255, 0, 127, 0.08); color: var(--neon-pink); border: 1px solid var(--neon-pink); }
.badge.badge-franchise { background: rgba(255, 215, 0, 0.08); color: var(--neon-gold); border: 1px solid var(--neon-gold); }

.badge.badge-new { background: #171724; color: var(--text-white); }
.badge.badge-contacted { background: rgba(0, 255, 255, 0.12); color: var(--neon-cyan); }
.badge.badge-closed { background: rgba(57, 255, 20, 0.12); color: var(--neon-green); }

/* --- FOOTER --- */
.site-footer {
  background: #030305;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-gold));
  color: #000;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  border-radius: 2px;
  background: var(--neon-green);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 14px;
}

.footer-menu a {
  font-size: 1rem;
  color: var(--text-gray);
}

.footer-menu a:hover {
  color: var(--text-white);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #25d366;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* --- CURSOR NEON GLOW --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
body:has(a:hover, button:hover, .btn-primary:hover, .btn-secondary:hover, .btn-3d:hover, .preset-btn:hover, .roi-select-card:hover, .tab-btn:hover) .cursor-glow {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.06) 0%, transparent 70%);
}


/* --- CARD SIMULATOR CARDHOLDER INPUT --- */
.cardholder-input-group {
  margin-top: 24px;
}
.cardholder-input-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatEffect {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; box-shadow: 0 0 10px var(--neon-green-glow); }
  50% { opacity: 1; box-shadow: 0 0 22px var(--neon-green); }
  100% { opacity: 0.6; box-shadow: 0 0 10px var(--neon-green-glow); }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 0.99;
  }
  20%, 24%, 55% {
    opacity: 0.3;
  }
}

@keyframes screenScan {
  from { top: 0%; }
  to { top: 100%; }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

@keyframes analogIdle {
  0% { transform: translate(0px, 0px); }
  33% { transform: translate(3px, -2px); }
  66% { transform: translate(-2px, 3px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes gridWarp {
  0% { background-position-y: 0px; }
  100% { background-position-y: 40px; }
}

@keyframes starTravel {
  0% { transform: scale(0.2); opacity: 0.2; }
  80% { opacity: 1; }
  100% { transform: scale(2.2) translate(10px, 10px); opacity: 0; }
}

@keyframes shockwaveExpand {
  0% { transform: translateX(-50%) rotateX(60deg) scale(0); opacity: 1; }
  100% { transform: translateX(-50%) rotateX(60deg) scale(1.8); opacity: 0; }
}

@keyframes jumperFlip {
  0% {
    transform: translateY(-80px) rotate(0deg) scaleY(1);
  }
  20% {
    transform: translateY(-90px) rotate(0deg) scaleY(1.05);
  }
  50% {
    /* Perform tuck and roll/flip */
    transform: translateY(-130px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateY(-50px) rotate(360deg) scaleY(1);
  }
  90% {
    /* Landing impact stretch */
    transform: translateY(0px) rotate(360deg) scaleY(0.7) scaleX(1.15);
  }
  100% {
    transform: translateY(-80px) rotate(360deg) scaleY(1);
  }
}

@keyframes trailStretch {
  0% { transform: scaleY(0.1); opacity: 0.2; }
  20% { transform: scaleY(0.6); opacity: 0.8; }
  50% { transform: scaleY(1); opacity: 0.9; }
  75% { transform: scaleY(0.4); opacity: 0.5; }
  90% { transform: scaleY(0.1); opacity: 0.1; }
  100% { transform: scaleY(0.1); opacity: 0.2; }
}

@keyframes invaderDance {
  0% { transform: translateX(-15px) scale(0.95); }
  50% { transform: translateY(-5px); }
  100% { transform: translateX(15px) scale(1.05); }
}

@keyframes rotateGently {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes joyWiggle {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(18deg); }
}

@keyframes textFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 5px var(--neon-green); }
  50% { opacity: 0.55; text-shadow: 0 0 2px var(--neon-green); }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-tag {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > *:first-child {
    grid-column: span 2;
  }
  .roi-details-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .admin-card-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    margin-top: -80px;
    padding: 140px 0 80px 0;
  }
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .coded-visual-container {
    scale: 0.75;
    margin-top: -30px;
    margin-bottom: -30px;
  }
  .section {
    padding: 80px 0;
  }
  .section-header h2 {
    font-size: 2.25rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .navbar-container {
    height: 80px;
  }
  .roi-card-selector {
    grid-template-columns: 1fr;
  }
  .roi-outputs {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > *:first-child {
    grid-column: span 1;
  }
  .admin-card-stats {
    grid-template-columns: 1fr;
  }
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .simulator-section {
    padding: 32px 20px;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .form-box {
    padding: 28px 14px;
  }
}

/* Mobile Navigation Drawer Open State */
.nav-menu.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg-dark);
  padding: 48px 24px;
  gap: 28px;
  z-index: 999;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

@media (max-width: 480px) {
  .coded-visual-container {
    scale: 0.65;
    margin-top: -50px;
    margin-bottom: -50px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 380px) {
  .coded-visual-container {
    scale: 0.55;
    margin-top: -70px;
    margin-bottom: -70px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .gamecard-inner {
    scale: 0.85;
  }
}

/* Responsive Form Helper Classes */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid-1-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .form-grid-2, .form-grid-1-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Responsive Text Wrap Safety & Flexbox Shrink Constraints */
a, p, span, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.info-content {
  min-width: 0;
}
.info-content p, .info-content a {
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Responsive Panel Box Wrapper */
.panel-box {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .panel-box {
    padding: 24px 16px;
    margin-bottom: 48px;
  }
}

/* --- KEYBOARD ACCESSIBILITY: VISIBLE FOCUS --- */
/* Buttons and links only had :hover states, leaving keyboard users with no
   visible focus indicator. :focus-visible keeps mouse clicks clean while
   giving keyboard/tab navigation a clear neon ring. */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.nav-cta-btn:focus-visible,
.tab-btn:focus-visible,
.preset-btn:focus-visible,
.roi-select-card:focus-visible,
.admin-btn:focus-visible,
.social-btn:focus-visible,
.card-link:focus-visible,
.gamecard-inner:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: var(--border-radius-sm);
}

.form-input:focus-visible,
.neon-slider:focus-visible,
.admin-select:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 1px;
}

/* Skip-to-content link for screen-reader / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 0 0 var(--border-radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* --- TAP-TO-FLIP 3D GAME CARD (touch devices have no :hover) --- */
.gamecard-inner.flipped {
  transform: rotateY(180deg);
}

/* --- MOBILE REFINEMENTS --- */
@media (max-width: 768px) {
  /* The WhatsApp widget overlapped page content/buttons on small screens. */
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
  }
}

/* Hint to mobile users that the card is tappable */
@media (hover: none) {
  .gamecard-inner {
    cursor: pointer;
  }
}

/* --- REDUCED MOTION SUPPORT --- */
/* Respect users who prefer reduced motion: neutralise the heavy looping
   visuals, scroll reveals, tilt and page fade. Also guarantees content is
   visible even if a browser/extension disables CSS animations entirely. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .page-transition-body {
    opacity: 1 !important;
    animation: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }

  .cursor-glow {
    display: none !important;
  }
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

/* Alerts (login errors, db errors) */
.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.admin-alert.error {
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}

/* Password show/hide toggle */
.password-wrap {
  position: relative;
}
.password-wrap .form-input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 1rem;
  transition: color 0.2s;
}
.password-toggle:hover {
  color: var(--neon-green);
}

/* Sticky top bar */
.admin-topbar {
  position: sticky;
  top: 0;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toolbar: search + filters */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-search {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}
.admin-search > i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.admin-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 44px 12px 44px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.admin-search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}
.admin-search-clear {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
}
.admin-search-clear:hover {
  color: var(--neon-pink);
}

.admin-btn.export {
  background: linear-gradient(135deg, var(--neon-green), #2bd00c);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 10px var(--neon-green-glow);
}
.admin-btn.icon-only {
  padding: 10px 12px;
}

.admin-result-count {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

/* Empty state */
.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 56px 20px !important;
}

/* Row actions */
.admin-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-status-select {
  padding: 8px 12px;
  font-size: 0.8rem;
  background-color: #1a1a24;
}

/* Subtle left accent for new/unactioned leads */
.admin-leads-table tbody tr.status-row-new td:first-child {
  box-shadow: inset 3px 0 0 var(--neon-cyan);
}

/* ---- Responsive: stack the leads table into cards on mobile ---- */
@media (max-width: 860px) {
  .admin-leads-table thead {
    display: none;
  }
  .admin-leads-table,
  .admin-leads-table tbody,
  .admin-leads-table tr,
  .admin-leads-table td {
    display: block;
    width: 100%;
  }
  .admin-table-wrap {
    border: none;
    overflow: visible;
  }
  .admin-leads-table tr {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    padding: 8px 4px;
  }
  .admin-leads-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    text-align: right;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-color);
    max-width: none !important;
  }
  .admin-leads-table tr td:last-child {
    border-bottom: none;
  }
  .admin-leads-table td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
  }
  .admin-leads-table td[data-label="Contact"],
  .admin-leads-table td[data-label="Details"] {
    flex-direction: column;
    text-align: left;
  }
  .admin-row-actions {
    justify-content: flex-end;
  }
  .status-row-new td:first-child {
    box-shadow: none !important;
  }
}

@media (max-width: 560px) {
  .admin-topbar-actions .admin-btn span {
    display: none;
  }
  .admin-topbar-actions .admin-btn {
    padding: 10px 14px;
  }
}
