.k-confirm {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.k-confirm__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  animation: k-confirm-fade 0.22s ease both;
}

.k-confirm__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.4rem 1.35rem 1.2rem;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(204, 28, 57, 0.14), transparent 55%),
    linear-gradient(165deg, #222226, #141416 70%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1.05rem;
  overflow: hidden;
  animation: k-confirm-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.k-confirm--danger .k-confirm__panel {
  border-color: rgba(204, 28, 57, 0.32);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(204, 28, 57, 0.22), transparent 55%),
    linear-gradient(165deg, #222226, #141416 70%);
}

.k-confirm__mark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f43f5e, #cc1c39 40%, #7f1024);
}

.k-confirm__head {
  display: grid;
  gap: 0.4rem;
  padding-left: 0.15rem;
}

.k-confirm__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f43f5e;
}

.k-confirm__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f4f4f5;
}

.k-confirm__lead {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.k-confirm__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.k-confirm__ok {
  background: linear-gradient(180deg, #e11d48, #be123c) !important;
  border-color: transparent !important;
}

.k-confirm__ok:hover:not(:disabled) {
  filter: brightness(1.06);
}

@keyframes k-confirm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes k-confirm-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .k-confirm__actions {
    flex-direction: column-reverse;
  }

  .k-confirm__actions .btn {
    width: 100%;
  }
}
