/**
 * Riags Store — css/02-navbar.css
 * Versi: v5.8
 * Scope: Sticky navbar, scroll parallax, brand logo, nav-links,
 *        nav hold-wrapper dropdown, navbar responsive breakpoints,
 *        mobile drawer, ham6 animated hamburger, and currency badges.
 */

/* 7. STICKY NAVBAR & [PX-NAV] SMOOTH SCROLL PARALLAX */
.navbar-sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  /* [V30-03] [V28-04] Navbar shrink parallax setup & clean will-change */
  transform-origin: top center;
  will-change: transform, padding, background, box-shadow;
}

/* [PX-NAV] Scrolled state with floating elevation and deeper frosted glass */
.navbar-sticky.scrolled {
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(211, 47, 47, 0.28);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.72),
              0 1px 0 rgba(255, 255, 255, 0.08),
              0 0 20px rgba(211, 47, 47, 0.14);
  /* [V28-04] Navbar shrink saat scroll */
  transform: scaleY(0.94);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;  /* logo | menu | actions */
  align-items: center;
  gap: 1.75rem;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* [V30-03] [V28-04] Kompensasi padding saat navbar shrink */
.navbar-sticky.scrolled .nav-container {
  padding: 0.75rem 1.25rem;
}

/* [PX-NAV] Ambient Specular Sheen Parallax Layer */
.navbar-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.navbar-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: radial-gradient(400px circle at var(--sheen-x, 50%) 0px, rgba(255, 255, 255, 0.35), rgba(245, 158, 11, 0.15) 40%, transparent 80%);
  pointer-events: none;
}

.navbar-sticky.scrolled .navbar-sheen {
  opacity: 0.85;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo .logo-shield {
  flex-shrink: 0;
  position: relative;   /* konteks stacking agar glow tidak "bocor" ke teks */
  z-index: 1;
}

.brand-logo .logo-text-group {
  position: relative;
  z-index: 2;           /* teks selalu di atas glow */
  min-width: 0;
}

.brand-logo .logo-brand {
  display: block;
  white-space: nowrap;
  overflow: visible;
}

/* [V3.12] Brand logo desktop - Logo only */
.brand-logo--logo-only .logo-shield {
  width: 2.75rem;
  height: 2.75rem;
}

/* [V4.3] Logo text — default (desktop) disembunyikan */
.brand-logo-text--mobile {
  display: none !important;
}

.logo-shield {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b1e2a 0%, #0d0f17 100%);
  border: 1px solid rgba(211, 47, 47, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3355;
  box-shadow: 0 0 16px var(--primary-red-glow);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.navbar-sticky.scrolled .logo-shield {
  box-shadow: 0 0 20px rgba(255, 51, 85, 0.55);
  border-color: rgba(255, 51, 85, 0.7);
}

.navbar-sticky.scrolled .badge-verif-mini {
  transform: scale(0.92);
  transform-origin: left center;
  opacity: 0.9;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.logo-svg {
  width: 1.45rem;
  height: 1.45rem;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-gaming);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

/* Menu — kolom 2, di-center */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links:has(.nav-hold-wrapper),
.nav-hold-wrapper {
  overflow: visible;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-main);
  background: rgba(211, 47, 47, 0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--primary-red);
  box-shadow: 0 0 8px var(--primary-red-glow);
  border-radius: 2px;
}

/* [V3.12] Chevron icon pada Tata Cara Pembayaran */
.nav-dropdown-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--blade-gold);
  opacity: 0.7;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-hold-wrapper[data-open="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-hold-wrapper:hover .nav-dropdown-chevron {
  opacity: 1;
}

/* ========================================================================== */
/* [NEW] NAV HOLD-WRAPPER (Long-press reveal)                                 */
/* ========================================================================== */
.nav-hold-wrapper {
  position: relative;
  display: inline-block;
}

/* Indikator progress hold — garis bawah yang mengisi */
.nav-hold-indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--blade-gold) 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  border-radius: 2px;
  transition: width 0.15s linear;
  pointer-events: none;
}

.nav-hold-wrapper[data-holding="true"] .nav-hold-indicator {
  width: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight link saat ditahan */
.nav-hold-wrapper[data-holding="true"] .nav-link {
  color: var(--blade-gold);
}

/* ---------- Dropdown Panel ---------- */
.nav-hold-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  min-width: 280px;
  background: rgba(18, 21, 30, 0.96);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75),
              0 0 20px rgba(245, 158, 11, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  z-index: 200;
}

/* Panah kecil di atas panel */
.nav-hold-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 30px;
  transform: rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(18, 21, 30, 0.96);
  border-left: 1px solid rgba(245, 158, 11, 0.35);
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 2px 0 0 0;
  z-index: 1;
}

/* Garis aksen gradient di atas panel */
.nav-hold-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--blade-gold) 100%);
  z-index: 2;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* State terbuka */
.nav-hold-wrapper[data-open="true"] .nav-hold-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ---------- Item Dropdown ---------- */
.nav-hold-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nav-hold-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary-red) 0%, var(--blade-gold) 100%);
  border-radius: 0 2px 2px 0;
  transition: transform 0.25s ease;
}

.nav-hold-item:hover,
.nav-hold-item:focus-visible {
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-main);
  padding-left: 1.15rem;
}

.nav-hold-item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-hold-item-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blade-gold);
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-hold-item:hover .nav-hold-item-icon {
  opacity: 1;
  transform: scale(1.1);
}

.nav-hold-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-hold-item-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: inherit;
}

.nav-hold-item-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Tombol "Kontak Admin" aktif — saat halaman wawasan dibuka */
.nav-hold-wrapper.is-hold-active .nav-link {
  color: var(--blade-gold);
}

/* ========================================================================== */
/* LIGHT MODE OVERRIDES                                                       */
/* ========================================================================== */

/* ========================================================================== */
/* RESPONSIVE — Sembunyikan di mobile + tablet                                */
/* ========================================================================== */
.nav-link-tablet-contact {
  display: none;
}

@media (max-width: 991px) and (min-width: 769px) {
  .nav-link-tablet-contact {
    display: inline-block;
  }
}

@media (max-width: 991px) {
  .nav-hold-wrapper {
    display: none !important;
  }
}

/* Actions — kolom 3 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  justify-self: end;
}

/* ==========================================================================
   [V3.12] NAVBAR RESPONSIVE BREAKPOINTS (Desktop / Laptop / Tablet)
   ========================================================================== */
/* Desktop besar (>1440px): semua tampil lega */
/* Laptop (1281–1440px): perkecil gap */
@media (max-width: 1440px) {
  .nav-container { padding: 0.85rem 1.25rem; gap: 1.35rem; }
  .nav-links { gap: 0.25rem; }
  .nav-link { padding: 0.45rem 0.7rem; font-size: 0.8125rem; }
}

/* Laptop kecil (1101–1280px): lebih compact */
@media (max-width: 1280px) {
  .nav-container { gap: 1.1rem; }
  .nav-links { gap: 0.15rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .currency-badge-pill { height: 34px; padding: 0 0.7rem; font-size: 0.78rem; }
}

/* Laptop sempit (992–1100px): WA button jadi icon saja */
@media (max-width: 1100px) and (min-width: 992px) {
  .currency-badge-pill { display: none !important; }
  .btn-wa-nav {
    padding: 0.55rem;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .btn-wa-nav span { display: none; }
  .nav-link { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
}

/* Mobile + tablet (≤991px): hamburger */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .hamburger-btn-svg { display: inline-flex; }
  .nav-container {
    grid-template-columns: auto 1fr auto;
  }

  /* [V4.5] Task 1: Sembunyikan tombol WA navbar di tablet & mobile */
  #navWhatsAppBtn {
    display: none !important;
  }

  /* [V4.3] Tampilkan teks brand di mobile & tablet */
  .brand-logo-text--mobile {
    display: flex !important;
    flex-direction: column;
  }

  .brand-logo-text--mobile .logo-brand {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    line-height: 1.05;
  }

  .brand-logo {
    gap: 0.55rem;
  }
}

/* [V4.3] Anti-overflow di mobile kecil */
@media (max-width: 480px) {
  .brand-logo-text--mobile .logo-brand {
    font-size: 1.05rem;
  }
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--blade-gold);
}

.mobile-auth-wrapper {
  margin-top: 1rem;
}

/* ==========================================================================
   [MOB-CLOCK] DYNAMIC REAL-TIME CLOCK & DATE WIDGET IN MOBILE DRAWER (WIB)
   ========================================================================== */
.drawer-clock-widget {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.05);
  position: relative;
  overflow: hidden;
}

.drawer-clock-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.drawer-clock-time {
  font-family: var(--font-mono, monospace);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blade-gold, #fbbf24);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}

.drawer-clock-time::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
  flex-shrink: 0;
  animation: clockPulseDot 2s ease-in-out infinite;
}

@keyframes clockPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.drawer-clock-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-left: 1.05rem;
  line-height: 1.3;
}

@media (min-width: 992px) {
  .drawer-clock-widget {
    display: none !important;
  }
}


/* ========================================================================== */
/* [IDR-01] REGION & CURRENCY BADGE PILL (ID / IDR)                           */
/* ========================================================================== */
.currency-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blade-gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.currency-badge-pill:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.flag-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  vertical-align: middle;
}

.flag-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.currency-text-val {
  line-height: 1;
}

/* [IDR-01m] Mobile Drawer Currency Indicator */
.mobile-currency-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-muted);
  text-align: center;
}

.mobile-currency-row strong {
  color: var(--blade-gold);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}


/* ========================================================================== */
/* [NEW] Ham6 Animated Hamburger Menu (FreeFrontend)                          */
/* ========================================================================== */
.hamburger-btn-svg {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-main);
}

.ham {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.line {
  fill: none;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
  stroke: currentColor;
  stroke-width: 5.5;
  stroke-linecap: round;
}

.ham6 .top {
  stroke-dasharray: 40 172;
}
.ham6 .middle {
  stroke-dasharray: 40 111;
}
.ham6 .bottom {
  stroke-dasharray: 40 172;
}
.ham6.active .top {
  stroke-dashoffset: -132px;
}
.ham6.active .middle {
  stroke-dashoffset: -71px;
}
.ham6.active .bottom {
  stroke-dashoffset: -132px;
}

/* Tampilkan tombol ini di mobile & tablet (<=991px) */
@media (max-width: 991px) {
  .hamburger-btn-svg {
    display: inline-flex;
  }
}

/* Light Mode Override */


/* ============================================ */
/* CURRENCY BADGE — MOBILE (sebelah hamburger)  */
/* ============================================ */

/* Default: sembunyikan versi mobile (tampil hanya ≤991px) */
.currency-badge-mobile {
  display: none;
}

/* Sembunyikan badge versi desktop di tablet/mobile */
@media (max-width: 991px) {
  .currency-badge-pill:not(.currency-badge-mobile) {
    display: none !important;
  }

  .currency-badge-mobile {
    display: inline-flex;
    height: 34px;
    padding: 0 0.6rem;
    gap: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .currency-badge-mobile .flag-wrapper {
    width: 16px;
    height: 11px;
  }

  .currency-badge-mobile .currency-text-val {
    font-size: 0.7rem;
    line-height: 1;
  }
}

/* Sembunyikan badge mobile di desktop */
@media (min-width: 992px) {
  .currency-badge-mobile {
    display: none !important;
  }
}

/* Sangat kecil — kurangi lagi */
@media (max-width: 380px) {
  .currency-badge-mobile {
    height: 30px;
    padding: 0 0.45rem;
    gap: 0.25rem;
  }

  .currency-badge-mobile .currency-text-val {
    font-size: 0.65rem;
  }

  .currency-badge-mobile .flag-wrapper {
    width: 14px;
    height: 10px;
  }
}

/* ==========================================================================
   [CTA-01 / RET-WA-1] FLOATING WHATSAPP CTA — BULAT MINIMALIS LOGO MURNI
   ========================================================================== */
.floating-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 490;
  width: 50px;
  height: 50px;
  padding: 0;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.floating-wa-btn:active {
  transform: scale(0.92);
}

.floating-wa-btn .floating-wa-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .floating-wa-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .floating-wa-btn .floating-wa-icon {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   [PRD-MUS] MINIMALIST FLOATING MUSIC PLAYER BUTTON (MUS-1 s.d. MUS-4)
   ========================================================================== */
.floating-music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 86px;
  z-index: 489;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #0b0f19;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.floating-music-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.35);
  border-color: rgba(251, 191, 36, 0.8);
}

.floating-music-btn:active {
  transform: scale(0.92);
}

.music-btn-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.floating-music-btn svg {
  width: 22px;
  height: 22px;
  fill: #0b0f19;
}

/* Denyut Gelombang Halus / Pulse Wave Animation saat Musik Aktif (MUS-3) */
.music-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.7);
  opacity: 0;
  pointer-events: none;
}

.floating-music-btn.is-playing .music-pulse-ring {
  animation: musicPulseWave 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.floating-music-btn.is-playing .music-btn-icon-wrap {
  animation: musicIconSpin 4s linear infinite;
}

@keyframes musicPulseWave {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes musicIconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Responsiveness (<=768px): Berdampingan secara ergonomis dengan tombol WA */
@media (max-width: 768px) {
  .floating-music-btn {
    bottom: 16px;
    right: 76px;
    width: 48px;
    height: 48px;
  }

  .music-btn-icon-wrap {
    width: 22px;
    height: 22px;
  }

  .floating-music-btn svg {
    width: 20px;
    height: 20px;
  }
}

