/**
 * ModulKU - Kurikulum Merdeka Tema Hijau Zamrud (Emerald Green)
 * Platform Modul Pembelajaran Guru Terpadu SD, SMP & SMA/SMK
 * Fully Responsive, Ultra-Modern Glassmorphism, & Prestigious Kurikulum Merdeka Palette
 */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Ultra-Modern High-End Merchandise & Learning Platform Palette - HIJAU ZAMRUD */
  --theme-navy: #022c22;        /* Deep Obsidian Emerald */
  --theme-slate: #064e3b;       /* Deep Emerald 900 */
  --theme-primary: #059669;     /* Vibrant Emerald Green */
  --theme-secondary: #10b981;   /* Fresh Luminous Emerald */
  --theme-indigo: #047857;      /* Rich Deep Emerald */
  --theme-cyan: #10b981;        /* Vivid Emerald Accent */
  --theme-blue-light: #ecfdf5;  /* Subtle Emerald Mist Tint */
  --theme-teal: #0d9488;        /* Mint Teal Accent */
  --theme-emerald: #059669;     /* Verified Emerald */
  --theme-amber: #f59e0b;       /* Warm Golden Amber */
  --theme-gold: #d97706;        /* Deep Amber */
  --theme-rose: #f43f5e;        /* Clean Coral Accent */

  /* Aliased for full backwards compatibility across all views - HIJAU ZAMRUD */
  --zamrud-50: #ecfdf5;
  --zamrud-100: #d1fae5;
  --zamrud-200: #a7f3d0;
  --zamrud-300: #6ee7b7;
  --zamrud-400: #34d399;
  --zamrud-500: #10b981;
  --zamrud-600: #059669;
  --zamrud-700: #047857;
  --zamrud-800: #065f46;
  --zamrud-900: #064e3b;
  --zamrud-950: #022c22;

  /* Primary Deep & Accent Colors */
  --zamrud-deep: #022c22;
  --zamrud-navy: #064e3b;
  --zamrud-primary: #059669;
  --zamrud-cyan: #10b981;
  --zamrud-mint: #059669;
  --zamrud-sand: #fef3c7;
  --zamrud-amber: #f59e0b;
  --zamrud-rust: #d97706;

  /* Jenjang Badges Colors */
  --badge-sd: #0284c7;
  --badge-smp: #059669;
  --badge-sma: #047857;
  --badge-smk: #d97706;
  --badge-p5: #10b981;
  
  /* Gradients */
  --grad-zamrud: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #059669 85%, #10b981 100%);
  --grad-zamrud-hero: radial-gradient(ellipse at 85% 15%, rgba(16, 185, 129, 0.18) 0%, transparent 55%), radial-gradient(ellipse at 15% 85%, rgba(5, 150, 105, 0.14) 0%, transparent 50%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-badge: linear-gradient(135deg, #059669 0%, #047857 100%);
  --grad-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(2, 44, 34, 0.05);
  --shadow-md: 0 10px 28px rgba(2, 44, 34, 0.08);
  --shadow-lg: 0 18px 45px rgba(2, 44, 34, 0.12);
  --shadow-glow: 0 4px 20px rgba(5, 150, 105, 0.35);
}

/* Base Document Settings */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .fw-heading {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.text-zamrud-primary { color: #059669 !important; }
.text-zamrud-cyan { color: #10b981 !important; }
.text-zamrud-mint { color: #059669 !important; }
.text-zamrud-amber { color: #f59e0b !important; }
.text-theme-primary { color: #059669 !important; }

.bg-zamrud-deep { background-color: #022c22 !important; }
.bg-zamrud-navy { background-color: #064e3b !important; }
.bg-zamrud-primary { background-color: #059669 !important; }
.bg-zamrud-cyan { background-color: #10b981 !important; }
.bg-zamrud-light { background-color: #ecfdf5 !important; }
.bg-theme-light { background-color: #ecfdf5 !important; }

/* =========================================================
   TOPBAR (ULTRA SLEEK HIJAU ZAMRUD GRADIENT)
   ========================================================= */
.modulku-topbar {
  background: linear-gradient(90deg, #064e3b 0%, #047857 45%, #0d9488 100%);
  color: #FFFFFF; font-size: 0.81rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(2, 44, 34, 0.25);
}
.modulku-topbar a {
  color: #a7f3d0;
  text-decoration: none;
  transition: all 0.2s ease;
}
.modulku-topbar a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(167, 243, 208, 0.6);
}
.topbar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(167, 243, 208, 0.35);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDotAnim 1.8s infinite;
}
@keyframes pulseDotAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.topbar-divider {
  color: rgba(147, 197, 253, 0.25);
  font-size: 0.75rem;
}
.topbar-promo-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.topbar-coupon-link {
  color: #fde047;
  font-weight: 600;
  font-size: 0.78rem;
}

/* =========================================================
   NAVBAR (ENHANCED FOR MERCHANDISE APPLICATION & CART)
   ========================================================= */
.modulku-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  z-index: 1030;
  padding: 0.65rem 0;
}
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.86rem;
  color: #334155;
  padding: 0.42rem 0.58rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
}
.dropdown-menu-modern {
  border-radius: 18px !important;
  padding: 10px !important;
  min-width: 290px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  animation: dropdownFade 0.22s ease-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu-modern .dropdown-item {
  border-radius: 12px;
  transition: all 0.2s ease;
}
.dropdown-menu-modern .dropdown-item:hover {
  background-color: #eff6ff;
  transform: translateX(4px);
}
.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Shopping Cart Navbar Button & Badge */
.btn-cart-toggle {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.42rem 0.82rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cart-toggle:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.bg-cart-count {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 6.5px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-bump {
  transform: translate(-50%, -50%) scale(1.4) !important;
}

/* Button Variants - Hijau Zamrud */
.btn-zamrud-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 1.5px solid #047857;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.48rem 1.15rem;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-zamrud-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  border-color: #064e3b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.38);
}
.btn-zamrud-outline {
  border: 1.5px solid #059669;
  color: #059669;
  background: transparent;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.48rem 1rem;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-zamrud-outline:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Dedicated Add to Cart Button */
.btn-add-cart {
  background: linear-gradient(135deg, #0D9488 0%, #059669 100%);
  border: 1.5px solid #059669;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25);
  white-space: nowrap;
}
.btn-add-cart:hover {
  background: linear-gradient(135deg, #0F766E 0%, #047857 100%);
  border-color: #047857;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* =========================================================
   HERO & SWIPER SLIDER (PROFESSIONAL MERCHANDISE THEME)
   ========================================================= */
.hero-slider-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 85%, rgba(13, 148, 136, 0.1) 0%, transparent 60%),
              linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 45%, #E2E8F0 100%);
  padding: 2.8rem 0 4.2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}
.hero-slider-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.swiper-hero {
  padding-bottom: 2.8rem !important;
}
.hero-slide-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08),
              0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.hero-slide-content {
  padding: 2.5rem 2rem 2.5rem 2.8rem;
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #BFDBFE;
  color: #1D4ED8;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.hero-slide-title {
  color: #0F172A;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}
.hero-slide-desc {
  color: #475569;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.hero-slide-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  height: 100%;
}
.hero-slide-img {
  width: 100%;
  max-height: 380px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
  transition: transform 0.4s ease;
}
.hero-slide-card:hover .hero-slide-img {
  transform: scale(1.02);
}
.hero-stat-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 12px;
  color: #1E293B;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Swiper Custom Controls */
.swiper-button-next-custom,
.swiper-button-prev-custom {
  width: 46px;
  height: 46px;
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 50%;
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
  transition: all 0.25s ease;
  z-index: 10;
}
.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
  transform: scale(1.06);
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
  background: #2563EB !important;
  width: 28px !important;
  border-radius: 10px !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6) !important;
}

/* =========================================================
   COUNTER BAR (RESPONSIVE)
   ========================================================= */
.quick-counter-bar {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  margin-top: -36px;
  position: relative;
  z-index: 10;
  border: 1px solid #e2e8f0;
  padding: 1.2rem 0.8rem;
}
.counter-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
}
.counter-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--zamrud-50);
  color: var(--zamrud-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--zamrud-200);
}
.counter-number {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--zamrud-deep);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.counter-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

/* =========================================================
   MODUL UNGGULAN CARDS (TEACHER EDITION)
   ========================================================= */
.module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  border-color: #2563eb;
}
.module-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f8fafc;
}
.module-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.module-card:hover .module-card-img {
  transform: scale(1.05);
}
.module-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.module-card-level {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.module-card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.module-cat-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0d9488;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.45rem;
}
.module-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.1rem;
}
.module-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.module-card-title a:hover {
  color: #2563eb;
}
.module-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}
.module-instructor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #2563eb;
  flex-shrink: 0;
}
.module-instructor-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}
.module-meta-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}
.module-meta-info .rating {
  color: #f59e0b;
  font-weight: 700;
}
.module-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.module-price-box .price-normal {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.module-price-box .price-discount {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.1;
}

/* =========================================================
   OFFCANVAS CART DRAWER STYLES
   ========================================================= */
.modulku-cart-offcanvas {
  width: 440px !important;
  max-width: 92vw !important;
  border-left: 1px solid #e2e8f0;
}
.cart-header-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.cart-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.2s ease;
}
.cart-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
}
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cart-qty-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cart-qty-value {
  width: 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}
.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-item-remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}
.cart-empty-box {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}
.cart-empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
}

/* Category Filter Scroll on Mobile */
.category-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.category-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.category-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--zamrud-200);
  border-radius: 4px;
}

/* =========================================================
   SELECT2 & JQUERY-UI CUSTOMIZATION
   ========================================================= */
.select2-container--default .select2-selection--single {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #334155;
  line-height: normal;
  padding-left: 0;
  font-size: 0.9rem;
}
.select2-dropdown {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-sans);
}
.select2-results__option--highlighted[aria-selected] {
  background-color: var(--zamrud-cyan) !important;
}

/* =========================================================
   APEXCHARTS & ANALYTICS SECTION
   ========================================================= */
.analytics-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  padding: 4.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* =========================================================
   TESTIMONIALS (KEPALA SEKOLAH & GURU)
   ========================================================= */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--zamrud-mint);
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--zamrud-cyan);
}

/* =========================================================
   FOOTER (RICH EMERALD DARK)
   ========================================================= */
.modulku-footer {
  background: #0b1120;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 4.2rem 0 2rem;
  border-top: 3px solid #2563eb;
}
.modulku-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--zamrud-mint);
  transform: translateX(4px);
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--zamrud-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  margin-top: 3.2rem;
}

/* =========================================================
   SWEETALERT2 PROFESSIONAL STYLING (MODALS & TOASTS)
   ========================================================= */
.swal2-popup {
  font-family: var(--font-sans) !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 1.65rem 1.6rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28) !important;
}
.swal2-title {
  font-family: var(--font-sans) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  padding: 0 0 0.5rem 0 !important;
}
.swal2-html-container {
  font-family: var(--font-sans) !important;
  font-size: 0.92rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
}
.swal2-icon {
  transform: scale(0.92);
  margin: 1rem auto 1.2rem !important;
}
.swal2-icon.swal2-success {
  border-color: #10B981 !important;
  color: #10B981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(16, 185, 129, 0.3) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #10B981 !important;
}
.swal2-icon.swal2-info {
  border-color: #2563EB !important;
  color: #2563EB !important;
}
.swal2-icon.swal2-warning {
  border-color: #F59E0B !important;
  color: #F59E0B !important;
}
.swal2-icon.swal2-error {
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}
.swal2-icon.swal2-question {
  border-color: #4F46E5 !important;
  color: #4F46E5 !important;
}

/* SweetAlert2 Toast Custom */
.swal2-toast-custom {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 20px 35px -6px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  padding: 12px 18px !important;
}
.swal2-toast-custom .swal2-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
  height: 3px !important;
}

/* =========================================================
   MEDIA QUERIES (ULTRA RESPONSIVE FOR ALL DEVICES)
   ========================================================= */
/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
  .hero-slider-section {
    padding: 1.5rem 0 3rem;
  }
  .hero-slide-content {
    padding: 1.5rem 1.2rem;
  }
  .hero-slide-img-wrapper {
    padding: 0.5rem 1.2rem 1.5rem;
  }
  .quick-counter-bar {
    margin-top: -20px;
    padding: 1rem 0.5rem;
  }
  .counter-box {
    padding: 0.4rem;
  }
  .counter-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .module-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .module-card-footer .d-flex {
    width: 100%;
    justify-content: space-between;
  }
  .module-card-footer .btn-zamrud-primary {
    flex-grow: 1;
  }
  .swiper-button-next-custom,
  .swiper-button-prev-custom {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* Tablets (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-slide-content {
    padding: 2rem 1.6rem;
  }
  .quick-counter-bar {
    margin-top: -30px;
  }
}

/* =========================================================
   FLOATING CHAT & BACK TO TOP BUTTONS
   ========================================================= */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Back To Top Button */
#backToTopBtn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
}
#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTopBtn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

/* Floating Chat Button */
.floating-chat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 2.5px solid #FFFFFF;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.floating-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.5);
}
.chat-online-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
}
.chat-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #2563eb;
  animation: chatPulse 2s infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Floating Chat Popover Box */
.floating-chat-box {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--font-sans);
}
.floating-chat-box.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.chat-box-header {
  background: linear-gradient(135deg, #064e3b 0%, #047857 45%, #0d9488 100%);
  color: #ffffff;
  padding: 1.1rem 1.2rem;
  position: relative;
}
.chat-box-body {
  padding: 1.2rem;
  background: #f8fafc;
}
.chat-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.chat-action-link:hover {
  background: var(--zamrud-50);
  border-color: var(--zamrud-cyan);
  color: var(--zamrud-cyan);
  transform: translateX(3px);
}

/* Desktop & Larger (> 992px) */
@media (min-width: 992px) {
  .hero-slide-card {
    min-height: 480px;
  }
}

/* =========================================================
   PORTAL DASHBOARD STYLES (MODERN MERCHANDISE & PRESTIGIOUS PALETTE)
   ========================================================= */
.portal-header-banner {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 38%, #059669 82%, #10B981 100%) !important;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(2, 44, 34, 0.22);
}
.portal-header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.portal-header-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.portal-header-content {
  position: relative;
  z-index: 2;
}

.bg-zamrud-gradient {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 50%, #059669 100%) !important;
}

#authTabs .nav-link {
  color: #475569;
}
#authTabs .nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.dashboard-stat-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}
.dashboard-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  opacity: 0.9;
}
.col-md-4:nth-child(2) .dashboard-stat-card::before {
  background: linear-gradient(180deg, #0D9488 0%, #059669 100%);
}
.col-md-4:nth-child(3) .dashboard-stat-card::before {
  background: linear-gradient(180deg, #10B981 0%, #047857 100%);
}
.dashboard-stat-card:hover {
  transform: translateY(-4px);
  border-color: #A7F3D0;
  box-shadow: 0 16px 34px rgba(2, 44, 34, 0.09), 0 0 15px rgba(5, 150, 105, 0.08);
}

.dashboard-nav-tabs {
  gap: 8px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.dashboard-nav-tabs .nav-link {
  color: #475569;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.22s ease;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.dashboard-nav-tabs .nav-link:hover {
  background-color: #ECFDF5;
  color: #064E3B;
  border-color: #A7F3D0;
}
.dashboard-nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.dashboard-nav-tabs .nav-link.active i {
  color: #A7F3D0 !important;
}

.module-portal-card {
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  background: #ffffff;
  transition: all 0.25s ease;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.module-portal-card:hover {
  transform: translateY(-5px);
  border-color: #93C5FD;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09) !important;
}

.mt-n4 {
  margin-top: -2.2rem !important;
}

/* Paper Simulation Card for Kop Surat & Pengesahan */
.paper-preview-card {
  background: #ffffff;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  position: relative;
  font-family: 'Times New Roman', Times, serif;
  color: #000000;
  line-height: 1.35;
}
.paper-preview-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.kop-double-line {
  border-top: 3px solid #000000;
  border-bottom: 1px solid #000000;
  height: 5px;
  margin: 8px 0 14px 0;
}
.stamp-watermark {
  border: 2.5px dashed #059669;
  color: #059669;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 8px;
  transform: rotate(-8deg);
  display: inline-block;
  opacity: 0.85;
}

.dashboard-filter-btn {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  transition: all 0.2s ease;
}
.dashboard-filter-btn:hover {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}
.dashboard-filter-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* =========================================================
   AUTH MODAL (REALISTIC ELEVATION & DEPTH)
   ========================================================= */
.modal-auth-dialog {
  max-width: 495px;
}
.auth-modal-content {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(42, 4, 10, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: #ffffff;
}
.auth-modal-header {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 45%, #059669 100%) !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(167, 243, 208, 0.25) !important;
}
.auth-header-decor-circle {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-brand-badge {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}
.auth-demo-box {
  transition: all 0.25s ease;
  border: 1.5px dashed #86efac !important;
}
.auth-demo-box:hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15) !important;
}
.input-group-auth .input-group-text {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: var(--zamrud-cyan);
}

/* =========================================================
   OTP VERIFICATION BOX STYLES (PRESTIGIOUS EMERALD)
   ========================================================= */
.otp-badge-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.16);
  animation: otpIconPulse 2.4s infinite;
}
@keyframes otpIconPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.otp-digit-input {
  width: 48px;
  height: 58px;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  border: 2px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #064E3B !important;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
.otp-digit-input:focus {
  border-color: #059669 !important;
  background: #ECFDF5 !important;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2) !important;
  outline: none !important;
  transform: translateY(-2px);
}
.alert-zamrud-demo {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1.5px dashed #A7F3D0;
  color: #064E3B;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.06);
}
.input-group-auth .form-control {
  border-color: #cbd5e1;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  transition: all 0.2s ease;
}
.input-group-auth .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background-color: #ffffff;
}
.btn-toggle-password {
  border-color: #cbd5e1;
  color: #64748b;
  transition: all 0.2s ease;
}
.btn-toggle-password:hover {
  background: #f1f5f9;
  color: var(--zamrud-primary);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
.shadow-xs {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* =========================================================
   REALISTIC DEPTH & COLOR COMBINATIONS ACROSS LANDING PAGE
   ========================================================= */

.quick-counter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.6rem 2rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06),
              0 2px 6px rgba(0, 0, 0, 0.02);
  margin-top: -2rem;
  position: relative;
  z-index: 20;
}

.counter-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 58, 138, 0.15) 100%);
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8),
              0 4px 10px rgba(37, 99, 235, 0.15);
}

.module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: #2563eb;
}

/* =========================================================
   SPLASH SCREEN (FIRST VISIT INTERACTIVE REVEAL)
   ========================================================= */
body.splash-active {
  overflow: hidden !important;
}

.modulku-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fff1f2 0%, #ffe4e6 45%, #ffffff 90%);
  overflow: hidden;
  user-select: none;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.modulku-splash-screen.splash-dismissing {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(14px);
  pointer-events: none;
}

/* Ambient Animated Glow Circles */
.splash-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.splash-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: splashFloatGlow 6s ease-in-out infinite alternate;
}
.splash-glow-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.35) 0%, rgba(254, 205, 211, 0) 70%);
}
.splash-glow-2 {
  width: 520px;
  height: 520px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(254, 240, 138, 0) 70%);
  animation-delay: -3s;
}
@keyframes splashFloatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.1); }
}

/* Skip Button */
.splash-skip-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(191, 219, 254, 0.8);
  color: #1e40af;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.splash-skip-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Central Content Stage */
.splash-content-stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 620px;
  width: 90%;
}

/* Logo Flex Layout */
.splash-logo-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 84px;
}

/* 1. Icon Mark Animation: Moves from RIGHT to LEFT */
.splash-icon-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: splashIconGlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashIconGlide {
  0% {
    transform: translateX(120px) scale(0.65) rotate(10deg);
    opacity: 0;
    filter: blur(10px);
  }
  35% {
    opacity: 1;
    filter: blur(0);
  }
  75% {
    transform: translateX(-10px) scale(1.06) rotate(-2deg);
  }
  100% {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

.splash-icon-inner {
  position: relative;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-icon-inner svg {
  filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.35));
  transition: transform 0.3s ease;
}
.splash-icon-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: splashPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}
@keyframes splashPulseRing {
  0% { transform: scale(0.95); opacity: 0.9; }
  60% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* 2. Text Reveal: Emerges once Icon settles on the left */
.splash-text-reveal {
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  margin-left: 14px;
  animation: splashTextRevealAnim 0.75s 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashTextRevealAnim {
  0% {
    max-width: 0;
    opacity: 0;
    transform: translateX(-20px);
    filter: blur(8px);
  }
  30% {
    opacity: 0.6;
  }
  100% {
    max-width: 320px;
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.splash-brand-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: center;
}
.splash-brand-text .text-modul {
  color: #0f172a;
}
.splash-brand-text .text-ku {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 1px;
}
.splash-brand-text .text-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  margin-left: 5px;
  margin-bottom: 4px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  display: inline-block;
  animation: splashDotPop 0.4s 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes splashDotPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 3. Tagline & Curriculum Badge */
.splash-tagline-wrapper {
  opacity: 0;
  transform: translateY(16px);
  animation: splashFadeUp 0.65s 1.05s ease-out forwards;
}
@keyframes splashFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-curriculum-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(191, 219, 254, 0.85);
  color: #1e3a8a;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
  letter-spacing: 0.4px;
  margin-bottom: 0.75rem;
}

.splash-motto {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 440px;
  line-height: 1.5;
  margin: 0 auto;
}

/* 4. Loader Bar */
.splash-loader-track {
  width: 180px;
  height: 4px;
  border-radius: 10px;
  background: rgba(191, 219, 254, 0.35);
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}
.splash-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #06b6d4 100%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  animation: splashLoaderFill 4.8s 0.1s cubic-bezier(0.1, 0.5, 0.2, 1) forwards;
}
@keyframes splashLoaderFill {
  0% { width: 0%; }
  35% { width: 50%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

@media (max-width: 575.98px) {
  .splash-icon-inner svg {
    width: 60px;
    height: 60px;
  }
  .splash-brand-text {
    font-size: 2.2rem;
  }
  .splash-curriculum-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  .splash-motto {
    font-size: 0.82rem;
  }
  .splash-skip-btn {
    top: 16px;
    right: 18px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* =========================================================
   HOTWIRED TURBO PROGRESS BAR & SPA VIEW TRANSITIONS
   ========================================================= */
.turbo-progress-bar {
  height: 3.5px !important;
  background: linear-gradient(90deg, #2563EB 0%, #4F46E5 50%, #06B6D4 100%) !important;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.85) !important;
  z-index: 999999 !important;
}

@keyframes spaPageFadeIn {
  0% {
    opacity: 0.85;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.spa-page-animate {
  animation: spaPageFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
