.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.settings-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 24px 28px;
  min-width: 340px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(60, 16, 120, 0.18);
  font-size: 14px;
  animation: settingsFadeIn 0.2s ease;
}

@keyframes settingsFadeIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.settings-modal h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.25em;
  color: #7c3aed;
  font-weight: 600;
}

.settings-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 1em;
  color: #333;
}

.settings-modal label:has(input[type="text"]) {
  justify-content: space-between;
}

.settings-modal input[type="number"],
.settings-modal input[type="text"] {
  width: 60px;
  font-size: 1em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #d1c4e9;
}

.settings-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.settings-modal .close-btn:hover {
  color: #d7263d;
}

/* Dark mode */
.dark-mode .settings-modal {
  background: #232336 !important;
  color: #e0e0e0 !important;
}

.dark-mode .settings-modal label {
  color: #b5b5ff !important;
}
