.toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.2);
}

.icon-btn svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 0px rgba(255,255,255,0.8));
}

.icon-btn:active {
  background: var(--surface-active);
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.icon-btn.spinning svg {
  animation: rotate-icon 0.8s linear infinite;
}

@keyframes rotate-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#modal-settings {
  border: 2px solid var(--border);
  background: linear-gradient(180deg, var(--wmp-bg-1) 0%, var(--wmp-bg-2) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  max-width: 90vw;
  width: 360px;
  margin: auto;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 10px 30px rgba(0,0,0,0.5);
}

#modal-settings::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

#form-settings h3 {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.4rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

#form-settings label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-muted);
}

#input-api-key {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  margin-bottom: 24px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#input-api-key:focus {
  border-color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px var(--accent-glow);
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.modal-actions button {
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.2);
}

.btn-cancel {
  background: var(--surface2);
  color: var(--text);
}

.btn-save {
  background: linear-gradient(180deg, #1fa2ff 0%, #0a5bc4 100%);
  color: #fff;
  border-color: #064090;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.btn-cancel:active, .btn-save:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

#app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
  border-top: 1px solid var(--border);
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}