/* Popup Banner Modal Styling */
.bro-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  padding: 16px;
  box-sizing: border-box;
}

.bro-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bro-popup-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #181507 0%, #0d0c07 60%, #151103 100%);
  border: 2px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.bro-popup-backdrop.active .bro-popup-container {
  transform: scale(1) translateY(0);
}

/* Close Button */
.bro-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1.5px solid #ffd700;
  color: #ffd700;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.bro-popup-close:hover {
  transform: scale(1.15) rotate(90deg);
  background: #ffd700;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* Banner Image Section - Full 100% Uncropped Image */
.bro-popup-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 215, 0, 0.35);
  background: #000;
}

.bro-popup-media img {
  width: 100%;
  height: auto;
  max-height: 48vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Content Body */
.bro-popup-content {
  padding: 16px 18px 18px 18px;
  background: #0c0b05;
}

/* Meta Title */
.bro-popup-title {
  color: #ffd700;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 15px 0;
  text-transform: none;
  letter-spacing: 0.2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dual CTA (LOGIN & DAFTAR) */
.bro-popup-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.bro-popup-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-sizing: border-box;
}

.bro-popup-btn:hover {
  transform: translateY(-2px);
}

/* 1. Login Button (Gold / Yellow Theme) */
.bro-popup-btn-login {
  background: linear-gradient(135deg, #ffe066 0%, #f5b400 50%, #d97706 100%);
  color: #0b0a04;
  border: 1px solid #ffe066;
  box-shadow: 0 4px 15px rgba(245, 180, 0, 0.4);
}

.bro-popup-btn-login:hover {
  box-shadow: 0 6px 22px rgba(245, 180, 0, 0.65);
  background: linear-gradient(135deg, #fff099 0%, #ffc107 50%, #b45309 100%);
}

/* 2. Daftar Button (Fiery Red / Orange Theme) */
.bro-popup-btn-daftar {
  background: linear-gradient(135deg, #ff6b35 0%, #e63946 50%, #d00000 100%);
  color: #ffffff;
  border: 1px solid #ff8866;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.45);
}

.bro-popup-btn-daftar:hover {
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.7);
  background: linear-gradient(135deg, #ff8552 0%, #f04856 50%, #e00000 100%);
}

@media (max-width: 480px) {
  .bro-popup-container {
    max-width: 92%;
  }
  .bro-popup-title {
    font-size: 13.5px;
    margin-bottom: 12px;
  }
  .bro-popup-media img {
    max-height: 40vh;
  }
  .bro-popup-cta-group {
    gap: 8px;
  }
  .bro-popup-btn {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}
