.tb-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tb-confirm-modal.hidden { display: none !important; }
.tb-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.tb-confirm-card {
  position: relative;
  width: min(100%, 440px);
  padding: 1.35rem 1.5rem;
  background: var(--panel, #0c1018);
  border: 1px solid var(--border, rgba(201, 145, 124, 0.2));
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.tb-confirm-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--text, #f4f2ec);
}
.tb-confirm-card p {
  color: var(--muted, rgba(244, 242, 236, 0.58));
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.tb-confirm-field { margin-top: 0.85rem; }
.tb-confirm-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(201, 145, 124, 0.2));
  background: rgba(0, 0, 0, 0.25);
  color: var(--text, #f4f2ec);
  font-family: inherit;
  font-size: 0.9rem;
}
[data-theme="light"] .tb-confirm-field input {
  background: #fff;
  color: #0a0e16;
}
.tb-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.tb-confirm-danger {
  background: linear-gradient(135deg, #f87171, #dc2626) !important;
  color: #fff !important;
  border: none !important;
}
body.tb-confirm-open { overflow: hidden; }

.tb-confirm-icon {
  display: flex;
  justify-content: center;
  margin: 0.15rem 0 0.85rem;
}
.tb-confirm-icon.hidden { display: none !important; }
.tb-confirm-icon-ring {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: rgba(214, 12, 118, 0.12);
  border: 1px solid rgba(214, 12, 118, 0.45);
  box-shadow: 0 0 18px rgba(214, 12, 118, 0.35);
}
.tb-confirm-icon-glyph {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(214, 12, 118, 0.55));
}

.tb-confirm-card.tb-confirm-neon {
  text-align: center;
  padding: 1.6rem 1.55rem 1.4rem;
  border: 1px solid transparent;
  background:
    linear-gradient(#0c1018, #0c1018) padding-box,
    linear-gradient(135deg, #d60c76, #5eead4, #1f497d, #d60c76) border-box;
  box-shadow:
    0 0 0 1px rgba(214, 12, 118, 0.25),
    0 0 28px rgba(214, 12, 118, 0.35),
    0 0 48px rgba(31, 73, 125, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.5);
  animation: tb-confirm-neon-pulse 2.4s ease-in-out infinite;
}
.tb-confirm-card.tb-confirm-neon h2 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(214, 12, 118, 0.45);
}
.tb-confirm-card.tb-confirm-neon p {
  color: rgba(244, 242, 236, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}
.tb-confirm-card.tb-confirm-neon .tb-confirm-actions {
  justify-content: center;
}
.tb-confirm-neon-btn {
  min-width: 10rem;
  border: 1px solid rgba(214, 12, 118, 0.55) !important;
  box-shadow: 0 0 16px rgba(214, 12, 118, 0.4);
}
@keyframes tb-confirm-neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(214, 12, 118, 0.25),
      0 0 22px rgba(214, 12, 118, 0.3),
      0 0 40px rgba(31, 73, 125, 0.22),
      0 24px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.35),
      0 0 32px rgba(214, 12, 118, 0.45),
      0 0 56px rgba(31, 73, 125, 0.35),
      0 24px 60px rgba(0, 0, 0, 0.5);
  }
}
[data-theme="light"] .tb-confirm-card.tb-confirm-neon {
  background:
    linear-gradient(#f7f5f1, #f7f5f1) padding-box,
    linear-gradient(135deg, #d60c76, #0d9488, #1f497d, #d60c76) border-box;
}
[data-theme="light"] .tb-confirm-card.tb-confirm-neon h2 {
  color: #0a0e16;
  text-shadow: none;
}
[data-theme="light"] .tb-confirm-card.tb-confirm-neon p {
  color: rgba(10, 14, 22, 0.72);
}
