:root {
  --surface: #111118;
  --surface-2: #171721;
  --line-strong: rgba(255, 255, 255, 0.18);
  --faint: #7f7f92;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --ok: #3ddc97;
  --radius: 18px;
  --radius-sm: 12px;
  --pad: clamp(18px, 4vw, 40px);
  --font-body: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", "Vazirmatn", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

[hidden] {
  display: none !important;
}

#app {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

#app:focus {
  outline: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.iconbtn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.btn--ghost {
  background: transparent;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 80;
  transform: translate(-50%, 24px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 17, 24, 0.95);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  max-width: 680px;
  margin: 32px auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .toast {
    bottom: 16px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home__hero,
  .stage,
  .opt,
  .progress i,
  .side__bar i {
    animation: none !important;
    transition: none !important;
  }
}
