/* ===== Farben im Stil des LoL-Clients ===== */
:root {
  --bg-0: #010a13;
  --bg-1: #0a1428;
  --bg-2: #091428;
  --panel: rgba(1, 10, 19, 0.82);
  --gold-1: #f0e6d2;
  --gold-2: #c8aa6e;
  --gold-3: #c89b3c;
  --gold-4: #785a28;
  --gold-5: #463714;
  --grey-1: #a09b8c;
  --grey-2: #5b5a56;
  --grey-3: #3c3c41;
  --grey-4: #1e2328;
  --blue-1: #d4f5ff;   /* Farben an das Logo angepasst (Cyan/Azur) */
  --blue-2: #19c8f0;
  --blue-3: #0a8fd6;
  --blue-4: #00579a;
  --blue-5: #0a2a44;
  --red: #e84057;
  --font-head: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg-0); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-1);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 90, 130, 0.25), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(120, 90, 40, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 70%);
  background-attachment: fixed;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }
.muted { color: var(--grey-2); }
.small { font-size: 12px; }

/* ===== Obere Leiste ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 72px; padding: 0 24px;
  background: linear-gradient(180deg, #010a13 0%, rgba(1, 10, 19, 0.92) 100%);
  border-bottom: 1px solid var(--gold-5);
  box-shadow: 0 1px 0 rgba(200, 170, 110, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; flex: none;
  background: url(/assets/logo-128.png) center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(25, 200, 240, 0.35));
}
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  color: var(--gold-1); letter-spacing: 2px; text-transform: uppercase; line-height: 1;
}
.brand-text small { display: block; font-size: 11px; color: var(--gold-3); letter-spacing: 4px; margin-top: 3px; }

.nav { display: flex; gap: 4px; height: 100%; }
.nav a {
  display: flex; align-items: center; padding: 0 16px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-1);
  transition: color .2s;
}
.nav a:hover { color: var(--gold-1); }
.nav a.active { color: var(--gold-1); text-shadow: 0 0 10px rgba(240, 230, 210, 0.4); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.me { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid var(--grey-3); }
.me-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold-3); }
.me-text { display: flex; flex-direction: column; line-height: 1.2; }
.me-name { color: var(--gold-1); font-weight: 700; }
.me-status { color: #1ec776; font-size: 12px; }
.icon-btn {
  background: none; border: 1px solid var(--grey-3); color: var(--grey-1);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); }

/* ===== Buttons ===== */
.btn {
  --b: linear-gradient(180deg, var(--gold-3), var(--gold-4));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; min-height: 40px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-2); background: var(--grey-4);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--grey-4), var(--grey-4)), var(--b);
  background-origin: border-box; background-clip: padding-box, border-box;
  cursor: pointer; white-space: nowrap; transition: color .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: var(--gold-1); box-shadow: 0 0 14px rgba(200, 170, 110, 0.35); }
.btn:active { filter: brightness(.85); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; color: var(--grey-2); }
.btn-play {
  --b: linear-gradient(180deg, var(--blue-1), var(--blue-3));
  color: var(--blue-1);
  background-image: linear-gradient(180deg, #0b3c4d, #062330), var(--b);
}
.btn-play:hover { color: #fff; box-shadow: 0 0 18px rgba(25, 200, 240, 0.5); }
.btn-ghost { background-image: linear-gradient(var(--bg-0), var(--bg-0)), linear-gradient(var(--grey-3), var(--grey-3)); color: var(--grey-1); }
.btn-support {
  --b: linear-gradient(180deg, #ff8a8a, #9b1c2c);
  color: #ffd2d2; min-height: 34px; padding: 6px 14px; font-size: 12px;
}
.btn-block { width: 100%; }
.btn-sm { min-height: 30px; padding: 4px 12px; font-size: 11px; }

/* ===== Panels ===== */
.page { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 24px; }
.panel {
  position: relative; padding: 22px 24px;
  background: var(--panel);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--panel), var(--panel)), linear-gradient(180deg, var(--gold-4), var(--gold-5) 60%, rgba(70, 55, 20, .4));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head .panel-title { margin: 0; }
.panel-title {
  margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-1);
}
.panel-title::before {
  content: ""; width: 8px; height: 8px; transform: rotate(45deg);
  border: 1px solid var(--gold-2); background: var(--gold-4);
}

.title-xl {
  font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Formulare ===== */
.input {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--gold-1);
  background: rgba(1, 10, 19, 0.9); border: 1px solid var(--grey-3);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold-3); box-shadow: 0 0 0 1px rgba(200, 155, 60, .3); }
textarea.input { resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input-sm { padding: 6px 8px; font-size: 13px; width: auto; min-width: 0; flex: 1; }
.field-label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--gold-3);
}
.hint { font-size: 13px; color: var(--grey-2); margin: 8px 0 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-form .full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.unused-style-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.style-option input { position: absolute; opacity: 0; }
.style-option span {
  display: inline-block; padding: 10px 22px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 1px;
  border: 1px solid var(--grey-3); color: var(--grey-1); background: var(--bg-0);
}
.style-option input:checked + span { border-color: var(--gold-2); color: var(--gold-1); box-shadow: inset 0 0 14px rgba(200, 170, 110, .25); }
.style-option input:focus-visible + span { outline: 1px solid var(--blue-2); }

.secret-row { display: flex; gap: 8px; }
.secret { font-family: ui-monospace, monospace; font-size: 13px; filter: blur(5px); transition: filter .2s; }
.secret.revealed { filter: none; }

details.legacy { margin-top: 22px; border-top: 1px solid var(--grey-3); padding-top: 14px; }
details.legacy summary { cursor: pointer; color: var(--gold-2); font-weight: 600; margin-bottom: 12px; }

/* ===== Hinweise / Badges ===== */
.toast { padding: 12px 16px; margin-bottom: 18px; border-left: 3px solid; background: rgba(1, 10, 19, .9); }
.toast-success { border-color: var(--blue-2); color: var(--blue-1); }
.toast-error { border-color: var(--red); color: #ffc7cf; }
.badge {
  display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--grey-3); color: var(--grey-1);
}
.badge.ok { border-color: var(--blue-3); color: var(--blue-2); background: rgba(25, 200, 240, .08); }
.badge.pending { border-color: var(--gold-3); color: var(--gold-2); background: rgba(200, 155, 60, .08); }
.badge.bad { border-color: var(--red); color: #ff8c9c; }

.progress { height: 4px; background: var(--grey-4); overflow: hidden; margin-top: 12px; }
.progress span { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue-2), transparent); animation: slide 1.8s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* ===== Login ===== */
.login-layout { display: grid; grid-template-columns: 420px 1fr 290px; gap: 24px; align-items: start; }
.login-panel {
  padding: 40px 34px; text-align: center;
  background: linear-gradient(180deg, rgba(10, 20, 40, .95), rgba(1, 10, 19, .95));
  border: 1px solid var(--gold-4); box-shadow: 0 0 40px rgba(0, 0, 0, .6), inset 0 0 60px rgba(0, 90, 130, .12);
}
.login-crest {
  width: 150px; height: 150px; margin: 0 auto 18px;
  background: url(/assets/logo-256.webp) center / contain no-repeat;
  filter: drop-shadow(0 0 22px rgba(25, 200, 240, .35));
}
.login-panel .muted { color: var(--grey-1); line-height: 1.6; margin-bottom: 26px; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; }
.feature-list li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid rgba(60, 60, 65, .5); }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-3); }
.fineprint { font-size: 12px; color: var(--grey-2); margin-top: 18px; }

.preview-label { font-family: var(--font-head); font-size: 12px; letter-spacing: 1.5px; color: var(--gold-2); text-transform: uppercase; margin: 18px 0 8px; }
.preview-panel .preview-label:first-of-type { margin-top: 0; }
.preview-frame { width: 100%; max-width: 700px; aspect-ratio: 700 / 250; background: #000; border: 1px solid var(--gold-5); overflow: hidden; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== LP-Box ===== */
.lp-group-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-2); margin: 12px 0 6px; }
.lp-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; margin-bottom: 6px; background: rgba(30, 35, 40, .6); border-left: 2px solid; }
.lp-row span { display: flex; align-items: center; gap: 8px; color: var(--gold-1); font-weight: 600; }
.lp-row img { width: 24px; height: 24px; }
.lp-row.chall { border-color: #7ef9ff; } .lp-row.chall b { color: #7ef9ff; }
.lp-row.gm { border-color: #ff6b8a; } .lp-row.gm b { color: #ff6b8a; }
.lp-updated { font-size: 12px; color: var(--grey-2); text-align: center; margin-top: 10px; }

/* ===== Dashboard ===== */
.dash { display: grid; grid-template-columns: 300px 1fr 290px; gap: 24px; align-items: start; }
.profile-panel { padding: 0 0 20px; text-align: center; overflow: hidden; }
.profile-banner { height: 90px; background: linear-gradient(135deg, var(--blue-5), var(--bg-1) 60%), radial-gradient(circle at 70% 30%, rgba(25, 200, 240, .4), transparent 60%); border-bottom: 1px solid var(--gold-5); }
.profile-avatar-ring { width: 112px; height: 112px; margin: -56px auto 10px; padding: 4px; border-radius: 50%; background: conic-gradient(var(--gold-2), var(--gold-4), var(--gold-1), var(--gold-4), var(--gold-2)); box-shadow: 0 0 20px rgba(200, 170, 110, .3); }
.profile-avatar-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg-0); display: block; }
.profile-name { font-family: var(--font-head); color: var(--gold-1); margin: 0; font-size: 20px; letter-spacing: 1px; }
.profile-sub { color: var(--grey-2); font-size: 13px; margin-bottom: 16px; }
.stat-list { margin: 0; padding: 0 20px; text-align: left; }
.stat-list div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(60, 60, 65, .6); }
.stat-list dt { color: var(--grey-2); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.stat-list dd { margin: 0; color: var(--gold-1); font-weight: 600; text-align: right; word-break: break-all; }
.dash-main .btn-play { margin: 4px 0 6px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(60, 60, 65, .5); }

/* ===== Admin ===== */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.admin-stats .panel + .panel { margin-top: 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--gold-1); }
.stat span { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--gold-3); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-3); border-bottom: 1px solid var(--gold-5); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid rgba(60, 60, 65, .5); vertical-align: middle; color: var(--gold-1); }
.table tr.row-open td { background: rgba(200, 155, 60, .05); }
.table td.msg { max-width: 260px; color: var(--grey-1); }
.mini-av { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }

.foot { text-align: center; font-size: 12px; color: var(--grey-2); padding: 18px; border-top: 1px solid rgba(70, 55, 20, .5); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .login-layout, .dash { grid-template-columns: 1fr 1fr; }
  .login-layout > aside, .dash-side { grid-column: 1 / -1; }
  .dash-main { grid-column: 2; }
}
@media (max-width: 820px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .nav { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .me-text { display: none; }
  .login-layout, .dash, .admin-stats { grid-template-columns: 1fr; }
  .dash-main { grid-column: auto; }
  .grid-form { grid-template-columns: 1fr; }
  .page { padding: 18px 12px; }
}

/* ===== Freischaltung ===== */
.txt-ok { color: var(--blue-2); }
.txt-pending { color: var(--gold-2); }
.wait-box {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px;
  background: linear-gradient(90deg, rgba(200, 155, 60, .12), rgba(1, 10, 19, .4));
  border-left: 3px solid var(--gold-3);
}
.wait-box h4, .sub-title {
  margin: 0 0 4px; font-family: var(--font-head); font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold-1);
}
.sub-title { margin-bottom: 10px; }
.wait-box p { margin: 0; line-height: 1.5; }
.wait-icon {
  flex: 0 0 52px; height: 52px; display: grid; place-items: center; font-size: 24px;
  border: 1px solid var(--gold-4); transform: rotate(45deg);
}
.or-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--grey-2); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-5), transparent); }
.steps { margin: 0 0 14px; padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 38px; line-height: 1.5; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 5px; width: 24px; height: 24px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  color: var(--blue-1); border: 1px solid var(--blue-3); background: var(--blue-5);
}
.key-form { display: flex; gap: 10px; }
.key-form .input { font-family: ui-monospace, monospace; }

/* ===== Style-Karten ===== */
.style-card { padding: 16px; margin-bottom: 16px; background: rgba(30, 35, 40, .35); border: 1px solid var(--grey-3); transition: border-color .2s; }
.style-card.current { border-color: var(--gold-3); box-shadow: inset 0 0 24px rgba(200, 155, 60, .08); }
.style-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.style-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-1); }
.style-card .preview-frame { max-width: none; margin-bottom: 12px; }
.locked { padding: 10px 14px; text-align: center; color: var(--grey-2); border: 1px dashed var(--grey-3); font-size: 13px; }
@media (max-width: 820px) { .key-form, .secret-row { flex-direction: column; } }

/* ===== Overlay-Konfigurator ===== */
.center { text-align: center; }
.ov-tabs { display: flex; gap: 0; margin-bottom: 14px; border-bottom: 1px solid var(--gold-5); }
.ov-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 10px 10px; background: none; border: 0; cursor: pointer; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--grey-1); transition: color .15s, background .15s;
}
.ov-tab small { font-family: var(--font-body); font-size: 11px; letter-spacing: 0; color: var(--grey-2); text-transform: none; }
.ov-tab:hover { color: var(--gold-1); background: rgba(200, 170, 110, .05); }
.ov-tab.active { color: var(--gold-1); background: linear-gradient(180deg, transparent, rgba(200, 155, 60, .12)); }
.ov-tab.active::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

.ov-stage {
  position: relative; width: 100%; overflow: hidden; background: #000;
  border: 1px solid var(--gold-5);
  background-image: linear-gradient(45deg, #0b0f14 25%, transparent 25%), linear-gradient(-45deg, #0b0f14 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #0b0f14 75%), linear-gradient(-45deg, transparent 75%, #0b0f14 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.ov-stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: transparent; }

.ov-controls { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; margin: 20px 0; }
.ov-controls > div:last-child { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px 8px 30px; position: relative; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--grey-1);
  background: var(--bg-0); border: 1px solid var(--grey-3); transition: all .15s;
}
.chip::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg); border: 1px solid var(--grey-2); }
.chip:hover { border-color: var(--gold-4); color: var(--gold-1); }
.chip.on { color: var(--blue-1); border-color: var(--blue-3); background: linear-gradient(180deg, #0b3c4d, #062330); }
.chip.on::before { background: var(--blue-2); border-color: var(--blue-1); box-shadow: 0 0 6px var(--blue-2); }
.chip[hidden], [data-needs][hidden], .ov-controls > div[hidden] { display: none; }

.seg { display: inline-flex; border: 1px solid var(--grey-3); }
.seg button { padding: 8px 18px; cursor: pointer; background: var(--bg-0); border: 0; color: var(--grey-1); font: 600 14px var(--font-body); }
.seg button + button { border-left: 1px solid var(--grey-3); }
.seg button.active { color: var(--gold-1); background: linear-gradient(180deg, rgba(200, 155, 60, .25), rgba(120, 90, 40, .15)); }

.ov-account { display: flex; align-items: center; gap: 8px; max-width: 520px; }
.ov-account .input:first-child { flex: 2; }
.ov-account .input:nth-child(3) { flex: 1; text-transform: uppercase; }
.ov-account .hash { color: var(--gold-3); font-weight: 700; }

.saved-note { position: fixed; right: 24px; bottom: 24px; padding: 10px 16px; background: var(--bg-0); border: 1px solid var(--blue-3); color: var(--blue-1); opacity: 0; transform: translateY(8px); transition: all .25s; pointer-events: none; z-index: 60; }
.saved-note.show { opacity: 1; transform: none; }
@media (max-width: 820px) { .ov-controls { grid-template-columns: 1fr; } .ov-tab { font-size: 12px; } }


/* ===== Admin: Key-Feld und Dialog ===== */
.pw-wrap { position: relative; display: inline-flex; flex: 1.4; min-width: 220px; }
.pw-wrap .input { flex: 1; padding-right: 34px; font-family: ui-monospace, monospace; font-size: 12px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; padding: 2px; background: none; border: 0; cursor: pointer; color: var(--gold-3); }
.pw-toggle:hover { color: var(--gold-1); }
.pw-toggle.on { color: var(--blue-2); }
.dialog {
  width: min(480px, 92vw); padding: 26px 28px; color: var(--grey-1);
  background: linear-gradient(180deg, rgba(10, 20, 40, .98), rgba(1, 10, 19, .98));
  border: 1px solid var(--gold-4); box-shadow: 0 0 40px rgba(0, 0, 0, .7);
}
.dialog::backdrop { background: rgba(1, 10, 19, .75); }
.dialog .input { margin-bottom: 4px; font-family: ui-monospace, monospace; }
.txt-bad { color: #ff8c9c; }
.btn-danger { --b: linear-gradient(180deg, #ff8a8a, #9b1c2c); color: #ffc7cf; }
.btn-danger:hover { color: #fff; box-shadow: 0 0 14px rgba(232, 64, 87, .45); }
.table tr.row-blocked td { opacity: .55; }
.twitch-row { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(60, 60, 65, .6); }
.twitch-row .input { flex: 1; max-width: 420px; }
.saved-note.error { border-color: var(--red); color: #ffc7cf; }

/* ===== Admin: Style-Statistik ===== */
.style-stat { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 14px; margin-bottom: 10px; }
.style-stat-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-1); font-size: 13px; }
.style-stat-bar { height: 14px; background: var(--grey-4); border: 1px solid var(--grey-3); overflow: hidden; }
.style-stat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-4), var(--gold-2)); }
.style-stat.top .style-stat-bar span { background: linear-gradient(90deg, var(--blue-3), var(--blue-2)); box-shadow: 0 0 10px rgba(25, 200, 240, .4); }
.style-stat-num { text-align: right; color: var(--gold-1); font-weight: 700; }
.style-stat-num small { color: var(--grey-2); font-weight: 400; margin-left: 4px; }

/* ===== Twitch ===== */
.edit-btn { display: inline-flex; vertical-align: middle; margin-left: 4px; padding: 4px; background: none; border: 1px solid transparent; color: var(--gold-3); cursor: pointer; }
.edit-btn:hover { color: var(--gold-1); border-color: var(--gold-4); }
.twitch-link { color: #bf94ff; font-weight: 600; }
.twitch-link:hover { color: #d9bfff; }
.live-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff; background: #e91916; animation: livePulse 1.6s ease-in-out infinite; }
.live-info { font-size: 12px; color: #ff9a9a; }
.live-count { color: #ff6b6b; font-size: 18px; }
.table tr.row-live td { background: linear-gradient(90deg, rgba(233, 25, 22, .14), rgba(233, 25, 22, .03)); }
.table tr.row-live td:first-child { box-shadow: inset 3px 0 0 #e91916; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
code { font-family: ui-monospace, monospace; color: var(--gold-2); }

/* ===== Admin: per Discord-ID freischalten ===== */
.preapprove-form { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr auto; gap: 14px; align-items: end; }
.preapprove-form .pw-wrap { display: flex; width: 100%; }
@media (max-width: 1000px) { .preapprove-form { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0 0 12px; padding: 0; }
.checklist li { position: relative; padding: 4px 0 4px 26px; color: var(--gold-2); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; border: 1px solid var(--gold-3); }
.checklist li.done { color: var(--grey-2); text-decoration: line-through; }
.checklist li.done::before { background: var(--blue-2); border-color: var(--blue-1); }
.dd-edit { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.dd-edit .edit-btn { margin-left: 2px; padding: 2px; }

/* ===== Nav-Badge ===== */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; font: 700 11px/18px var(--font-body); text-align: center; color: #fff; background: #e84057; border-radius: 9px; letter-spacing: 0; vertical-align: middle; }

/* ===== Admin-Reiter ===== */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--gold-5); }
.admin-tabs a { padding: 12px 20px; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-1); }
.admin-tabs a:hover { color: var(--gold-1); }
.admin-tabs a.active { color: var(--gold-1); background: linear-gradient(180deg, transparent, rgba(200, 155, 60, .12)); }
.admin-tabs a.active::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

/* ===== Chat ===== */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 4px 12px; margin-bottom: 14px; }
.chat-msg { max-width: 78%; padding: 10px 14px; border: 1px solid var(--grey-3); background: rgba(30, 35, 40, .6); }
.chat-msg.from-me { align-self: flex-end; border-color: var(--blue-4); background: linear-gradient(180deg, rgba(11, 60, 77, .55), rgba(6, 35, 48, .55)); }
.chat-msg.from-admin { align-self: flex-start; border-color: var(--gold-4); background: linear-gradient(180deg, rgba(120, 90, 40, .22), rgba(70, 55, 20, .18)); }
.chat-head { font-size: 11px; letter-spacing: .5px; color: var(--grey-2); margin-bottom: 4px; }
.chat-text { color: var(--gold-1); line-height: 1.5; word-wrap: break-word; }
.chat-text p, .news-body p { margin: 0; }
.chat-text ul, .news-body ul { margin: 4px 0; padding-left: 20px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; }

/* ===== Posteingang ===== */
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.inbox .panel + .panel { margin-top: 0; }
.inbox-list { padding: 18px 12px; }
.inbox-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-left: 2px solid transparent; color: var(--grey-1); }
.inbox-item:hover { background: rgba(200, 170, 110, .06); color: var(--gold-1); }
.inbox-item.active { background: rgba(200, 155, 60, .1); border-left-color: var(--gold-2); }
.inbox-item.unread b { color: #fff; }
.inbox-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-who b { color: var(--gold-1); font-weight: 600; }
.inbox-preview { font-size: 12px; color: var(--grey-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-time { font-size: 11px; color: var(--grey-2); white-space: nowrap; }
@media (max-width: 1000px) { .inbox { grid-template-columns: 1fr; } }

/* ===== Neuigkeiten / Patch Notes ===== */
.news-item { padding: 14px 0; border-top: 1px solid rgba(60, 60, 65, .6); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.news-type { padding: 1px 8px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border: 1px solid; }
.news-type.patch { color: var(--blue-2); border-color: var(--blue-3); background: rgba(25, 200, 240, .08); }
.news-type.plan { color: var(--gold-2); border-color: var(--gold-3); background: rgba(200, 155, 60, .08); }
.news-title { margin: 0 0 6px; font-family: var(--font-head); font-size: 15px; letter-spacing: .5px; color: var(--gold-1); }
.news-body { font-size: 14px; line-height: 1.55; color: var(--grey-1); }
.news-actions { margin-left: auto; display: flex; gap: 6px; }
.news-panel { margin-top: 20px; }
.news-form-row { display: flex; gap: 12px; align-items: stretch; }
.news-form-row .input { flex: 1; }
.seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: inline-block; padding: 9px 18px; cursor: pointer; background: var(--bg-0); color: var(--grey-1); font: 600 14px var(--font-body); }
.seg-radio + .seg-radio span { border-left: 1px solid var(--grey-3); }
.seg-radio input:checked + span { color: var(--gold-1); background: linear-gradient(180deg, rgba(200, 155, 60, .25), rgba(120, 90, 40, .15)); }

/* ===== Feedback-Kasten + Nachrichten-Seite ===== */
.dash-left { display: flex; flex-direction: column; gap: 20px; }
.dash-left .panel + .panel { margin-top: 0; }
.feedback-panel p { line-height: 1.5; margin: 0 0 14px; }
.feedback-new { margin-bottom: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--blue-1); border-left: 3px solid var(--blue-2); background: rgba(25, 200, 240, .08); }
.messages-page { max-width: 860px; margin: 0 auto; }
.chat-tall { max-height: 60vh; }

/* ===== Sprachumschalter ===== */
.lang-switch { display: inline-flex; border: 1px solid var(--grey-3); }
.lang-switch a { padding: 5px 9px; font: 700 11px var(--font-body); letter-spacing: 1px; color: var(--grey-2); }
.lang-switch a + a { border-left: 1px solid var(--grey-3); }
.lang-switch a:hover { color: var(--gold-1); }
.lang-switch a.active { color: var(--gold-1); background: linear-gradient(180deg, rgba(200, 155, 60, .25), rgba(120, 90, 40, .15)); }

/* ===== Werbe-Banner yuubot (Farben aus dem Bot-Bild) ===== */
.promo {
  --y-night: #0d0726; --y-deep: #1b0f4a; --y-violet: #7c4dff; --y-lilac: #b9a0ff;
  --y-gold: #ffc85a; --y-gold-2: #ffe7a3; --y-cyan: #6fd8ff;
  position: relative; display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 16px 16px 16px 14px;
  overflow: hidden; color: #ece6ff; text-decoration: none; isolation: isolate;
  background:
    radial-gradient(circle at 92% 18%, rgba(111, 216, 255, .22), transparent 40%),
    radial-gradient(circle at 18% 85%, rgba(255, 200, 90, .16), transparent 45%),
    radial-gradient(circle at 30% 30%, rgba(124, 77, 255, .35), transparent 60%),
    linear-gradient(150deg, var(--y-deep) 0%, var(--y-night) 70%);
  border: 1px solid rgba(185, 160, 255, .45); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 26px rgba(124, 77, 255, .25), inset 0 0 0 1px rgba(255, 200, 90, .08);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.promo:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255, 200, 90, .6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 34px rgba(124, 77, 255, .45), 0 0 14px rgba(255, 200, 90, .25); }

/* funkelnde Sterne */
.promo-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.promo-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 231, 163, .9); animation: yTwinkle 3s ease-in-out infinite; }
.promo-stars i:nth-child(1) { top: 14%; left: 62%; animation-delay: 0s; }
.promo-stars i:nth-child(2) { top: 72%; left: 88%; animation-delay: .7s; background: var(--y-cyan); box-shadow: 0 0 6px 1px rgba(111, 216, 255, .9); }
.promo-stars i:nth-child(3) { top: 40%; left: 95%; animation-delay: 1.4s; }
.promo-stars i:nth-child(4) { top: 88%; left: 30%; animation-delay: 2.1s; width: 2px; height: 2px; }
.promo-stars i:nth-child(5) { top: 8%; left: 30%; animation-delay: 1s; width: 2px; height: 2px; }
.promo-stars i:nth-child(6) { top: 55%; left: 48%; animation-delay: 2.5s; width: 2px; height: 2px; background: var(--y-gold-2); }

/* Bild mit leuchtendem, drehendem Ring */
.promo-img { position: relative; flex: 0 0 80px; height: 80px; animation: yFloat 4s ease-in-out infinite; }
.promo-img img { position: relative; z-index: 1; width: 80px; height: 80px; border-radius: 50%; display: block;
  box-shadow: 0 0 18px rgba(124, 77, 255, .75), 0 0 6px rgba(111, 216, 255, .6); }
.promo-ring { position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--y-violet), var(--y-cyan), var(--y-gold), var(--y-violet));
  filter: blur(3px); opacity: .85; animation: ySpin 6s linear infinite; }
.promo:hover .promo-ring { opacity: 1; filter: blur(2px); }

/* Text */
.promo-text { position: relative; display: flex; flex-direction: column; min-width: 0; }
.promo-tag { align-self: flex-start; padding: 2px 9px; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: var(--y-gold-2); border: 1px solid rgba(255, 200, 90, .45); border-radius: 999px; background: rgba(255, 200, 90, .08); }
.promo-name { font-family: "Kaushan Script", cursive; font-size: 31px; line-height: 1; color: #fff;
  text-shadow: 0 0 10px rgba(185, 160, 255, .9), 0 0 24px rgba(124, 77, 255, .7); }
.promo-sub { font-family: "Kaushan Script", cursive; font-size: 15px; margin-top: 2px;
  background: linear-gradient(90deg, var(--y-lilac), var(--y-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-desc { font-size: 12px; line-height: 1.4; color: #cfc5ee; margin: 6px 0 9px; }
.promo-btn { align-self: flex-start; padding: 5px 13px; font-size: 12px; font-weight: 700; color: #1b0f4a; border-radius: 999px;
  background: linear-gradient(90deg, var(--y-gold), var(--y-gold-2)); box-shadow: 0 0 14px rgba(255, 200, 90, .45); transition: box-shadow .2s; }
.promo:hover .promo-btn { box-shadow: 0 0 20px rgba(255, 200, 90, .75); }

@keyframes yFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ySpin { to { transform: rotate(360deg); } }
@keyframes yTwinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .promo-img, .promo-ring, .promo-stars i { animation: none; } }


/* ===== Rechtsseiten ===== */
.legal-page { max-width: 900px; margin: 0 auto; }
.legal-body { padding: 30px 36px; line-height: 1.65; }
.legal-title { font-size: 28px; margin-bottom: 18px; }
.legal-body h2 { margin: 26px 0 8px; font-family: var(--font-head); font-size: 16px; letter-spacing: 1px; color: var(--gold-1); }
.legal-body p, .legal-body li { color: var(--grey-1); }
.legal-body ul { padding-left: 22px; }
.legal-body b { color: var(--gold-1); }
.legal-missing { color: #ff8c9c; font-weight: 700; background: rgba(232, 64, 87, .1); padding: 0 4px; }
.legal-note { padding: 8px 12px; border-left: 3px solid var(--gold-3); background: rgba(200, 155, 60, .08); font-size: 13px; }
.legal-updated { margin-top: 26px; font-size: 12px; color: var(--grey-2) !important; }
.foot-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; }
.foot-links a { color: var(--grey-1); font-size: 13px; }
.foot-links a:hover { color: var(--gold-1); }
.fineprint a { color: var(--gold-2); }
