:root{
  --bg:#071222;
  --panel:#0f1d33;
  --panel-2:#12233d;
  --line:#203559;
  --text:#edf4ff;
  --muted:#94abd3;
  --accent:#4f8fff;
  --green:#23c16b;
  --yellow:#d4a62a;
  --purple:#8b5cf6;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:Inter,Arial,sans-serif;
  background:linear-gradient(180deg,#061120,#08162a);
  color:var(--text);
}
a{text-decoration:none;color:inherit}

.sidebar{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:255px;
  background:linear-gradient(180deg,#081528,#07111f);
  border-right:1px solid var(--line);
  padding:22px 16px;
  overflow:auto;
}

.brand-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}
.brand-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:22px;
}
.brand{
  font-size:20px;
  font-weight:800;
}

.nav-section{
  margin:22px 8px 10px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.08em;
}

.nav-link{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  color:var(--muted);
  margin-bottom:8px;
  background:transparent;
}
.nav-link:hover,
.nav-link.active{
  background:#12305a;
  color:#fff;
}

.main{
  margin-left:255px;
  padding:26px 28px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
}
.topbar h1{
  margin:0 0 6px;
  font-size:30px;
}
.topbar p{
  margin:0;
  color:var(--muted);
}
.profile-box{
  background:var(--panel);
  border:1px solid var(--line);
  padding:12px 16px;
  border-radius:16px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(160px,1fr));
  gap:16px;
  margin-bottom:22px;
}
.stat-card{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
}
.stat-number{
  font-size:28px;
  font-weight:800;
  margin-bottom:6px;
}
.stat-title{
  font-size:18px;
  font-weight:700;
}
.stat-sub{
  color:var(--muted);
  margin-top:8px;
  font-size:14px;
}
.stat-sub.ok{
  color:var(--green);
}

.content-grid{
  display:grid;
  grid-template-columns:1.9fr 1fr;
  gap:20px;
}
.left-col,.right-col{
  display:grid;
  gap:20px;
}

.panel{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
}
.panel-header.between{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.panel h2{
  margin:0 0 8px;
}
.panel p{
  margin:0 0 14px;
  color:var(--muted);
}

.server-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:16px;
}
.server-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:#0d1a2e;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
}
.server-avatar{
  width:52px;
  height:52px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#63a8ff,#82c0ff);
  color:#061120;
  font-weight:800;
  font-size:22px;
}
.server-info h3{
  margin:2px 0 6px;
  font-size:20px;
}
.server-info p{
  margin:0 0 8px;
  font-size:13px;
  color:var(--muted);
}
.online-dot{
  color:var(--green);
  font-size:13px;
  font-weight:700;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(180px,1fr));
  gap:18px;
}
.feature-card{
  background:linear-gradient(180deg,#0f1c31,#11243f);
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
}
.feature-card h3{
  margin:0 0 10px;
}
.feature-card p{
  color:var(--muted);
  min-height:58px;
}
.feature-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  background:var(--accent);
  color:#051121;
  font-weight:700;
}
.feature-btn.green{background:var(--green)}
.feature-btn.yellow{background:var(--yellow)}
.feature-btn.purple{background:var(--purple);color:#fff}

.status-list,
.activity-list{
  display:grid;
  gap:14px;
}
.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0c182b;
}
.activity-item{
  display:grid;
  grid-template-columns:48px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.activity-item:last-child{border-bottom:none}
.activity-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#132846;
}
.activity-title{
  font-weight:700;
}
.activity-sub,
.activity-time{
  color:var(--muted);
  font-size:13px;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.quick-btn{
  display:grid;
  place-items:center;
  min-height:72px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#0d1a2e;
  font-weight:700;
}
.quick-btn.green{color:var(--green)}
.quick-btn.purple{color:var(--purple)}
.quick-btn.yellow{color:var(--yellow)}

@media (max-width:1200px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .sidebar{position:static;width:auto;height:auto}
  .main{margin-left:0}
}
