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

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--mp-bg);
  color: var(--mp-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-text);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--mp-text-muted);
}

.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled),
.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--mp-accent);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--mp-surface);
  color: var(--mp-text);
  border: 1px solid var(--mp-border);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--mp-accent);
  min-height: auto;
  padding: 10px 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.text-muted { color: var(--mp-text-muted); }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.25rem; }
