/* ── Common / Shared Styles ───────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #16161e;
  --bg-input: #1e1e2a;
  --border: #2a2a3a;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --accent: #4488ff;
  --accent-hover: #5599ff;
  --success: #44dd66;
  --warning: #ffaa00;
  --danger: #ff4455;
  --radius: 8px;
  --radius-lg: 12px;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-success {
  background: var(--success);
  color: #000;
}
.btn-success:hover {
  background: #55ee77;
}

.btn-warning {
  background: var(--warning);
  color: #000;
}
.btn-warning:hover {
  background: #ffbb22;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #ff5566;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-active {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 14px;
  border-radius: 6px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

input:focus {
  border-color: var(--accent);
}

input::placeholder {
  color: var(--text-secondary);
}

/* Messages */
.error-msg {
  background: rgba(255, 68, 85, 0.15);
  border: 1px solid rgba(255, 68, 85, 0.3);
  color: #ff6677;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 12px;
}

.success-msg {
  background: rgba(68, 221, 102, 0.15);
  border: 1px solid rgba(68, 221, 102, 0.3);
  color: #66ee88;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 12px;
}

/* Spinner */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
