#pix-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#pix-popup-overlay.pix-popup--open {
  display: flex;
  animation: pixPopupFadeIn 0.25s ease-out;
}

@keyframes pixPopupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pix-popup-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #1a1f3a 0%, #0e1226 100%);
  border: 1px solid rgba(120, 90, 255, 0.35);
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(120, 90, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: pixPopupSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pix-popup-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c853, #7a5cff, #00c853);
  background-size: 200% 100%;
  animation: pixPopupShine 2s linear infinite;
}

@keyframes pixPopupShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pixPopupSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pix-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 2;
}

.pix-popup-close:hover,
.pix-popup-close:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.08);
}

.pix-popup-icon {
  text-align: center;
  margin-bottom: 16px;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 200, 83, 0.4));
}

.pix-popup-title {
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.pix-popup-title span {
  background: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pix-popup-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 6px;
}

.pix-popup-cta-line {
  text-align: center;
  color: #b39ddb;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 22px;
  padding-top: 4px;
}

.pix-popup-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pix-popup-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  background: rgba(122, 92, 255, 0.08);
  border: 1px solid rgba(122, 92, 255, 0.18);
  border-radius: 10px;
}

.pix-popup-benefits li::before {
  content: '✅';
  font-size: 14px;
  flex-shrink: 0;
}

.pix-popup-button {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #69f0ae 100%);
  color: #003d1f;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}

.pix-popup-button:hover,
.pix-popup-button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 12px 32px rgba(0, 200, 83, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.06);
}

.pix-popup-button:active {
  transform: translateY(0) scale(0.99);
}

.pix-popup-footer {
  text-align: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 380px) {
  .pix-popup-modal {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }
  .pix-popup-title {
    font-size: 18px;
  }
  .pix-popup-benefits li {
    font-size: 12.5px;
    padding: 9px 10px;
  }
  .pix-popup-button {
    font-size: 15px;
    padding: 14px 16px;
  }
}
