:root {
  --bg: #0f1115;
  --card: #171a21;
  --border: #262b36;
  --text: #eef1f6;
  --text-dim: #8a92a3;
  --accent: #25d366;
  --accent-dark: #1da851;
  --blue: #4c8dff;
  --amber: #f5b942;
  --red: #ff5c7a;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
}
a { color: var(--blue); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--card);
}
.topbar a { color: var(--text); text-decoration: none; margin-right: 16px; font-weight: 600; font-size: 0.92em; }
.topbar a.active { color: var(--accent); }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; border: none;
  font-weight: 700; cursor: pointer; text-decoration: none; font-size: 0.92em;
}
.btn-primary { background: var(--accent); color: #08130a; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 16px;
}
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-num { font-size: 1.8em; font-weight: 800; }
.stat-label { color: var(--text-dim); font-size: 0.85em; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9em; }
th { color: var(--text-dim); font-weight: 600; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.03em; }
input, select, textarea {
  width: 100%; padding: 10px 12px; background: #0d0f14; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.92em; font-family: inherit;
}
label { display: block; font-size: 0.82em; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; }
.form-group { margin-bottom: 14px; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.78em; font-weight: 700; }
.badge-green { background: rgba(37,211,102,0.18); color: var(--accent); }
.badge-amber { background: rgba(245,185,66,0.18); color: var(--amber); }
.badge-red { background: rgba(255,92,122,0.18); color: var(--red); }
.bar-bg { background: var(--border); border-radius: 6px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }
