.psd-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.psd-device-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.psd-device-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.psd-device-card h2 {
  margin: 15px 0;
  font-size: 18px;
}

.psd-no-image {
  background: #f1f1f1;
  padding: 40px;
  border-radius: 10px;
}

.psd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);

  display: none;

  z-index: 9999;
}

.psd-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.psd-modal {
  background: #fff;
  width: 600px;
  max-width: 90%;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.psd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.psd-close-modal {
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.psd-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: psd-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes psd-spin {
  to {
    transform: rotate(360deg);
  }
}
