/* ==========================================================================
   REACT BITS MICRO-INTERACTIONS DESIGN SYSTEM
   - BellToggle: Dynamic Oscillating Bell & Morphing Label with Badge & Soundwaves
   - SwipeToast: Kinetic Gesture Toast with Burning Fuse Progress & Swipe Dismiss
   - WakeSlider: Equalizer Wake Wave Slider with 32 Reactive Fluid Amplitude Bars
   - SlingButton: Catapult / Slingshot Elastic Launcher with Power Arc & Spark Bursts
   - Cineora Notifications Drawer: Rich Popover Panel for Real-Time Content Feed
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BellToggle
   -------------------------------------------------------------------------- */
.bell-toggle {
  --bt-clip: 0px;
  --bt-color: #f1f5f9;
  --bt-bg: rgba(255, 255, 255, 0.06);
  --bt-on-color: #ffffff;
  --bt-on-bg: rgba(229, 9, 20, 0.16);
  --bt-badge: #e50914;
  --bt-badge-ink: #ffffff;
  --bt-radius: 9999px;
  --bt-fade: 200ms;
  --bt-pivot: 16%;
  --bt-h: 38px;
  --bt-fs: 12.5px;
  --bt-icon: 16px;
  --bt-px: 13px;
  --bt-gap: 8px;
  --bt-press: 0.96;
  --bt-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  position: relative;
  display: inline-grid;
  grid-template-columns: max-content;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms var(--bt-ease-out);
  vertical-align: middle;
}

.bell-toggle[data-pressed] {
  transform: scale(var(--bt-press));
}

.bell-toggle[data-disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.bell-toggle__button {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: var(--bt-gap);
  height: var(--bt-h);
  margin: 0;
  padding: 0 var(--bt-px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bt-radius);
  background: var(--bt-bg);
  color: var(--bt-color);
  font: inherit;
  font-size: var(--bt-fs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  clip-path: inset(0 var(--bt-clip) 0 0 round var(--bt-radius));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition:
    background-color var(--bt-fade) ease,
    border-color var(--bt-fade) ease,
    color var(--bt-fade) ease,
    box-shadow var(--bt-fade) ease;
}

.bell-toggle__button:disabled {
  cursor: default;
}

.bell-toggle[data-on='true'] .bell-toggle__button {
  background: var(--bt-on-bg);
  color: var(--bt-on-color);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .bell-toggle__button:enabled:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .bell-toggle[data-on='true'] .bell-toggle__button:enabled:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.6);
  }
}

.bell-toggle__bell {
  position: relative;
  display: inline-grid;
  flex: none;
  width: var(--bt-icon);
  height: var(--bt-icon);
}

.bell-toggle__glyph {
  display: inline-grid;
  place-items: center;
  grid-area: 1 / 1;
  width: var(--bt-icon);
  height: var(--bt-icon);
  transform-origin: 50% var(--bt-pivot);
}

.bell-toggle__glyph svg {
  width: 100%;
  height: 100%;
}

.bell-toggle__clapper {
  position: absolute;
  inset: 0;
  transform-origin: 50% var(--bt-pivot);
  pointer-events: none;
}

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

.bell-toggle__wave {
  position: absolute;
  top: -3px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
}

.bell-toggle__wave--left {
  right: calc(100% - 2px);
  transform-origin: 100% 100%;
}

.bell-toggle__wave--right {
  left: calc(100% - 2px);
  transform-origin: 0% 100%;
}

.bell-toggle__badge {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9999px;
  background: var(--bt-badge);
  color: var(--bt-badge-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px) scale(0.6);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
  border: 1.5px solid #0b0f19;
  transition:
    transform 180ms var(--bt-ease-out),
    opacity 140ms ease;
}

.bell-toggle__badge[data-show] {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 120ms ease;
}

.bell-toggle__digit {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 200ms ease,
    transform 200ms var(--bt-ease-out);
}

.bell-toggle__say {
  display: inline-grid;
  grid-template-columns: max-content;
  height: 18px;
  line-height: 18px;
}

.bell-toggle__face {
  grid-area: 1 / 1;
  justify-self: start;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--bt-fade) ease,
    filter var(--bt-fade) ease;
}

.bell-toggle[data-on='false'] .bell-toggle__face--off,
.bell-toggle[data-on='true'] .bell-toggle__face--on {
  opacity: 1;
  filter: blur(0);
}

/* Compact bell button variant for tight headers */
.bell-toggle.bell-toggle--compact {
  --bt-h: 36px;
  --bt-px: 10px;
}
.bell-toggle.bell-toggle--compact .bell-toggle__say {
  display: none;
}

/* --------------------------------------------------------------------------
   Notifications Popover Panel
   -------------------------------------------------------------------------- */
.bell-toggle-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 420px;
  max-width: calc(100vw - 28px);
  max-height: 590px;
  background: rgba(10, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 
    0 28px 64px -12px rgba(0, 0, 0, 0.85), 
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.notifications-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notif-panel-glow {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.85), rgba(245, 158, 11, 0.85), transparent);
  pointer-events: none;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
}

.notif-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.notif-unread-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff5252;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notif-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-header-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 160ms ease;
}

.notif-header-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.notif-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 160ms ease;
}

.notif-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.notif-icon-btn.is-muted {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Category Filter Tabs */
.notif-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.notif-tabs::-webkit-scrollbar {
  display: none;
}

.notif-tab {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}

.notif-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.notif-tab.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 600;
}

/* Notification Items List */
.notif-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.notif-item.is-unread {
  background: rgba(229, 9, 20, 0.05);
  border-color: rgba(229, 9, 20, 0.18);
}

.notif-poster-wrap {
  position: relative;
  width: 42px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #141a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notif-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.notif-item-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.notif-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.notif-item:hover .notif-action-btn {
  background: var(--accent-red, #e50914);
  border-color: var(--accent-red, #e50914);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

/* Footer */
.notif-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.notif-footer-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.notif-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

.notif-sync-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 160ms ease;
}

.notif-sync-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Loading & Empty States */
.notif-loading-state,
.notif-empty-state {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
}

.notif-loading-state i {
  font-size: 24px;
  color: #e50914;
  margin-bottom: 4px;
}

.notif-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.notif-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.notif-empty-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 260px;
}

@media (max-width: 640px) {
  .notifications-panel {
    position: fixed;
    top: 66px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 84px);
    border-radius: 18px;
  }
  .notif-header {
    padding: 14px 16px;
  }
  .notif-list {
    max-height: calc(100vh - 230px);
  }
}

/* --------------------------------------------------------------------------
   2. SwipeToast
   -------------------------------------------------------------------------- */
.swipe-toast-container {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999999999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .swipe-toast-container {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

.swipe-toast {
  --st-bg: #121826;
  --st-ink: #f8fafc;
  --st-fuse: #e50914;
  --st-fuse-h: 3px;
  --st-w: 390px;
  --st-radius: 14px;
  --st-slide: 400ms;
  --st-gap: 10px;
  --st-offset: 28px;
  --st-z: 999999999;
  --st-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  display: grid;
  grid-template-rows: 1fr;
  width: min(var(--st-w), 100%);
  color: var(--st-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: auto;
}

.swipe-toast__gate {
  min-height: 0;
}

.swipe-toast__lift {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform var(--st-slide) var(--st-ease-out),
    opacity calc(var(--st-slide) * 0.6) ease;
}

.swipe-toast[data-phase='closing'] .swipe-toast__lift {
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform calc(var(--st-slide) * 0.7) var(--st-ease-out),
    opacity calc(var(--st-slide) * 0.5) ease;
}

.swipe-toast[data-phase='gone'] .swipe-toast__lift {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}

.swipe-toast[data-instant] .swipe-toast__lift {
  transition-duration: 0s;
}

.swipe-toast__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--st-radius);
  overflow: hidden;
  background: var(--st-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(229, 9, 20, 0.15);
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.swipe-toast__card[data-swiping] {
  cursor: grabbing;
}

.swipe-toast[data-dismissible='false'] .swipe-toast__card {
  cursor: default;
  touch-action: auto;
}

.swipe-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(229, 9, 20, 0.16);
  color: #ff334b;
  font-size: 18px;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.swipe-toast__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.swipe-toast__title {
  font-weight: 600;
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swipe-toast__desc {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swipe-toast__action,
.swipe-toast__close {
  flex: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--st-ease-out),
    background-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.swipe-toast__action {
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  background: #e50914;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.swipe-toast__action:hover {
  background: #f43f5e;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
}

.swipe-toast__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.swipe-toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.swipe-toast__action:active,
.swipe-toast__close:active {
  transform: scale(0.95);
}

.swipe-toast__fuse {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--st-fuse-h);
  background: linear-gradient(
    90deg,
    #e50914 0%,
    #ff4d4d 50%,
    #38bdf8 100%
  );
  transform-origin: left center;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

/* --------------------------------------------------------------------------
   3. WakeSlider (Reactive Equalizer Soundwave Capsule Bars)
   -------------------------------------------------------------------------- */
.wake-slider {
  --ws-height: 24px;
  --ws-gap: 3.5px;

  display: inline-flex;
  align-items: center;
  position: relative;
  width: 114px;
  height: 28px;
  color: inherit;
  margin-right: 6px;
}

.wake-slider[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.wake-slider__track {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-gap, 3.5px);
  height: var(--ws-height, 24px);
  min-height: 26px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  padding: 2px 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .wake-slider__track {
    cursor: pointer;
  }
  .wake-slider:hover .wake-slider__track {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .wake-slider__track:active {
    cursor: grabbing;
  }
}

.wake-slider__bar {
  position: relative;
  flex: 0 0 4px;
  width: 4px;
  min-width: 4px;
  max-width: 4px;
  height: 6px;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.16);
  align-self: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: height 0.12s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.15s ease,
              box-shadow 0.15s ease;
}

.wake-slider__bar[data-on='true'] {
  background: linear-gradient(180deg, #ffa020 0%, #ff5252 50%, #e50914 100%) !important;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.65), 0 0 2px rgba(255, 160, 32, 0.8) !important;
}

.wake-slider__bar[data-on='false'] {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.wake-slider__crest {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 9999px 9999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.wake-slider__handle {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  outline: none;
  cursor: inherit;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.wake-slider__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 18, 28, 0.96);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff7070;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  z-index: 20;
}

.wake-slider:hover .wake-slider__tooltip,
.wake-slider:active .wake-slider__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   4. SlingButton
   -------------------------------------------------------------------------- */
.sling-button {
  --sl-size: 48px;
  --sl-svg: 84px;
  --sl-pad: #e50914;
  --sl-icon: #ffffff;
  --sl-accent: #f43f5e;
  --sl-well: rgba(255, 255, 255, 0.08);
  --sl-band: #ef4444;
  --sl-stroke: 3px;
  --sl-dot: 8px;
  --sl-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  position: relative;
  display: inline-block;
  width: var(--sl-size);
  height: var(--sl-size);
  vertical-align: middle;
}

.sling-button__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-svg);
  height: var(--sl-svg);
  margin: calc(var(--sl-svg) / -2) 0 0 calc(var(--sl-svg) / -2);
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.sling-button__well {
  fill: var(--sl-well);
  transition: fill 200ms ease;
}

.sling-button[data-sent] .sling-button__well {
  fill: var(--sl-accent);
}

.sling-button__band {
  fill: none;
  stroke: var(--sl-band);
  stroke-width: var(--sl-stroke);
  stroke-linecap: round;
  transition: stroke-width 160ms var(--sl-ease-out);
}

.sling-button[data-armed] .sling-button__band {
  stroke-width: calc(var(--sl-stroke) * 1.5);
}

.sling-button__band--hot {
  stroke: var(--sl-accent);
}

.sling-button__arc {
  fill: none;
  stroke: var(--sl-accent);
  stroke-width: var(--sl-stroke);
  stroke-linecap: butt;
  transition: stroke-width 160ms var(--sl-ease-out);
}

.sling-button[data-armed] .sling-button__arc {
  stroke-width: calc(var(--sl-stroke) * 1.5);
}

.sling-button__move {
  position: absolute;
  inset: 0;
}

.sling-button__pad {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.sling-button__pad::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.sling-button__pad[data-held] {
  cursor: grabbing;
}

.sling-button__pad[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.5;
}

.sling-button__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sl-pad);
  color: var(--sl-icon);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
  transition: transform 160ms var(--sl-ease-out), background-color 160ms ease, box-shadow 160ms ease;
}

.sling-button__pad[data-held] .sling-button__face {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
}

.sling-button__pad[data-armed] .sling-button__face {
  transform: scale(1.06);
  background: #f43f5e;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.8);
}

@media (hover: hover) and (pointer: fine) {
  .sling-button__pad:not([data-held]):not([aria-disabled='true']):hover .sling-button__face {
    transform: scale(1.05);
    background: #f43f5e;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
  }
}

.sling-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  font-size: 20px;
}

.sling-button__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-dot);
  height: var(--sl-dot);
  margin: calc(var(--sl-dot) / -2) 0 0 calc(var(--sl-dot) / -2);
  border-radius: 50%;
  background: var(--sl-accent);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 10px #f43f5e;
}

.sling-button__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Accessible Reduced Motion Rules */
@media (prefers-reduced-motion: reduce) {
  .bell-toggle[data-pressed] { transform: none; }
  .bell-toggle__face { filter: none !important; transition: opacity var(--bt-fade) ease; }
  .bell-toggle__badge { transform: none !important; }
  .swipe-toast__lift { transform: none !important; transition: opacity 200ms ease; }
  .wake-slider__bar { transform: scaleY(var(--ws-rest)) !important; }
  .sling-button__face { transform: none !important; transition: none; }
}

/* --------------------------------------------------------------------------
   Back-to-Top SlingButton Wrapper
   -------------------------------------------------------------------------- */
.back-to-top-slot {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.back-to-top-slot .sling-button {
  --sb-pad: #1a1a2e;
  --sb-well: #27272a;
  --sb-accent: #e50914;
  --sb-icon: #ffffff;
}

.back-to-top-slot .sling-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-slot .sling-button__icon i {
  font-size: 18px;
  color: #ffffff;
}
