* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Tahoma, sans-serif; color: #17202a; background: #f5f7fb; }
a { color: #0f62fe; text-decoration: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: #ffffff; border-bottom: 1px solid #dde3ee; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 6px; color: #344054; }
.nav a:hover { background: #eef4ff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px; }
.panel { background: #ffffff; border: 1px solid #dde3ee; border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.metric { background: #ffffff; border: 1px solid #dde3ee; border-radius: 8px; padding: 16px; }
.metric strong { display: block; font-size: 28px; margin-top: 8px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #dde3ee; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf1f7; vertical-align: top; }
th { background: #f8fafc; font-size: 13px; color: #475467; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; background: #eef4ff; color: #1849a9; }
.status.active, .status.online { background: #ecfdf3; color: #027a48; }
.status.disabled, .status.banned, .status.expired { background: #fef3f2; color: #b42318; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e3; border-radius: 6px; padding: 9px 10px; font: inherit; background: #ffffff; }
textarea { min-height: 80px; }
label { display: grid; gap: 6px; font-size: 13px; color: #344054; }
button, .button { border: 0; border-radius: 6px; background: #0f62fe; color: #ffffff; padding: 9px 12px; cursor: pointer; font: inherit; }
button.secondary, .button.secondary { background: #475467; }
button.danger { background: #d92d20; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .panel { width: min(420px, 100%); }
.muted { color: #667085; font-size: 13px; }
.flash { padding: 10px 12px; background: #fff8e6; border: 1px solid #ffd88a; border-radius: 6px; margin-bottom: 12px; }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
