/* ============================================================
   CASINO LOBBY BANNER POPUP ADS (MATCHING SCREENSHOT)
   ============================================================ */

/* Fullscreen Modal Backdrop Container */
#bannerPopupModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 1, 10, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-sizing: border-box;
  padding: 16px;
}

#bannerPopupModal.active {
  display: flex !important;
}

.banner-popup-wrapper {
  position: relative;
  max-width: 660px;
  width: 92%;
  margin: auto;
  animation: bPopupScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

@keyframes bPopupScaleIn {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Glowing Top-Right Close Button (Matched to Reference Screenshot) */
.banner-popup-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4338ca, #1e1b4b 75%, #0f172a 100%);
  border: 2.5px solid #818cf8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.85), 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  outline: none;
}

.banner-popup-close-btn:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 0 25px rgba(129, 140, 248, 1), 0 6px 16px rgba(0, 0, 0, 0.9);
}

.banner-popup-close-btn:active {
  transform: scale(0.95);
}

.b-close-x {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Main Banner Card */
.banner-popup-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fbbf24;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.4);
  background: #110d24;
}

.b-card-artwork {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.b-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic Text & CTA Overlay */
.b-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(17, 10, 40, 0.45) 0%, rgba(10, 5, 25, 0.1) 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.b-header-group {
  max-width: 65%;
  pointer-events: auto;
}

.b-popup-title {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.b-popup-subrow {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 2px;
}

.b-sub-label {
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.b-sub-amount {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fde047;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(250, 204, 21, 0.5);
}

.b-action-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  margin-bottom: 8px;
  pointer-events: auto;
}

/* Green Glossy 3D CTA Button (Matched to Screenshot) */
.b-popup-cta-btn {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #15803d 100%);
  border: 2px solid #86efac;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  padding: 11px 42px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.b-popup-cta-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.7);
}

.b-popup-cta-btn:active {
  transform: scale(0.96);
}

/* Dots for multi-popup navigation */
.b-step-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.b-dot.active {
  width: 22px;
  border-radius: 6px;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

/* "Don't show again today" Checkbox Bar */
.b-dont-show-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-dont-show-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: rgba(15, 10, 30, 0.6);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.b-dont-show-label input[type="checkbox"] {
  accent-color: #f59e0b;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Portrait mobile adaptation */
@media (max-width: 600px) {
  .banner-popup-wrapper {
    width: 95%;
  }
  .banner-popup-card {
    aspect-ratio: 16 / 10;
  }
  .b-popup-title {
    font-size: 22px;
  }
  .b-sub-amount {
    font-size: 24px;
  }
  .b-popup-cta-btn {
    font-size: 15px;
    padding: 9px 28px;
  }
}
