:root{
  --bnl-black:#000000;
  --bnl-white:#ffffff;
  --bnl-overlay: rgba(0,0,0,0.6);
}

.bnl-no-scroll { overflow: hidden; }

/* Header bar (hidden until popup is dismissed) */
#bnl-header-bar.bnl-header-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bnl-black);
  color: var(--bnl-white);
  z-index: 99999;
  padding: 10px 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
#bnl-header-bar .bnl-container{
  max-width: 1200px;
  margin: 0 auto;
}
#bnl-header-bar .bnl-header-text{
  display: inline-block;
}

/* Popup overlay */
#bnl-popup-overlay{
  position: fixed;
  inset: 0;
  background: var(--bnl-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
#bnl-popup-overlay.bnl-open{ display: flex; }

/* Dialog */
#bnl-popup-overlay .bnl-popup{
  background: var(--bnl-white);
  max-width: 560px;
  width: calc(100% - 40px);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#bnl-popup-overlay .bnl-title{
  margin: 0 0 8px 0;
  font-size: 22px;
}

#bnl-popup-overlay .bnl-message{
  margin: 0 0 16px 0;
  line-height: 1.5;
  font-size: 16px;
}

#bnl-popup-overlay .bnl-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#bnl-popup-overlay .bnl-link{
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
}

#bnl-popup-overlay .bnl-close{
  position: absolute;
  top: 10px; right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Small screens */
@media (max-width: 480px){
  #bnl-popup-overlay .bnl-title{ font-size: 20px; }
  #bnl-popup-overlay .bnl-message{ font-size: 15px; }
}