/* ============================================================
   Notification Popup Widget — floating bell + stylish popup.
   Same style family as the chat FAB (size / shadow / pulse),
   gold gradient to distinguish from the blue chat button.
   Sits ABOVE the chat FAB so they never overlap.
   ============================================================ */
.bc-notif-fab {
  position: fixed;
  bottom: 168px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5C542 0%, #D4A017 100%);
  border: 3px solid #ffffff;
  cursor: pointer;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B1B00;
  box-shadow: 0 10px 26px rgba(212, 160, 23, .45), 0 4px 10px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 0;
  line-height: 1;
  animation: bcNotifPulse 2.6s infinite;
}
@keyframes bcNotifPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 197, 66, .55), 0 10px 26px rgba(212,160,23,.45), 0 4px 10px rgba(0,0,0,.15); }
  70%  { box-shadow: 0 0 0 16px rgba(245, 197, 66, 0),  0 10px 26px rgba(212,160,23,.45), 0 4px 10px rgba(0,0,0,.15); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0),    0 10px 26px rgba(212,160,23,.45), 0 4px 10px rgba(0,0,0,.15); }
}
.bc-notif-fab:hover { transform: translateY(-3px) scale(1.05); animation: none; }
.bc-notif-fab svg { width: 24px; height: 24px; }
.bc-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}
.bc-notif-badge.show { display: inline-flex; }

/* ---------- Overlay + popup ---------- */
.bc-notif-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 11, 31, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9996;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.bc-notif-overlay.show { display: block; opacity: 1; }
.bc-notif-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.96);
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 11, 31, .45);
  z-index: 9997;
  display: none;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,.61,.36,1);
}
.bc-notif-popup.show { display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bc-notif-head {
  background: linear-gradient(120deg, #D4A017 0%, #F5C542 55%, #FFD966 100%);
  color: #2B1B00;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.bc-notif-head-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; min-width: 0; }
.bc-notif-head-title svg { width: 20px; height: 20px; flex-shrink: 0; }
.bc-notif-head-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-notif-close {
  background: rgba(43, 27, 0, .18);
  border: none; color: #2B1B00;
  width: 32px; height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.bc-notif-close:hover { background: rgba(43, 27, 0, .32); }
.bc-notif-body { padding: 18px; }
.bc-notif-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 14px; }
.bc-notif-title { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 8px; line-height: 1.3; }
.bc-notif-msg { font-size: 14px; line-height: 1.6; color: #334155; white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; }
.bc-notif-video-wrap { position: relative; border-radius: 14px; overflow: hidden; margin: 0 0 14px; background: #000; }
.bc-notif-video-wrap iframe { width: 100%; height: 220px; border: 0; display: block; }
.bc-notif-video-link {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px 14px; color: #1d4ed8; text-decoration: none; font-weight: 600; font-size: 13.5px;
  margin: 0 0 14px; transition: background .15s;
}
.bc-notif-video-link:hover { background: #eff6ff; }
.bc-notif-cta {
  display: inline-block;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .35);
  transition: transform .15s, filter .15s;
  text-align: center;
}
.bc-notif-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bc-notif-cta-row { text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .bc-notif-fab { width: 50px; height: 50px; bottom: 152px; right: 18px; }
  .bc-notif-fab svg { width: 21px; height: 21px; }
  .bc-notif-popup {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(100%);
    width: 100%; max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
  .bc-notif-popup.show { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-notif-fab { animation: none !important; }
  .bc-notif-fab, .bc-notif-popup, .bc-notif-overlay { transition: none !important; }
}
