:root{
  --bg:#0b1220;
  --panel: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --brand1:#22c55e;
  --brand2:#06b6d4;
  --danger:#ef4444;
  --radius:16px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
*{box-sizing:border-box}
body.admin-body{
  margin:0; font-family:var(--font); color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(34,197,94,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(6,182,212,.18), transparent 60%),
    var(--bg);
}
a{color:inherit}
.wrap{width:min(1100px, calc(100% - 40px)); margin:0 auto; padding:18px 0}

.admin-top{
  position:sticky; top:0; z-index:50;
  background: rgba(11,18,32,.70);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.admin-top .wrap{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0}
.admin-nav{display:flex; gap:10px; flex-wrap:wrap}
.admin-nav a{padding:8px 10px; border-radius:999px; border:1px solid transparent; text-decoration:none; color:var(--muted)}
.admin-nav a:hover{border-color:var(--stroke); color:var(--text)}

.panel{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  margin:14px 0;
}
.formgrid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 900px){ .formgrid{grid-template-columns:1fr} }

label{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{border-color: rgba(6,182,212,.55)}
.check{display:flex; gap:10px; align-items:center; color:var(--text)}
.check input{width:auto}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color:#06121a;
  font-weight:700;
}
.btn--small{padding:8px 10px; border-radius:10px; font-size:13px}
.btn--danger{background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.35)}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:10px; border-bottom:1px solid var(--stroke); vertical-align:top}
.table th{color:var(--muted); text-align:left; font-weight:650}
.inline{display:inline}
.ok{padding:10px 12px; border-radius:12px; background: rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.35); margin:10px 0}
.alert{padding:10px 12px; border-radius:12px; background: rgba(239,68,68,.14); border:1px solid rgba(239,68,68,.35); margin:10px 0}

.admin-login{
  width:min(420px, calc(100% - 40px));
  margin: 70px auto;
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.grid{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }
.tile{
  display:block;
  text-decoration:none;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
}
.tile h3{margin:0 0 6px}
.tile p{margin:0; color:var(--muted); line-height:1.6}

.wysiwyg{border:1px solid var(--stroke); border-radius: var(--radius); overflow:hidden}
.wysiwyg__bar{
  display:flex; gap:8px; flex-wrap:wrap;
  padding:10px;
  background: rgba(0,0,0,.20);
  border-bottom:1px solid var(--stroke);
}
.wysiwyg__bar button{
  padding:8px 10px; border-radius: 10px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.wysiwyg__bar .sep{width:1px; background: var(--stroke); margin:0 2px}
.wysiwyg__editor{
  min-height: 260px;
  padding: 12px;
  background: rgba(0,0,0,.14);
}
.wysiwyg__editor:focus{outline:none}

.wysiwyg__html{
  width:100%;
  min-height:260px;
  padding:12px;
  border:0;
  border-top:1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  outline:none;
  resize: vertical;
}
