/* ─────────────────────────────────────────────────────────────
   Robo AI – Stylesheet
   Ruhiges, redaktionelles Dark-Design: warme Neutraltöne,
   ein klarer Akzent, keine Neon-Glows.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0f1012;
  --bg-2: #131416;
  --surface: #17181b;
  --surface-2: #1d1e22;
  --surface-3: #25272c;
  --border: #2a2c31;
  --border-strong: #383a40;
  --text: #ecebe6;
  --text-2: #b4b1aa;
  --muted: #807d76;
  --accent: #e8774b;          /* Ton-Orange */
  --accent-2: #d4663b;
  --accent-ink: #1a0f0a;
  --accent-soft: rgba(232, 119, 75, 0.12);
  --accent-line: rgba(232, 119, 75, 0.45);
  --success: #63c08f;
  --success-soft: rgba(99, 192, 143, 0.12);
  --warning: #e2b44f;
  --warning-soft: rgba(226, 180, 79, 0.12);
  --danger: #e5604f;
  --danger-soft: rgba(229, 96, 79, 0.12);
  --discord: #5865f2;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-w: 252px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.3;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: #4a4c53; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn.is-loading { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f0875c; border-color: #f0875c; }
.btn-discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn-discord:hover { background: #4b57d6; border-color: #4b57d6; }
.btn-danger { background: transparent; border-color: rgba(229,96,79,.45); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #1b0b08; }
.btn-danger-solid:hover { background: #ee7362; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 17px; height: 17px; }

/* ── Forms ───────────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 14px; transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.textarea { resize: vertical; min-height: 96px; }
.input[type="color"] { width: 52px; height: 40px; padding: 4px; cursor: pointer; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s; margin-top: 2px; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }

/* ── Cards / Badges ──────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card + .card { margin-top: 16px; }
.grid-2 > .card, .grid-3 > .card, .template-grid > .card { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot-online { background: var(--success); }
.dot-offline { background: var(--danger); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 16px; font-size: 14px; }
.alert-success { border-color: rgba(99,192,143,.35); background: var(--success-soft); }
.alert-error { border-color: rgba(229,96,79,.4); background: var(--danger-soft); }
.alert-info { border-color: var(--accent-line); background: var(--accent-soft); }
.alert-warning { border-color: rgba(226,180,79,.35); background: var(--warning-soft); }

/* ── Public layout ───────────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(15,16,18,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topnav-inner { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none !important; letter-spacing: -0.01em; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-logo svg { width: 18px; height: 18px; color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.flash-wrap { padding-top: 16px; }

/* Sprachwahl */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px; min-width: 150px; z-index: 30; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.lang-menu a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--text-2); font-size: 14px; text-decoration: none !important; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a.active { color: var(--accent); }

/* Landing */
.hero { padding: 88px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; margin: 14px 0 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(236,235,230,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.hero > * { position: relative; }

.preview-window { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.preview-bar span:not(.eyebrow) { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.preview-bar .eyebrow { margin-left: 10px; white-space: nowrap; }
.preview-body { padding: 20px; display: grid; gap: 14px; }

.section { padding: 64px 0; }
.section-title { margin-bottom: 36px; max-width: 640px; }
.section-title h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; margin-top: 8px; }
.section-title p { color: var(--text-2); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 26px; }
.feature-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--text-2); margin: 0; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { border-top: 2px solid var(--border-strong); padding-top: 16px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; letter-spacing: .1em; }
.step h3 { font-size: 16px; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; }
.example-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.example { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.example .quote { color: var(--accent); font-family: var(--serif); font-size: 22px; line-height: 1; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 6px; }
.cta p { margin: 0; color: var(--text-2); }

.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 13px; margin-top: 64px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); }

/* Prose (Rechtstexte, Hilfe) */
.prose { max-width: 760px; padding: 48px 0 24px; }
.prose h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin-top: 34px; }
.prose h3 { font-size: 16px; margin-top: 22px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose address { font-style: normal; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.prose .updated { color: var(--muted); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* Login */
.login-page { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 40px 16px; }
.login-card { max-width: 440px; width: 100%; padding: 34px 30px; }
.login-card .big-logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; background: var(--accent); display: grid; place-items: center; }
.login-card .big-logo svg { width: 24px; height: 24px; color: var(--accent-ink); }
.login-card h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.login-btn { width: 100%; margin: 6px 0 20px; }
.login-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.login-list li { display: flex; gap: 10px; }
.login-list .check { color: var(--success); font-weight: 800; }
.consent { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin: 0; }

/* Server-Auswahl */
.page-head { padding: 40px 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 0 0 6px; }
.profile-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.profile-name { font-weight: 800; font-size: 18px; }
.profile-meta { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.profile-meta dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.profile-meta dd { margin: 2px 0 0; font-weight: 700; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; padding-bottom: 32px; }
.server-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.server-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.server-card.installed { border-left: 3px solid var(--success); }
.server-card.disabled { opacity: .55; }
.server-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.server-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-3); flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--text-2); overflow: hidden; font-size: 14px; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-icon-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
.server-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.server-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.server-stats { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.server-stats strong { color: var(--text); }
.bot-state { display: inline-flex; align-items: center; gap: 6px; }
.bot-state.on { color: var(--success); }
.server-actions { margin-top: auto; }
.server-actions .btn { width: 100%; }

/* ── Dashboard-Layout ────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-head { padding: 16px 18px 12px; }
.sidebar-guild { display: flex; align-items: center; gap: 10px; padding: 9px; margin: 0 10px 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none !important; color: var(--text); }
.sidebar-guild:hover { border-color: var(--border-strong); }
.sidebar-guild .server-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.sidebar-guild-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-guild-sub { font-size: 12px; color: var(--muted); }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; text-decoration: none !important; transition: background .12s, color .12s; }
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav a.active svg { color: var(--accent); opacity: 1; }
.sidebar-foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sidebar-foot a.account-link { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none !important; flex: 1; border-radius: 8px; padding: 4px; }
.sidebar-foot a.account-link:hover { background: var(--surface); }
.sidebar-foot .name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border); background: rgba(15,16,18,.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 17px; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.content { padding: 26px 28px; flex: 1; }
.content-narrow { max-width: 1000px; }
.content-flash { padding-bottom: 0; flex: 0; }

.dash-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hero h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.limit-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.meter.is-high span { background: var(--warning); }
.meter.is-full span { background: var(--danger); }

/* Tipps */
.tip { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.tip:last-child { border-bottom: none; padding-bottom: 0; }
.tip:first-child { padding-top: 0; }
.tip-num { font-family: var(--mono); color: var(--accent); font-size: 12px; padding-top: 2px; }
.tip p { margin: 0; color: var(--text-2); font-size: 14px; }
.tip strong { color: var(--text); display: block; margin-bottom: 2px; }
.prompt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none !important; transition: border-color .15s, color .15s; }
.prompt-chip:hover { border-color: var(--accent); color: var(--text); }

/* Vorlagen */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.template { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.template:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.template-head { display: flex; align-items: center; gap: 12px; }
.template-emoji { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 20px; }
.template h3 { margin: 0; font-size: 16px; }
.template p { margin: 0; color: var(--text-2); font-size: 14px; }
.template ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.template .btn { margin-top: auto; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .details { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Listen */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; }
.list-item:hover { background: var(--surface-2); }
.list-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.list-item:hover .actions, .list-item:focus-within .actions { opacity: 1; }
.category-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 6px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.category-head .actions { margin-left: auto; display: flex; gap: 4px; }
.category-head svg { width: 14px; height: 14px; }
.ch-icon { width: 18px; color: var(--muted); text-align: center; flex-shrink: 0; font-weight: 700; }
.role-color { width: 11px; height: 11px; border-radius: 50%; background: #99aab5; flex-shrink: 0; }

/* ── AI Chat ─────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; height: calc(100vh - 59px); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 26px 28px 12px; }
.chat-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg-avatar { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); font-size: 11px; font-weight: 700; color: var(--text-2); }
.msg-avatar.ai { background: var(--accent); color: var(--accent-ink); }
.msg-avatar.ai svg { width: 18px; height: 18px; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-body { min-width: 0; flex: 1; }
.msg-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text-2); }
.msg-text { white-space: pre-wrap; word-wrap: break-word; color: var(--text); }
.msg.user .msg-text { background: var(--surface-2); border: 1px solid var(--border); padding: 10px 14px; border-radius: 4px 12px 12px 12px; display: inline-block; max-width: 100%; }
.msg.error .msg-text { color: var(--danger); }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.plan-card { margin-top: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.plan-card.danger { border-color: rgba(229,96,79,.55); }
.plan-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-2); }
.plan-head .title { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.plan-body { padding: 14px 16px; }
.plan-summary { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.plan-summary li { display: flex; align-items: center; gap: 10px; }
.plan-summary li::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.plan-details summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.plan-details ol { margin: 8px 0 0; padding-left: 22px; max-height: 280px; overflow-y: auto; color: var(--text-2); font-size: 13px; }
.plan-warning { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.plan-warning.danger { background: var(--danger-soft); color: #f4b9b0; border: 1px solid rgba(229,96,79,.35); }
.plan-warning.rejected { background: var(--warning-soft); color: #f0d79a; border: 1px solid rgba(226,180,79,.3); }
.plan-warning ul { margin: 6px 0 0; padding-left: 18px; }
.plan-actions { padding: 12px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-status { padding: 12px 16px 16px; font-size: 13px; color: var(--muted); }

.job-card { margin-top: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.job-title { font-weight: 700; }
.job-progress { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.job-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.job-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.job-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.job-steps .ico { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; border: 1.5px solid var(--border-strong); color: var(--muted); }
.job-steps li.done { color: var(--text); }
.job-steps li.done .ico { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.job-steps li.running { color: var(--text); }
.job-steps li.running .ico { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.job-steps li.error .ico { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.job-steps li.partial .ico { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.job-steps .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-errors { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid rgba(229,96,79,.3); font-size: 13px; }
.job-errors ul { margin: 6px 0 0; padding-left: 18px; }
.job-errors .reason { color: var(--text-2); }
.job-errors.only-warnings { background: var(--warning-soft); border-color: rgba(226,180,79,.3); }

.chat-composer { padding: 10px 28px 20px; }
.composer { max-width: 820px; margin: 0 auto; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); padding: 9px 9px 9px 15px; display: flex; gap: 10px; align-items: flex-end; transition: border-color .15s; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { flex: 1; background: transparent; border: none; color: var(--text); font: inherit; resize: none; max-height: 220px; min-height: 24px; padding: 6px 0; outline: none; }
.composer-hint { max-width: 820px; margin: 8px auto 0; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chat-empty { text-align: center; padding: 56px 0 18px; }
.chat-empty .big-logo { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px; background: var(--accent); display: grid; place-items: center; }
.chat-empty .big-logo svg { width: 24px; height: 24px; color: var(--accent-ink); }
.chat-empty h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.chat-empty .tips-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; text-align: left; }
.chat-empty .tips-row div { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--text-2); background: var(--surface); }
.chat-empty .tips-row strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 13.5px; }

/* ── Modal & Toast ───────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,5,6,.72); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: rise .18s ease-out; }
.modal h3 { font-size: 18px; }
.modal .modal-text { color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.modal.danger { border-color: rgba(229,96,79,.55); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 14px; animation: rise .2s ease-out; }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
.toast .detail { color: var(--text-2); font-size: 13px; margin-top: 2px; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-code { font-family: var(--serif); font-size: 76px; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.error-page .row { justify-content: center; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; }
.settings-nav a { padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-decoration: none !important; }
.settings-nav a:hover { background: var(--surface); color: var(--text); }
.settings-section { scroll-margin-top: 84px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.limit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.limit-row:last-child { border-bottom: none; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 14px; }
.lang-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lang-option { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text-2); font-weight: 600; cursor: pointer; text-decoration: none !important; }
.lang-option:hover { border-color: var(--text-2); color: var(--text); }
.lang-option.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.danger-zone { border-color: rgba(229,96,79,.4); }

/* Hilfsklassen */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.w-auto { width: auto; }
.center { text-align: center; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 20px 16px; }
  .chat-scroll { padding: 20px 16px 8px; }
  .chat-composer { padding: 10px 16px 16px; }
  .chat { height: calc(100vh - 55px); }
  .grid-2 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .credits-reset { display: none; }
  .list-item .actions { opacity: 1; }
  .chat-empty .tips-row { grid-template-columns: 1fr; }
  .example-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .steps, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 40px; }
  .topnav-inner { padding: 10px 16px; }
  .container { padding: 0 16px; }
  .user-chip .uname { display: none; }
  .credits-label { display: none; }
  .builder { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .lang-options { grid-template-columns: 1fr 1fr; }
  .cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ── MCredits ─────────────────────────────────────────────── */
.credits { position: relative; }
.credits-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 8px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font: inherit; cursor: pointer; text-align: left;
}
.credits-chip:hover, .credits-chip[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-2); }
.credits-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.credits-icon svg { width: 15px; height: 15px; fill: currentColor; }
.credits-text { display: flex; flex-direction: column; line-height: 1.15; }
.credits-top { font-size: 13px; }
.credits-top strong { color: var(--text); font-size: 14px; }
.credits-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.credits-reset { font-size: 11px; color: var(--muted); }
.credits-chip.is-low .credits-icon { background: var(--warning-soft); color: var(--warning); }
.credits-chip.is-empty .credits-icon { background: var(--danger-soft); color: var(--danger); }
.credits-chip.is-empty strong { color: var(--danger); }
.credits-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; z-index: 60; padding: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.credits-pop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.credits-rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 8px 0 0; font-size: 13px; }
.credits-rows dt { color: var(--muted); }
.credits-rows dd { margin: 0; text-align: right; font-weight: 600; color: var(--text); }
.credits-history { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow: auto; }
.credits-entry { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-2); }
.credits-entry strong { color: var(--text); font-variant-numeric: tabular-nums; }
.credits-entry.status-released strong, .credit-entry.status-released .credit-amount { color: var(--muted); }
.credits-entry.status-reserved strong, .credit-entry.status-reserved .credit-amount { color: var(--warning); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.credit-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credits-hero-main { display: flex; align-items: center; gap: 14px; }
.credits-hero-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.credits-hero-icon svg { width: 24px; height: 24px; fill: currentColor; }
.credits-hero-value { font-family: var(--serif); font-size: 30px; color: var(--text-2); }
.credits-hero-value strong { color: var(--text); font-size: 38px; }
.credits-split { margin-top: 14px; }

/* Kosten im Plan */
.plan-cost { margin: 0 16px 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.plan-cost.is-short { border-color: rgba(229, 96, 79, .5); background: var(--danger-soft); }
.plan-cost-main { display: flex; gap: 12px; align-items: flex-start; }
.plan-cost-main > div { display: flex; flex-direction: column; gap: 3px; }
.plan-cost-icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.plan-cost-warn { color: var(--danger); font-size: 13px; font-weight: 600; }
.plan-cost-details { margin-top: 8px; font-size: 13px; }
.plan-cost-details summary { cursor: pointer; color: var(--accent); }
.plan-cost-details ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.plan-cost-details li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.plan-cost-details li span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.job-credits { margin-top: 10px; }

/* ── Builder (Willkommen / Embeds) ────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.builder > .card + .card { margin-top: 0; }
.builder-preview { position: sticky; top: 76px; }
.builder-actions { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.field-row { display: flex; gap: 12px; }
.field-row .grow { flex: 1; min-width: 0; }
.field-color { width: 86px; }
.input-color { padding: 4px; height: 40px; cursor: pointer; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
.switch-row input, .check input { accent-color: var(--accent); width: 16px; height: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 6px 16px 6px 0; color: var(--text-2); font-size: 14px; cursor: pointer; }
.embed-editor { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.em-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.em-field { display: flex; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.em-field-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.em-field-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.em-advanced { margin-top: 4px; }
.em-advanced summary { cursor: pointer; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.row.between { justify-content: space-between; }

/* Discord-ähnliche Vorschau (bewusst neutral, ohne Discord-Branding) */
.dc-preview { background: #313338; border-radius: var(--radius-sm); padding: 16px; color: #dbdee1; font-size: 15px; line-height: 1.4; }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-bot { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-content { white-space: normal; overflow-wrap: anywhere; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-link { color: #00a8fc; }
.dc-preview code { background: #2b2d31; padding: 1px 4px; border-radius: 4px; font-size: 13px; }
.dc-embed { display: flex; gap: 16px; max-width: 520px; margin-top: 6px; padding: 10px 16px 14px 12px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; }
.dc-embed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-embed-author { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-embed-title { font-weight: 700; color: #f2f3f5; }
.dc-embed-title.is-link { color: #00a8fc; }
.dc-embed-desc { font-size: 14px; overflow-wrap: anywhere; }
.dc-embed-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dc-embed-field { flex: 1 1 100%; font-size: 14px; }
.dc-embed-field.inline { flex: 1 1 28%; min-width: 120px; }
.dc-embed-fname { font-weight: 700; color: #f2f3f5; margin-bottom: 2px; }
.dc-embed-image img { max-width: 100%; border-radius: 4px; margin-top: 4px; }
.dc-embed-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.dc-embed-footer { font-size: 12px; color: #949ba4; }

/* ── Credits: Tabs, Codes, Kaufen ─────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 16px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.badge-soon { background: var(--surface-3); color: var(--muted); font-size: 11px; }
.credits-split { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.redeem-form { display: flex; gap: 10px; }
.redeem-form .input { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.code-form { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.code-form .field { width: 120px; }
.code-form .field:first-child { width: 200px; }
.code-form .field.grow { flex: 1; min-width: 160px; }
.code-copy { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; font-size: 14px; }
.code-copy:hover { color: var(--accent); }
.credit-amount.granted, .credit-entry.status-granted .credit-amount, .credits-entry.status-granted strong { color: var(--success); }
.text-right { text-align: right; }
.pack { display: flex; flex-direction: column; gap: 8px; }
.pack-featured { border-color: var(--accent-line); }
.pack-amount { font-family: var(--serif); font-size: 26px; color: var(--text-2); }
.pack-amount strong { color: var(--text); font-size: 34px; }
.pack .btn { margin-top: auto; }
@media (max-width: 760px) {
  .credits-split { grid-template-columns: 1fr 1fr; }
  .redeem-form { flex-direction: column; }
}

/* ── Tickets & Rollen-Menüs ───────────────────────────────── */
.check-grid { display: flex; flex-wrap: wrap; gap: 2px 4px; max-height: 180px; overflow: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); }
.check-grid .check { margin: 4px 12px 4px 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.seg input { accent-color: var(--accent); margin-top: 3px; }
.seg span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.seg small { color: var(--muted); font-size: 12px; }
.input-emoji { width: 90px; flex: none !important; text-align: center; }
.rm-option .field-row { margin-bottom: 0; }
#rm-builder:not([data-type="select"]) .rm-desc { display: none; }
.ticket-flow ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dc-components { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 520px; }
.dc-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.dc-button.primary { background: #5865f2; }
.dc-select { display: flex; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 4px; background: #1e1f22; color: #949ba4; font-size: 14px; }
.dc-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dc-reaction { padding: 2px 8px; border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; font-size: 13px; color: #dbdee1; }
@media (max-width: 760px) { .seg { grid-template-columns: 1fr; } }
