:root{
  --bg:#0F1117;
  --panel:#171A23;
  --panel-2:#1E212C;
  --line:#2A2E3A;
  --text-hi:#EDEEF2;
  --text-mid:#9CA0AE;
  --text-low:#6B6F7D;
  --accent:#FF7A18;
  --accent-2:#FFB238;
  --green:#3DDC84;
  --red:#E6435A;
  --yellow:#F2C94C;
  --radius:10px;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text-hi);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
}
a{color:inherit; text-decoration:none;}

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

.sidebar{
  width:220px;
  background:var(--panel);
  border-right:1px solid var(--line);
  padding:20px 14px;
  flex-shrink:0;
}
.sidebar .brand{
  font-weight:700; font-size:15px; color:var(--accent-2);
  margin-bottom:22px; padding-left:6px;
}
.sidebar nav a{
  display:flex; align-items:center; gap:8px;
  padding:9px 10px; border-radius:8px;
  color:var(--text-mid); font-size:13.5px; font-weight:500;
  margin-bottom:2px;
}
.sidebar nav a:hover{ background:var(--panel-2); color:var(--text-hi); }
.sidebar nav a.active{ background:rgba(255,122,24,0.14); color:var(--accent-2); }

.main{ flex:1; padding:24px 28px; }
.topbar{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:22px;
}
.topbar h1{ font-size:19px; font-weight:700; }
.topbar .who{ font-size:12.5px; color:var(--text-low); }
.topbar .who a{ color:var(--red); font-weight:600; margin-left:10px; }

.grid-stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px; margin-bottom:24px;
}
.stat-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px;
}
.stat-card .label{ font-size:12px; color:var(--text-mid); margin-bottom:6px; }
.stat-card .value{ font-size:22px; font-weight:700; }
.stat-card .value.orange{ color:var(--accent-2); }
.stat-card .value.green{ color:var(--green); }
.stat-card .value.red{ color:var(--red); }

.panel{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px; margin-bottom:20px;
}
.panel h2{ font-size:15px; font-weight:700; margin-bottom:14px; }

table{ width:100%; border-collapse:collapse; font-size:13px; }
th{
  text-align:left; padding:9px 10px; color:var(--text-mid);
  font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em;
  border-bottom:1px solid var(--line);
}
td{ padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
tr:last-child td{ border-bottom:none; }

.badge{
  display:inline-block; padding:3px 9px; border-radius:999px;
  font-size:11px; font-weight:600;
}
.badge.pending{ background:rgba(242,201,76,0.15); color:var(--yellow); }
.badge.approved, .badge.completed, .badge.active{ background:rgba(61,220,132,0.15); color:var(--green); }
.badge.rejected, .badge.banned, .badge.flagged{ background:rgba(230,67,90,0.15); color:var(--red); }
.badge.processing{ background:rgba(255,122,24,0.15); color:var(--accent-2); }

.btn{
  display:inline-block; border:none; cursor:pointer;
  padding:7px 14px; border-radius:7px; font-size:12.5px; font-weight:600;
  font-family:inherit;
}
.btn-approve{ background:rgba(61,220,132,0.15); color:var(--green); }
.btn-reject{ background:rgba(230,67,90,0.15); color:var(--red); }
.btn-primary{ background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:#2B1400; }
.btn-ghost{ background:var(--panel-2); color:var(--text-mid); border:1px solid var(--line); }

.form-row{ margin-bottom:14px; }
.form-row label{ display:block; font-size:12px; color:var(--text-mid); margin-bottom:5px; font-weight:600; }
.form-row input, .form-row select{
  width:100%; background:var(--panel-2); border:1px solid var(--line); color:var(--text-hi);
  padding:9px 12px; border-radius:8px; font-size:13px; font-family:inherit;
}

.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
}
.login-card{
  width:340px; background:var(--panel); border:1px solid var(--line);
  border-radius:14px; padding:28px;
}
.login-card h1{ font-size:16px; margin-bottom:18px; color:var(--accent-2); }
.error-msg{ color:var(--red); font-size:12.5px; margin-bottom:12px; }
