:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-hover: #262626;
  --border: #262626;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --accent: #e50914;
  --accent-hover: #ff1a26;
  --ok: #10b981;
  --warn: #f59e0b;
  --cyan: #06b6d4;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: var(--font);
  background: var(--bg); color: var(--text);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: 24px; letter-spacing: -0.5px; }
.sub { color: var(--text-dim); font-size: 14px; margin: 4px 0 20px 0; }

/* BOTÕES GERAIS */
button, .link {
  cursor: pointer; border: 0; font: inherit; font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm); padding: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s; text-decoration: none;
}
button.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}
button.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
button.btn-primary:disabled { background: #333; box-shadow: none; cursor: not-allowed; transform: none; color: #888; }
button.btn-ghost {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
}
button.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

/* INPUTS */
input, select, textarea {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 14px; font: inherit; font-size: 14px; width: 100%;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
}

/* LOADING */
.loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-dim); font-size: 14px;
}

/* TOAST */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  background: var(--ok); color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  opacity: 0; transition: all .3s cubic-bezier(.2,.8,.2,1);
  pointer-events: none; z-index: 9999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--accent); }

.hidden { display: none !important; }
