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

:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --text: #f0f0f5;
  --muted: #8888aa;
  --accent: #6c5ce7;
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #d89e00;
  --green: #26890c;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.1s, opacity 0.15s;
}

button:active { transform: scale(0.97); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #333355;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

.btn-secondary { background: #333355; }
.btn-danger { background: var(--red); }
.btn-large { font-size: 1.2rem; padding: 1rem 2rem; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hidden { display: none !important; }

.color-red { background: var(--red); }
.color-blue { background: var(--blue); }
.color-yellow { background: var(--yellow); color: #1a1a1a; }
.color-green { background: var(--green); }