:root {
  --bg-a: #0a1a29;
  --bg-b: #10233c;
  --bg-c: #1b1120;
  --card: rgba(8, 21, 35, 0.88);
  --line: rgba(122, 180, 238, 0.24);
  --text: #e9f3ff;
  --muted: #97b4d3;
  --accent: #15ca8d;
  --accent-2: #5db6ff;
  --danger: #ea4f55;
  --warn: #ff8a34;
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

/* 24fire-like customer panel */
body {
  color: #08152a;
  background: #eef3f8;
}

.layout {
  max-width: none;
  padding: 0;
}

.hero {
  display: none;
}

#appPanel > .topbar {
  display: none;
}

.fire-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #eef3f8;
}

.fire-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 20px;
  background: #f8fafc;
  border-right: 1px solid #dde4ec;
  overflow-y: auto;
}

.fire-logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: #020815;
  letter-spacing: 0;
}

.fire-logo span {
  margin-right: 4px;
}

.fire-logo strong {
  color: #0a0f1d;
}

.fire-version {
  margin: 12px 0 24px;
  color: #1f2937;
  font-weight: 700;
}

.fire-nav,
.fire-subnav {
  display: grid;
  gap: 8px;
}

.fire-nav button,
.fire-subnav button,
.server-item {
  width: 100%;
  color: #263244;
  background: transparent;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  text-align: left;
  padding: 10px 12px;
}

.fire-nav button:hover,
.fire-nav button.active,
.server-item.active {
  color: #ff5a00;
  background: #e2e4e8;
}

.fire-nav-main {
  font-weight: 700;
}

.fire-subnav {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 2px solid #e1e6ee;
}

.server-item h4,
.server-item p {
  margin: 0;
}

.server-item p {
  display: none;
}

.fire-main {
  min-width: 0;
  padding: 0 28px 38px;
}

.fire-topbar {
  height: 55px;
  margin: 0 -28px 26px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f7f9fc;
  box-shadow: 0 12px 30px rgba(43, 56, 74, 0.16);
  font-weight: 700;
  color: #253246;
}

.fire-topbar__trailing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.panel-theme-picker {
  position: relative;
  z-index: 2;
}

.panel-theme-picker__summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #c5d0df;
  background: #fff;
  color: #253246;
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-theme-picker__summary::-webkit-details-marker {
  display: none;
}

.panel-theme-picker__summary::after {
  content: " ▾";
  font-size: 0.7rem;
  opacity: 0.65;
}

.panel-theme-picker[open] .panel-theme-picker__summary {
  border-color: #94a3b8;
  background: #f4f7fb;
}

.panel-theme-picker__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10001;
  width: min(440px, 94vw);
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 56, 74, 0.14);
  background: rgba(15, 23, 36, 0.97);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 12px;
}

.panel-theme-picker__hint {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.35;
}

.panel-theme-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 420px) {
  .panel-theme-picker__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.panel-theme-picker__empty {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.panel-theme-card {
  margin: 0;
  padding: 10px 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(10, 15, 24, 0.65);
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.panel-theme-card:hover {
  border-color: rgba(var(--customer-theme-accent-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--customer-theme-accent-rgb), 0.12);
}

.panel-theme-card:focus-visible {
  outline: 2px solid var(--customer-theme-accent, #ff5a00);
  outline-offset: 2px;
}

.panel-theme-card--active {
  border-color: rgba(var(--customer-theme-accent-rgb), 0.65);
  box-shadow: 0 0 0 2px rgba(var(--customer-theme-accent-rgb), 0.25);
}

.panel-theme-card__preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-theme-card__wire {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 24% 28%;
  pointer-events: none;
}

.panel-theme-card__head {
  display: block;
  margin-bottom: 4px;
}

.panel-theme-card__name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.panel-theme-card__desc {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.3;
}

.panel-theme-picker__reset {
  margin-top: 2px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.fire-breadcrumb {
  color: #ff5a00;
  margin-bottom: 6px;
}

.fire-title-row h2 {
  margin: 0;
  font-size: 1.45rem;
}

.customer-page.hidden,
.server-tab.hidden {
  display: none;
}

.customer-page.active,
.server-tab.active {
  display: block;
}

.fire-overview-grid {
  display: grid;
  grid-template-columns: 1fr 2.05fr 1fr;
  gap: 20px;
}

.fire-card,
.card,
.soft-box {
  color: #07152b;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.12);
}

.fire-card {
  padding: 18px 20px;
}

.fire-card h3,
.fire-card h2 {
  margin-top: 0;
}

.power-badge {
  margin: 18px 0 16px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(120deg, #28ae45, #27c996);
}

.power-badge small {
  font-size: 0.78rem;
}

.fire-power-actions {
  display: grid;
  gap: 10px;
}

.fire-resource-card .usage-item {
  margin: 14px 0;
}

.usage-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  color: #14213a;
}

.usage-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: #e6e8ec;
}

.usage-fill {
  height: 100%;
  border-radius: inherit;
  background: #ff5a00;
}

.accounting-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e6e8ec;
}

.fire-tool-grid {
  margin: 16px 0;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.12);
}

.fire-tool-grid button {
  min-height: 90px;
  color: #07152b;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  box-shadow: none;
}

.fire-management {
  display: grid;
  grid-template-columns: 385px minmax(0, 1fr);
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.12);
  overflow: hidden;
}

.fire-management-nav {
  padding: 20px 0;
  border-right: 1px solid #dde4ec;
}

.fire-management-nav p {
  padding: 0 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #657084;
}

.fire-management-nav button {
  display: block;
  width: calc(100% - 20px);
  margin: 4px 10px;
  padding: 14px 24px;
  color: #06152c;
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  text-align: left;
}

.fire-management-nav button.active {
  color: #ff5a00;
  background: #e1e3e7;
}

.fire-management-content {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-grid p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e6e8ec;
  padding: 10px 0;
}

.support-empty {
  min-height: 620px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
}

.support-hero {
  font-size: 8rem;
  color: #ff6a00;
  opacity: 0.24;
}

.support-empty-box {
  width: min(460px, 90%);
  margin-top: -120px;
  padding: 34px;
  text-align: center;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 45, 61, 0.18);
}

.ticket-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.ticket-message,
.ticket-footer {
  grid-column: 1 / -1;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #e6e8ec;
}

.os-grid {
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.os-option {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  background: #172536;
  border: 1px solid #32445b;
  border-radius: 14px;
}

.os-option.active {
  border-color: #ff5a00;
}

.mail-message.unread {
  border-left: 4px solid #ff5a00;
}

body.customer-active #customerView .mail-message.unread {
  border-left-color: var(--customer-theme-accent, #ff5a00);
}

button {
  background: #ff5a00;
}

button.danger {
  color: #ff2f2f;
  background: #fff;
  border-color: #ff2f2f;
}

button.accent {
  background: #22b86a;
}

input,
select,
textarea {
  color: #07152b;
  background: #fff;
  border-color: #d8dee8;
}

.muted {
  color: #68758a;
}

@media (max-width: 1100px) {
  .fire-layout {
    grid-template-columns: 1fr;
  }

  .fire-sidebar {
    position: static;
    height: auto;
  }

  .fire-overview-grid,
  .fire-management,
  .info-grid,
  .ticket-form {
    grid-template-columns: 1fr;
  }

  .fire-tool-grid,
  .os-grid {
    grid-template-columns: 1fr 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at -10% -15%, #24587a 0%, transparent 55%),
    radial-gradient(900px 620px at 110% 0%, #4a2e15 0%, transparent 52%),
    linear-gradient(160deg, var(--bg-a), var(--bg-b) 52%, var(--bg-c));
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  opacity: 0.16;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 12%;
  background: #21e5bf;
  animation: floatY 12s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: 8%;
  background: #58a4ff;
  animation: floatY 14s ease-in-out infinite reverse;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 18px 50px;
}

.hero {
  margin-bottom: 18px;
  animation: rise 380ms ease-out;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: #8dd8ff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
}

.card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 340ms ease-out;
}

.card.slim {
  padding: 12px 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stack {
  display: grid;
  gap: 10px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-landing {
  position: relative;
  overflow: hidden;
}

.slider-grid {
  display: grid;
  gap: 12px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
}

.public-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.25));
  background: var(--customer-theme-toggle-bg, rgba(6, 16, 27, 0.72));
}

.public-price strong {
  font-size: 1.15rem;
}

.code-output {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #9ce4ff;
}

.line-sep {
  border: 0;
  border-top: 1px solid rgba(151, 180, 211, 0.22);
  margin: 16px 0;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.2));
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 26, 0.68));
}

.toggle-row input[type="checkbox"] {
  width: auto;
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: 10px;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.25));
  background: var(--customer-theme-toggle-bg, rgba(5, 12, 22, 0.72));
  padding: 10px 12px;
}

input[type="range"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="color"] {
  background: transparent;
  border: 0;
  padding: 0;
}

input[type="range"] {
  width: 100%;
  min-height: 28px;
  accent-color: var(--customer-theme-accent, #25d7a4);
}

input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="color"] {
  width: auto;
}

textarea {
  resize: vertical;
}

button {
  border: 1px solid transparent;
  padding: 10px 13px;
  color: #081018;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), #7ce9ff);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

button.ghost {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #94a3b8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

button.ghost:hover {
  filter: none;
  border-color: #64748b;
  background: #f8fafc;
}

.overlay-panel button.ghost {
  color: #e9f3ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(151, 180, 211, 0.42);
  box-shadow: none;
}

.overlay-panel button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(191, 219, 254, 0.55);
}

button.danger {
  color: #fff;
  background: linear-gradient(120deg, #f16b69, var(--danger));
}

button.warn {
  color: #fff;
  background: linear-gradient(120deg, #ffb04b, var(--warn));
}

button.accent {
  color: #031019;
  background: linear-gradient(120deg, #14cd8f, #35f0c4);
}

.hidden {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 24px;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(6px);
}

.overlay-panel {
  max-width: 1200px;
  height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 21, 35, 0.97);
  box-shadow: var(--shadow);
  padding: 18px;
}

h2,
h3 {
  margin: 0 0 10px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a5f;
}

.notice.error {
  border-color: #f87171;
  background: #fef2f2;
  color: #991b1b;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 700px;
}

th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(151, 180, 211, 0.18);
  vertical-align: top;
}

th {
  color: #b6d6f8;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.locked {
  background: rgba(234, 79, 85, 0.2);
  color: #ffb8bb;
}

.pill.ok {
  background: rgba(21, 202, 141, 0.2);
  color: #abf7dc;
}

/* Hellflächige Panels: Status-Pills dunkel lesbar */
#customerView .pill.ok,
#adminView.admin-fire-layout .pill.ok {
  background: rgba(5, 150, 105, 0.14);
  color: #065f46;
}

#customerView .pill.locked,
#adminView.admin-fire-layout .pill.locked {
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
}

.server-list {
  display: grid;
  gap: 8px;
}

.server-item {
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.2));
  border-radius: 10px;
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 26, 0.76));
  padding: 10px;
  cursor: pointer;
}

.server-item.active {
  border-color: #3ecbf8;
  box-shadow: inset 0 0 0 1px rgba(62, 203, 248, 0.35);
}

.server-item h4 {
  margin: 0 0 6px;
}

.server-item p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.soft-box {
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.2));
  border-radius: 12px;
  background: var(--customer-theme-toggle-bg, rgba(2, 12, 22, 0.58));
  padding: 12px;
}

.soft-box p {
  margin: 6px 0;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eye-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #cfe8ff;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.35));
  border-radius: 10px;
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 26, 0.78));
}

.eye-toggle:hover {
  color: #ffffff;
  border-color: rgba(151, 180, 211, 0.55);
  filter: brightness(1.12);
}

.eye-toggle:disabled {
  opacity: 0.42;
}

.eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-slash {
  opacity: 1;
}

.eye-toggle.revealed .eye-slash {
  opacity: 0;
}

.usage-item {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 10px;
  margin-bottom: 9px;
}

.usage-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(151, 180, 211, 0.18);
}

.usage-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #2ce19b, #57d8ff);
}

#serverMetaGrid {
  grid-template-columns: 1fr;
}

#monitoringUsageBox {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

#monitoringUsageBox .usage-item {
  margin-bottom: 0;
}

#monitoringUsageBox .usage-track {
  height: 12px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form input {
  min-width: 190px;
}

#statusPageLinkWrap {
  margin-top: 10px;
}

#statusPageLink {
  color: #9ad9ff;
  word-break: break-all;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.compact-list .list-card {
  padding: 10px;
}

.compact-list .list-card p {
  margin: 2px 0;
}

.mini-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-actions button {
  padding: 7px 10px;
}

.list-card {
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.2));
  border-radius: 12px;
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 24, 0.72));
  padding: 11px 12px;
}

.list-card p {
  margin: 4px 0;
}

.weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekday-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--customer-theme-toggle-bg, rgba(9, 21, 36, 0.75));
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.2));
}

.lock-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.locked-only {
  border-color: rgba(234, 79, 85, 0.6);
  background: linear-gradient(120deg, rgba(234, 79, 85, 0.18), rgba(24, 12, 19, 0.92));
}

code,
pre {
  font-family: "JetBrains Mono", monospace;
}

pre {
  margin: 0;
  min-height: 180px;
  border-radius: 10px;
  border: 1px solid rgba(151, 180, 211, 0.2);
  background: #040a12;
  color: #cce8ff;
  padding: 12px;
  overflow: auto;
  line-height: 1.42;
  font-size: 0.84rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 980px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .layout {
    padding: 18px 12px 36px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .overlay {
    padding: 10px;
  }

  .overlay-panel {
    height: calc(100vh - 20px);
    padding: 12px;
  }
}

/* Final customer-panel layout overrides */
#customerView.fire-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #eef3f8;
}

#customerView.fire-layout.hidden {
  display: none !important;
}

/* Admin: gleicher Raster-Aufbau und heller Stil wie Kundenpanel */
#adminView.admin-fire-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #eef3f8;
}

#adminView.admin-fire-layout.hidden {
  display: none !important;
}

#adminView.admin-fire-layout .fire-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 20px;
  background: #f8fafc;
  border-right: 1px solid #dde4ec;
  overflow-y: auto;
}

#adminView.admin-fire-layout .admin-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #020815;
  margin-bottom: 10px;
}

#adminView.admin-fire-layout .card,
#adminView.admin-fire-layout .fire-card,
#adminView.admin-fire-layout .soft-box {
  color: #07152b;
  background: #fff;
}

#adminView.admin-fire-layout .card h2,
#adminView.admin-fire-layout .card h3,
#adminView.admin-fire-layout .card h4,
#adminView.admin-fire-layout label,
#adminView.admin-fire-layout .soft-box h3,
#adminView.admin-fire-layout .soft-box h4 {
  color: #07152b;
}

/* Listen-Karten im hellen Admin-Inhalt: Lesbarkeit, unabhängig vom globalen .list-card */
#adminView.admin-fire-layout .list-card {
  color: #07152b;
  background: #ffffff;
  border: 1px solid #dde4ec;
}

#adminView.admin-fire-layout .muted {
  color: #5a6b7d;
}

/* Dunkle Overlays (Codes / Kaufanfragen): gleiche Kästchen-Farbe wie Kunden-Theme, Text hell */
#adminView .overlay-panel .list-card {
  color: #eaf4ff;
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 24, 0.72));
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.22));
}

#adminView.admin-fire-layout input,
#adminView.admin-fire-layout select,
#adminView.admin-fire-layout textarea {
  color: #07152b;
  background: #fff;
  border: 1px solid #c5d0df;
}

#adminView.admin-fire-layout input::placeholder,
#adminView.admin-fire-layout textarea::placeholder {
  color: #8fa1b4;
}

#adminView.admin-fire-layout option {
  color: #07152b;
  background: #ffffff;
}

/* Globale table/th ist hell (#b6d6f8) — auf weißen Karten im Admin dunkel erzwingen */
#adminView.admin-fire-layout table th,
#adminView.admin-fire-layout table td {
  color: #07152b;
}

#adminView.admin-fire-layout table th {
  font-weight: 700;
  color: #1e293b;
}

#adminView.admin-fire-layout .api-table code {
  color: #253246;
}

#adminView.admin-fire-layout .admin-page.hidden {
  display: none !important;
}

#adminView.admin-fire-layout .admin-page.active {
  display: block !important;
}

#customerView .card,
#customerView .soft-box,
#customerView .fire-card {
  color: #07152b;
  background: #fff;
}

#customerView .hidden {
  display: none !important;
}

/* Login / Topbar / Debug: dunkles Theme. Admin-Inhaltskarten nur über #adminView.admin-fire-layout (oben). */
#appPanel > .topbar,
#loginPanel.card,
#debugSection.card {
  color: #eaf4ff;
}

#loginPanel h2,
#loginPanel label,
#appPanel > .topbar strong {
  color: #eaf4ff;
}

#loginPanel .muted,
#appPanel > .topbar .muted {
  color: #a9bfd6;
}

#loginPanel input,
#loginPanel select,
#loginPanel textarea {
  color: #f4fbff;
  background: var(--customer-theme-toggle-bg, rgba(5, 12, 22, 0.78));
  border-color: var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.35));
}

#loginPanel input::placeholder,
#loginPanel textarea::placeholder {
  color: #8fa1b4;
  opacity: 1;
}

#loginPanel button {
  position: relative;
  z-index: 1;
}

#customerView .customer-page.active,
#customerView .server-tab.active {
  display: block !important;
}

#customerView .server-tab.hidden {
  display: none !important;
}

#appPanel.admin-mode > .topbar {
  display: none !important;
}

#appPanel.customer-mode > .topbar {
  display: none !important;
}

#customerView .fire-management,
#customerView .fire-management-content,
#customerView .server-tab,
#customerView .info-grid,
#customerView .info-grid > div {
  color: #07152b;
  background: #ffffff;
}

#customerView .server-tab h2,
#customerView .server-tab h3 {
  color: #07152b;
}

#customerView .info-grid {
  gap: 18px;
}

#customerView .info-grid > div {
  padding: 16px;
  border: 1px solid #dde4ec;
  border-radius: 10px;
}

#customerView .info-grid p {
  margin: 0;
  color: #344256;
  border-bottom: 1px solid #e5ebf2;
}

#customerView .info-grid p:last-child {
  border-bottom: 0;
}

#customerView .info-grid strong {
  color: #07152b;
  text-align: right;
}

#customerView .eye-toggle {
  color: #07152b;
  background: #eef3f8;
  border-color: #cbd7e5;
}

#customerView .eye-toggle:hover {
  color: #07152b;
  background: #e3edf7;
  border-color: #aebdd0;
}

#customerView .fire-power-actions button.ghost {
  color: var(--customer-theme-accent, #ff5a00);
  background: #ffffff;
  border-color: var(--customer-theme-accent, #ff5a00);
}

#customerView .fire-power-actions button.ghost:disabled {
  color: #9aa8bb;
  background: #f4f7fb;
  border-color: #d7e0eb;
  opacity: 1;
}

#customerView .accounting-row {
  gap: 22px;
  align-items: center;
}

#customerView .accounting-row span {
  min-width: 82px;
}

#customerView .accounting-row strong {
  flex: 1;
  text-align: right;
  line-height: 1.25;
}

#customerView .list-card,
#customerView .ticket-card {
  color: #07152b;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 10px;
}

#customerView .ticket-card p,
#customerView .ticket-card strong,
#customerView .ticket-card label {
  color: #07152b;
}

#customerView .ticket-card .muted {
  color: #68758a;
}

.ticket-replies {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.ticket-reply {
  padding: 10px 12px;
  border: 1px solid rgba(151, 180, 211, 0.28);
  border-radius: 8px;
  background: rgba(151, 180, 211, 0.08);
}

.ticket-reply.admin-reply {
  border-color: rgba(255, 90, 0, 0.35);
  background: rgba(255, 90, 0, 0.08);
}

.ticket-reply p {
  margin: 6px 0 0;
}

.ticket-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#customerView .ticket-reply-form input,
#customerView .ticket-reply-form textarea,
#customerView .ticket-form input,
#customerView .ticket-form textarea,
#customerView .ticket-form select {
  color: #07152b;
  background: #ffffff;
  border-color: #d8dee8;
}

#customerView #statusPageLinkWrap {
  color: #344256;
  margin-top: 12px;
}

#customerView #statusPageLink {
  color: #0b68b7;
}

/* Standard hell: html[data-customer-shell="classic"] — Neon/Glass: html[data-customer-shell="neon"] */
html[data-customer-shell="neon"] body.customer-active {
  color: #e8eef5;
  background-color: #050508;
  background-image: radial-gradient(90% 65% at 18% 12%, rgba(236, 72, 153, 0.24), transparent 58%),
    radial-gradient(80% 55% at 85% 22%, rgba(34, 211, 238, 0.2), transparent 55%),
    radial-gradient(70% 50% at 48% 100%, rgba(167, 139, 250, 0.18), transparent 55%), var(--customer-theme-scene-bg, #0a0c14);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, auto, auto, cover, cover, cover;
  background-attachment: fixed;
}

@media (hover: none) and (pointer: coarse) {
  html[data-customer-shell="neon"] body.customer-active {
    background-attachment: scroll;
  }
}

html[data-customer-shell="classic"] body.customer-active {
  color: #07152b;
  background-color: var(--customer-theme-page-bg, #eef3f8);
  background-image: var(--customer-theme-scene-bg, linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
}

body.customer-active .bg-orb {
  display: none;
}

body.customer-active .layout {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

html[data-customer-shell="classic"] body.customer-active #appPanel {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: var(--customer-theme-page-bg, #eef3f8);
  border: 0;
  box-shadow: none;
}

html[data-customer-shell="neon"] body.customer-active #appPanel {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-customer-shell="classic"] body.customer-active #customerView.fire-layout {
  width: 100vw;
  min-height: 100vh;
  background: var(--customer-theme-page-bg, #eef3f8);
}

html[data-customer-shell="neon"] body.customer-active #customerView.fire-layout {
  width: 100vw;
  min-height: 100vh;
  background: transparent;
}

body.admin-active {
  color: #07152b;
  background: #eef3f8;
}

body.admin-active .bg-orb {
  display: none;
}

body.admin-active .layout {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.admin-active #appPanel {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: #eef3f8;
  border: 0;
  box-shadow: none;
}

body.admin-active #adminView.admin-fire-layout {
  width: 100vw;
  min-height: 100vh;
}

#appPanel.admin-mode #debugSection {
  display: none !important;
}

html[data-customer-shell="classic"] body.customer-active .fire-main {
  position: relative;
  z-index: 5;
  min-width: 0;
  overflow: visible;
}

html[data-customer-shell="neon"] body.customer-active .fire-main {
  position: relative;
  z-index: 5;
  min-width: 0;
  color: #e2e8f0;
  overflow: visible;
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-topbar,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-topbar {
  justify-content: flex-end;
  height: auto;
  min-height: 55px;
  padding: 10px 28px 12px;
  margin: 0 -28px 26px;
  position: relative;
  z-index: 10000;
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-topbar {
  color: #253246;
  background: var(--customer-theme-page-bg, #f7f9fc);
  box-shadow: 0 12px 30px rgba(43, 56, 74, 0.16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-topbar {
  color: rgba(248, 250, 252, 0.95);
  background: rgba(6, 8, 18, 0.38);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

html[data-customer-shell="classic"] body.customer-active #customerView .panel-theme-picker,
html[data-customer-shell="neon"] body.customer-active #customerView .panel-theme-picker {
  z-index: 10001;
}

html[data-customer-shell="classic"] body.customer-active #customerView .panel-theme-picker__summary {
  background: #fff;
  border-color: #c5d0df;
  color: #253246;
}

html[data-customer-shell="neon"] body.customer-active #customerView .panel-theme-picker__summary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

html[data-customer-shell="classic"] body.customer-active #customerView .panel-theme-picker[open] .panel-theme-picker__summary {
  border-color: #94a3b8;
  background: #f4f7fb;
}

html[data-customer-shell="classic"] body.customer-active #customerView .panel-theme-picker__panel {
  border: 1px solid #d9e2ed;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(31, 45, 61, 0.18);
}

html[data-customer-shell="classic"] body.customer-active #customerView .panel-theme-picker__hint {
  color: #64748b;
}

html[data-customer-shell="neon"] body.customer-active #customerView .panel-theme-picker[open] .panel-theme-picker__summary {
  border-color: rgba(var(--customer-theme-accent-rgb), 0.45);
  background: rgba(8, 10, 22, 0.55);
}

html[data-customer-shell="classic"] body.customer-active #customerView .customer-page > .row-between h2,
html[data-customer-shell="classic"] body.customer-active #customerView .customer-page > .fire-breadcrumb {
  color: #07152b;
}

html[data-customer-shell="classic"] body.customer-active #customerView .customer-page > .row-between .muted {
  color: #5a6b7d;
}

html[data-customer-shell="neon"] body.customer-active #customerView .customer-page > .row-between h2,
html[data-customer-shell="neon"] body.customer-active #customerView .customer-page > .fire-breadcrumb {
  color: #f8fafc;
}

html[data-customer-shell="neon"] body.customer-active #customerView .customer-page > .row-between .muted {
  color: rgba(226, 232, 240, 0.72);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-sidebar {
  position: relative;
  z-index: 1;
  background: var(--customer-theme-sidebar-bg, #f8fafc);
  border-right: 1px solid #dde4ec;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-sidebar {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--customer-theme-sidebar-bg, #111820) 42%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-version {
  color: #1f2937;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-version {
  color: rgba(248, 250, 252, 0.85);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-nav button,
html[data-customer-shell="classic"] body.customer-active #customerView .fire-subnav button,
html[data-customer-shell="classic"] body.customer-active #customerView .server-item {
  color: #263244;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-nav button,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-subnav button,
html[data-customer-shell="neon"] body.customer-active #customerView .server-item {
  color: rgba(226, 232, 240, 0.9);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-subnav {
  border-left-color: #e1e6ee;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-subnav {
  border-left-color: rgba(255, 255, 255, 0.12);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-breadcrumb,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-breadcrumb {
  color: var(--customer-theme-accent, #ff5a00);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-nav button:hover,
html[data-customer-shell="classic"] body.customer-active #customerView .fire-nav button.active,
html[data-customer-shell="classic"] body.customer-active #customerView .server-item:hover,
html[data-customer-shell="classic"] body.customer-active #customerView .server-item.active {
  color: var(--customer-theme-accent, #ff5a00);
  background: #e2e4e8;
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-nav button:hover,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-nav button.active,
html[data-customer-shell="neon"] body.customer-active #customerView .server-item:hover,
html[data-customer-shell="neon"] body.customer-active #customerView .server-item.active {
  color: var(--customer-theme-accent, #ff5a00);
  background: rgba(255, 255, 255, 0.08);
}

html[data-customer-shell="classic"] body.customer-active #customerView .fire-management-nav button.active,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-management-nav button.active {
  color: var(--customer-theme-accent, #ff5a00);
}

html[data-customer-shell="classic"] body.customer-active #customerView .usage-fill,
html[data-customer-shell="neon"] body.customer-active #customerView .usage-fill {
  background: var(--customer-theme-accent, #ff5a00);
}

#customerView .server-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#customerView .server-title-actions button {
  padding: 8px 12px;
}

#customerView .server-empty {
  padding: 10px 12px;
  color: #68758a;
  font-weight: 700;
}

#customerView button.ghost {
  color: #07152b;
  background: #ffffff;
  border-color: #cbd7e5;
}

#customerView button:disabled,
#customerView button.ghost:disabled,
#customerView .fire-power-actions button.ghost:disabled {
  color: #6c7890;
  background: #f3f7fb;
  border-color: #cbd7e5;
  opacity: 1;
  filter: none;
}

#customerView .fire-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#customerView .fire-tool-grid button {
  min-height: 84px;
  line-height: 1.25;
}

#customerView .support-empty {
  position: relative;
  min-height: 360px;
  padding: 58px 16px;
  color: #07152b;
  background: #ffffff;
  border-color: #d9e2ed;
  border-radius: 10px;
  overflow: hidden;
}

#customerView .support-hero {
  position: absolute;
  top: 102px;
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  font-size: 8rem;
  line-height: 1;
  color: #ff6a00;
  opacity: 0.18;
  pointer-events: none;
}

#customerView .support-empty-box {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

#customerView .support-empty-box h2,
#customerView .support-empty-box p {
  color: #07152b;
}

#customerView .ticket-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: #07152b;
  background: #ffffff;
  border: 1px solid #d9e2ed;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(31, 45, 61, 0.08);
}

#customerView .ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#customerView .ticket-title {
  display: block;
  margin-bottom: 6px;
  color: #07152b;
  font-size: 1.05rem;
  line-height: 1.35;
}

#customerView .ticket-meta,
#customerView .ticket-message-text,
#customerView .ticket-closed-note {
  margin: 0;
  color: #314158;
}

#customerView .ticket-message-text {
  padding: 12px 14px;
  background: #f6f8fb;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
}

#customerView .ticket-card .pill.ok {
  color: #0a7a4f;
  background: #def7eb;
}

#customerView .ticket-card .pill.locked {
  color: #9b1f2b;
  background: #fde5e6;
}

#customerView .ticket-reply {
  color: #07152b;
  background: #f6f8fb;
  border-color: #e1e8f0;
}

#customerView .ticket-reply.admin-reply {
  background: rgba(var(--customer-theme-accent-rgb), 0.1);
  border-color: rgba(var(--customer-theme-accent-rgb), 0.35);
}

#customerView .ticket-reply strong,
#customerView .ticket-reply p,
#customerView .ticket-reply span {
  color: #07152b;
}

#customerView .ticket-actions,
#customerView .backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#customerView .ticket-form,
#customerView .ticket-reply-form {
  color: #07152b;
}

#customerView .ticket-footer {
  gap: 10px;
  align-items: center;
}

#customerView .ticket-footer button.ghost {
  color: #07152b;
  background: #ffffff;
  border-color: #cbd7e5;
}

#customerView .backup-card {
  display: grid;
  gap: 8px;
}

#customerView .backup-slot-note {
  padding: 10px 12px;
  color: #314158;
  background: #f6f8fb;
  border: 1px solid #d9e2ed;
  border-radius: 8px;
  font-weight: 700;
}

#customerView .backup-slot-note.limit {
  color: #9b1f2b;
  background: #fde5e6;
  border-color: #f7b4ba;
}

#customerView .backup-actions button.ghost {
  color: var(--customer-theme-accent, #ff5a00);
  background: #ffffff;
  border-color: var(--customer-theme-accent, #ff5a00);
}

#customerView .backup-actions button.danger {
  color: #ffffff;
  background: #ea4f55;
  border-color: #ea4f55;
}

@media (max-width: 760px) {
  body.customer-active #customerView.fire-layout {
    grid-template-columns: 1fr;
  }

  #customerView .fire-sidebar {
    position: static;
    height: auto;
  }

  #customerView .ticket-head {
    display: grid;
  }
}

/* Final customer readability and reinstall polish */
#customerView #serverSubtitle {
  display: none !important;
}

#customerView #renameServerBtn,
#customerView #refreshServerBtn,
#customerView #loadReinstallOptionsBtn,
#customerView #unmountIsoBtn,
#customerView .ticket-footer button.ghost {
  color: #07152b !important;
  background: #ffffff !important;
  border: 1px solid #b8c8d9 !important;
  box-shadow: 0 2px 8px rgba(31, 45, 61, 0.06) !important;
}

#customerView #renameServerBtn:hover,
#customerView #refreshServerBtn:hover,
#customerView #loadReinstallOptionsBtn:hover,
#customerView #unmountIsoBtn:hover,
#customerView .ticket-footer button.ghost:hover {
  color: #07152b !important;
  background: #f4f8fc !important;
  border-color: #92a8bf !important;
}

#customerView #renameServerBtn:disabled,
#customerView #refreshServerBtn:disabled,
#customerView #loadReinstallOptionsBtn:disabled,
#customerView #unmountIsoBtn:disabled {
  color: #6d7b8f !important;
  background: #eef3f8 !important;
  border-color: #c4d2e1 !important;
  opacity: 1 !important;
}

#customerView .support-hero {
  top: 168px;
  font-size: 9rem;
  opacity: 0.12;
}

/* Reinstall-Tab: kein verschachteltes „Zweitfenster“ — nutzt den gleichen Raum wie die anderen Verwaltungs-Tabs */
#customerView #reinstallCard.reinstall-tab {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#customerView #reinstallCard > h2:first-of-type {
  margin-top: 0;
}

#customerView #reinstallCard > p:first-of-type {
  color: #314158;
  max-width: 980px;
  margin-top: 0;
}

#customerView #reinstallCard .os-grid {
  margin: 18px 0 22px;
}

#customerView #reinstallCard .os-option {
  min-height: 76px;
  color: #07152b;
  background: #f8fafc;
  border: 1px solid #d9e2ed;
  border-radius: 12px;
  box-shadow: none;
}

#customerView #reinstallCard .os-option:hover {
  background: #fff8f3;
  border-color: #ffb17a;
}

#customerView #reinstallCard .os-option.active {
  color: #c2410c;
  background: #fff4ec;
  border-color: var(--customer-theme-accent, #ff5a00);
  box-shadow: inset 0 0 0 1px rgba(var(--customer-theme-accent-rgb), 0.28);
}

#customerView #reinstallCard .reinstall-iso-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e6ecf4;
}

#customerView #reinstallCard .reinstall-iso-section h2 {
  margin-top: 0;
}

#customerView #reinstallCard .reinstall-iso-section > p {
  color: #314158;
  margin-top: 6px;
}

#customerView #reinstallCard select,
#customerView #reinstallCard input,
#customerView #reinstallCard textarea {
  color: #07152b;
  background: #ffffff;
  border-color: #cbd7e5;
}

#customerView #reinstallCard .inline-form {
  align-items: stretch;
}

#customerView #reinstallStatus {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  color: #314158;
  font-weight: 700;
}

.admin-accounting-card {
  grid-column: 1 / -1;
}

.accounting-header {
  align-items: flex-start;
  gap: 18px;
}

.accounting-header label {
  min-width: 220px;
}

.accounting-actions,
.accounting-detail-form {
  margin-top: 12px;
}

.accounting-actions button,
.accounting-detail-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.method-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 6px;
  color: #31e8aa;
  border: 1px solid rgba(49, 232, 170, 0.75);
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.2;
}

.api-overview {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.empty-state {
  padding: 18px;
  color: #a9bfd6;
  border: 1px dashed rgba(151, 180, 211, 0.35);
  border-radius: 12px;
  background: rgba(4, 13, 24, 0.42);
}

.error-state {
  color: #ffd6d8;
  border-color: rgba(234, 79, 85, 0.58);
  background: rgba(234, 79, 85, 0.1);
}

.api-result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.24));
  border-radius: 10px;
  background: var(--customer-theme-toggle-bg, rgba(2, 12, 22, 0.52));
}

.api-result-header > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.api-result-header strong {
  overflow-wrap: anywhere;
}

.api-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.api-stat {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.24));
  border-radius: 10px;
  background: var(--customer-theme-toggle-bg, rgba(6, 15, 24, 0.7));
}

.api-stat span {
  display: block;
  color: #a9bfd6;
  font-size: 0.82rem;
}

.api-stat strong {
  display: block;
  margin-top: 7px;
  color: #f4fbff;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.api-table-wrap {
  max-height: 460px;
  border: 1px solid rgba(151, 180, 211, 0.2);
  border-radius: 10px;
}

.api-table {
  min-width: 760px;
}

.api-table code {
  color: #d7efff;
  white-space: nowrap;
}

.api-json-preview {
  max-height: 430px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #dcecff;
  border: 1px solid var(--customer-theme-toggle-border, rgba(151, 180, 211, 0.24));
  border-radius: 10px;
  background: var(--customer-theme-toggle-bg, rgba(2, 12, 22, 0.65));
}

#adminView .api-overview a {
  color: #7ce9ff;
}

@media (max-width: 900px) {
  .api-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-header {
    display: block;
  }

  .accounting-header label {
    display: block;
    min-width: 0;
    margin-top: 12px;
  }
}

/* Kundenpanel: Glass nur bei Neon-Shell */
html[data-customer-shell="classic"] body.customer-active #customerView #fireTopIdentity {
  color: #253246;
}

html[data-customer-shell="neon"] body.customer-active #customerView #fireTopIdentity {
  color: rgba(248, 250, 252, 0.92);
}

html[data-customer-shell="neon"] body.customer-active #customerView .card,
html[data-customer-shell="neon"] body.customer-active #customerView .soft-box,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-card {
  color: #f1f5f9 !important;
  background: rgba(8, 10, 22, 0.48) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

html[data-customer-shell="neon"] body.customer-active #customerView .fire-management,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-management-content,
html[data-customer-shell="neon"] body.customer-active #customerView .server-tab,
html[data-customer-shell="neon"] body.customer-active #customerView .info-grid,
html[data-customer-shell="neon"] body.customer-active #customerView .info-grid > div {
  color: #e2e8f0 !important;
  background: rgba(8, 10, 22, 0.38) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .server-tab h2,
html[data-customer-shell="neon"] body.customer-active #customerView .server-tab h3,
html[data-customer-shell="neon"] body.customer-active #customerView .info-grid strong {
  color: #f8fafc !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .info-grid p,
html[data-customer-shell="neon"] body.customer-active #customerView .info-grid h4 {
  color: rgba(226, 232, 240, 0.9) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .muted {
  color: rgba(186, 198, 214, 0.88) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .list-card,
html[data-customer-shell="neon"] body.customer-active #customerView .ticket-card {
  color: #f1f5f9 !important;
  background: rgba(8, 10, 22, 0.45) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .ticket-card .muted {
  color: rgba(186, 198, 214, 0.85) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .notice {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #e0f2fe !important;
  border-color: rgba(59, 130, 246, 0.38) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .notice.error {
  background: rgba(248, 113, 113, 0.14) !important;
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .support-empty {
  color: #f1f5f9 !important;
  background: rgba(8, 10, 22, 0.42) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .support-empty-box h2,
html[data-customer-shell="neon"] body.customer-active #customerView .support-empty-box p {
  color: #f8fafc !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .server-empty {
  color: rgba(226, 232, 240, 0.75) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView #statusPageLinkWrap {
  color: rgba(226, 232, 240, 0.85) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView #statusPageLink {
  color: #7dd3fc !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView button.ghost {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView button.ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView button:disabled,
html[data-customer-shell="neon"] body.customer-active #customerView button.ghost:disabled,
html[data-customer-shell="neon"] body.customer-active #customerView .fire-power-actions button.ghost:disabled {
  color: rgba(148, 163, 184, 0.85) !important;
  background: rgba(8, 10, 18, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView #renameServerBtn,
html[data-customer-shell="neon"] body.customer-active #customerView #refreshServerBtn,
html[data-customer-shell="neon"] body.customer-active #customerView #loadReinstallOptionsBtn,
html[data-customer-shell="neon"] body.customer-active #customerView #unmountIsoBtn,
html[data-customer-shell="neon"] body.customer-active #customerView .ticket-footer button.ghost {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView #renameServerBtn:hover,
html[data-customer-shell="neon"] body.customer-active #customerView #refreshServerBtn:hover,
html[data-customer-shell="neon"] body.customer-active #customerView #loadReinstallOptionsBtn:hover,
html[data-customer-shell="neon"] body.customer-active #customerView #unmountIsoBtn:hover,
html[data-customer-shell="neon"] body.customer-active #customerView .ticket-footer button.ghost:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView #renameServerBtn:disabled,
html[data-customer-shell="neon"] body.customer-active #customerView #refreshServerBtn:disabled,
html[data-customer-shell="neon"] body.customer-active #customerView #loadReinstallOptionsBtn:disabled,
html[data-customer-shell="neon"] body.customer-active #customerView #unmountIsoBtn:disabled {
  color: rgba(148, 163, 184, 0.75) !important;
  background: rgba(6, 8, 16, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-customer-shell="neon"] body.customer-active #customerView .lock-banner {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

html[data-customer-shell="neon"] body.customer-active #customerView table th,
html[data-customer-shell="neon"] body.customer-active #customerView table td {
  color: #e2e8f0;
}

@supports not (background: color-mix(in srgb, red, blue)) {
  html[data-customer-shell="neon"] body.customer-active #customerView .fire-sidebar {
    background: rgba(14, 16, 28, 0.58);
  }
}
