/* ============================================================================
   MODALS, POPUPS & TOAST NOTIFICATIONS (modals.css)
   ============================================================================ */

/* ---------- MFP 3-dot FAB orbit (icon-only bubbles) ---------- */
.mfp-fab-menu {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.mfp-fab-menu.hidden {
  display: none !important;
}

.mfp-fab-menu.is-open {
  pointer-events: auto;
}

.mfp-fab-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.mfp-fab-menu.is-open .mfp-fab-backdrop {
  opacity: 1;
}

.mfp-fab-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mfp-fab-bubble {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 24, 28, 0.96);
  color: #f4f4f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(0.15);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 2;
}

.mfp-fab-menu.is-open .mfp-fab-bubble {
  opacity: 1;
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) scale(1);
}

.mfp-fab-bubble:active {
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) scale(0.9);
}

.mfp-fab-bubble.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.mfp-fab-bubble i {
  pointer-events: none;
}

/* Keep legacy class hooks from closing handlers harmless */
.mfp-options-bubble.hidden,
.mfp-bubble-close {
  /* no-op legacy */
}

/* Resume Playback Toast Notification (#resume-playback-toast) */
#resume-playback-toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  z-index: 11000;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  color: #f4f4f5;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  max-width: min(90vw, 360px);
  text-align: center;
  direction: rtl;
}

#resume-playback-toast.hidden {
  display: none !important;
}
