/* ═══════════════════════════════════════════════════════════════
   IMKBY Push Notifications - Popup Styling
   ═══════════════════════════════════════════════════════════════ */

#imkby-push-popup {
  --c-burgundy: #6b1f3a;
  --c-burgundy-dark: #4a1428;
  --c-gold: #c9a961;
  --c-gold-bright: #e6c989;
  --c-text: #2d2416;
  --c-text-soft: #5a4f3d;

  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#imkby-push-popup.imkby-push-show { opacity: 1; }
#imkby-push-popup * { box-sizing: border-box; }

.imkby-push-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.imkby-push-card {
  position: relative;
  max-width: 440px;
  width: 90%;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: white;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#imkby-push-popup.imkby-push-show .imkby-push-card {
  transform: translateY(-50%) scale(1);
}

.imkby-push-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--c-text-soft);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition: all 0.2s;
}
.imkby-push-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--c-burgundy);
}

.imkby-push-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: imkby-push-bell 2s ease-in-out infinite;
  display: inline-block;
}
.imkby-push-icon.imkby-push-success {
  color: #4a8a3a;
  animation: imkby-push-pop 0.5s ease-out;
}
@keyframes imkby-push-bell {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}
@keyframes imkby-push-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.imkby-push-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-burgundy-dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

.imkby-push-text {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.6;
  margin: 0 0 20px;
}

.imkby-push-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.imkby-push-btn {
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.imkby-push-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.imkby-push-btn-yes {
  background: linear-gradient(135deg, var(--c-burgundy) 0%, var(--c-burgundy-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 31, 58, 0.3);
}
.imkby-push-btn-yes:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 31, 58, 0.4);
}

.imkby-push-btn-no {
  background: transparent;
  color: var(--c-text-soft);
  border: 1px solid #ddd;
}
.imkby-push-btn-no:hover {
  background: #f7f5f0;
  border-color: var(--c-gold);
  color: var(--c-burgundy);
}

.imkby-push-note {
  font-size: 11px;
  color: #999;
  margin: 16px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* Mobile */
@media (max-width: 480px) {
  .imkby-push-card {
    padding: 24px 20px 20px;
    width: 92%;
  }
  .imkby-push-title { font-size: 19px; }
  .imkby-push-text { font-size: 13px; }
  .imkby-push-btn { padding: 12px 18px; font-size: 14px; }
}
