/* =========================================================================
   EduGame Teacher — Homepage Glossy & Vibrant Stylesheet
   Vivid, Glassmorphism, Specular Highlights, Dynamic Micro-Interactions
   ========================================================================= */

:root {
  --home-primary: #7c3aed;
  --home-primary-light: #a78bfa;
  --home-primary-dark: #5b21b6;
  --home-primary-glow: rgba(124, 58, 237, 0.35);

  --home-cyan: #06b6d4;
  --home-cyan-glow: rgba(6, 182, 212, 0.3);

  --home-amber: #f59e0b;
  --home-amber-glow: rgba(245, 158, 11, 0.3);

  --home-pink: #ec4899;
  --home-pink-glow: rgba(236, 72, 153, 0.3);

  --home-emerald: #10b981;
  --home-emerald-glow: rgba(16, 185, 129, 0.3);

  /* Glass surfaces */
  --glass-card: rgba(255, 255, 255, 0.82);
  --glass-card-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 20px 50px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --glass-specular: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.3) 100%);

  /* Vivid Gradients */
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #06b6d4 100%);
  --grad-gloss-btn: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
  --grad-card-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-card-2: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --grad-card-3: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --grad-card-4: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-card-5: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --grad-card-6: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
}

/* Base resets & smooth scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-body {
  background: #f8fafc;
  color: #1e1b4b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Ambient Floating Glowing Orbs (Glossy Background) */
.home-ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden !important;
  contain: strict;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 70%);
  top: -150px;
  left: -100px;
  animation-duration: 18s;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(14, 165, 233, 0.15) 50%, transparent 70%);
  top: 30%;
  right: -200px;
  animation-duration: 24s;
  animation-delay: -5s;
}

.ambient-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 70%);
  bottom: 5%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: -10s;
}

.ambient-orb-4 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  bottom: -100px;
  right: 15%;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Subtle dot-grid pattern overlay */
.home-pattern-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.12) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* =========================================================================
   Glossy Navbar
   ========================================================================= */
.home-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 20px;
  width: 100%;
  transition: all 0.3s ease;
}

.home-navbar {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03), inset 0 1px 1px #fff;
  transition: all 0.3s ease;
}

.home-navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 35px rgba(99, 102, 241, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon-gloss {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35), inset 0 2px 2px rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-bounce, ease);
}

.brand-icon-gloss::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  border-radius: 14px 14px 0 0;
}

.brand-logo-wrap:hover .brand-icon-gloss {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 1px 7px;
  border-radius: 8px;
  width: fit-content;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-item {
  color: #4b5563;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link-item:hover {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Glossy Action Buttons */
.btn-gloss {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-gloss::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 16px 16px 0 0;
}

.btn-gloss::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.btn-gloss:hover::after {
  left: 130%;
}

.btn-gloss:hover {
  transform: translateY(-2px);
}

.btn-gloss:active {
  transform: translateY(1px);
}

.btn-gloss-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gloss-primary:hover {
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
}

.btn-gloss-secondary {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gloss-secondary:hover {
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
}

.btn-gloss-warm {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gloss-warm:hover {
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

.btn-gloss-outline {
  background: rgba(255, 255, 255, 0.8);
  color: #4f46e5;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
}

.btn-gloss-outline:hover {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

/* User Logged in Pill */
.user-logged-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5b21b6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-logged-pill:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}

/* Nav Action Buttons (Desktop defaults) */
.btn-nav-action {
  padding: 9px 18px;
  font-size: 13.5px;
  gap: 7px;
  border-radius: 14px;
}

.btn-nav-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-nav-label {
  display: inline;
  white-space: nowrap;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #7c3aed;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: rgba(124, 58, 237, 0.2);
}

/* Mobile Navigation Drawer / Dropdown */
.mobile-drawer-menu {
  display: none;
  max-width: 1240px;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  animation: slideDrawerDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-menu.open {
  display: block;
}

@keyframes slideDrawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-item:hover, .mobile-drawer-item:active {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.mobile-drawer-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 4px;
}

.mobile-drawer-btn {
  justify-content: center;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
}

.mobile-drawer-btn.btn-warm {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.mobile-drawer-btn.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.home-hero-section {
  position: relative;
  z-index: 1;
  padding: 40px 20px 60px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.hero-glass-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 36px;
  padding: 48px 44px;
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 2px 2px #fff;
  position: relative;
  overflow: hidden;
}

.hero-glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 100%);
  pointer-events: none;
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.hero-headline {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.18;
  color: #0f172a;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 32px 0;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-play {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-hero-teacher {
  padding: 14px 26px;
  font-size: 15.5px;
  border-radius: 20px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.stat-card-mini {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card-mini:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #4338ca;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

/* Hero Right: Interactive 3D Showcase Card Mockup */
.hero-visual-card {
  position: relative;
  perspective: 1200px;
}

.hero-mockup-frame {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.18), 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.mockup-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 20px;
}

.mockup-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mockup-game-tile {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.mockup-game-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.35);
}

.mockup-game-tile:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
  background: #f8fafc;
}

.mockup-tile-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
  animation: gentlePulse 3s infinite ease-in-out;
}

.mockup-tile-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.mockup-tile-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.mockup-floating-badge {
  position: absolute;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 12.5px;
  z-index: 10;
  animation: floatBob 4s infinite ease-in-out alternate;
}

.float-badge-top {
  top: -18px;
  right: -14px;
  color: #b45309;
}

.float-badge-bottom {
  bottom: -18px;
  left: -14px;
  color: #4338ca;
  animation-delay: -2s;
}

@keyframes floatBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* =========================================================================
   Section Header Styling
   ========================================================================= */
.home-section {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.pill-purple {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.pill-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.section-title {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 14px 0;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   Interactive Live Preview Showroom (Tabbed Interactive Playground)
   ========================================================================= */
.showroom-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.12), inset 0 2px 2px #fff;
  position: relative;
  overflow: hidden;
}

/* Showroom Navigation Tabs */
.showroom-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  background: rgba(241, 245, 249, 0.8);
  padding: 8px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
}

.showroom-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showroom-tab-btn:hover {
  color: #1e1b4b;
  background: rgba(255, 255, 255, 0.6);
}

.showroom-tab-btn.active {
  background: #ffffff;
  color: #4338ca;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
  transform: scale(1.03);
}

/* Showroom Panels */
.showroom-panel {
  display: none;
  animation: fadeInPanel 0.35s ease;
}

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

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.panel-info-col {
  padding-right: 10px;
}

.panel-game-icon-big {
  font-size: 46px;
  margin-bottom: 14px;
  display: inline-block;
}

.panel-game-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.panel-game-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px 0;
}

.panel-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.panel-features-list li span.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* Interactive Playground Canvas / Widget Container */
.playground-widget-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Mini Anagram Widget */
.anagram-clue-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.anagram-slots-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.anagram-slot {
  width: 48px;
  height: 52px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #1e1b4b;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.anagram-slot.filled {
  border: 2px solid #6366f1;
  background: #eef2ff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.anagram-slot.correct {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
}

.anagram-bank-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.anagram-tile-btn {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.anagram-tile-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.45);
}

.anagram-tile-btn.used {
  opacity: 0.25;
  pointer-events: none;
  transform: scale(0.9);
}

/* Mini Wheel Widget */
.wheel-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin-bottom: 20px;
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #ef4444;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

#previewWheelCanvas {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), inset 0 2px 4px #fff;
  border: 4px solid #ffffff;
  transition: transform 3.5s cubic-bezier(0.15, 0.95, 0.25, 1);
}

/* Mini 3D Flashcard Widget */
.flashcard-3d-scene {
  perspective: 1000px;
  width: 310px;
  height: 190px;
  margin-bottom: 18px;
  cursor: pointer;
}

.flashcard-3d-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(99, 102, 241, 0.18);
}

.flashcard-3d-card.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flashcard-front {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 2px solid #cbd5e1;
  color: #1e1b4b;
}

.flashcard-back {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 2px solid #a78bfa;
  color: #ffffff;
  transform: rotateY(180deg);
}

/* Mini Open the Box Widget */
.mystery-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 18px;
}

.mystery-box-item {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.mystery-box-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35);
}

.mystery-box-item.opened {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

/* Mini Matching Pairs Widget */
.matching-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 18px;
}

.match-tile-mini {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-tile-mini:hover {
  transform: scale(1.06);
}

.match-tile-mini.matched {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  pointer-events: none;
  border-color: #a7f3d0;
}

/* =========================================================================
   10 Ragam Jenis Game Edukasi (Horizontal Auto-Slider)
   ========================================================================= */
.types-slider-container {
  position: relative;
  width: 100%;
  margin: 10px 0 24px;
}

.types-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  padding: 8px 0 18px;
}

.game-types-grid,
.types-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 12px 16px;
  margin: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.types-slider-track::-webkit-scrollbar,
.game-types-grid::-webkit-scrollbar {
  display: none;
}

.types-slider-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

.game-type-card {
  flex: 0 0 300px;
  width: 300px;
  min-width: 280px;
  max-width: 85vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 380px;
}

.game-type-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 22px 50px rgba(99, 102, 241, 0.2), 0 6px 14px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 255, 255, 1);
}

.type-card-head {
  padding: 24px 22px 18px;
  position: relative;
  overflow: hidden;
}

.type-card-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-gradient, linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%));
  opacity: 0.92;
  z-index: 0;
}

.type-card-head::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.type-card-head-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.type-badge-pill {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.type-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.type-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 8px 0;
}

.type-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 18px 0;
  flex: 1;
}

.type-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.type-tag-pill {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 9px;
  border-radius: 8px;
}

.type-card-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* =========================================================================
   Koleksi Game Publik (Live Public Game Library)
   ========================================================================= */
.library-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.85);
  padding: 14px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
}

.library-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.library-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  color: #1e1b4b;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.library-search-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.filter-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip-btn {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-chip-btn.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* =========================================================================
   Public Game Cards Horizontal Auto-Slider
   ========================================================================= */
.games-slider-container {
  position: relative;
  width: 100%;
  margin: 10px 0 24px;
}

.games-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  padding: 8px 0 18px;
}

.slider-edge-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-edge-left {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0) 100%);
}

.slider-edge-right {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0) 100%);
}

.public-games-grid,
.games-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 12px 16px;
  margin: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.games-slider-track::-webkit-scrollbar,
.public-games-grid::-webkit-scrollbar {
  display: none;
}

.games-slider-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

.public-game-card {
  flex: 0 0 320px;
  width: 320px;
  min-width: 300px;
  max-width: 85vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.08);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 275px;
}

.public-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 42px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.98);
}

.slider-arrow-btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.18), 0 2px 6px rgba(0,0,0,0.04);
  color: #4338ca;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.slider-arrow-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.35);
}

.slider-arrow-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-arrow-btn.prev-btn {
  left: -20px;
}

.slider-arrow-btn.next-btn {
  right: -20px;
}

@media (max-width: 860px) {
  .slider-arrow-btn.prev-btn {
    left: -6px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .slider-arrow-btn.next-btn {
    right: -6px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}

.slider-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  padding: 0 8px;
}

.slider-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
}

.status-pulse-dot.paused {
  background: #f59e0b;
  animation: none;
  box-shadow: none;
}

@keyframes statusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.slider-mini-toggle-btn {
  border: none;
  background: #ede9fe;
  color: #6366f1;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.slider-mini-toggle-btn:hover {
  background: #7c3aed;
  color: #ffffff;
}

.slider-dots-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.slider-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 20px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-dot-item.active {
  width: 26px;
  background: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.game-type-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.1);
  color: #6366f1;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.game-play-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.public-game-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.public-game-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.game-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================================
   Fitur & Keunggulan Section (Glossy Highlights)
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-glass-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  padding: 30px 26px;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-glass-box:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.16);
}

.feature-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.bubble-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); color: #fff; }
.bubble-cyan { background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%); color: #fff; }
.bubble-amber { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #fff; }
.bubble-emerald { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); color: #fff; }
.bubble-pink { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); color: #fff; }
.bubble-blue { background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%); color: #fff; }

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 8px 0;
}

.feature-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   Cara Kerja / Stepped Flow
   ========================================================================= */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}

.step-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.07);
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.14);
}

.step-number-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 8px 0;
}

.step-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   Call To Action (CTA) Banner
   ========================================================================= */
.cta-banner-wrap {
  position: relative;
  z-index: 1;
  padding: 40px 20px 80px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.cta-banner-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  border-radius: 34px;
  padding: 50px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(30, 27, 75, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner-box::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 14px 0;
  position: relative;
  z-index: 2;
}

.cta-desc {
  font-size: 17px;
  color: #c7d2fe;
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cta-action-btn {
  padding: 14px 32px;
  font-size: 16px;
}

.cta-outline-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  padding: 14px 28px;
  font-size: 15.5px;
}

/* =========================================================================
   Footer Styling
   ========================================================================= */
.home-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 20px 30px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #38bdf8;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .panel-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .features-grid, .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-headline {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .hero-headline {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .steps-container {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 24px;
  }
  .cta-title {
    font-size: 24px;
  }
  .cta-banner-box {
    padding: 34px 20px;
  }
  .showroom-box {
    padding: 20px 14px;
  }
}

/* Mobile Screens (Phones <= 768px & <= 640px) */
@media (max-width: 768px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Strict containment of ambient background on mobile to prevent any viewport escape */
  .home-ambient-bg {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip-path: inset(0) !important;
  }
  .ambient-orb {
    pointer-events: none !important;
    max-width: 100vw !important;
    filter: blur(50px) !important;
    animation: none !important;
  }
  .ambient-orb-1 {
    width: 200px !important;
    height: 200px !important;
    top: -20px !important;
    left: -20px !important;
  }
  .ambient-orb-2 {
    width: 200px !important;
    height: 200px !important;
    top: 35% !important;
    right: 0 !important;
  }
  .ambient-orb-3 {
    width: 180px !important;
    height: 180px !important;
    bottom: 10% !important;
    left: 0 !important;
  }
  .ambient-orb-4 {
    width: 180px !important;
    height: 180px !important;
    bottom: 0 !important;
    right: 0 !important;
  }

  /* Spacious, elegant breathing room from phone screen edges */
  .home-navbar-wrapper {
    padding: 10px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-navbar {
    padding: 8px 14px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .brand-logo-wrap {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .brand-icon-gloss {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }

  .brand-title {
    font-size: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .brand-badge {
    display: none !important; /* Hide subtitle badge on mobile */
  }

  .nav-actions-wrap {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Icon-Only Action Buttons on mobile */
  .btn-nav-action {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .btn-nav-label {
    display: none !important; /* Hide text label on mobile screens */
  }

  .btn-nav-icon {
    font-size: 18px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .mobile-nav-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }

  /* Hero Section: Spacious & Clean with 16px side margin */
  .home-hero-section {
    padding: 10px 16px 36px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-glass-container {
    padding: 22px 16px !important;
    border-radius: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-pill-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
    margin-bottom: 12px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  .hero-headline {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .hero-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-cta-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-bottom: 22px !important;
  }

  .btn-hero-play, .btn-hero-teacher {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding-top: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-card-mini {
    padding: 8px 6px !important;
    border-radius: 12px !important;
  }

  .stat-num {
    font-size: 16px !important;
  }

  .stat-lbl {
    font-size: 10px !important;
  }

  /* Prevent mockups from overflowing screen */
  .mockup-floating-badge {
    display: none !important;
  }

  .hero-visual-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-mockup-frame {
    padding: 16px 12px !important;
    border-radius: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mockup-preview-grid {
    gap: 8px !important;
  }

  .mockup-game-tile {
    padding: 10px 6px !important;
    border-radius: 12px !important;
  }

  .mockup-tile-icon {
    font-size: 24px !important;
  }

  .mockup-tile-title {
    font-size: 11.5px !important;
  }

  .mockup-tile-tag {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
  }

  /* General Sections: Proper 16px side margin */
  .home-section {
    padding: 36px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .section-head {
    margin-bottom: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-title {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Showroom Section */
  .showroom-box {
    padding: 18px 12px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .showroom-tabs {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 4px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .showroom-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .showroom-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 7px 11px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
  }

  .playground-widget-wrap {
    padding: 16px 10px !important;
    border-radius: 18px !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .anagram-slots-row {
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
  }

  .anagram-slot {
    width: 32px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  .anagram-bank-row {
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
  }

  .anagram-tile-btn {
    width: 32px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  .wheel-wrapper {
    width: 190px !important;
    height: 190px !important;
  }

  #previewWheelCanvas {
    width: 190px !important;
    height: 190px !important;
  }

  .flashcard-3d-scene {
    width: 100% !important;
    max-width: 270px !important;
    height: 160px !important;
  }

  .flashcard-face {
    padding: 12px !important;
  }

  #miniFcFrontText {
    font-size: 14px !important;
  }

  #miniFcBackText {
    font-size: 17px !important;
  }

  .mystery-boxes-grid {
    gap: 8px !important;
    width: 100% !important;
    max-width: 260px !important;
  }

  .matching-mini-grid {
    gap: 6px !important;
    width: 100% !important;
    max-width: 250px !important;
  }

  /* 10 Ragam Game: Horizontal Auto-Slider on Mobile */
  .types-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 16px !important;
    position: relative !important;
  }

  .types-slider-viewport {
    padding: 4px 0 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .game-types-grid,
  .types-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    padding: 6px 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .game-types-grid::-webkit-scrollbar,
  .types-slider-track::-webkit-scrollbar {
    display: none !important;
  }

  .game-type-card {
    flex: 0 0 270px !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 80vw !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 310px !important;
  }

  .type-card-head {
    padding: 16px 16px 12px !important;
  }

  .type-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
  }

  .type-badge-pill {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 14px !important;
  }

  .type-card-body {
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
  }

  .type-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }

  .type-desc {
    font-size: 11.5px !important;
    margin-bottom: 10px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .type-tags-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
  }

  .type-tag-pill {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }

  .type-card-footer {
    padding-top: 8px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .type-card-footer .btn-gloss {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  /* Pustaka Game Publik: Horizontal Auto-Slider on Mobile */
  .games-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 16px !important;
    position: relative !important;
  }

  .games-slider-viewport {
    padding: 4px 0 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .public-games-grid,
  .games-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    padding: 6px 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .public-games-grid::-webkit-scrollbar,
  .games-slider-track::-webkit-scrollbar {
    display: none !important;
  }

  .public-game-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 82vw !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    padding: 16px !important;
    min-height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08) !important;
  }

  .public-game-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .public-game-desc {
    font-size: 12px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .game-card-meta {
    font-size: 11px !important;
    margin-bottom: 10px !important;
    padding-top: 6px !important;
  }

  .public-game-card .btn-gloss {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .slider-arrow-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
  .slider-arrow-btn.prev-btn {
    left: 2px !important;
  }
  .slider-arrow-btn.next-btn {
    right: 2px !important;
  }

  .slider-bottom-bar {
    padding: 0 4px !important;
    gap: 8px !important;
  }
  .slider-status-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* Library Filter Bar: Zero Overflow - Wrap chips cleanly so nothing is cut off or extends past boundary */
  .library-filter-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .library-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .library-search-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12.5px !important;
    padding: 9px 12px 9px 34px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .filter-chips-row {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 2px 0 0 0 !important;
    box-sizing: border-box !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .filter-chips-row::-webkit-scrollbar {
    display: none !important;
  }

  .filter-chip-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
  }

  /* CTA Banner & Footer */
  .cta-banner-wrap {
    padding: 16px 16px 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cta-banner-box {
    padding: 24px 14px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .cta-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .cta-desc {
    font-size: 13px !important;
    margin-bottom: 18px !important;
  }

  .cta-buttons-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .cta-buttons-row .btn-gloss {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 13.5px !important;
  }

  /* Showroom interactive split panel on mobile */
  .panel-content-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .showroom-info-col {
    order: 2 !important;
  }

  .showroom-interactive-col {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Keunggulan Section (3 Features) on Mobile */
  .features-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .feature-glass-box {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .feature-icon-bubble {
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  .feature-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .feature-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* Cara Kerja (3 Steps) on Mobile */
  .steps-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .step-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .step-number-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  .step-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .step-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* Comprehensive Mobile Footer */
  .home-footer {
    padding: 36px 16px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-top-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    margin-bottom: 22px !important;
    padding-bottom: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-brand-col {
    max-width: 100% !important;
    width: 100% !important;
  }

  .footer-brand-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .footer-brand-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .footer-links-col {
    width: 100% !important;
  }

  .footer-links-col h4 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  .footer-nav-list {
    gap: 8px !important;
  }

  .footer-nav-list a {
    font-size: 13px !important;
  }

  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    width: 100% !important;
  }
}

/* =========================================================================
   COMPACT, CUTE, MODERN & GLOSSY VISITOR STATS BAR
   ========================================================================= */
.vstats-mini-section {
  padding: 10px 24px 36px 24px;
  position: relative;
  z-index: 5;
}

.vstats-mini-container {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.9) 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 14px 18px 16px 18px;
  box-shadow: 
    0 12px 32px -6px rgba(99, 102, 241, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 1px #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Header row */
.vstats-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-wrap: wrap;
  gap: 8px;
}

.vstats-mini-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vstats-mini-icon {
  font-size: 17px;
}

.vstats-mini-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.2px;
}

.vstats-mini-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

.vstats-mini-mascot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
}

.mascot-hop-small {
  font-size: 15px;
  display: inline-block;
  animation: mascotSmallHop 2.4s ease-in-out infinite;
}

@keyframes mascotSmallHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.sparkle-mini {
  font-size: 12px;
  display: inline-block;
  animation: vstatSparkleSpin 3s linear infinite;
}

@keyframes vstatSparkleSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* 7 Chips Grid */
.vstats-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Base Chip: Compact glossy pill */
.vstats-chip {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.92) 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05), inset 0 1px 1px #fff;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  cursor: default;
}

.vstats-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12), inset 0 1px 1px #fff;
  border-color: rgba(124, 58, 237, 0.35);
}

.vstats-chip-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

/* Chip Mini Halos */
.vstats-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
}

.halo-mini-emerald {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
}

.radar-mini-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1.5px solid #10b981;
  animation: radarRipple 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes radarRipple {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.halo-mini-amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #fcd34d; }
.halo-mini-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border: 1px solid #a5b4fc; }
.halo-mini-cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); border: 1px solid #67e8f9; }
.halo-mini-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); border: 1px solid #c4b5fd; }
.halo-mini-pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); border: 1px solid #f9a8d4; }
.halo-mini-gold   { background: linear-gradient(135deg, #fef9c3, #fef08a); border: 1px solid #fde047; }

/* Chip Content */
.vstats-chip-content {
  min-width: 0;
}

.vstats-chip-num {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.1;
  letter-spacing: -0.3px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vstats-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special Total Chip */
.chip-total {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.chip-total .vstats-chip-num {
  color: #b45309;
}

.chip-total .vstats-chip-label {
  color: #92400e;
}

/* Responsive */
@media (max-width: 1024px) {
  .vstats-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .vstats-mini-section {
    padding: 10px 16px 28px 16px;
  }
  .vstats-mini-container {
    padding: 12px 14px;
    border-radius: 16px;
  }
  .vstats-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .chip-total {
    grid-column: span 2;
  }
}

