/* TNS Custom Modal System */
#tns-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

#tns-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tns-modal-box {
  background: #111118; /* matches var(--card) */
  border: 1px solid rgba(255, 215, 0, 0.15); /* Gold tint border */
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px 24px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.05);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

#tns-modal-overlay.active .tns-modal-box {
  transform: scale(1) translateY(0);
}

.tns-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.tns-modal-title {
  font-family: 'Teko', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.tns-modal-message {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #a0a0b0;
  line-height: 1.6;
  margin-bottom: 32px;
}

.tns-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tns-modal-btn {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.tns-modal-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tns-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.tns-modal-confirm {
  background: #ffd700;
  color: #000;
  border: 1px solid #ffd700;
}

.tns-modal-confirm:hover {
  background: #f0c500;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Prevent body scroll when modal is active */
body.tns-modal-open {
  overflow: hidden !important;
}
