* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #12151c;
  color: #f2f2f2;
}

.card {
  background: #1c202b;
  border-radius: 14px;
  padding: 24px;
  max-width: 480px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h1 { font-size: 1.5rem; margin-top: 0; }

input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #3a4152;
  background: #12151c;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

button {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  background: #4f7cff;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #3d67e6; }
button.secondary { background: #2a2f3d; }
button.danger { background: #e6534d; }

.center { text-align: center; }
.muted { color: #9aa2b1; font-size: 0.9rem; }
.error { color: #ff8080; margin-bottom: 10px; }
.success { color: #6ee79a; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge.new { background: #1f4d33; color: #6ee79a; }
.badge.repeat { background: #4d3b1f; color: #f0b96e; }
.badge.pos { background: #1f4d33; color: #6ee79a; }
.badge.neg { background: #4d1f1f; color: #ff8080; }
