*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f0f0f;
  --panel:#171717;
  --panel2:#202020;
  --line:#2c2c2c;
  --line2:#3a3a3a;
  --text:#eee;
  --muted:#888;
  --orange:#ff7a1a;
  --orange2:#ff9a4a;
  --orange-dim:#c25a10;
  --danger:#e55;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}

header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  position:sticky;
  top:0;
  z-index:10;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:20px;
  color:var(--orange);
}
.logo i,.logo svg{width:22px;height:22px}

.grow{flex:1}

.search{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 12px;
  width:220px;
  outline:none;
  font-size:14px;
}
.search::placeholder{color:var(--muted)}
.search:focus{border-color:var(--orange)}

.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 14px;
  cursor:pointer;
  transition:border-color .15s;
  font-size:14px;
  white-space:nowrap;
  line-height:1;
  color:var(--text);
}
.btn:hover{border-color:var(--orange)}
.btn i,.btn svg{width:16px;height:16px;flex-shrink:0}
.btn.primary{
  background:var(--orange);
  border-color:var(--orange);
  color:#111;
  font-weight:600;
}
.btn.primary:hover{background:var(--orange2)}
.btn.danger{border-color:#a33;color:#f88}
.btn.danger:hover{border-color:#f66}

main{
  flex:1;
  padding:24px 20px;
  max-width:1200px;
  width:100%;
  margin:0 auto;
}

.pagehead{
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-bottom:20px;
}
.pagehead h1{font-size:26px}
.muted{color:var(--muted);font-size:14px}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:18px;
}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:border-color .15s;
}
.card:hover{border-color:var(--orange)}
.thumb{
  aspect-ratio:1;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.info{
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.info .title{
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.info .sub{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:30px;
}
.empty{
  grid-column:1/-1;
  text-align:center;
  padding:60px 0;
  color:var(--muted);
}

.imagewrap{max-width:900px;margin:0 auto}
.imagewrap img{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  display:block;
}
.imageactions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:16px;
}
.likebtn.liked{color:var(--orange);border-color:var(--orange)}
.likebtn.liked:hover{color:var(--orange2)}
.imagemeta{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.imagemeta .row{display:flex;gap:8px;font-size:14px}
.imagemeta .row .lbl{color:var(--muted);min-width:100px}
.imagemeta .row a{color:var(--orange)}

.form{
  max-width:520px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.form label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.form input,.form textarea{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  outline:none;
}
.form input:focus,.form textarea:focus{border-color:var(--orange)}
.form textarea{resize:vertical;min-height:80px}
.form .check{
  flex-direction:row;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}
.form .check input{width:auto}
.form .check a{color:var(--orange);text-decoration:underline}

.drop{
  border:2px dashed var(--line);
  border-radius:10px;
  padding:40px;
  text-align:center;
  color:var(--muted);
  cursor:pointer;
  transition:border-color .15s;
}
.drop:hover{border-color:var(--orange)}
.drop.has{border-color:var(--orange);color:var(--text)}
.drop input{display:none}

.authbox{
  max-width:380px;
  margin:60px auto;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.authbox h1{text-align:center;font-size:28px}
.authbox .tabs{
  display:flex;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}
.authbox .tabs button{
  flex:1;
  background:var(--panel);
  border:none;
  padding:10px;
  cursor:pointer;
  color:var(--muted);
}
.authbox .tabs button.on{
  background:var(--orange);
  color:#111;
  font-weight:600;
}

.profilehead{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:24px;
}
.avatar{
  width:80px;
  height:80px;
  border-radius:50%;
  border:2px solid var(--line);
  object-fit:cover;
  background:var(--panel2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:700;
  color:var(--orange);
  flex-shrink:0;
  overflow:hidden;
}
.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.profilehead .pinfo{display:flex;flex-direction:column;gap:4px}
.profilehead .pinfo h1{font-size:24px}
.profilehead .pinfo .bio{color:var(--muted);font-size:14px;max-width:500px}

.profilecard{
  display:flex;
  gap:24px;
  padding:24px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  margin-bottom:28px;
  align-items:center;
  flex-wrap:wrap;
}
.avatarwrap{position:relative;flex-shrink:0}
.avatar.big{width:120px;height:120px;font-size:44px}
.avatarbtn{
  position:absolute;
  bottom:2px;
  right:2px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--orange);
  border:2px solid var(--panel);
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.avatarbtn:hover{background:var(--orange2)}
.avatarbtn i,.avatarbtn svg{width:16px;height:16px}
.profilecard .pinfo{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
}
.profilecard .pinfo h1{font-size:26px}
.profilecard .pinfo .bio{color:#ccc;font-size:15px}
.profilecard .pinfo .desc{color:var(--muted);font-size:14px;max-width:600px}
.profilecard .pinfo .meta{color:var(--muted);font-size:12px}
.pactions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}

.editcard{
  max-width:640px;
  padding:24px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  margin-bottom:12px;
}
.editcard h2{font-size:18px;margin-bottom:12px}

.adminnav{
  display:flex;
  gap:8px;
  margin-bottom:24px;
  flex-wrap:wrap;
}
.adminnav .btn.on{
  background:var(--orange);
  border-color:var(--orange);
  color:#111;
}

table{width:100%;border-collapse:collapse;font-size:14px}
th,td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}
th{color:var(--muted);font-weight:500}
tr:hover td{background:rgba(255,122,26,.03)}

.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  border:1px solid var(--line);
  color:var(--muted);
}
.badge.pending{color:#f5a623;border-color:#5a3a10}
.badge.accepted{color:#4ade80;border-color:#1a4a28}
.badge.banned{color:#f88;border-color:#5a1a1a;margin-top:6px}

select{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 12px;
  outline:none;
  cursor:pointer;
}
select:focus{border-color:var(--orange)}

.legal{max-width:760px;margin:0 auto;line-height:1.7}
.legal h1{margin-bottom:16px}
.legal h2{margin:24px 0 10px;font-size:18px;color:var(--orange)}
.legal p{margin-bottom:12px;color:#ccc}
.legal ul{margin:0 0 12px 20px;color:#ccc}

.admin-row{
  display:flex;
  padding:14px;
  gap:16px;
  margin-bottom:12px;
  align-items:center;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
}
.admin-row img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
}
.admin-row .admin-info{flex:1;min-width:0}
.admin-row .admin-info .t{font-weight:600;margin-bottom:4px}
.admin-row .admin-info .a{color:var(--muted);font-size:13px}
.admin-row .admin-info .d{color:var(--muted);font-size:13px;margin-top:2px}
.admin-row .admin-actions{display:flex;gap:8px;flex-shrink:0}

.bannedbox{
  max-width:520px;
  margin:60px auto;
  text-align:center;
}
.bannedicon{
  width:80px;
  height:80px;
  margin:0 auto 20px;
  border-radius:50%;
  background:rgba(255,80,80,.1);
  border:2px solid #5a1a1a;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#f88;
}
.bannedicon i,.bannedicon svg{width:36px;height:36px}
.bannedbox h1{font-size:32px;margin-bottom:8px}
.bannedlead{color:var(--muted);font-size:15px;margin-bottom:28px}
.bannedcard{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.bannedrow{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.bannedrow:last-child{border-bottom:none;padding-bottom:0}
.blbl{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:600;
}
.bval{color:var(--text);font-size:15px}

.banstatus{
  background:rgba(255,80,80,.06);
  border:1px solid #5a1a1a;
  border-radius:14px;
  padding:20px;
  margin-bottom:28px;
}
.banstatus-head{
  display:flex;
  align-items:center;
  gap:8px;
  color:#f88;
  font-weight:600;
  margin-bottom:16px;
  font-size:15px;
}
.banstatus-head i,.banstatus-head svg{width:18px;height:18px}
.banstatus-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
  margin-bottom:18px;
}
.banstatus-grid > div{display:flex;flex-direction:column;gap:4px}

.banform{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:22px;
  max-width:760px;
}
.banfield{display:flex;flex-direction:column;gap:8px}
.banfield > label{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
}
.chiprow{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 14px;
  cursor:pointer;
  font-size:13px;
  color:var(--text);
  transition:border-color .15s, background .15s, color .15s;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  line-height:1.2;
}
.chip:hover{border-color:var(--orange)}
.chip.on{
  background:var(--orange);
  border-color:var(--orange);
  color:#111;
  font-weight:600;
}
.chip-hint{
  font-size:10px;
  opacity:.7;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.banform input[type=text],
.banform input[type=number],
.banform input:not([type]),
.banform textarea{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  outline:none;
  width:100%;
}
.banform input:focus,.banform textarea:focus{border-color:var(--orange)}
.banform textarea{resize:vertical;min-height:80px}
.banactions{display:flex;gap:10px}

@media(max-width:600px){
  header{flex-wrap:wrap}
  .search{width:100%;order:10}
  main{padding:20px 14px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .profilecard{padding:16px;gap:16px}
  .avatar.big{width:90px;height:90px;font-size:34px}
  .admin-row{flex-direction:column;align-items:flex-start}
}