/* ==========================================
   NON-BLOCKING TOAST MESSAGES (showToast in app.js)
   ========================================== */
.app-toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: auto;
  animation: app-toast-in 0.2s ease-out;
}

.app-toast-success { border-left-color: var(--success-600); }
.app-toast-warning { border-left-color: var(--warning-500); }
.app-toast-error { border-left-color: var(--danger-600); }

.app-toast-text {
  flex: 1;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.app-toast-close {
  flex: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.app-toast-close:hover,
.app-toast-close:focus-visible { color: var(--text-primary); }

.app-toast-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

@keyframes app-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .app-toast-region { left: 1rem; right: 1rem; max-width: none; }
}

.unlock-code-highlight {
  font-family: var(--font-mono, monospace);
  color: #fbbf24;
}
