
:root{
  --knz-push-overlay: rgba(2, 6, 23, 0.70);
  --knz-push-panel: rgba(9, 14, 28, 0.88);
  --knz-push-panel-border: rgba(255,255,255,0.10);
  --knz-push-text: #f8fafc;
  --knz-push-muted: rgba(248,250,252,0.78);
  --knz-push-primary-1: #2563eb;
  --knz-push-primary-2: #1d4ed8;
  --knz-push-secondary: rgba(255,255,255,0.08);
  --knz-push-secondary-border: rgba(255,255,255,0.14);
}

.knz-push-popup-wrap{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--knz-push-overlay);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  animation: knzPushOverlayIn .28s ease forwards;
}

@keyframes knzPushOverlayIn{
  from{opacity:0}
  to{opacity:1}
}

.knz-push-popup{
  width: min(100%, 470px);
  position: relative;
  border-radius: 24px;
  padding: 28px;
  color: var(--knz-push-text);
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.94));
  border: 1px solid var(--knz-push-panel-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(18px) scale(.96);
  animation: knzPushPanelIn .28s ease forwards;
}

@keyframes knzPushPanelIn{
  from{opacity:.2;transform:translateY(18px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.knz-push-popup::before{
  content:'';
  position:absolute;
  inset:1px;
  border-radius:23px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  pointer-events:none;
}

.knz-push-popup > *{ position: relative; z-index: 1; }

.knz-push-popup h3{
  margin: 14px 44px 10px 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.knz-push-popup p{
  margin: 0 0 20px;
  color: var(--knz-push-muted);
  font-size: 15px;
  line-height: 1.7;
}

.knz-push-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(37,99,235,.18);
  color: #dbeafe;
  border: 1px solid rgba(96,165,250,.24);
}

.knz-push-badge::before{
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96,165,250,.16);
}

.knz-push-actions{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  margin-top: 8px;
}

.knz-push-actions button{
  min-height: 52px;
  border-radius: 16px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.knz-push-actions button:hover{ transform: translateY(-1px); }
.knz-push-actions button:active{ transform: translateY(0); }
.knz-push-actions button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(96,165,250,.22);
}

.knz-btn-primary{
  color: #fff;
  background: linear-gradient(135deg, var(--knz-push-primary-1), var(--knz-push-primary-2));
  box-shadow: 0 14px 28px rgba(37,99,235,.30);
}

.knz-btn-primary:hover{ box-shadow: 0 18px 34px rgba(37,99,235,.36); }

.knz-btn-secondary{
  color: #e5e7eb;
  background: var(--knz-push-secondary);
  border-color: var(--knz-push-secondary-border);
}

.knz-btn-secondary:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.knz-push-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-size: 24px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.knz-push-close:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
  transform: rotate(90deg);
}

.knz-push-debug-inline{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.knz-push-debug-box{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000001;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 40vh;
  overflow: auto;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  font: 12px/1.45 Arial,sans-serif;
}

.knz-push-debug-row{
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  word-break: break-word;
}

.knz-push-debug-actions{ margin-top: 8px; }
.knz-push-debug-reset{
  border: 0;
  background: #2563eb;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.knz-push-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 1000002;
  opacity: 0;
  transition: all .25s ease;
  max-width: 90vw;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.knz-push-toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
.knz-push-popup-wrap{ pointer-events: auto; }
.knz-push-actions button[disabled]{ opacity: .8; cursor: not-allowed; }
body.knz-push-modal-open{ overflow: hidden; }

@media (max-width: 640px){
  .knz-push-popup-wrap{ padding: 14px; align-items: flex-end; }
  .knz-push-popup{
    width: 100%;
    padding: 22px 18px 18px;
    border-radius: 22px;
  }
  .knz-push-popup h3{
    margin-right: 40px;
    font-size: 22px;
  }
  .knz-push-popup p{ font-size: 14px; line-height: 1.6; }
  .knz-push-actions{ grid-template-columns: 1fr; }
  .knz-push-actions button{ width: 100%; }
  .knz-push-close{ top: 12px; right: 12px; }
}


body.knz-push-modal-open{overflow:hidden !important;}

.knz-push-popup-wrap .knz-push-popup,
.knz-push-popup-wrap .knz-push-popup *{
  box-sizing: border-box;
}

.knz-push-popup-wrap .knz-push-popup{
  isolation: isolate;
}

.knz-push-popup-wrap .knz-push-popup h3,
.knz-push-popup-wrap .knz-push-popup .knz-push-title{
  color: #f8fafc !important;
  text-shadow: 0 2px 18px rgba(37,99,235,.16);
}

.knz-push-popup-wrap .knz-push-popup p,
.knz-push-popup-wrap .knz-push-popup .knz-push-desc{
  color: rgba(248,250,252,0.82) !important;
}

.knz-push-popup-wrap .knz-push-badge{
  background: rgba(37,99,235,.16) !important;
  color: #dbeafe !important;
  border-color: rgba(96,165,250,.30) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(37,99,235,.14);
}

.knz-push-popup-wrap .knz-btn-primary{
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.06) !important;
}

.knz-push-popup-wrap .knz-btn-secondary{
  background: rgba(255,255,255,.07) !important;
  color: #e5e7eb !important;
  border-color: rgba(255,255,255,.16) !important;
}

.knz-push-popup-wrap .knz-btn-secondary:hover{
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
}

.knz-push-popup-wrap .knz-push-close{
  color: rgba(255,255,255,.78) !important;
}

.knz-push-popup-wrap .knz-push-close:hover{
  color: #ffffff !important;
}

@media (max-width: 640px){
  .knz-push-popup-wrap{padding:16px;}
  .knz-push-popup-wrap .knz-push-popup{padding:22px; border-radius:20px;}
  .knz-push-popup-wrap .knz-push-popup h3{font-size:24px; margin-right:36px;}
  .knz-push-popup-wrap .knz-push-actions{grid-template-columns:1fr;}
}


.knz-push-ios-steps{
  display:grid;
  gap:10px;
  margin: 16px 0 18px;
}
.knz-push-ios-step{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.knz-push-ios-step span{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color:#fff;
  font-size:13px;
  font-weight:800;
  box-shadow: 0 10px 20px rgba(37,99,235,.28);
}
.knz-push-ios-step strong{
  color:#f8fafc;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}
.knz-push-ios-note{
  margin-top:12px;
  color: rgba(248,250,252,0.72);
  font-size:12px;
  line-height:1.55;
}
.knz-push-ios-mode .knz-push-popup{
  width:min(100%, 520px);
}
@media (max-width: 640px){
  .knz-push-ios-step{align-items:flex-start;}
  .knz-push-ios-step strong{font-size:13px;}
}
