:root {
  --bg-main: #0b0f0d;
  --bg-card: #121917;
  --bg-soft: #16211d;
  --border-soft: #1f2f29;
  --text-main: #ffffff;
  --text-muted: #9fb5ab;
  --accent: #22c55e; /* GREEN */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* APP */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
  width: 240px;
  background: #060a08;
  padding: 20px;
  border-right: 1px solid var(--border-soft);
}

.admin-logo {
  margin-bottom: 32px;
}

.admin-logo .logo-text {
  font-weight: 600;
  font-size: 18px;
}

.admin-logo small {
  color: var(--text-muted);
}

/* MENU */
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: all .2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(34,197,94,.12);
  color: var(--accent);
  transform: translateX(4px);
}

/* MAIN */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: #0c1310;
}

/* STATUS */
.site-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--accent);
}

/* SWITCH */
.switch {
  width: 42px;
  height: 22px;
  position: relative;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #2a3f35;
  border-radius: 999px;
}

/* USER */
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* CONTENT */
.admin-content {
  padding: 26px;
}

/* STATS */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.stat-card i {
  color: var(--accent);
  font-size: 22px;
}

/* SECTIONS */
.admin-section {
  margin-top: 34px;
}

.admin-section h3 {
  margin-bottom: 14px;
}

/* ACTIVITY */
.activity-item {
  display: flex;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  animation: fadeUp .4s ease;
}

/* ANIMATIONS */
.fade-in {
  animation: fadeIn .5s ease;
}

.slide-up {
  animation: fadeUp .5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }
}
/* MENU BUTTONS */
.admin-menu button {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all .2s ease;
}

.admin-menu button:hover,
.admin-menu button.active {
  background: rgba(34,197,94,.15);
  color: var(--accent);
  transform: translateX(4px);
}

/* PAGES */
.admin-page {
  display: none;
  animation: fadeUp .4s ease;
}

.admin-page.active {
  display: block;
}

/* BUTTON */
.primary-btn {
  background: var(--accent);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 14px;
}

/* PLACEHOLDER */
.placeholder {
  background: var(--bg-soft);
  border: 1px dashed var(--border-soft);
  padding: 20px;
  border-radius: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

.table-wrap {
  margin-top: 20px;
  background: #0f1a14;
  border-radius: 14px;
  padding: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: #e6f5ec;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  color: #7fe2b3;
  border-bottom: 1px solid #1e3a2b;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #13281d;
  font-size: 13px;
}

.admin-table tr:hover {
  background: rgba(0,255,150,0.04);
}

.loading {
  text-align: center;
  color: #7fe2b3;
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: capitalize;
}

.status.active {
  background: rgba(0,255,150,.15);
  color: #3cff9d;
}

.status.banned {
  background: rgba(255,60,60,.15);
  color: #ff6b6b;
}

.status.frozen {
  background: rgba(255,180,60,.15);
  color: #ffb84d;
}

.actions button {
  margin-right: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 11px;
}

.actions .danger { background:#ff3b3b; color:#fff; }
.actions .warn   { background:#ffb84d; color:#000; }
.actions .ok     { background:#3cff9d; color:#000; }