:root {
  --bg: #0b1018;
  --panel: #111827;
  --panel-2: #161f2d;
  --line: #243043;
  --text: #edf2f7;
  --muted: #9aa9bd;
  --blue: #2ec7ff;
  --blue-2: #1b8dff;
  --green: #2ec97e;
  --red: #ff6b6b;
  --amber: #ffbf47;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #132033 0, var(--bg) 45%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.shell { max-width: 1440px; margin: 0 auto; padding: 24px; }
.topbar { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom: 22px; }
.topbar-actions { display:flex; gap:10px; align-items:center; }
.wrap { flex-wrap: wrap; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.hero { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom: 18px; }
.grid { display:grid; gap: 18px; }
.two-col { grid-template-columns: 1.2fr 1fr; margin-bottom:18px; }
.modules-grid { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.summary-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-bottom:18px; }
.stat-card { min-height: 122px; display:flex; flex-direction:column; justify-content:center; }
.stat-number { font-size: 38px; font-weight: 800; margin-top: 8px; }
.module-card { position:relative; overflow:hidden; }
.module-card h2 { margin: 10px 0 8px; }
.module-accent { position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(180deg, var(--blue), transparent); }
.module-link { color: var(--blue); font-weight:700; margin-top:12px; }
.center-card-wrap { min-height: calc(100vh - 120px); display:flex; align-items:center; justify-content:center; }
.login-card { width: min(460px, 100%); }
label { display:block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="url"] {
  width:100%; padding:12px 14px; background: #0d1522; color: var(--text);
  border:1px solid var(--line); border-radius: 12px; outline:none;
}
input:focus { border-color: var(--blue); }
.btn {
  border:none; cursor:pointer; padding: 11px 15px; border-radius: 12px;
  font-weight: 700; color: white; background: #2a3650;
}
.btn:hover { filter: brightness(1.05); }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color:#07111f; }
.btn-secondary { background: #243043; }
.btn-danger { background: #6a2430; }
.pill { padding: 8px 12px; border-radius: 999px; background: #1a2638; color: var(--muted); font-size: 12px; }
.pill-large { font-size: 15px; }
.pill-success { color: #05130d; background: var(--green); }
.pill-warning { color: #1a1101; background: var(--amber); }
.pill-danger { color: white; background: var(--red); }
.alert { background: rgba(255,107,107,.12); color: #ffb1b1; border:1px solid rgba(255,107,107,.2); padding:12px; border-radius:12px; margin: 14px 0; }
.stack { display:flex; flex-direction:column; }
.gap-sm { gap:8px; }
.gap-md { gap:14px; }
.gap-lg { gap:18px; }
.section-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom: 16px; }
.table-wrap { overflow:auto; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; }
.module-admin-row, .user-header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.module-admin-title { font-size: 18px; font-weight: 700; }
.module-config-form { display:grid; grid-template-columns: 1fr 1fr auto auto; gap:12px; align-items:end; padding-top: 12px; border-top:1px dashed var(--line); }
.checkbox-line { display:flex; align-items:center; gap:8px; }
.checkbox-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:8px; }
.checkbox-box { display:flex; gap:8px; align-items:center; padding:10px 12px; background:#0d1522; border:1px solid var(--line); border-radius:12px; }
.two-col-form, .user-actions-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.user-row { padding-top: 18px; border-top:1px solid var(--line); }
.user-row:first-child { padding-top:0; border-top:none; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.charts-grid { display:grid; gap:16px; }
.chart-svg { width:100%; height:160px; display:block; }
.chart-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
@media (max-width: 1080px) {
  .two-col, .summary-grid, .module-config-form, .two-col-form, .user-actions-grid { grid-template-columns: 1fr; }
  .hero, .module-admin-row, .user-header { flex-direction: column; }
}
