.bf-popup[hidden] {
  display: none;
}

.bf-popup {
  font-family: 'Inter', system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.bf-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(3px);
  animation: bf-popup-fade 0.25s ease-out;
}

.bf-popup-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: bf-popup-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bf-popup-card:focus {
  outline: none;
}

.bf-popup-hero {
  display: block;
  width: 100%;
  height: auto;
}

.bf-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bf-popup-close:hover,
.bf-popup-close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.bf-popup-body {
  padding: 24px 28px 22px;
  text-align: center;
}

.bf-popup-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}

.bf-popup-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #4b4b4b;
}

.bf-popup-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.bf-popup-points li::before {
  content: "\2713";
  margin-right: 6px;
  color: #c78a00;
}

.bf-popup-points li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff6dc;
  color: #5c4300;
  font-size: 13px;
  font-weight: 600;
}

.bf-popup-cta {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: #111111;
  color: #ffe08a;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bf-popup-cta:hover,
.bf-popup-cta:focus-visible {
  background: #000000;
  color: #ffd45e;
  transform: translateY(-1px);
}

.bf-popup-later {
  margin-top: 10px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 13px;
  cursor: pointer;
}

.bf-popup-later:hover {
  color: #111111;
  text-decoration: underline;
}

@keyframes bf-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bf-popup-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .bf-popup-hero { height: 150px; }
  .bf-hero-tiles { display: none; }
  .bf-popup-body { padding: 20px 18px 18px; }
  .bf-popup-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-popup-backdrop,
  .bf-popup-card { animation: none; }
  .bf-popup-cta { transition: none; }
}
