.push-popup {
  --push-bg: #1a1a25;
  --push-border: rgba(255, 255, 255, 0.12);
  --push-text: #f0f0f8;
  --push-muted: rgba(255, 255, 255, 0.65);
  --push-btn-bg: #4d9fff;
  --push-btn-text: #fff;
  --push-btn-shadow: rgba(77, 159, 255, 0.35);
  --push-close: rgba(255, 255, 255, 0.55);

  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  z-index: 10001;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-radius: 16px;
  border: 1px solid var(--push-border);
  background: var(--push-bg);
  color: var(--push-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.push-popup--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.push-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--push-close);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.push-popup__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--push-text);
}

.push-popup__text {
  margin: 0 28px 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--push-text);
}

.push-popup__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--push-muted);
}

.push-popup__btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--push-btn-bg);
  color: var(--push-btn-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.push-popup__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--push-btn-shadow);
}

.push-popup__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.push-popup__btn--pulse {
  animation: push-popup-pulse 1.4s ease-in-out infinite;
}

@keyframes push-popup-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--push-btn-shadow);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px transparent;
  }
}

@media (max-width: 480px) {
  .push-popup {
    width: calc(100vw - 32px);
  }
}
