.creatro-popup-trigger {
  position: fixed;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.creatro-popup-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creatro-popup-trigger span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  font: 600 14px/1.2 system-ui, sans-serif;
}

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

.creatro-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.creatro-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.creatro-popup-panel {
  position: relative;
  z-index: 1;
  background: #0d1117;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  padding: 20px;
  box-sizing: border-box;
}

.creatro-popup-panel[data-popup-id="popup_1"] {
  width: min(92vw, 420px) !important;
  max-width: min(92vw, 420px) !important;
  padding: 18px 18px 16px;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(16, 23, 33, 0.96), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(201, 162, 74, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.creatro-popup-body[data-popup-id="popup_1"] a {
  position: relative;
  overflow: hidden;
  background-size: 200% 100% !important;
  animation: creatroGoldPulse 2.8s ease-in-out infinite;
}

.creatro-popup-body[data-popup-id="popup_1"] a::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 38%;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.42), rgba(255,255,255,0));
  animation: creatroGoldShine 3.2s ease-in-out infinite;
}

.creatro-popup-body[data-popup-id="popup_1"] {
  overflow: visible;
}

.creatro-popup-title {
  margin: 0 0 14px;
  font: 600 20px/1.2 system-ui, sans-serif;
}

.creatro-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.18);
  color: #c9a24a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.creatro-popup-body {
  overflow: auto;
}

.creatro-popup-media,
.creatro-popup-iframe {
  width: 100%;
  height: auto;
  border: 0;
  display: block;
}

.creatro-popup-media {
  max-height: 88vh;
  object-fit: contain;
  background: #000;
  border-radius: 24px;
}

.creatro-popup-body[data-popup-id="popup_1"] .creatro-popup-media {
  border-radius: 22px;
}

.creatro-popup-panel {
  overflow: visible;
}

@media (min-width: 768px) {
  .creatro-popup-panel[data-popup-id="popup_1"] {
    width: 400px !important;
    max-width: 400px !important;
    padding: 20px 20px 18px;
  }
}

@keyframes creatroGoldPulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(201, 162, 74, 0.28);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 14px 30px rgba(201, 162, 74, 0.42);
    transform: translateY(-1px);
  }
}

@keyframes creatroGoldShine {
  0% {
    left: -60%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  40%, 100% {
    left: 130%;
    opacity: 0;
  }
}
