:root {
  --bg: #0b0c10;
  --bg-2: #0f1117;
  --surface: #13151c;
  --surface-2: #191c25;
  --surface-3: #20242f;
  --border: #242836;
  --border-strong: #323849;
  --text: #eef0f5;
  --text-2: #b9bdca;
  --muted: #7d8396;
  --accent: #ff6b3d;
  --accent-2: #ffb36b;
  --accent-soft: rgba(255, 107, 61, .12);
  --accent-ring: rgba(255, 107, 61, .35);
  --blue: #6c8cff;
  --green: #3fd38a;
  --red: #ff5470;
  --yellow: #ffc24b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -12px rgba(0,0,0,.6);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --sidebar: 272px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.boot { display: grid; place-items: center; height: 100vh; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-ring);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff7a50, #ff9a5e); box-shadow: 0 10px 28px -8px rgba(255,107,61,.55); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.35); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 36px; padding: 0; height: 36px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(11,12,16,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(36,40,54,.6);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; position: relative;
}
.user-chip img, .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.user-chip span { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow); animation: rise .15s ease-out; z-index: 40;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-align: left; font-size: 14px; color: var(--text-2);
}
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu svg { width: 16px; height: 16px; }

/* ---------- Landing ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 12vw, 140px) clamp(16px, 4vw, 40px) 80px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(40% 40% at 50% 30%, rgba(255,107,61,.28), transparent 70%),
    radial-gradient(30% 30% at 75% 50%, rgba(108,140,255,.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(19,21,28,.7);
  font-size: 13px; color: var(--text-2); margin-bottom: 28px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,211,138,.15); }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; max-width: 14ch; margin: 0 auto; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { max-width: 560px; margin: 24px auto 36px; color: var(--text-2); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 64px;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.section { max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 100px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--muted); margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
.footer { border-top: 1px solid var(--border); padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Server-Auswahl ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 80px; animation: rise .25s ease-out; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head p { color: var(--muted); margin-top: 8px; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.guild-card {
  position: relative; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.guild-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.guild-card .banner { height: 96px; position: relative; overflow: hidden; background: var(--surface-2); }
.guild-card .banner img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) saturate(1.4); opacity: .55; }
.guild-card .icon {
  width: 64px; height: 64px; border-radius: 18px; margin: -36px 0 0 18px; position: relative;
  border: 4px solid var(--surface); background: var(--surface-3); object-fit: cover;
  display: grid; place-items: center; font-weight: 700; font-size: 20px; color: var(--text-2);
}
.guild-card .body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.guild-card h3 { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card .btn { margin-top: auto; }
.guild-card.inactive .icon { filter: grayscale(.8); opacity: .7; }

/* ---------- Dashboard-Layout ---------- */
.dash { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: calc(100vh - 68px); }
.sidebar {
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
  border-right: 1px solid var(--border); background: var(--bg-2); padding: 18px 14px 28px;
  scrollbar-width: thin;
}
.guild-switch {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px;
}
.guild-switch .gicon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); flex: none; display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.guild-switch strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-switch small { color: var(--muted); font-size: 12px; }
.guild-switch > div { min-width: 0; flex: 1; }
.nav-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 14px; transition: background .12s, color .12s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active svg { opacity: 1; }
.nav-item .state { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.nav-item .state.on { background: var(--green); box-shadow: 0 0 0 3px rgba(63,211,138,.12); }
.main { padding: 32px clamp(16px, 3.5vw, 48px) 140px; min-width: 0; animation: rise .2s ease-out; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.main-head h1 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.main-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.menu-toggle { display: none; }

/* ---------- Cards & Formulare ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card.disabled-module .card-body { opacity: .45; pointer-events: none; filter: saturate(.4); }
.fields { display: grid; gap: 18px; }
.fields.cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border-strong);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d8396' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select option, .select optgroup { background: var(--surface-2); }
.input-color { display: flex; gap: 10px; align-items: center; }
.input-color input[type=color] { width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-2); padding: 4px; cursor: pointer; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.var {
  font: 500 12px/1 ui-monospace, 'Cascadia Code', monospace; padding: 5px 8px; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--accent-2); cursor: pointer;
}
.var:hover { border-color: var(--accent); }

/* Toggle */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; }
.switch-row .t { font-weight: 600; font-size: 14px; }
.switch-row .hint { margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong);
  transition: background .18s, border-color .18s; pointer-events: none;
}
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented control */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* Rollen-/Kanal-Picker */
.picker { position: relative; }
.picker-box {
  min-height: 42px; padding: 5px 6px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border-strong);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: text;
}
.picker-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.picker-box input { flex: 1; min-width: 100px; border: 0; background: none; outline: none; height: 30px; padding: 0 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 7px;
  background: var(--surface-3); font-size: 13px; font-weight: 500; max-width: 100%;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; display: grid; }
.chip button:hover { color: var(--red); }
.chip button svg { width: 14px; height: 14px; }
.dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; z-index: 20;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
}
.dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none;
  border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px;
}
.dropdown button:hover, .dropdown button.hl { background: var(--surface-3); }
.dropdown button i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dropdown .empty { padding: 10px; color: var(--muted); font-size: 13px; }
.dropdown .warn { margin-left: auto; font-size: 11px; color: var(--yellow); }

/* Listen-Editor */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: grid; gap: 10px; align-items: end; padding: 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); animation: rise .18s ease-out;
}
.row-item.reward { grid-template-columns: 120px 1fr auto; }
.row-item.responder { grid-template-columns: 1fr 1fr 150px auto; }
.empty-state { text-align: center; padding: 28px 16px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 12px; font-size: 14px; }

/* Panels */
.panel-card { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); padding: 18px; }
.panel-card + .panel-card { margin-top: 14px; }

/* Embed-Editor (sieht aus wie das Embed in Discord) */
.embed-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.embed-bar .select { flex: 1 1 220px; width: auto; }
.ed-embed { max-width: 620px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 6px; padding: 14px; display: grid; gap: 12px; }
.ed-embed .input, .ed-embed .textarea { background: #1e1f22; }
.ed-embed .input.et { font-weight: 700; }
.ed-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; }
.ed-colors input[type=color] { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; }
.ed-top { display: grid; grid-template-columns: 1fr 80px; gap: 12px; align-items: start; }
.ed-row { display: flex; gap: 8px; align-items: center; }
.ed-row > .input { flex: 1; min-width: 0; }
.img-slot { display: grid; place-items: center; border: 1px dashed var(--border-strong); background: #1e1f22; color: var(--muted); cursor: pointer; overflow: hidden; padding: 0; }
.img-slot:hover { border-color: var(--accent); color: var(--text); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot svg { width: 20px; height: 20px; }
.img-slot.round { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.img-slot.thumb { width: 80px; height: 80px; border-radius: 8px; }
.img-slot.wide { height: 120px; border-radius: 8px; }
.img-slot.wide img { object-fit: contain; }
.ed-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-fields:empty { display: none; }
.ed-field { flex: 1 1 100%; display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(0,0,0,.15); }
.ed-field.inline { flex: 1 1 170px; }
.ed-field-actions { display: flex; justify-content: space-between; align-items: center; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.row-item.embed-btn { grid-template-columns: 1fr 90px 100px 1.5fr auto; }
.panel-buttons { display: grid; gap: 8px; }
.panel-buttons .pbtn { display: grid; grid-template-columns: 1fr 70px 1fr 130px auto; gap: 8px; align-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .label svg { width: 16px; height: 16px; color: var(--accent); }
.stat .value { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 200px; display: block; }
.chart .bar { fill: var(--accent); transition: opacity .15s; }
.chart .bar.b { fill: var(--blue); }
.chart .bar:hover { opacity: .75; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--border); stroke-dasharray: 3 4; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--accent); }
.legend span.b::before { background: var(--blue); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.badge.on { background: rgba(63,211,138,.12); color: var(--green); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* Commands */
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cmd { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.cmd code { font: 600 14px ui-monospace, 'Cascadia Code', monospace; color: var(--text); }
.cmd p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmd > div { flex: 1; min-width: 0; }

/* Discord-Vorschau */
.preview { background: #313338; border-radius: 12px; padding: 16px; display: flex; gap: 14px; font-family: 'gg sans', var(--font); }
.preview .pav { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--surface-3); }
.preview .meta { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.preview .tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.preview .content { white-space: pre-wrap; word-break: break-word; color: #dbdee1; margin-top: 2px; }
.dc-embed { margin-top: 6px; max-width: 480px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px 14px; display: grid; gap: 8px; }
.dc-embed .et { font-weight: 700; color: #fff; }
.dc-embed .ed { font-size: 14px; color: #dbdee1; white-space: pre-wrap; word-break: break-word; }
.dc-embed img { border-radius: 4px; max-height: 300px; }
.dc-embed .ef { font-size: 12px; color: #b5bac1; }

/* Leaderboard */
.lb-head { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.lb-head .gicon { width: 72px; height: 72px; border-radius: 20px; background: var(--surface-3); display: grid; place-items: center; font-size: 24px; font-weight: 700; overflow: hidden; flex: none; }
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid; grid-template-columns: 48px 44px 1fr minmax(120px, 220px) 90px; gap: 16px; align-items: center;
  padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.lb-row .pos { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--muted); text-align: center; }
.lb-row.p1 .pos { color: #ffd166; } .lb-row.p2 .pos { color: #cfd6e4; } .lb-row.p3 .pos { color: #e3a27a; }
.lb-row.p1 { border-color: rgba(255,209,102,.35); background: linear-gradient(90deg, rgba(255,209,102,.07), var(--surface) 50%); }
.lb-row .avatar { width: 44px; height: 44px; }
.lb-row .who { min-width: 0; }
.lb-row .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .who small { color: var(--muted); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lb-row .lvl { text-align: right; }
.lb-row .lvl strong { font-family: var(--display); font-size: 22px; font-weight: 800; display: block; line-height: 1; }
.lb-row .lvl small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* Save-Bar */
.savebar {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; width: min(680px, calc(100% - 32px));
  background: rgba(25,28,37,.92); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); transition: transform .3s cubic-bezier(.3,1.3,.5,1);
}
.savebar.show { transform: translate(-50%, 0); }
.savebar p { flex: 1; font-weight: 600; font-size: 14px; }
.savebar.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translate(-51%, 0); } 75% { transform: translate(-49%, 0); } }

/* Toasts */
#toasts { position: fixed; top: 84px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; min-width: 240px; max-width: 360px;
  background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; font-weight: 500;
  animation: rise .2s ease-out; pointer-events: auto;
}
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.ok svg { color: var(--green); }
.toast.err svg { color: var(--red); }
.toast.out { opacity: 0; transform: translateX(10px); transition: .25s; }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

.center-msg { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-msg h1 { font-size: 34px; margin-bottom: 10px; }
.center-msg p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 68px; left: 0; bottom: 0; width: min(300px, 86vw); height: auto; z-index: 25;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.5);
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .row-item.reward, .row-item.responder, .row-item.embed-btn { grid-template-columns: 1fr 1fr; }
  .ed-top { grid-template-columns: 1fr; }
  .ed-row { flex-wrap: wrap; }
  .row-item > .btn { justify-self: end; }
  .panel-buttons .pbtn { grid-template-columns: 1fr 1fr; }
  .lb-row { grid-template-columns: 36px 40px 1fr 64px; }
  .lb-row .progress { display: none; }
  .user-chip span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
