:root {
  --bg: #17181c;
  --panel: #1f2127;
  --panel-alt: #26282f;
  --border: #33353d;
  --text: #e6e6ea;
  --muted: #9a9ca6;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --danger: #ed4245;
  --success: #3ba55d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Pretendard, "Noto Sans KR", sans-serif;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.brand { font-weight: 700; font-size: 18px; }
.guild-id { color: var(--muted); font-weight: 400; font-size: 13px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 14px;
  font-size: 14px;
}
nav a:hover { color: var(--text); }
nav a.logout { color: var(--danger); }
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 22px; margin-bottom: 18px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
input, textarea, select {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 14px; }
button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-hover); }
button.danger, .btn.danger { background: var(--danger); }
button.success, .btn.success { background: var(--success); }
button.secondary, .btn.secondary { background: var(--panel-alt); border: 1px solid var(--border); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.muted { color: var(--muted); font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash.info { background: #24304a; color: #9db4ff; }
.flash.error { background: #4a2424; color: #ff9d9d; }
.flash.success { background: #1f4a2c; color: #8fe0a6; }
.login-wrap {
  max-width: 360px;
  margin: 10vh auto;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.login-wrap h1 { text-align: center; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.badge.ok { background: #1f4a2c; color: #8fe0a6; }
.badge.warn { background: #4a3f1f; color: #f0cf8f; }
.badge.off { background: #3a3c44; color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
