*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1117;
  --bg-elevated: #171a22;
  --bg-soft: #1e2330;
  --text: #e8ecf4;
  --text-muted: #8b93a7;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #5b8cff;
  --danger: #ff5c5c;
  --success: #3ecf8e;
  --warning: #f5c542;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "SF Pro Display", system-ui, -apple-system, sans-serif;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

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

.toast.error {
  border-color: rgba(255, 92, 92, 0.4);
  color: #ffb4b4;
}

.toast.success {
  border-color: rgba(62, 207, 142, 0.4);
  color: #b8f5d6;
}
