:root{
  --bg:#0A0D12; --bg-alt:#10141C; --surface:#151A24; --surface-2:#1B222E;
  --border:#242C3A; --red:#E4002B; --red-dim:#9C0021; --red-glow:rgba(228,0,43,.35);
  --text:#F3F5F9; --text-muted:#93A0B4; --text-faint:#5C6779;
  --font-body:'Inter', -apple-system, sans-serif;
  --font-display:'Space Grotesk', sans-serif;
}
*{ box-sizing:border-box; }
body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--font-body);
  min-height:100vh;
}
a{ color:inherit; text-decoration:none; }

.admin-shell{ display:flex; min-height:100vh; }

.admin-sidebar{
  width:240px; flex-shrink:0; background:var(--bg-alt); border-right:1px solid var(--border);
  padding:28px 18px; display:flex; flex-direction:column; gap:12px;
}
.admin-sidebar .brand{
  font-family:var(--font-display); font-weight:700; font-size:18px; margin-bottom:24px;
  display:flex; align-items:center; gap:8px; padding-left:4px;
}
.admin-sidebar .brand .dot{ width:8px; height:8px; background:var(--red); border-radius:2px; box-shadow:0 0 8px var(--red-glow); }

.admin-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
}
.admin-nav a{
  display:block;
  padding:10px 14px;
  border-radius:8px;
  font-size:14px;
  color:var(--text-muted);
  font-weight:500;
  line-height:1.4;
  transition:all .15s ease;
  text-decoration:none;
}
.admin-nav a:hover{
  background:var(--surface);
  color:var(--text);
}
.admin-nav a.active{
  background:var(--surface-2);
  color:#ffffff;
  font-weight:600;
  border-left:3px solid var(--red);
  padding-left:11px;
}

.admin-sidebar .logout{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid var(--border);
}
.admin-sidebar .logout a{
  display:block;
  color:var(--text-faint);
  font-size:13px;
  padding:6px 4px;
  transition:color .15s ease;
}
.admin-sidebar .logout a:hover{ color:var(--red); }

.admin-main{ flex:1; padding:36px 44px; max-width:920px; }
.admin-main h1{ font-family:var(--font-display); font-size:24px; margin:0 0 6px; }
.admin-main .sub{ color:var(--text-muted); font-size:14px; margin:0 0 28px; }

.panel{
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:24px; margin-bottom:24px;
}
.panel h2{ font-family:var(--font-display); font-size:16px; margin:0 0 18px; }

.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--text-muted); margin-bottom:6px; font-weight:500; }
.field input[type=text], .field input[type=password], .field input[type=url], .field textarea{
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:14px;
}
.field input[type=file]{ font-size:13px; color:var(--text-muted); }
.field textarea{ resize:vertical; min-height:80px; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--red); border-color:transparent; }

.btn{
  display:inline-flex; align-items:center; gap:6px; padding:10px 18px; border-radius:8px;
  font-size:14px; font-weight:600; cursor:pointer; border:1px solid transparent;
}
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:#c60026; }
.btn-ghost{ background:transparent; border-color:var(--border); color:var(--text); }
.btn-ghost:hover{ border-color:var(--text-faint); }
.btn-danger{ background:transparent; border-color:var(--red-dim); color:var(--red); }
.btn-danger:hover{ background:var(--red-dim); color:#fff; }
.btn-sm{ padding:6px 12px; font-size:12.5px; }

.alert{
  padding:12px 14px; border-radius:8px; font-size:13.5px; margin-bottom:18px;
}
.alert-ok{ background:rgba(40,180,110,.12); border:1px solid rgba(40,180,110,.35); color:#5fe0a4; }
.alert-err{ background:rgba(228,0,43,.1); border:1px solid var(--red-dim); color:#ff9aa8; }

.res-row{
  display:flex; gap:14px; align-items:center; padding:14px; border:1px solid var(--border);
  border-radius:10px; margin-bottom:10px; background:var(--bg);
}
.res-row img{ width:56px; height:56px; object-fit:cover; border-radius:8px; flex-shrink:0; background:var(--surface-2); }
.res-row .ph{ width:56px; height:56px; border-radius:8px; background:var(--surface-2); flex-shrink:0; }
.res-row .info{ flex:1; min-width:0; }
.res-row .tag{ font-size:11px; color:var(--red); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.res-row .title{ font-size:14.5px; font-weight:600; margin:2px 0; }
.res-row .desc{ font-size:12.5px; color:var(--text-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.res-row .actions{ display:flex; gap:8px; flex-shrink:0; }

.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;
}
.login-box{
  width:100%; max-width:360px; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:32px 28px;
}
.login-box .brand{
  font-family:var(--font-display); font-weight:700; font-size:19px; margin-bottom:4px;
  display:flex; align-items:center; gap:8px;
}
.login-box .brand .dot{ width:9px; height:9px; background:var(--red); border-radius:2px; box-shadow:0 0 10px var(--red-glow); }
.login-box .sub{ color:var(--text-muted); font-size:13px; margin:0 0 22px; }
