@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* ==========================================
   PREMIUM WOW DESIGN SYSTEM
   ========================================== */
:root {
  --primary-orange: #FF7800;
  --primary-orange-hover: #E66C00;
  --primary-orange-light: #FFF1E5;
  --primary-yellow: #81B022;
  --primary-yellow-light: #F2F7E9;
  --secondary-blue: #36C0EB;
  /* Replaced with Light Blue */
  --secondary-blue-hover: #2DA9CF;
  --secondary-blue-light: #EBF8FD;
  --accent-purple: #7C3AED;
  --accent-purple-hover: #6D28D9;
  --accent-purple-light: #F5F3FF;

  --primary-green: #10B981;
  --alert-success-bg: #F0FDF4;
  --alert-success-text: #065F46;
  --alert-success-border: var(--primary-green);
  --alert-warning-bg: #FFFBEB;
  --alert-warning-text: #92400E;
  --alert-warning-border: var(--primary-orange);
  --alert-danger-bg: #FEF2F2;
  --alert-danger-text: #991B1B;
  --alert-danger-border: #EF4444;

  --bg-gradient: linear-gradient(180deg, #FFF9F2 0%, #F4F7FC 50%, #FFFDF9 100%);
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border-light: rgba(0, 0, 0, 0.08);

  /* Glassmorphism & Soft 3D Shadows */
  --shadow-premium: 0 20px 40px -10px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 30px 60px -15px rgba(255, 122, 0, 0.2), 0 10px 20px -5px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.03), 0 5px 15px -5px rgba(0, 0, 0, 0.02);
  --border-glass: 1px solid rgba(255, 255, 255, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.75);

  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font-headings: 'Fredoka', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

:root.dark-mode {
  --bg-gradient: linear-gradient(180deg, #0A0D1A 0%, #12162B 50%, #080A15 100%);
  --bg-white: #1B203E;
  --text-dark: #E2E8F0;
  --text-muted: #8F9BB3;
  --border-light: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(22, 26, 49, 0.8);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.05);

  --primary-orange-light: rgba(255, 120, 0, 0.15);
  --primary-yellow-light: rgba(129, 176, 34, 0.15);
  --secondary-blue-light: rgba(54, 192, 235, 0.15);
  --accent-purple-light: rgba(124, 58, 237, 0.15);

  --primary-green: #34D399;
  --alert-success-bg: rgba(16, 185, 129, 0.15);
  --alert-success-text: #34D399;
  --alert-success-border: #10B981;
  --alert-warning-bg: rgba(245, 158, 11, 0.15);
  --alert-warning-text: #FBBF24;
  --alert-warning-border: #F59E0B;
  --alert-danger-bg: rgba(239, 68, 68, 0.15);
  --alert-danger-text: #F87171;
  --alert-danger-border: #EF4444;
  --border-thick: 2px solid rgba(255, 255, 255, 0.15);
}

/* Moonlight twilight overrides for sections and headers */
:root.dark-mode .home-hero {
  background: linear-gradient(135deg, #1C0F08 0%, #0D0F1B 60%) !important;
}
:root.dark-mode footer {
  background: transparent !important;
  border-top: 1px solid var(--border-light) !important;
}

/* Luminous custom gradients for service cards in dark mode */
:root.dark-mode .service-card:nth-child(1),
:root.dark-mode .journey-card:nth-child(1) {
  background: linear-gradient(135deg, #1C1210 0%, #2B1612 100%) !important;
  border-color: rgba(255, 120, 0, 0.25) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 120, 0, 0.08) !important;
}
:root.dark-mode .service-card:nth-child(2),
:root.dark-mode .journey-card:nth-child(2) {
  background: linear-gradient(135deg, #0D1627 0%, #112239 100%) !important;
  border-color: rgba(54, 192, 235, 0.25) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(54, 192, 235, 0.08) !important;
}
:root.dark-mode .service-card:nth-child(3),
:root.dark-mode .journey-card:nth-child(3) {
  background: linear-gradient(135deg, #121021 0%, #1A1235 100%) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.08) !important;
}
:root.dark-mode .service-card:nth-child(4),
:root.dark-mode .journey-card:nth-child(4) {
  background: linear-gradient(135deg, #131713 0%, #1A2415 100%) !important;
  border-color: rgba(129, 176, 34, 0.25) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 176, 34, 0.08) !important;
}

:root.dark-mode .pricing-card,
:root.dark-mode .game-card {
  background: var(--bg-white) !important;
}

:root.dark-mode .pricing-card.playground-ticket {
  background: linear-gradient(135deg, #1C1C13 0%, #2A2A1A 100%) !important;
  border-color: rgba(129, 176, 34, 0.3) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(129, 176, 34, 0.05) !important;
}
:root.dark-mode .ticket-dashed-divider::before,
:root.dark-mode .ticket-dashed-divider::after {
  background: var(--bg-white) !important;
}
:root.dark-mode .kid-hub-header {
  background: linear-gradient(135deg, #131713 0%, #202E19 100%) !important;
  border-color: var(--text-dark) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(129, 176, 34, 0.05) !important;
}
:root.dark-mode .peer-talk-banner {
  background: linear-gradient(135deg, #11152C 0%, #1A1F3D 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}
:root.dark-mode .peer-talk-banner .btn-white {
  background: #FFFFFF !important;
  color: var(--primary-orange) !important;
}
:root.dark-mode .peer-talk-banner .btn-white:hover {
  background: var(--primary-orange) !important;
  color: #FFFFFF !important;
}

/* Mini games twilight overrides */
:root.dark-mode #balloon-game-wrapper {
  background: linear-gradient(180deg, #1E1715 0%, #2B1E19 100%) !important;
  border: 2.5px solid rgba(255, 120, 0, 0.2) !important;
}
:root.dark-mode #bubble-wrap-wrapper {
  background: linear-gradient(180deg, #181423 0%, #231C33 100%) !important;
  border: 2.5px solid rgba(124, 58, 237, 0.2) !important;
}
:root.dark-mode #color-match-wrapper {
  background: linear-gradient(180deg, #101925 0%, #172637 100%) !important;
  border: 2.5px solid rgba(54, 192, 235, 0.2) !important;
}
:root.dark-mode .balloon-screen {
  background: rgba(14, 16, 29, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
}

/* Free Content Banner and Video Thumb classes for Dark Mode */
.free-content-banner {
  background: linear-gradient(135deg, var(--primary-orange-light), #FFE3C2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 3px solid var(--primary-orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
  gap: 15px;
}
:root.dark-mode .free-content-banner {
  background: linear-gradient(135deg, rgba(255, 120, 0, 0.1), rgba(255, 120, 0, 0.25)) !important;
}
.video-thumb {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFE082 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
:root.dark-mode .video-thumb {
  background: linear-gradient(135deg, #1C1910 0%, #2A2415 100%) !important;
  color: var(--text-dark) !important;
}

/* Dashboard mini metrics cards styles for Light/Dark Mode */
.db-mini-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
:root.dark-mode .db-mini-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.db-mini-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
:root.dark-mode .db-mini-card-icon.icon-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
}
:root.dark-mode .db-mini-card-icon.icon-info {
  background: rgba(54, 192, 235, 0.15) !important;
  color: #36C0EB !important;
}
:root.dark-mode .db-mini-card-icon.icon-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #F87171 !important;
}
:root.dark-mode .db-mini-card-icon.icon-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FBBF24 !important;
}
:root.dark-mode .db-mini-card-icon.icon-purple {
  background: rgba(124, 58, 237, 0.15) !important;
  color: #A78BFA !important;
}

:root.dark-mode .pricing-card,
:root.dark-mode .game-card {
  background: var(--bg-white) !important;
}

/* ==========================================
   RESET & LAYOUT BASE
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Glowing ambient background spheres */
.glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: blobFloat 25s infinite alternate ease-in-out;
}

.glow-blob.blob-1 {
  background: radial-gradient(circle, var(--primary-orange) 0%, transparent 80%);
  top: 5%;
  left: -10%;
}

.glow-blob.blob-2 {
  background: radial-gradient(circle, var(--secondary-blue) 0%, transparent 80%);
  top: 40%;
  right: -10%;
  animation-delay: 5s;
}

.glow-blob.blob-3 {
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
  top: 80%;
  left: 5%;
  animation-delay: 10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -60px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Premium Heading Gradient Styling */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

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

.gradient-text {
  color: var(--primary-orange);
  /* Fallback for older browsers */
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Spacers & Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   BOUNCY BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  gap: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-bounce);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-glass);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition-bounce);
  z-index: -1;
  border-radius: 50px;
}

.btn:hover::after {
  transform: scaleY(1);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 15px 30px -5px rgba(255, 122, 0, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1E90B0 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(0, 196, 154, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 15px 30px -5px rgba(0, 196, 154, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2.5px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: white;
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary-orange);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   FLOATING ORNAMENTAL CSS ELEMENTS
   ========================================== */
.bg-decor {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.decor-cloud {
  width: 120px;
  height: 80px;
  background: var(--bg-white);
  border-radius: 100px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  position: absolute;
  animation: floatCloud 25s infinite linear;
}

.decor-cloud::before,
.decor-cloud::after {
  content: '';
  background: var(--bg-white);
  position: absolute;
  border-radius: 50%;
}

.decor-cloud::before {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 20px;
}

.decor-cloud::after {
  width: 70px;
  height: 70px;
  top: -35px;
  right: 20px;
}

@keyframes floatCloud {
  0% {
    transform: translateX(-150px) translateY(0);
  }

  50% {
    transform: translateX(100vw) translateY(20px);
  }

  100% {
    transform: translateX(-150px) translateY(0);
  }
}

/* ==========================================
   WAVY DIVIDER (UPGRADED)
   ========================================== */
.wave-divider {
  display: block;
  width: 100%;
  height: 75px;
  margin: 0;
  fill: var(--bg-white);
  filter: drop-shadow(0 -5px 5px rgba(15, 23, 42, 0.015));
}

.wave-divider.wave-white {
  fill: var(--bg-white);
}

.wave-divider.wave-cream {
  background: #FFF8F0;
  fill: var(--bg-white);
}

.wave-divider.wave-orange {
  fill: var(--primary-orange-light);
}

.wave-divider.wave-bottom {
  transform: rotate(180deg);
}

/* ==========================================
   HEADER SECTION (FLOATING ISLAND NAV)
   ========================================== */
header {
  position: sticky;
  top: 15px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 1200px;
  width: 92%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-bounce);
}

header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 30px;
}

header .logo {
  display: flex;
  align-items: center;
  transform: scale(1);
  transition: var(--transition-bounce);
}

header .logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

header .logo img {
  height: 80px;
  width: auto;
  border-radius: 0;
}

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

header .nav-links a {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

header .nav-links a::after {
  content: '✦';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  color: var(--primary-orange);
  font-size: 0.8rem;
  transition: var(--transition-bounce);
}

header .nav-links a:hover,
header .nav-links .active {
  color: var(--primary-orange);
}

header .nav-links a:hover::after,
header .nav-links .active::after {
  transform: translateX(-50%) scale(1);
}

header .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

header .nav-actions .btn {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* Mobile Nav Toggle */
header .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

header .nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition-bounce);
}

header .nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

header .nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

header .nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   FOOTER SECTION (UPGRADED)
   ========================================== */
footer {
  background: var(--primary-orange);
  padding: 100px 0 40px;
  border-top: none;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 135px;
  width: auto;
  margin-bottom: 24px;
  border-radius: 0;
}

.footer-brand p {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border-radius: 50%;
  color: var(--primary-orange);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
}

.footer-title {
  margin-bottom: 24px;
  font-size: 1.35rem;
  color: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: white;
  font-weight: 500;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFF0E5;
  transform: translateX(6px);
}

.footer-contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  color: white;
}

.footer-contact-item a {
  color: white;
}

.footer-contact-icon {
  color: var(--primary-orange);
  background: var(--bg-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-contact-item p {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.95rem;
}

/* ==========================================
   HERO BANNER COMPONENT
   ========================================== */
.hero-banner {
  background: var(--primary-orange);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 40px;
  border-radius: 40px;
  width: 92%;
  margin-left: auto;
  margin-right: auto;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
}

.hero-banner h1 {
  margin-bottom: 16px;
  color: white;
}

.hero-banner h1 .gradient-text {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* ==========================================
   HOMEPAGE (WOW LAYOUT)
   ========================================== */
.home-hero {
  margin-top: -120px;
  padding: 220px 0 140px;
  position: relative;
  overflow: hidden;
  background: #FF7800;
}

/* Animated hero canvas — confined to this section only */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
}

.home-hero-content h1 {
  margin-bottom: 24px;
}

.home-hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.home-hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Floating interactive dashboard UI mockup on hero right */
.home-hero-image {
  position: relative;
  background: var(--bg-white);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow-hover);
  border: var(--border-glass);
}

.home-hero-image img {
  border-radius: 20px;
  width: 100%;
  display: block;
}

/* Floating widgets elements */
.hero-widget {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: widgetFloat 4s ease-in-out infinite alternate;
}

.hero-widget.w1 {
  top: -30px;
  left: -40px;
}

.hero-widget.w2 {
  bottom: -20px;
  right: -30px;
  animation-delay: 2s;
}

.hero-widget-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-widget.w1 .hero-widget-icon {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

.hero-widget.w2 .hero-widget-icon {
  background: var(--secondary-blue-light);
  color: var(--secondary-blue);
}

.hero-widget-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hero-widget-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@keyframes widgetFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}

.section-header>span {
  color: var(--primary-orange);
  background: var(--primary-orange-light);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 18px;
}

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

/* Services */
.home-services {
  padding: 120px 0;
  background-color: var(--bg-white);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (min-width: 1025px) {
  .service-card:nth-child(1) {
    grid-column: span 2;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 30px;
    padding: 40px 45px;
  }

  .service-card:nth-child(1) .service-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .service-card:nth-child(4) {
    grid-column: span 2;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 30px;
    padding: 40px 45px;
  }

  .service-card:nth-child(4) .service-icon {
    margin: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Card WOW effect: Glass, Border-highlight on hover, dynamic shadow glows */
.service-card {
  background: var(--bg-white);
  padding: 50px 35px;
  border-radius: 36px;
  text-align: center;
  transition: var(--transition-bounce);
  border: 2px solid rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  opacity: 0;
  transition: var(--transition-bounce);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-12px);
  background: var(--bg-white);
}

/* Individual card hover glows based on theme */
.service-card:has(.orange):hover {
  box-shadow: 0 25px 50px -10px rgba(255, 138, 0, 0.2);
  border-color: rgba(255, 138, 0, 0.2);
}

.service-card:has(.blue):hover {
  box-shadow: 0 25px 50px -10px rgba(0, 163, 173, 0.2);
  border-color: rgba(0, 163, 173, 0.2);
}

.service-card:has(.purple):hover {
  box-shadow: 0 25px 50px -10px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.2);
}

.service-card:has(.yellow):hover {
  box-shadow: 0 25px 50px -10px rgba(255, 199, 44, 0.3);
  border-color: rgba(255, 199, 44, 0.3);
}

.service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: var(--transition-bounce);
  animation: morphShape 8s ease-in-out infinite alternate;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(15deg);
  animation-play-state: paused;
}

.service-icon.orange {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
}

.service-icon.blue {
  background-color: var(--secondary-blue-light);
  color: var(--secondary-blue);
  animation-delay: 2s;
}

.service-icon.purple {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
  animation-delay: 4s;
}

.service-icon.yellow {
  background-color: var(--primary-yellow-light);
  color: var(--primary-yellow);
  animation-delay: 6s;
}

@keyframes morphShape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
  }

  100% {
    border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
  }
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Home About */
.home-about {
  padding: 120px 0;
  position: relative;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.home-about-images {
  position: relative;
  background: var(--bg-white);
  padding: 20px;
  border-radius: 32px;
  box-shadow: var(--shadow-premium);
  border: var(--border-glass);
}

.home-about-images img {
  border-radius: 20px;
}

.home-about-content>span {
  color: var(--primary-orange);
  background: var(--primary-orange-light);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.home-about-content h2 {
  margin-bottom: 30px;
}

.home-about-section {
  margin-bottom: 28px;
}

.home-about-section h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-about-section h3::before {
  content: '★';
  color: var(--primary-yellow);
}

.home-about-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Statistics Ribbon */
.stats-ribbon {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1E90B0 100%);
  color: white;
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40px;
  background: var(--bg-glass);
}

.stat-item:last-child::after {
  display: none;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-yellow);
  margin-bottom: 8px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-item p {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Latest News Segment */
.home-news {
  padding: 120px 0 40px;
  background-color: var(--bg-white);
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 50px;
}

.news-card {
  background: var(--bg-white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 0, 0.15);
}

.news-card-img {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.news-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.news-card:hover .card-emoji {
  transform: scale(1.2) rotate(10deg);
}

.news-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.news-card-date i {
  margin-right: 6px;
  color: var(--primary-orange);
}

.news-card-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 14px;
  font-family: var(--font-headings);
}

.news-card-title a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--primary-orange);
}

.news-card-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.news-card-link {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.news-card-link:hover {
  gap: 12px;
}

/* Newsletter Segment */
.home-newsletter {
  padding: 20px 0 100px;
  background-color: var(--bg-white);
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary-orange-light) 0%, #FFE3C2 100%);
  border-radius: 40px;
  padding: 80px 50px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 4px dashed rgba(255, 122, 0, 0.08);
  border-radius: 50%;
  top: -100px;
  left: -100px;
}

.newsletter-card h2 {
  margin-bottom: 16px;
  color: var(--text-dark);
}

.newsletter-card p {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  gap: 12px;
  background: var(--bg-white);
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
}

.newsletter-form .btn {
  padding: 14px 30px;
}

/* ==========================================
   GAMES PAGE (WOW REDESIGN)
   ========================================== */
.games-filter-container {
  padding: 40px 0 20px;
  position: relative;
}

.games-grid-section {
  padding: 20px 0 100px;
  position: relative;
}

.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition-bounce);
  color: var(--text-dark);
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--primary-orange);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(255, 122, 0, 0.35);
}

/* 3D Game Cards */
.game-card {
  background: var(--bg-white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: var(--border-glass);
  transition: var(--transition-bounce);
  position: relative;
}

.game-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.03) rotateX(3deg) rotateY(-3deg);
  box-shadow: var(--shadow-hover);
}

.game-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}

.game-card-img::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 64px;
  height: 64px;
  background: var(--bg-glass);
  border-radius: 50%;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 5px;
  /* Offset triangle play shape */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: var(--transition-bounce);
}

.game-card:hover .game-card-img::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.game-card-age {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary-orange);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
}

.game-card-content {
  padding: 30px;
  text-align: center;
}

.game-card-title {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.game-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 54px;
}

/* Peer talk banner */
.peer-talk-banner {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-dark) 100%);
  border-radius: 40px;
  padding: 70px 60px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
}

.peer-talk-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.2) 0%, transparent 65%);
  top: -150px;
  right: -100px;
}

.peer-talk-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.peer-talk-content span {
  color: var(--primary-orange);
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.peer-talk-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.peer-talk-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ==========================================
   BLOG PAGE (WOW SIDEBAR & FEED)
   ========================================== */
.blog-post-card {
  background: var(--bg-white);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  border: var(--border-glass);
  transition: var(--transition-bounce);
  overflow: hidden;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-post-img {
  min-height: 280px;
}

.blog-post-content {
  padding: 45px;
}

.blog-post-title {
  font-size: 1.65rem;
  line-height: 1.3;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: 32px;
  padding: 35px;
  box-shadow: var(--shadow-card);
  border: var(--border-glass);
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

/* Ads Widget gradient mesh */
.ads-widget {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #4F46E5 100%);
  color: white;
  border-radius: 32px;
  padding: 50px 35px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

.ads-widget h3 {
  font-size: 1.85rem;
}

/* ==========================================
   CONTACT PAGE (WOW GLOW FORM)
   ========================================== */
.contact-card {
  background: var(--bg-white);
  border-radius: 36px;
  padding: 60px;
  box-shadow: var(--shadow-premium);
  border: var(--border-glass);
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: left;
}

.contact-form-group label {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-form-group input,
.contact-form-group textarea {
  background-color: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px 22px;
  transition: var(--transition-bounce);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  background: var(--bg-white);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.15);
}

.info-card {
  border-radius: 28px;
  padding: 35px;
  border: var(--border-glass);
}

.info-card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  font-size: 1.4rem;
}

/* ==========================================
   LOGIN PAGE (WOW BLUR SCREEN)
   ========================================== */
.login-body {
  background: linear-gradient(-45deg, #FF7800, #FFA040, #FF5500, #FF8833);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 15px;
}

.login-bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.login-decor-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatDecor 15s infinite alternate ease-in-out;
}

.login-decor-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: floatDecor 20s infinite alternate ease-in-out;
  animation-delay: 3s;
}

@keyframes floatDecor {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

.login-card {
  max-width: 460px;
  width: 90%;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 36px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  text-align: center;
  z-index: 10;
}

.login-logo {
  height: 120px;
  margin-bottom: 20px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.forgot-link,
.login-footer a {
  color: var(--primary-orange);
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-link:hover,
.login-footer a:hover {
  color: var(--primary-orange-hover);
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.password-toggle-icon:hover {
  opacity: 1;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 30px;
  font-size: 0.95rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.85rem;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--text-muted);
  margin: 0 15px;
}

/* ==========================================
   MEMBERS PAGE (WOW ACCORDION)
   ========================================== */
/* Pricing Section Details */
.subscription-pricing {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  max-width: 500px;
  width: 100%;
}

.pricing-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 36px;
  padding: 65px 45px 45px;
  text-align: center;
  transition: var(--transition-bounce);
  border: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 20px 50px rgba(255, 122, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(255, 122, 0, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  color: white;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 8px 24px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.25);
  text-transform: uppercase;
}

.pricing-plan-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-family: var(--font-headings);
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: 30px;
  font-family: var(--font-headings);
}

.pricing-price span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  width: 100%;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.4;
}

.feature-tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
  padding: 16px 32px;
}


/* ==========================================
   SUBPAGES REDESIGNED DESKTOP GRID LAYOUTS
   ========================================== */
/* About Page Learning Journey */
.about-journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 50px;
}

.journey-card {
  background: var(--bg-white);
  padding: 45px 35px;
  border-radius: 36px;
  text-align: center;
  transition: var(--transition-bounce);
  border: 2px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.journey-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.journey-card:has(.orange):hover {
  border-color: rgba(255, 122, 0, 0.2);
}

.journey-card:has(.blue):hover {
  border-color: rgba(0, 196, 154, 0.2);
}

.journey-card:has(.purple):hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.journey-card:has(.yellow):hover {
  border-color: rgba(255, 199, 44, 0.3);
}

/* Games Page Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 80px;
}

/* Blog Page Grid & Feed */
.blog-layout {
  margin: 60px auto 120px;
  width: 100%;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 1024px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input {
  flex: 1;
  background-color: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px 18px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-bounce);
}

.search-form input:focus {
  background: var(--bg-white);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.search-form button {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: var(--font-headings);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.2);
}

.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-list li {
  margin-bottom: 15px;
}

.sidebar-category-list li:last-child {
  margin-bottom: 0;
}

.sidebar-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 15px;
  border-radius: 14px;
  transition: var(--transition-bounce);
  background-color: var(--bg-light);
}

.sidebar-category-list a:hover {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  transform: translateX(5px);
}

.category-count {
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sidebar-category-list a:hover .category-count {
  background-color: var(--primary-orange);
  color: white;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tag {
  background-color: var(--bg-light);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 12px;
  transition: var(--transition-bounce);
  border: 1px solid transparent;
  display: inline-block;
}

a.blog-tag:hover {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  border-color: rgba(255, 122, 0, 0.15);
  transform: translateY(-2px);
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-post-meta span i {
  color: var(--primary-orange);
  margin-right: 6px;
}

.blog-post-category {
  font-weight: 600;
}

.blog-post-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 16px 0 24px;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Contact Page Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  margin: 60px auto 120px;
  align-items: start;
}

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

.info-card {
  background: var(--bg-white);
  border-radius: 28px;
  padding: 35px;
  border: var(--border-glass);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-bounce);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.info-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Members Portal Layout */
.members-layout {
  margin: 60px auto 120px;
}

.faq-section {
  margin-top: 100px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  header {
    width: 95%;
    top: 10px;
  }

  .home-hero-grid,
  .home-about-grid,
  .blog-layout,
  .contact-layout,
  .faq-grid,
  .games-grid,
  .about-journey-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  header .navbar {
    height: 76px;
    padding: 0 20px;
  }

  header .nav-links {
    position: fixed;
    top: 100px;
    left: -105%;
    width: 100%;
    height: calc(100vh - 120px);
    background: var(--bg-white);
    border-radius: 30px;
    flex-direction: column;
    padding: 50px 30px;
    gap: 30px;
    box-shadow: var(--shadow-hover);
    border: var(--border-glass);
  }

  header .nav-links.open {
    left: 0;
  }

  header .nav-links a {
    font-size: 20px !important;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  header .nav-links a::after {
    left: -20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) scale(0);
  }

  header .nav-links a:hover::after,
  header .nav-links .active::after {
    transform: translateY(-50%) scale(1);
  }

  header .nav-toggle {
    display: block;
  }

  header .nav-actions {
    margin-right: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .newsletter-card {
    padding: 50px 24px;
  }

  .newsletter-form {
    flex-direction: column;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .newsletter-form input {
    background: var(--bg-white);
    padding: 16px 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .contact-card {
    padding: 30px 20px;
  }
}

/* ==========================================
   CUSTOM PLAYFUL CSS-ONLY ILLUSTRATIONS
   ========================================== */
/* Drawing Sandbox Widget */
.sandbox-widget {
  background: var(--bg-white);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow-hover);
  border: var(--border-glass);
  width: 100%;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(255, 122, 0, 0.1);
  margin-bottom: 20px;
}

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

.sandbox-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-light);
}

.sandbox-dots span:nth-child(1) {
  background-color: #FF2E93;
}

.sandbox-dots span:nth-child(2) {
  background-color: #FFC72C;
}

.sandbox-dots span:nth-child(3) {
  background-color: #00D2C4;
}

.sandbox-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sandbox-body {
  display: flex;
  flex: 1;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.sandbox-canvas {
  flex: 1;
  height: 240px;
  background-color: var(--bg-light);
  border-radius: 20px;
  border: 2px dashed rgba(0, 0, 0, 0.05);
  padding: 10px;
}

.sandbox-palette {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sandbox-palette span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-bounce);
}

.sandbox-palette span:hover {
  transform: scale(1.2);
}

/* Blackboard Widget */
.board-widget {
  background: #4E3629;
  /* Wooden border */
  padding: 16px;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  width: 100%;
  height: 360px;
  position: relative;
}

.board-frame {
  background: #1B3B2B;
  /* Chalkboard green */
  height: 100%;
  width: 100%;
  border-radius: 12px;
  border: 4px solid #3D2A20;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-headings);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.chalk-text {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.chalk-math {
  font-size: 2.2rem;
  margin-top: 10px;
  color: rgba(255, 249, 196, 0.8);
}

.board-chalks {
  position: absolute;
  bottom: 22px;
  right: 32px;
  display: flex;
  gap: 8px;
}

.board-chalks span {
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: var(--bg-white);
  opacity: 0.8;
}

.board-chalks .chalk-orange {
  background-color: var(--primary-orange);
}

.board-chalks .chalk-yellow {
  background-color: var(--primary-yellow);
}

.board-chalks .chalk-blue {
  background-color: var(--secondary-blue);
}

/* FAQ Board Widget */
.faq-board-widget {
  background: linear-gradient(135deg, var(--primary-orange-light) 0%, #FFE3C2 100%);
  border-radius: 32px;
  padding: 40px;
  height: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.faq-icon-bubble {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  animation: widgetFloat 3s ease-in-out infinite alternate;
}

.faq-icon-bubble.bubble-1 {
  top: 40px;
  left: 40px;
  color: var(--primary-orange);
}

.faq-icon-bubble.bubble-2 {
  bottom: 50px;
  left: 60px;
  color: var(--primary-yellow);
  animation-delay: 1.5s;
}

.faq-icon-bubble.bubble-3 {
  top: 60px;
  right: 50px;
  color: var(--secondary-blue);
  animation-delay: 0.7s;
}

.faq-board-title {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  color: var(--text-dark);
  max-width: 220px;
  margin-top: 60px;
  line-height: 1.3;
}

/* Sidebar Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-post-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post-thumb {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.popular-post-info {
  flex: 1;
}

.popular-post-info h4 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
  font-weight: 600;
}

.popular-post-info h4 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.popular-post-info h4 a:hover {
  color: var(--primary-orange);
}

.popular-post-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-emoji {
  transition: transform 0.4s var(--transition-bounce);
}

.news-card:hover .card-emoji,
.game-card:hover .card-emoji,
.blog-post-card:hover .card-emoji {
  transform: scale(1.25) rotate(10deg);
}

/* ==========================================
   INTERACTIVE WORKSPACE ADDITIONS
   ========================================== */
.sandbox-palette span.active {
  transform: scale(1.25);
  box-shadow: 0 0 15px currentColor;
  border: 2px solid white;
}

/* 3D tilt and gloss variables */
.game-card,
.service-card,
.news-card,
.pricing-card,
.journey-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* Reflection overlay */
.game-card::after,
.service-card::after,
.news-card::after,
.pricing-card::after,
.journey-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: inherit;
}

.game-card:hover::after,
.service-card:hover::after,
.news-card:hover::after,
.pricing-card:hover::after,
.journey-card:hover::after {
  opacity: 1;
}

/* Custom cursor and dynamic particles */
.custom-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.8) 0%, rgba(255, 194, 41, 0.4) 100%);
  border: 2px solid white;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
  display: none;
}

@media (pointer: coarse) {

  /* Disable custom cursor on touch screens */
  .custom-cursor {
    display: none !important;
  }
}

.cursor-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px currentColor;
  opacity: 0.8;
}

.color-splash-particle {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sound Toggle Pill style */
.btn-sound-toggle {
  background: var(--bg-glass);
  border: 2.5px solid rgba(0, 0, 0, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition-bounce);
  padding: 0;
}

.btn-sound-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-orange);
  border-color: var(--primary-orange-light);
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.15);
}

.btn-sound-toggle.sound-on {
  color: white;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.25);
}

/* Chalk Stick UI highlight */
.chalk-stick.active {
  box-shadow: 0 0 10px white, 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   BUBBLY PLAYFUL CLAYMORPHIC OVERRIDES
   ========================================== */
:root {
  --border-thick: 2px solid rgba(15, 23, 42, 0.08);
  --shadow-offset: 0 15px 35px -5px rgba(15, 23, 42, 0.05), 0 5px 15px -5px rgba(15, 23, 42, 0.02);
  --shadow-offset-hover: 0 30px 60px -15px rgba(255, 122, 0, 0.12), 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  --shadow-offset-btn: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  --shadow-offset-btn-hover: 0 12px 25px -4px rgba(255, 122, 0, 0.25);
  --shadow-offset-nav: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* Float Nav Capsule */
header {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset-nav) !important;
  background: var(--bg-glass) !important;
}

/* Global Cards visual redesign */
.service-card,
.news-card,
.game-card,
.pricing-card,
.journey-card,
.info-card,
.contact-card,
.login-card,
.newsletter-card,
.board-widget,
.faq-board-widget,
.popular-post-item,
.ads-widget {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 36px !important;
  transition: var(--transition-bounce) !important;
  background: var(--bg-white) !important;
}

.service-card:hover,
.news-card:hover,
.game-card:hover,
.pricing-card:hover,
.journey-card:hover,
.info-card:hover,
.contact-card:hover,
.login-card:hover,
.board-widget:hover,
.faq-board-widget:hover,
.ads-widget:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: var(--shadow-offset-hover) !important;
}

/* Individual card gradient colors */
.service-card:nth-child(1),
.journey-card:nth-child(1) {
  background: linear-gradient(135deg, #FFF9F2 0%, #FFEAD6 100%) !important;
}

.service-card:nth-child(2),
.journey-card:nth-child(2) {
  background: linear-gradient(135deg, #F4F7FC 0%, #E6F7FA 100%) !important;
}

.service-card:nth-child(3),
.journey-card:nth-child(3) {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%) !important;
}

.service-card:nth-child(4),
.journey-card:nth-child(4) {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF9E6 100%) !important;
}

/* Widgets / Dashboards */
.dashboard-mini-card,
.hero-widget,
.sandbox-widget,
.faq-image .faq-board-widget {
  border: var(--border-thick) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04) !important;
  border-radius: 28px !important;
}

/* Accordion Details */
.faq-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 25px !important;
  overflow: visible !important;
}

.faq-trigger-wrapper {
  width: 100%;
}

.faq-trigger {
  background: #f3f4f6;
  border: none;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  z-index: 2;
  gap: 15px;
}

.faq-trigger:hover {
  background: #e5e7eb;
  border-bottom-color: #e5e7eb;
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
  z-index: 1;
}

.faq-content p {
  padding: 20px 5px !important;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset-btn) !important;
  transition: var(--transition-bounce) !important;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--shadow-offset-btn-hover) !important;
}

.btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.1) !important;
}

/* Form Inputs and text areas */
.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea,
.password-input-wrapper input,
.newsletter-form input {
  border: var(--border-thick) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03) !important;
  border-radius: 20px !important;
  background: var(--bg-white) !important;
  color: var(--text-dark) !important;
  padding: 16px 22px !important;
  outline: none !important;
  transition: var(--transition-bounce);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus,
.password-input-wrapper input:focus,
.newsletter-form input:focus {
  border-color: var(--primary-orange) !important;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Sound volume control pill button */
.btn-sound-toggle {
  border: var(--border-thick) !important;
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
  border-radius: 50% !important;
  transition: var(--transition-bounce) !important;
}

.btn-sound-toggle:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 15px -3px rgba(255, 122, 0, 0.15) !important;
}

/* Statistics Ribbon */
.stats-ribbon {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1E90B0 100%) !important;
  border-top: var(--border-thick) !important;
  border-bottom: var(--border-thick) !important;
}

/* Blog layouts */
.blog-sidebar .search-form,
.blog-sidebar-widget {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 28px !important;
  background: var(--bg-white) !important;
}

.blog-post-card {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 36px !important;
  overflow: hidden;
  background: var(--bg-white) !important;
  transition: var(--transition-bounce) !important;
}

.blog-post-card:hover {
  transform: translate(-4px, -4px) !important;
  box-shadow: var(--shadow-offset-hover) !important;
}

/* Peer Talk promo banner visual */
.peer-talk-banner {
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 36px !important;
}

/* ==========================================
   MAGICAL CARTOON PLAYGROUND ILLUSTRATED SYSTEM
   ========================================== */

/* Sky Hero Animations */
.hero-sky-decor {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.balloon-decor {
  position: absolute;
  font-size: 3.5rem;
  animation: balloonFloat 25s infinite linear;
}

.balloon-decor.b1 {
  top: 10%;
  left: 10%;
  animation-duration: 28s;
}

.balloon-decor.b2 {
  top: 30%;
  right: 15%;
  animation-duration: 35s;
  animation-delay: 5s;
}

@keyframes balloonFloat {
  0% {
    transform: translateY(105vh) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-15vh) translateX(100px) rotate(12deg);
    opacity: 0;
  }
}

/* Blackboard chain mounts */
.blackboard-chain-wrapper {
  position: relative;
  padding-top: 30px;
}

.board-widget::before,
.board-widget::after {
  content: '⛓️';
  position: absolute;
  top: -24px;
  font-size: 1.8rem;
  color: var(--text-muted);
  z-index: -1;
  animation: windSway 6s ease-in-out infinite alternate;
}

.board-widget::before {
  left: 50px;
}

.board-widget::after {
  right: 50px;
}

@keyframes windSway {
  0% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(3deg);
  }
}

/* Bouncy Toy Train Stats */
.toy-train-stats-section {
  position: relative;
  padding: 100px 0;
  background: #FCFBF7;
  border-top: var(--border-thick) !important;
  border-bottom: var(--border-thick) !important;
  overflow: hidden;
}

.train-tracks {
  position: absolute;
  bottom: 120px;
  left: 0;
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(90deg, #475569 0px, #475569 8px, transparent 8px, transparent 28px);
  border-top: 3.5px solid var(--text-dark);
  border-bottom: 3.5px solid var(--text-dark);
  z-index: 1;
}

.toy-train-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0px;
  position: relative;
  width: 100%;
  padding-bottom: 30px;
  z-index: 2;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.toy-train-wrapper::-webkit-scrollbar {
  display: none;
}

.train-engine {
  flex-shrink: 0;
  width: 170px;
  height: 130px;
  background: #FF5E7E;
  border: var(--border-thick);
  border-radius: 24px 24px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-offset);
  z-index: 3;
}

.train-engine-cab {
  position: absolute;
  top: -24px;
  right: 15px;
  width: 60px;
  height: 40px;
  background: #FF2E93;
  border: var(--border-thick);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.train-engine-chimney {
  position: absolute;
  top: -32px;
  left: 30px;
  width: 24px;
  height: 32px;
  background: #FFD200;
  border: var(--border-thick);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.steam-bubble {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(15, 23, 42, 0.15);
  border: 2px solid var(--text-dark);
  border-radius: 50%;
  top: -50px;
  left: 34px;
  animation: puffSteam 3s infinite ease-out;
}

.steam-bubble.s2 {
  animation-delay: 1s;
  width: 22px;
  height: 22px;
  top: -70px;
}

.steam-bubble.s3 {
  animation-delay: 2s;
  width: 28px;
  height: 28px;
  top: -90px;
}

@keyframes puffSteam {
  0% {
    transform: translateY(20px) scale(0.3);
    opacity: 0;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-40px) translateX(30px) scale(1.3);
    opacity: 0;
  }
}

.train-wheel {
  position: absolute;
  bottom: -18px;
  width: 38px;
  height: 38px;
  background: #FFD200;
  border: 3.5px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-dark);
}

.train-wheel::before {
  content: '+';
  font-size: 1.2rem;
}

.train-wheel.w1 {
  left: 15px;
}

.train-wheel.w2 {
  left: 65px;
}

.train-wheel.w3 {
  right: 15px;
}

.train-carriage-connector {
  width: 24px;
  height: 10px;
  background: #475569;
  border-top: 3.5px solid var(--text-dark);
  border-bottom: 3.5px solid var(--text-dark);
  margin-bottom: 30px;
  flex-shrink: 0;
  z-index: 1;
}

.train-carriage {
  flex-shrink: 0;
  width: 210px;
  height: 110px;
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 24px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: var(--bg-white);
}

.train-carriage-wheel-1,
.train-carriage-wheel-2 {
  position: absolute;
  bottom: -18px;
  width: 34px;
  height: 34px;
  background: #475569;
  border: 3.5px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.train-carriage-wheel-1::before,
.train-carriage-wheel-2::before {
  content: 'x';
  font-size: 0.8rem;
}

.train-carriage-wheel-1 {
  left: 24px;
}

.train-carriage-wheel-2 {
  right: 24px;
}

/* Pricing Ticket */
.pricing-card.playground-ticket {
  background: #FFF9E6 !important;
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 24px !important;
  position: relative;
  overflow: visible !important;
  padding: 55px 35px 35px;
}

/* Align ticket notches with the dashed divider */
.ticket-dashed-divider {
  position: relative;
  width: calc(100% + 70px) !important;
  margin: 25px -35px !important;
  height: 2px;
  border-top: 3.5px dashed var(--text-dark);
}

.ticket-dashed-divider::before,
.ticket-dashed-divider::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background: #FCFBF7;
  border: 3.5px solid var(--text-dark);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.ticket-dashed-divider::before {
  left: -14px;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.ticket-dashed-divider::after {
  right: -14px;
  clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

.ticket-barcode {
  width: 100%;
  height: 38px;
  background: repeating-linear-gradient(90deg, var(--text-dark) 0px, var(--text-dark) 2.5px, transparent 2.5px, transparent 6px, var(--text-dark) 6px, var(--text-dark) 9px);
  margin-top: 20px;
  opacity: 0.85;
}

/* Clothesline grid news articles */
.clothesline-wrapper {
  position: relative;
  padding-top: 50px;
  margin-bottom: 50px;
}

.clothesline-line {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #475569;
  border-top: 2px dashed var(--text-dark);
  z-index: 1;
}

.news-card.clothesline-item {
  position: relative;
  z-index: 2;
  transform-origin: top center;
  animation: newsSway 8s ease-in-out infinite alternate;
}

.news-card.clothesline-item:nth-child(even) {
  animation-delay: 2s;
}

@keyframes newsSway {
  0% {
    transform: rotate(-2deg);
  }

  100% {
    transform: rotate(2deg);
  }
}

.clothesline-peg {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 34px;
  background: #D2B48C;
  border: 3px solid var(--text-dark);
  border-radius: 4px;
  z-index: 5;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.clothesline-peg::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: #00C49A;
  border-radius: 50%;
}

/* Crayon Notebook layout contact form */
.crayon-notebook {
  background: var(--bg-white) !important;
  background-image: linear-gradient(var(--border-light) 1.5px, transparent 1.5px) !important;
  background-size: 100% 32px !important;
  padding: 60px 40px 40px 75px !important;
  position: relative;
  box-shadow: var(--shadow-offset) !important;
}

.notebook-spiral-container {
  position: absolute;
  top: 30px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100% - 60px);
  z-index: 5;
}

.spiral-loop {
  width: 32px;
  height: 14px;
  background: #94A3B8;
  border: 3px solid var(--text-dark);
  border-radius: 7px;
  transform: rotate(-18deg);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
}

.crayon-notebook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 62px;
  width: 2px;
  height: 100%;
  background-color: #FF5E7E;
  border-right: 1.5px solid #FF5E7E;
  z-index: 2;
}

/* Board Game milestones timeline */
.board-game-container {
  position: relative;
  padding: 60px 0;
  margin-top: 30px;
}

.board-game-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .board-game-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .board-game-steps {
    grid-template-columns: 1fr;
  }
}

.board-game-step-card {
  background: var(--bg-white) !important;
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 32px !important;
  padding: 45px 30px 30px !important;
  text-align: center;
  position: relative;
  transition: var(--transition-bounce) !important;
}

.board-game-step-card:hover {
  transform: translateY(-8px) rotate(2deg) !important;
  box-shadow: var(--shadow-offset-hover) !important;
}

.board-game-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #FFD200;
  color: var(--text-dark);
  border: 3px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 2px 2px 0px var(--text-dark);
}

/* Toy cartridge visual game card */
.game-card.toy-cartridge {
  background: var(--bg-white) !important;
  border: 3.5px solid var(--text-dark) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 36px !important;
  position: relative;
  overflow: visible !important;
}

.game-card.toy-cartridge .game-card-img {
  overflow: hidden !important;
}

.cartridge-ridge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 20px;
  border: 3.5px solid var(--text-dark);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  z-index: 2;
}

/* Parent Portal Sign In / Sign Up Tabs styling */
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px dashed rgba(15, 23, 42, 0.08);
  padding-bottom: 15px;
  width: 100%;
}

.auth-tab {
  background: none;
  border: none;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 20px;
  transition: var(--transition-bounce);
}

.auth-tab:hover {
  color: var(--primary-orange);
}

.auth-tab.active {
  color: white !important;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%) !important;
  box-shadow: 0 8px 16px rgba(255, 122, 0, 0.2) !important;
}

/* ==========================================
   DASHBOARD COMPONENTS & LAYOUT SYSTEM
   ========================================== */

/* Main Containers */
.db-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin: 40px auto 80px;
}

@media (max-width: 1024px) {
  .db-container {
    grid-template-columns: 1fr;
  }
}

/* Cards & Widgets */
.db-card {
  background: var(--bg-white) !important;
  border: 3.5px solid var(--text-dark) !important;
  box-shadow: var(--shadow-offset) !important;
  border-radius: 28px !important;
  padding: 24px;
  position: relative;
  transition: var(--transition-bounce) !important;
  overflow: hidden;
}

.db-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-offset-hover) !important;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.db-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid var(--text-dark);
}

.db-card-value {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 5px;
}

.db-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Data Tables */
.db-table-wrapper {
  background: var(--bg-white);
  border: 3.5px solid var(--text-dark);
  border-radius: 28px;
  box-shadow: var(--shadow-offset);
  overflow-x: auto;
  margin-bottom: 30px;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.db-table th {
  background: var(--primary-orange-light);
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
  padding: 18px 20px;
  border-bottom: 3.5px solid var(--text-dark);
}

.db-table td {
  padding: 16px 20px;
  border-bottom: 2px dashed rgba(15, 23, 42, 0.08);
  color: var(--text-dark);
}

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

.db-table tr:hover td {
  background-color: var(--primary-yellow-light);
}

/* Badges */
.db-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--text-dark);
  text-transform: capitalize;
}

.db-badge.active,
.db-badge.premium {
  background: var(--secondary-blue-light);
  color: var(--secondary-blue-hover);
}

.db-badge.inactive,
.db-badge.free {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

/* Tab Switchers */
.db-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.db-tab-btn {
  background: var(--bg-white);
  border: 2.5px solid var(--text-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--text-dark);
  transition: var(--transition-bounce);
}

.db-tab-btn:hover {
  transform: translateY(-2px);
  background-color: var(--primary-yellow-light);
}

.db-tab-btn.active {
  background-color: var(--primary-orange) !important;
  color: white !important;
  box-shadow: 3px 3px 0px var(--text-dark) !important;
}

/* Circular & Bar Progress Indicators */
.progress-bar-container {
  width: 100%;
  height: 16px;
  background: #F1F5F9;
  border: 2.5px solid var(--text-dark);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1s ease-in-out;
}

/* Claymorphic Form Inputs */
.db-input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-input-group label {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.db-input-group input,
.db-input-group select {
  padding: 12px 20px;
  border: 2.5px solid var(--text-dark);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-bounce);
}

.db-input-group input:focus,
.db-input-group select:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--primary-orange-light);
}

/* Credit Card Checkout Simulation */
.cc-widget {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #4F46E5 100%);
  border: 3.5px solid var(--text-dark);
  border-radius: 24px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-offset);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
}

.cc-chip {
  width: 45px;
  height: 35px;
  background: #FFD200;
  border: 2px solid var(--text-dark);
  border-radius: 6px;
}

.cc-number {
  font-family: monospace;
  font-size: 1.45rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin: 20px 0;
}

.cc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Children Portal Specific layouts */
.kid-hub-header {
  background: linear-gradient(135deg, var(--primary-yellow-light) 0%, #D8EBA8 100%);
  border: 3.5px solid var(--text-dark);
  border-radius: 36px;
  padding: 40px 30px;
  box-shadow: var(--shadow-offset);
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
  gap: 15px;
}

.kid-hub-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 10px;
}

.kid-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .kid-tab-grid {
    grid-template-columns: 1fr;
  }
}

.kid-tab-card {
  background: var(--bg-white);
  border: 3.5px solid var(--text-dark);
  box-shadow: var(--shadow-offset);
  border-radius: 28px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.kid-tab-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(1.5deg);
  box-shadow: var(--shadow-offset-hover);
}

.kid-tab-card.active {
  box-shadow: 5px 5px 0px var(--text-dark) !important;
}

.kid-tab-card.active.c1 {
  background: linear-gradient(135deg, #F2F7E9 0%, var(--primary-yellow) 100%);
}

.kid-tab-card.active.c2 {
  background: linear-gradient(135deg, #EBF8FD 0%, var(--secondary-blue) 100%);
}

.kid-tab-card.active.c3 {
  background: linear-gradient(135deg, #F5F3FF 0%, var(--accent-purple) 100%);
}

.kid-tab-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
}

.kid-tab-card h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  color: var(--text-dark);
}

/* Children Worksheet & Video grids */
.pdf-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.pdf-card {
  background: var(--bg-white);
  border: 3.5px solid var(--text-dark);
  box-shadow: var(--shadow-offset);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  transition: var(--transition-bounce);
}

.pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-offset-hover);
}

.pdf-thumb {
  height: 160px;
  background: #F8FAFC;
  border: 2.5px solid var(--text-dark);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 18px;
}

.video-card {
  background: var(--bg-white);
  border: 3.5px solid var(--text-dark);
  box-shadow: var(--shadow-offset);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-offset-hover);
}

.video-thumb {
  height: 180px;
  border-bottom: 3.5px solid var(--text-dark);
  position: relative;
  background-size: cover;
  background-position: center;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: var(--bg-white);
  border: 3px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-info {
  padding: 16px;
}

.video-info h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.video-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   WORDPRESS-STYLE FIXED SIDEBAR LAYOUT
   ========================================== */

.db-layout-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-gradient);
}

.db-sidebar-left {
  width: 280px;
  background: var(--bg-white);
  border-right: 3.5px solid var(--text-dark);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  z-index: 100;
  overflow-y: auto;
}

.db-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.db-sidebar-brand img {
  height: 45px;
}

.db-sidebar-brand h3 {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.1;
}

.db-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.db-sidebar-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 16px;
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  text-decoration: none;
  border: 2.5px solid transparent;
  transition: var(--transition-bounce);
}

.db-sidebar-link:hover {
  background-color: var(--primary-yellow-light);
  border-color: var(--text-dark);
  transform: translateX(4px);
}

.db-sidebar-link.active {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFA852 100%);
  color: white !important;
  border-color: var(--text-dark);
  box-shadow: 2px 2px 0px var(--text-dark);
}

.db-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px dashed rgba(15, 23, 42, 0.08);
}

.db-content-right {
  margin-left: 280px;
  padding: 40px 50px;
  width: calc(100% - 280px);
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .db-sidebar-left {
    width: 85px;
    padding: 20px 10px;
  }

  .db-sidebar-brand h3,
  .db-sidebar-link span,
  .db-sidebar-footer span {
    display: none;
  }

  .db-sidebar-brand {
    justify-content: center;
    padding-bottom: 15px;
  }

  .db-sidebar-link {
    justify-content: center;
    padding: 12px;
  }

  .db-sidebar-link i {
    font-size: 1.4rem !important;
    margin: 0 !important;
  }

  .db-content-right {
    margin-left: 85px;
    width: calc(100% - 85px);
    padding: 30px 20px;
  }
}

/* Responsive Dashboard Layout Grid */
.db-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 1024px) {
  .db-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================
   GAME MODAL & FULL SCREEN INTERACTION
   ========================================== */

.game-modal-content {
  width: 95%;
  max-width: 1024px;
  height: 85vh;
  background: var(--bg-white);
  border: 3.5px solid var(--text-dark);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-modal-content.fullscreen-mode {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  border-radius: 0px !important;
  border: none !important;
}

/* Make whole cards clickable for blogs and news */
.news-card,
.blog-post-card {
  position: relative;
}

.news-card-title a::after,
.blog-post-title a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================== */
.db-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 3px solid var(--text-dark);
  z-index: 9999;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.db-mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.db-mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  flex: 1;
}

.db-mobile-nav-btn i {
  font-size: 1.2rem;
}

.db-mobile-nav-btn.active {
  color: var(--primary-orange);
}

.db-mobile-nav-btn.active i {
  color: var(--primary-orange);
}

/* ==========================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {

  /* Public pages */
  .home-hero-section,
  .section-padding {
    padding: 80px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Kid playground grids */
  .kid-tab-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .pdf-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toy-train-stats-section {
    display: none !important;
  }
}

/* ==========================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

  /* --- Dashboard Sidebar: HIDE on mobile --- */
  .db-sidebar-left {
    display: none !important;
  }

  /* --- Show mobile bottom nav --- */
  .db-mobile-nav {
    display: block;
  }

  /* --- Content area: full width --- */
  .db-content-right {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px 15px 100px 15px !important;
    /* extra bottom for nav bar */
  }

  /* --- Dashboard cards --- */
  .db-card {
    border-radius: 20px !important;
    padding: 20px !important;
  }

  .db-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* --- Dashboard tables: horizontal scroll --- */
  .db-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* --- Dashboard forms: full width inputs --- */
  .db-card input[type="text"],
  .db-card input[type="email"],
  .db-card input[type="password"],
  .db-card input[type="url"],
  .db-card input[type="number"],
  .db-card select,
  .db-card textarea {
    width: 100% !important;
    min-height: 44px;
    font-size: 16px !important;
    /* prevents iOS zoom */
    box-sizing: border-box;
  }

  /* --- Kid playground --- */
  .kid-hub-header {
    padding: 25px 15px !important;
    border-radius: 20px !important;
    margin-bottom: 25px !important;
  }

  .kid-hub-header h1 {
    font-size: 1.6rem !important;
  }

  .kid-tab-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
  }

  .kid-tab-card {
    padding: 18px 15px !important;
    border-radius: 18px !important;
  }

  .kid-tab-icon {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important;
  }

  .kid-tab-card h3 {
    font-size: 1.1rem !important;
  }

  /* PDF/Video/Game Grids */
  .pdf-grid,
  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* Game cards */
  .game-card {
    border-radius: 20px !important;
  }

  .game-card-img {
    height: 180px !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .game-card.toy-cartridge {
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .game-card.toy-cartridge .game-card-img {
    border-radius: 20px 20px 0 0 !important;
  }

  .cartridge-ridge {
    display: none !important;
  }

  /* Game modal full screen on mobile */
  .game-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Public pages */
  .home-hero-section,
  .section-padding {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-header {
    margin-bottom: 30px !important;
    text-align: left !important;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }

  .stat-item {
    padding: 20px 15px !important;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 30px 20px !important;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(4) {
    grid-column: span 1 !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  /* Blog grids */
  .blog-layout {
    grid-template-columns: 1fr !important;
  }

  .blog-post-card {
    border-radius: 20px !important;
  }

  /* News cards grid */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Contact & About */
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .about-journey-grid {
    grid-template-columns: 1fr !important;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    text-align: left;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-grid > div:last-child {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Login/Register pages */
  .login-card,
  .register-card {
    margin: 20px 15px !important;
    padding: 30px 20px !important;
    border-radius: 24px !important;
  }

  /* Board game steps */
  .board-game-steps {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Games grid (public) */
  .games-grid {
    grid-template-columns: 1fr !important;
  }

  /* Admin Messages form */
  .admin-msg-checkboxes {
    flex-direction: column !important;
  }

  /* Library grid mobile */
  #libraryGrid {
    grid-template-columns: 1fr !important;
  }

  /* Games grid inside playground */
  .games-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   RESPONSIVE: SMALL PHONES (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  .db-content-right {
    padding: 15px 10px 100px 10px !important;
  }

  .db-card {
    padding: 15px !important;
    border-radius: 16px !important;
  }

  .db-card h3 {
    font-size: 1.15rem !important;
  }

  /* Kid playground */
  .kid-hub-header h1 {
    font-size: 1.35rem !important;
  }

  .kid-hub-header p {
    font-size: 0.9rem !important;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile nav label text */
  .db-mobile-nav-btn {
    font-size: 0.6rem;
  }

  .db-mobile-nav-btn i {
    font-size: 1.1rem;
  }

  /* Sandbox widget */
  .sandbox-widget {
    height: auto !important;
    min-height: 280px;
  }
  .sandbox-body {
    flex-direction: column;
    gap: 15px;
  }
  .sandbox-palette {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  .sandbox-canvas {
    width: 100%;
    min-width: 0;
  }

  /* Section padding */
  .home-hero-section,
  .section-padding {
    padding: 40px 0;
  }

  /* Service cards */
  .service-card {
    padding: 25px 15px !important;
    border-radius: 24px !important;
  }

  .service-icon {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 18px !important;
  }
}

/* ==========================================
   BOOK READER MODAL: MOBILE FULL-SCREEN
   ========================================== */
@media (max-width: 768px) {
  #bookReaderModal>div:first-child {
    max-width: 100% !important;
    padding: 8px 10px !important;
  }

  #bookReaderModal #viewerCanvas {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 60px) !important;
    border-radius: 0 !important;
  }
}

/* ==========================================
   LANDSCAPE PHONE FIX
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .db-mobile-nav {
    padding: 4px 0;
  }

  .db-mobile-nav-btn {
    font-size: 0;
    gap: 0;
  }

  .db-mobile-nav-btn i {
    font-size: 1.3rem;
  }
}

/* ==========================================
   FRONTEND HEADER, FOOTER, & DRAWER RESPONSIVE OVERRIDES
   ========================================== */

/* Hide mobile nav items on desktop */
.mobile-only-nav-item {
  display: none !important;
}

@media (max-width: 1024px) {

  /* Show mobile-only nav items inside the menu drawer */
  .mobile-only-nav-item {
    display: block !important;
  }

  /* Smoothly slide in the mobile nav drawer and center it beautifully */
  header .nav-links {
    position: fixed !important;
    top: 95px !important;
    left: 4% !important;
    width: 92% !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    transform: translateX(-150%) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 20px !important;
    gap: 20px !important;
    background: var(--bg-white) !important;
    border-radius: 28px !important;
    border: var(--border-glass) !important;
    box-shadow: var(--shadow-hover) !important;
    z-index: 999 !important;
  }

  /* Trigger state for transition */
  header .nav-links.open {
    transform: translateX(0) !important;
  }

  /* Hide Membership and Login buttons in the sticky navbar (moved inside drawer) */
  header .nav-actions #btnHeaderMembership,
  header .nav-actions #btnHeaderLogin {
    display: none !important;
  }

  /* Push the Sound button to the right next to the hamburger menu toggle */
  header .nav-actions {
    margin-left: auto !important;
    margin-right: 15px !important;
  }

  /* Center all footer brand elements on mobile */
  .footer-brand p {
    margin: 0 auto 28px !important;
    text-align: center !important;
  }

  .footer-socials {
    justify-content: center !important;
  }

  /* Left align footer contacts */
  .footer-contact-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Reduce massive empty spaces on mobile screens */
  .home-hero {
    padding: 140px 0 80px !important;
  }

  .home-services,
  .home-about,
  .home-news,
  .section-padding,
  footer {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .home-newsletter {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .newsletter-card {
    padding: 40px 20px !important;
    border-radius: 24px !important;
  }
}

/* Guarantee footer contact icon circle centering and prevent shrinking */
.footer-contact-icon {
  flex-shrink: 0 !important;
}

/* Nav Dropdown CSS */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 150px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  color: var(--text-dark) !important;
  padding: 10px 20px !important;
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background: #fff3ed;
  color: var(--primary-orange) !important;
}

@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 16px;
    display: none !important;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 10px 10px 10px 20px;
    margin-top: 15px;
    width: 100%;
  }

  .nav-dropdown.dropdown-open .dropdown-menu {
    display: flex !important;
  }
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE IMPROVEMENTS
   Focus: Dashboards + Phone
   ========================================== */

/* --- PARENT DASHBOARD: Analytics 3-col grid → stack on mobile --- */
@media (max-width: 768px) {

  /* Analytics / Progress grid */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Child profile grid */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(340px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Avatar grid */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(100px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(110px, 1fr))"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Parent dashboard header flex → stack (REMOVED to keep buttons on right) */

  /* Smaller heading sizes for dashboard */
  .db-content-right h2 {
    font-size: 1.5rem !important;
  }

  .db-content-right h3 {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {

  /* Analytics grid → 1 col on very small screens */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Avatar grid → 3 col */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(100px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(110px, 1fr))"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* --- ADMIN DASHBOARD: Mobile overhaul --- */
@media (max-width: 768px) {

  /* Admin payment table search bar */
  #searchPayment {
    width: 100% !important;
    margin-top: 10px;
    box-sizing: border-box;
  }

  /* Admin header section flex → stack */
  #adminPaymentsCard>div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Admin stat cards grid */
  div[style*="display: grid; grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Admin table overflow */
  .db-card>table,
  #adminPaymentsCard table,
  table {
    min-width: 600px;
  }

  /* Admin modal forms */
  .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }

  /* Admin tab buttons wrap nicely */
  .admin-tab-bar,
  div[style*="display: flex; gap"]>button[id^="tab"] {
    flex-wrap: wrap !important;
  }
}

/* --- CHILD DASHBOARD: PDF cards 2-col on phone --- */
@media (max-width: 768px) {
  .db-main-grid[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }

  /* Kid sidebar: hide completely, replaced by mobile nav */
  .db-sidebar-left {
    display: none !important;
  }

  /* Library tab buttons scrollable row */
  #libraryContainer>div:first-child {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }

  #libraryContainer>div:first-child::-webkit-scrollbar {
    display: none;
  }

  /* Library book grid inside category */
  .library-category-section>div {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
}

@media (max-width: 480px) {

  /* PDF cards → 1 col on small phones */
  .db-main-grid[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Library book grid → 1 col on small phones */
  .library-category-section>div {
    grid-template-columns: 1fr !important;
  }

  /* Game cards: reduce image height */
  .game-card-img {
    min-height: 160px !important;
  }

  /* pdf-thumb iframe preview: shrink slightly */
  .pdf-thumb {
    height: 130px !important;
  }
}

/* --- AUDIO PAGE: Category cards & book grid responsive --- */
@media (max-width: 768px) {

  /* Activities/Audio/Video category grid → 2 col */
  .activities-category-grid,
  div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* Activities content grid → 2 col */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* Hero section on activities/audio/video pages */
  .section-header {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {

  /* Activity/audio/video grids → 1 col */
  .activities-category-grid,
  div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- GLOBAL: ensure images/iframes don't overflow --- */
img,
iframe,
video {
  max-width: 100%;
}

/* --- GLOBAL: Tap target minimum sizes for mobile --- */
@media (max-width: 768px) {

  .btn,
  button,
  a.btn,
  input[type="submit"] {
    min-height: 44px;
  }

  /* Card padding on phone */
  .db-card {
    padding: 18px !important;
  }

  /* Section headers font size */
  .section-header span {
    font-size: 0.8rem !important;
  }

  /* Prevent text overflow in table cells */
  td,
  th {
    word-break: break-word;
    white-space: normal !important;
  }

  /* Prevent overflow in narrow containers */
  .db-content-right {
    overflow-x: hidden;
  }

  /* Fix badge overflow on small screens */
  .db-badge {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }
}

/* --- LOGIN / REGISTER: better mobile form layout --- */
@media (max-width: 480px) {

  .login-wrapper,
  .register-wrapper {
    padding: 15px 10px !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    /* prevents iOS zoom */
  }

  /* Password strength bars */
  .password-strength-bar {
    height: 4px !important;
  }
}

/* --- MEMBERSHIP / PRICING PAGE: responsive cards --- */
@media (max-width: 768px) {

  .pricing-grid,
  div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* --- FIX: horizontal scrollbar on body (common mobile issue) --- */
html,
body {
  overflow-x: hidden;
}

/* --- SAFE AREA support for notched phones --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .db-mobile-nav {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .db-content-right {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* ==========================================
   BALLOON POP MINI GAME
   ========================================== */
.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
@media (min-width: 992px) {
    .mini-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mini-game-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    font-family: var(--font-headings);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    touch-action: none; 
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent; 
}

.mini-game-wrapper.is-fullscreen {
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0;
    box-shadow: none;
}

.board-widget.is-fullscreen {
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0;
    box-shadow: none;
    z-index: 9999;
}

.btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: var(--bg-glass);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
}

.btn-fullscreen:hover {
    transform: scale(1.1);
    background: var(--bg-white);
}

#balloon-game-wrapper { background: linear-gradient(180deg, #FFF3E0 0%, #FFE0B2 100%); }
#bubble-wrap-wrapper { background: linear-gradient(180deg, #F3E5F5 0%, #E1BEE7 100%); }
#color-match-wrapper { background: linear-gradient(180deg, #E0F7FA 0%, #B2EBF2 100%); }

#balloon-game-container, #bubble-game-container, #color-game-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

#balloon-hud, #color-hud {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    padding-right: 65px;
    z-index: 10;
    pointer-events: none;
}

.balloon-hud-badge {
    background: var(--bg-glass);
    padding: 8px 15px;
    border-radius: 30px;
    color: var(--primary-orange);
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 0 #CBD5E1;
    border: 2px solid var(--border-light);
}

.balloon {
    position: absolute;
    bottom: -120px;
    transform: translate(-50%, 0) scale(0.9);
    cursor: pointer;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.balloon-body {
    width: 70px;
    height: 90px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    box-shadow: inset -6px -8px 0 rgba(0,0,0,0.15);
}

.balloon-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 20px;
    background: var(--bg-glass);
    border-radius: 50%;
}

.balloon-tie {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    margin-top: -2px;
}

.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: balloonExplode 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes balloonExplode {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

.balloon-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
    text-align: center;
}

.balloon-screen h3 {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.balloon-screen p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Bubble Wrap Specifics */
#bubble-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 100%;
    height: 100%;
    padding: 30px;
    gap: 15px;
}
.bubble-item {
    background: var(--bg-glass);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: inset -3px -3px 5px rgba(0,0,0,0.1), 2px 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
}
.bubble-item::after {
    content: '';
    position: absolute;
    top: 15%; left: 15%; width: 20%; height: 20%;
    background: var(--bg-glass);
    border-radius: 50%;
}
.bubble-item.popped {
    background: rgba(200, 200, 200, 0.2);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
    border-color: rgba(200,200,200,0.3);
    pointer-events: none;
}
.bubble-item.popped::after { display: none; }

/* Color Match Specifics */
#color-word-display {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white;
}
#color-options-grid {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}
.color-option {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.color-option:active {
    transform: scale(0.9);
}

/* Day/Night Toggle Switch Container */
.day-night-toggle {
  position: relative;
  display: inline-block;
  width: 68px;
  height: 32px;
  cursor: pointer;
  vertical-align: middle;
}

.day-night-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.day-night-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #83b6fc; /* light mode sky blue */
  border: 3px solid #2e7af1; /* light mode blue border */
  border-radius: 34px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Sun / Moon Knob */
.day-night-knob {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 39px; /* Sun is on the right in light mode */
  bottom: 3.5px;
  background-color: #FFD500; /* Sun yellow */
  border: 2px solid #E6A100;
  border-radius: 50%;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 213, 0, 0.6);
  z-index: 2;
}

/* Cloud in Light Mode */
.day-night-cloud {
  position: absolute;
  left: 14px;
  bottom: 3px;
  width: 22px;
  height: 10px;
  background: white;
  border-radius: 10px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 1;
}
.day-night-cloud::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}
.day-night-cloud::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 3px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* Stars in Dark Mode (hidden by default) */
.day-night-stars {
  position: absolute;
  right: 12px;
  top: 7px;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    8px 4px 0 white,
    -4px 8px 0 white,
    4px 10px 0 white;
  opacity: 0;
  transition: 0.4s ease;
  transform: scale(0);
}

/* --- Dark Mode Active state --- */
:root.dark-mode .day-night-slider {
  background-color: #2A2C30; /* dark grey bg */
  border-color: #1A1A1C; /* black border */
}

:root.dark-mode .day-night-knob {
  left: 4px; /* Moon slides to the left */
  background-color: #A1A8B3; /* Moon silver grey */
  border-color: #798290;
  box-shadow: 0 0 10px rgba(161, 168, 179, 0.4);
}

/* Moon Craters */
:root.dark-mode .day-night-knob::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background-color: #798290;
  border-radius: 50%;
  box-shadow: 
    6px 4px 0 #798290,
    3px 8px 0 #798290;
}

:root.dark-mode .day-night-cloud {
  opacity: 0;
  transform: translateY(20px);
}

:root.dark-mode .day-night-stars {
  opacity: 1;
  transform: scale(1);
}