/* ===============================
   BASE
=============================== */
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
  background:linear-gradient(135deg,#050816,#082a44,#04111a);
  color:#fff;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:18px;
}

/* ===============================
   TOP BAR (NEON GYM)
=============================== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:300px;
}

.brandLogo{
  height:44px;
  width:auto;
  border-radius:10px;
  background:rgba(0,0,0,.25);
  padding:6px;
  border:1px solid rgba(255,255,255,.10);
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.brandText .title{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
}

.brandText .subtitle{
  font-size:12px;
  opacity:.75;
  margin-top:2px;
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ===============================
   INPUTS & BUTTONS
=============================== */
input,select{
  background:#0b1220;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:10px;
  padding:10px;
}

button{
  background:linear-gradient(90deg,#00ffd5,#2b7bff);
  border:0;
  color:#08111b;
  font-weight:800;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}

button:hover{ filter:brightness(1.05); }

button.ghost{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}

.btnPrimary{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(90deg,#00ffaa,#00b4ff);
  color:#081016;
  font-weight:800;
  cursor:pointer;
}

/* ===============================
   CARD / TABLE
=============================== */
.card{
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size:13px;
}

th{
  opacity:.8;
  font-weight:700;
}

tbody tr:hover{
  background:rgba(255,255,255,.03);
}

/* ===============================
   BADGES
=============================== */
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}

.badge.ok{
  background:rgba(0,255,140,.18);
  border:1px solid rgba(0,255,140,.35);
  color:#7dffb8;
}

.badge.bad{
  background:rgba(255,60,60,.18);
  border:1px solid rgba(255,60,60,.35);
  color:#ff9a9a;
}

.badge.warn{
  background:rgba(255,180,0,.18);
  border:1px solid rgba(255,180,0,.35);
  color:#ffd27a;
}

/* ===============================
   PAGER
=============================== */
.pager{
  display:flex;
  justify-content:space-between;
  padding:12px;
}

/* ===============================
   MODALS
=============================== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}

.modal.show{ display:flex; }

.modalBox{
  width:min(640px,95vw);
  background:#070c18;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
}

.modalTitle{
  font-size:18px;
  font-weight:900;
  margin-bottom:12px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  opacity:.95;
}

.modalActions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

.hint{
  opacity:.7;
  font-size:12px;
  margin-top:10px;
}

a.link{ color:#00ffd5; }
