* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #313338;
  color: #e3e5e8;
}
.login-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #2b2d31;
  padding: 40px;
  border-radius: 12px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.login-card h1 { margin-top: 0; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 14px;
}
.btn-discord { background: #5865F2; color: white; margin-top: 16px; }
.btn-primary { background: #5865F2; color: white; }
.btn-danger { background: #ED4245; color: white; }
.btn-secondary { background: #4e5058; color: white; }

/* --- App layout --- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: #2b2d31;
  padding: 20px;
  flex-shrink: 0;
}
.sidebar h2 { font-size: 15px; color: #949ba4; text-transform: uppercase; letter-spacing: .05em; }
.guild-list { list-style: none; padding: 0; margin: 0; }
.guild-list li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
}
.guild-list li:hover { background: #35373c; }
.guild-list li.active { background: #404249; color: white; }
.main { flex: 1; padding: 30px 40px; max-width: 900px; }
.topbar { display:flex; justify-content: space-between; align-items:center; margin-bottom: 24px;}
.user-chip { display:flex; align-items:center; gap:8px; font-size: 14px; }
.user-chip img { width: 28px; height:28px; border-radius: 50%; }

.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  background: #2b2d31;
  border: none;
  color: #e3e5e8;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.tab-btn.active { background: #5865F2; }

.card {
  background: #2b2d31;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 { margin-top: 0; }
label { display: block; margin: 14px 0 6px; font-size: 13px; color: #b5bac1; font-weight: 600; }
input[type=text], input[type=number], textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1e1f22;
  background: #1e1f22;
  color: #e3e5e8;
  font-size: 14px;
}
textarea { min-height: 70px; resize: vertical; }
.row { display: flex; gap: 16px; }
.row > div { flex: 1; }
.switch-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.hint { font-size: 12px; color: #949ba4; margin-top: 4px; }
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  background: #1e1f22; padding: 10px 14px; border-radius: 6px; margin-bottom: 8px;
}
.save-msg { font-size: 13px; color: #57F287; margin-left: 12px; }
.placeholders { font-size: 12px; color: #949ba4; margin-top: 4px; }
.placeholders code { background: #1e1f22; padding: 1px 5px; border-radius: 4px; }
