:root {
  --bg: #0b1020;
  --panel: #151c32;
  --panel2: #1c2541;
  --text: #eef2ff;
  --muted: #a6b0cf;
  --primary: #5b8cff;
  --danger: #ff5d73;
  --success: #27c281;
  --border: #2b3557;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px; background: var(--panel); border-bottom:1px solid var(--border); }
.topbar-actions { display:flex; align-items:center; gap:12px; flex-wrap: wrap; }
.container { padding: 16px; }
.responsive-grid { display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 960px) { .responsive-grid { grid-template-columns: 360px 1fr; } .wide { grid-column: span 2; } }
.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.login-card { width:min(92vw, 420px); margin: 10vh auto; }
h1,h2 { margin:0 0 10px 0; }
label { display:block; margin:12px 0 6px; color: var(--muted); }
input, select, button { width:100%; border-radius:12px; border:1px solid var(--border); padding:12px; font-size:14px; }
input, select { background:#0f1630; color:var(--text); }
button { background: var(--primary); color:white; border:none; cursor:pointer; }
button:hover { filter: brightness(1.05); }
.danger-btn { background: var(--danger); }
.stack { display:flex; flex-direction:column; gap:4px; }
.alert { padding:10px 12px; border-radius:12px; margin: 8px 0; }
.alert.error { background: rgba(255,93,115,.12); color: #ffd4db; }
.alert.success { background: rgba(39,194,129,.12); color: #cffff0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; min-width: 720px; }
th, td { border-bottom:1px solid var(--border); text-align:left; padding:10px; font-size:14px; vertical-align: top; }
.captcha-row { display:grid; grid-template-columns: 1fr 110px; gap:10px; align-items:center; }
.captcha-row img { width:110px; height:40px; border-radius:10px; background:#fff; cursor:pointer; }
.auth-body { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.section-header { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap: wrap; margin-bottom: 10px; }
.section-meta { margin: 0; }
.search-form { display:flex; gap:8px; width:min(100%, 360px); }
.search-form input { flex:1; }
.search-form button,
.inline-form button,
.action-group button { width: auto; }
.inline-form { display:flex; gap:8px; min-width: 220px; }
.inline-form input { min-width: 140px; }
.action-group { display:flex; gap:8px; flex-wrap: wrap; }
.pager { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding-top:12px; }
.pager-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pager-link,
.pager-current {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#0f1630;
  color:var(--text);
}
.pager-current { background: rgba(91, 140, 255, 0.15); border-color: rgba(91, 140, 255, 0.45); }
.pager-link.disabled { opacity:.45; pointer-events:none; }
.table-empty { text-align:center; color:var(--muted); padding:24px 12px; }
@media (max-width: 768px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .search-form, .inline-form { width:100%; flex-direction: column; }
  .inline-form input { min-width: 100%; }
  .search-form button, .inline-form button, .action-group button { width:100%; }
  .pager { align-items:stretch; }
}
