* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0b1020;
  color: #e6ecff;
}
a { color: #8ab4ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: #121833; border-bottom: 1px solid #1e264d;
}
.header .brand { font-weight: 700; letter-spacing: 0.5px; font-size: 18px; }
.header .nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.card {
  background: #141a36; border: 1px solid #1e264d; border-radius: 12px;
  padding: 20px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat {
  background: #141a36; border: 1px solid #1e264d; border-radius: 12px; padding: 18px;
}
.stat .label { font-size: 12px; color: #9aa4c7; text-transform: uppercase; letter-spacing: 0.6px; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 6px; color: #fff; }
label { display: block; font-size: 13px; color: #b5bcdc; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: #0c122b; color: #e6ecff; border: 1px solid #28325f; font-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #6a8bff; }
button {
  padding: 10px 14px; border-radius: 8px; border: 0;
  background: #5a79ff; color: #fff; font-weight: 600; cursor: pointer; font-size: 14px;
}
button:hover { background: #4363ff; }
button.secondary { background: #1e264d; }
button.danger { background: #d94b64; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid #1e264d; text-align: left; vertical-align: top; }
.table th { color: #9aa4c7; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px;
  background: #1e264d; color: #cdd7ff;
}
.badge.green { background: #18392e; color: #65e4b2; }
.badge.amber { background: #3a2e15; color: #f0c268; }
.badge.red { background: #3a1723; color: #f288a0; }
.badge.blue { background: #1a2a53; color: #9cc0ff; }
.msg { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.msg.error { background: #3a1723; color: #f288a0; border: 1px solid #5e2538; }
.msg.success { background: #18392e; color: #65e4b2; border: 1px solid #254d3e; }
.auth-box {
  max-width: 420px; margin: 6% auto 0; padding: 28px;
  background: #141a36; border: 1px solid #1e264d; border-radius: 14px;
}
.auth-box h1 { margin: 0 0 6px; font-size: 22px; }
.auth-box .sub { color: #9aa4c7; margin-bottom: 20px; font-size: 13px; }
.muted { color: #9aa4c7; font-size: 13px; }
.small { font-size: 12px; color: #9aa4c7; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: #1a2a53; color: #9cc0ff;
}
