:root{
  --bg:#0b0d10;
  --card:#12161c;
  --stroke:rgba(255,255,255,.10);
  --text:#e9eef7;
  --muted:rgba(233,238,247,.70);
  --blue:#0b6bff;
  --blue2:#39b9ff;
  --danger:#ff3b3b;
  --shadow:0 24px 60px rgba(0,0,0,.45);
  --r:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background: radial-gradient(1000px 600px at 15% 10%, rgba(11,107,255,.12), transparent 50%),
              radial-gradient(900px 500px at 85% 20%, rgba(57,185,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
code{padding:2px 6px; border:1px solid var(--stroke); border-radius:8px; background:rgba(255,255,255,.03)}
.muted{color:var(--muted)}
.link{color:var(--blue2)}
.link:hover{text-decoration:underline}

.wrap{width:min(1100px,92vw); margin:0 auto; padding:22px 0}

.btn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.btn--primary{
  background:linear-gradient(180deg, rgba(11,107,255,1), rgba(11,107,255,.82));
  border-color:rgba(11,107,255,.45);
}
.btn--ghost{background:transparent}
.btn--danger{
  background:rgba(255,59,59,.15);
  border-color:rgba(255,59,59,.35);
}

.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(10,12,16,.65);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--stroke);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{font-weight:900}
.topbar__actions{display:flex; gap:10px; align-items:center}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:18px;
  margin-bottom:18px;
}
.card__head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-bottom:12px;
}
h1,h2{margin:0}
h2{font-size:20px}

.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.form input, .form select{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.form button{grid-column:1/-1}
.file{
  grid-column:1/-1;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.02);
}
.file input{border:0; padding:0; background:transparent}
.hint{margin:12px 0 0; font-size:13px; color:var(--muted)}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.search,.select{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

.list{display:flex; flex-direction:column; gap:12px}
.item{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:12px;
  background:rgba(255,255,255,.02);
}
.item__top{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
}
.item__title{font-weight:900}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(11,107,255,.18);
  border:1px solid rgba(11,107,255,.35);
  color:var(--blue2);
  font-weight:900;
}
.item__grid{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
}
.item__grid input, .item__grid select{
  width:100%;
  padding:9px 10px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.item__actions{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}

.images{
  margin-top:10px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.images img{
  width:86px; height:86px;
  object-fit:contain;
  background: rgba(0,0,0,.18);
  border-radius:14px;
  border:1px solid var(--stroke);
}
.imgRemove{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.login{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:26px 0;
}
.login__card{
  width:min(420px, 92vw);
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px;
}
.login__card input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  margin:12px 0 10px;
  outline:none;
}
.error{color: #ff9b9b; font-weight:800; min-height:18px}


/* Toast */
#toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,107,255,35);
  background: rgba(11,107,255,10);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .18s ease;
  max-width: min(520px, 92vw);
  pointer-events:none;
  font-weight: 800;
}

/* --- Tabs + extra layout (modernizálás) --- */
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;position:sticky;top:10px;z-index:5}
.tab{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit;padding:10px 12px;border-radius:12px;font-weight:600;cursor:pointer}
.tab:hover{background:rgba(255,255,255,.10)}
.tab--active{background:rgba(255,255,255,.16)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 900px){.grid2{grid-template-columns:1fr}}
.list{display:flex;flex-direction:column;gap:10px}
.listItem{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(0,0,0,.12)}
.listItem__meta{display:flex;flex-direction:column;gap:4px}
.pillSmall{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:12px;opacity:.9;width:fit-content}
.logbox{max-height:420px;overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:12px;background:rgba(0,0,0,.18);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;line-height:1.4}
.hint{margin-top:8px;opacity:.75;font-size:12px}
