/* =============================================================================
   POLESAN BILAH STICKY FOOTER MELAYANG (.jbg-bejo-fixed-footer)
   =============================================================================
   Bilah aksi bawah berdesain dark glassmorphism dengan aksen ungu Kompas.
   Menampilkan 5 aksi cepat: Bonus, Login, Daftar (VIP CTA), Link Alternatif, Live Chat.
   Tinggi bilah terkunci tepat pada 75px untuk sinkronisasi dengan padding body.
   ============================================================================= */

.jbg-bejo-fixed-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  height: 75px;
  box-sizing: border-box;
  padding: 8px 6px;

  /* Glassmorphism gelap premium dengan blur latar belakang */
  background: linear-gradient(180deg, rgba(26, 11, 46, 0.94) 0%, rgba(10, 6, 18, 0.97) 50%, rgba(6, 2, 14, 0.99) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 0;
  border-top: 1px solid rgba(199, 125, 255, 0.35);
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(157, 78, 221, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Pita cahaya neon di puncak lengkung bilah footer */
.jbg-bejo-fixed-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(199, 125, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
  pointer-events: none;
}

/* --- Tautan Item --- */
.jbg-bejo-fixed-footer a {
  position: relative;
  flex-basis: calc((100% - 15px * 3) / 3);
  max-width: 85px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 12px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--c-text-title, #ffffff);
  font-family: var(--font-family-label-small, "PolySans", "Helvetica Neue", Arial, sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Interaksi hover item biasa */
.jbg-bejo-fixed-footer a:hover,
.jbg-bejo-fixed-footer a:focus-visible {
  background-color: rgba(157, 78, 221, 0.18);
  box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.jbg-bejo-fixed-footer a:focus-visible {
  outline: 2px solid var(--c-accent-light, #c77dff);
  outline-offset: -2px;
}

/* Ikon dengan bayangan kedalaman dan animasi hover */
.jbg-bejo-fixed-footer img {
  width: 24px;
  height: 24px;
  max-width: 25px;
  max-height: 25px;
  object-fit: contain;
  margin-bottom: 4px;
  border-radius: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s ease;
}

.jbg-bejo-fixed-footer a:hover img,
.jbg-bejo-fixed-footer a:focus-visible img {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(157, 78, 221, 0.6));
}

/* --- Tombol Utama DAFTAR (.shake) — VIP Elevated Pill & Pulse Animation --- */
.jbg-bejo-fixed-footer a.shake {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.35) 0%, rgba(90, 24, 154, 0.5) 100%);
  border: 1px solid rgba(199, 125, 255, 0.65);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(157, 78, 221, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
  color: #ffffff;
  animation: footerPulse 2.4s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
}

/* Sapuan kilau cahaya melintas pada tombol utama */
.jbg-bejo-fixed-footer a.shake::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: footerSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.jbg-bejo-fixed-footer a.shake:hover,
.jbg-bejo-fixed-footer a.shake:focus-visible {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.5) 0%, rgba(123, 44, 191, 0.65) 100%);
  border-color: #c77dff;
  box-shadow: 0 6px 24px rgba(157, 78, 221, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.05);
}

/* Animasi denyut bernapas yang halus dan elegan (menggantikan shake kasar) */
@keyframes footerPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 16px rgba(157, 78, 221, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(199, 125, 255, 0.65);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(157, 78, 221, 0.65), 0 0 16px rgba(199, 125, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: #c77dff;
  }
}

/* Sapuan kilau melintas periodik */
@keyframes footerSheen {
  0%, 60% {
    transform: translateX(-120%);
  }
  80%, 100% {
    transform: translateX(140%);
  }
}

/* Dukungan aksesibilitas: mematikan animasi bagi pengguna yang meminta gerak minimal */
@media (prefers-reduced-motion: reduce) {
  .jbg-bejo-fixed-footer a.shake {
    animation: none;
  }
  .jbg-bejo-fixed-footer a.shake::before {
    display: none;
  }
  .jbg-bejo-fixed-footer a,
  .jbg-bejo-fixed-footer a img {
    transition: none;
  }
}
