/* AEKhub Push Notification Popup */
#aekhub-push-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#aekhub-push-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#aekhub-push-bar {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(400px, calc(100% - 32px));
  z-index: 99999;
  background: #0A0A0A;
  border: 2px solid #F9CF1C;
  border-radius: 20px;
  padding: 32px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
#aekhub-push-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.apb-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1A1A1A;
  border: 2px solid #F9CF1C;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.apb-icon svg path { fill: #F9CF1C; }

.apb-text { width: 100%; margin-bottom: 24px; }
.apb-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #F5F5F5;
  line-height: 1.35;
  margin-bottom: 8px;
}
.apb-title strong { color: #F9CF1C; }
.apb-sub {
  font-size: 14px;
  color: #9A9A9A;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.apb-btns { width: 100%; }
#aekhub-push-allow {
  width: 100%;
  background: #F9CF1C;
  color: #0A0A0A;
  border: none;
  border-radius: 12px;
  padding: 16px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background .15s;
}
#aekhub-push-allow:hover { background: #FBDD60; }

#aekhub-push-dismiss {
  margin-top: 16px;
  background: none;
  border: none;
  color: #6B6B6B;
  font-size: 14px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  padding: 4px;
  transition: color .15s;
}
#aekhub-push-dismiss:hover { color: #E8E8E8; }

#aekhub-push-bell {
  /* Hidden everywhere — a small button in the site header now triggers
     this same element via a proxied click (see main.js in the theme),
     instead of this floating bottom-left circle. Kept in the DOM
     (not removed) so that click-forwarding and all the existing
     showBar()/permission logic in fcm-prompt.js keep working unchanged. */
  display: none !important;
}

/* Mobile: bottom-sheet style popup instead of centered */
@media (max-width: 600px) {
  #aekhub-push-bar {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    width: auto;
    transform: translateY(24px) scale(.98);
    padding: 28px 20px 20px;
  }
  #aekhub-push-bar.is-visible {
    transform: translateY(0) scale(1);
  }
  .apb-title { font-size: 18px; }
}
