.name-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.name-modal {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
  border: 1px solid rgba(106, 90, 205, 0.35);
  border-radius: 20px;
  padding: 28px 24px 24px 24px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.name-modal-title {
  font-size: 1.001rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  text-align: center;
}

.name-preset-btn {
  width: 100%;
  border: 1px solid rgba(106, 90, 205, 0.3);
  border-radius: 10px;
  background: rgba(106, 90, 205, 0.1);
  color: #CBD5E0;
  padding: 10px 15px 8px 15px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: none;
  transition: all 0.2s ease;
}

.name-preset-btn.selected {
  background: linear-gradient(135deg, #6A5ACD, #4C44C1);
  border-color: transparent;
  color: white;
}

@media (hover: hover) {
  .name-preset-btn:hover {
    background: linear-gradient(135deg, #6A5ACD, #4C44C1);
    border-color: transparent;
    color: white;
  }
}

.name-modal-input {
  width: 100%;
  padding: 10px 15px 8px 15px;
  border: 1px solid rgba(106, 90, 205, 0.3);
  border-radius: 10px;
  background: rgba(25, 38, 59, 0.8);
  color: white;
  font-size: 0.9rem;
  font-family: "Rollbox", "Montserrat", sans-serif, arial;
  box-sizing: border-box;
}

.name-modal-input:focus {
  outline: none;
  border-color: #6A5ACD;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
  background: rgba(25, 38, 59, 1);
}

.name-modal-input::placeholder {
  color: #CBD5E0;
  opacity: 0.7;
}

.name-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.name-modal-cancel,
.name-modal-confirm {
  flex: 1;
  padding: 10px 15px 8px 15px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: "Rollbox", "Montserrat", sans-serif, arial;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.name-modal-cancel {
  background: rgba(106, 90, 205, 0.1);
  color: #CBD5E0;
  border: 1px solid rgba(106, 90, 205, 0.2);
}

.name-modal-cancel:hover {
  background: rgba(106, 90, 205, 0.2);
  color: white;
}

.name-modal-confirm {
  background: linear-gradient(135deg, #6A5ACD, #4C44C1);
  color: white;
}

.name-modal-confirm:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}