/* ── Buttons ── */
button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  transition: background 0.15s, opacity 0.15s;
}
button:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover:not(:disabled) { background: var(--primary-h); }
.btn-ghost   { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled)   { border-color: var(--primary); color: var(--primary); }
.btn-danger  { background: transparent; color: var(--red); border: 1px solid var(--border); }
.btn-danger:hover:not(:disabled)  { border-color: var(--red); }
.btn-green   { background: #15803d; color: #fff; }
.btn-green:hover:not(:disabled)   { background: #166534; }

/* ── Inputs ── */
input, select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus { border-color: var(--primary); }
label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.3rem; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.field { display: flex; flex-direction: column; }

/* ── Card ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; width: 100%; max-width: 420px; }
.modal h3 { margin-bottom: 1.25rem; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
