/* Hide any elements that contain development platform references */
*[class*="replit" i],
*[id*="replit" i],
*[data-*="replit" i],
div:has-text("replit"),
div:has-text("embedded page"),
div:has-text("janeway"),
[role="dialog"]:has-text("replit"),
[role="dialog"]:has-text("embedded page") {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide common modal/popup patterns but allow BUIDLr popups */
div[style*="position: fixed"]:not([style*="background: rgba(0, 0, 0, 0.8)"]),
div[style*="z-index: 9999"]:not([style*="background: rgba(0, 0, 0, 0.8)"]),
div[style*="z-index: 10000"]:not([style*="background: rgba(0, 0, 0, 0.8)"]) {
  display: none !important;
}

/* Allow BUIDLr-branded popups */
div[style*="background: rgba(0, 0, 0, 0.8)"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide any iframe or embedded content from development platform */
iframe[src*="replit"],
iframe[src*="janeway"] {
  display: none !important;
}

/* Hide any script tags that might be visible */
script[src*="replit"],
script:has-text("replit") {
  display: none !important;
}

/* Smooth animation for BUIDLr popups */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}