* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.nav-brand { font-size: 20px; font-weight: 700; }
.nav-brand a { color: #e6edf3; text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; }
.btn-logout {
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
.btn-logout:hover { color: #e6edf3; border-color: #8b949e; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 32px; }
h1 { font-size: 28px; margin-bottom: 4px; }
.subtitle { color: #8b949e; margin-bottom: 24px; }

/* Server Grid */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.server-card:hover { border-color: #5865f2; }
.server-icon { width: 56px; height: 56px; border-radius: 16px; }
.server-icon-lg { width: 80px; height: 80px; border-radius: 24px; }
.server-info h3 { font-size: 16px; margin-bottom: 4px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-active { background: rgba(87,242,135,0.15); color: #57f287; }
.badge-inactive { background: rgba(237,66,69,0.15); color: #ed4245; }

/* Server Header */
.server-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat-value { font-size: 32px; font-weight: 700; color: #5865f2; }
.stat-label { color: #8b949e; margin-top: 4px; }

/* Cards */
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.card h2 { font-size: 18px; margin-bottom: 16px; }
.card p { color: #8b949e; line-height: 1.6; }
.command {
  display: inline-block;
  background: #0d1117;
  border: 1px solid #30363d;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  margin: 12px 0;
}
.hint { font-size: 13px; margin-top: 8px; }

/* Links */
.link-grid { display: grid; gap: 16px; }
.link-item strong { display: block; margin-bottom: 4px; font-size: 14px; }
.link-item a { color: #5865f2; text-decoration: none; font-size: 13px; word-break: break-all; }
.link-item a:hover { text-decoration: underline; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #30363d;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #21262d;
  font-size: 14px;
}
.table code { font-size: 12px; background: #0d1117; padding: 2px 6px; border-radius: 4px; }
.empty { color: #8b949e; font-style: italic; }

/* Login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.login-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.logo { font-size: 64px; margin-bottom: 8px; }
.login-card h1 { margin-bottom: 8px; }
.login-card > p { color: #8b949e; margin-bottom: 32px; }
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865f2;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-discord:hover { background: #4752c4; }

/* Responsive */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .container { padding: 16px; }
}
