:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #1e1f22;
  color: #e3e5e8;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #2b2d31;
}

header h1 {
  margin: 0;
  font-size: 18px;
}

header a {
  color: #949ba4;
  text-decoration: none;
  font-size: 14px;
}

header a:hover {
  color: #e3e5e8;
}

main {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.guild-card {
  background: #2b2d31;
  border-radius: 8px;
  padding: 16px;
}

.guild-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guild-header h2 {
  margin: 0;
  font-size: 15px;
}

.guild-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.status {
  font-size: 14px;
  margin-bottom: 8px;
}

.muted {
  color: #949ba4;
  font-size: 13px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.controls button {
  background: #4e5058;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.controls button:not(:disabled):hover {
  background: #6d6f78;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-card {
  text-align: center;
  background: #2b2d31;
  padding: 40px;
  border-radius: 12px;
}

.discord-btn {
  display: inline-block;
  margin-top: 16px;
  background: #5865f2;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.discord-btn:hover {
  background: #4752c4;
}
