:root {
  --bg-base: #04101d;
  --bg-deep: #071a2d;
  --bg-mid: #0d223a;
  --bg-soft: #123252;
  --panel: rgba(8, 20, 36, 0.82);
  --panel-strong: rgba(10, 24, 43, 0.93);
  --panel-muted: rgba(12, 29, 50, 0.68);
  --line: rgba(198, 207, 221, 0.18);
  --line-strong: rgba(207, 173, 102, 0.42);
  --text: #e8eef7;
  --muted: #bcc9d9;
  --silver: #c7d0dd;
  --gold: #b79553;
  --gold-strong: #ddc27f;
  --danger: #c97972;
  --ok: #73a486;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(28, 68, 115, 0.5), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(191, 155, 88, 0.09), transparent 20%),
    linear-gradient(180deg, #040c17 0%, var(--bg-base) 28%, var(--bg-deep) 62%, #030913 100%);
  line-height: 1.55;
}

.dashboard-page {
  background-image:
    linear-gradient(180deg, rgba(3, 10, 18, 0.56) 0%, rgba(3, 10, 18, 0.62) 100%),
    url("/dashboard/public/assets/dashboard_hintergrund.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 165, 223, 0.14), transparent 18%),
    radial-gradient(circle at 76% 10%, rgba(216, 188, 121, 0.08), transparent 16%),
    radial-gradient(circle at 50% 120%, rgba(24, 54, 93, 0.55), transparent 38%);
  filter: blur(18px);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.16;
}

html {
  scrollbar-color: rgba(205, 177, 112, 0.72) rgba(5, 15, 27, 0.86);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 15, 27, 0.86);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(221, 194, 127, 0.88), rgba(120, 172, 235, 0.72));
  border: 2px solid rgba(5, 15, 27, 0.86);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(230, 204, 142, 0.94), rgba(139, 186, 244, 0.8));
}

.midgard-body {
  min-height: 100vh;
  position: relative;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.backdrop::before {
  background:
    radial-gradient(circle at 50% -10%, rgba(119, 180, 255, 0.22), transparent 24%),
    radial-gradient(circle at 52% 16%, rgba(255, 224, 155, 0.1), transparent 12%),
    radial-gradient(circle at 14% 78%, rgba(24, 56, 99, 0.42), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(183, 149, 83, 0.08), transparent 18%);
}

.backdrop::after {
  background:
    linear-gradient(135deg, transparent 0%, rgba(183, 149, 83, 0.06) 45%, transparent 100%),
    radial-gradient(circle at center, transparent 60%, rgba(2, 6, 14, 0.45) 100%);
}

a {
  color: inherit;
}

h1,
h2,
h3,
.auth-wordmark,
.sidebar-title,
.panel-head h2,
.card h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  font-weight: 700;
}

p,
li,
input,
select,
textarea,
button,
th,
td,
.small,
.hint,
.subtitle {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.dashboard-page .card h3,
.dashboard-page .sidebar-nav a,
.dashboard-page th,
.dashboard-page .btn,
.dashboard-page label,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page .row {
  letter-spacing: 0.01em;
}

.small,
.hint,
.subtitle,
.panel-head p,
.sidebar-meta,
.auth-copy,
.auth-footer,
.env-item span {
  color: var(--muted);
}

.hint,
.small,
.subtitle {
  font-size: 0.95rem;
}

.layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.layout-dashboard {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.25rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0.7rem;
  height: calc(100vh - 1.4rem);
  align-self: start;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 27, 0.82), rgba(7, 18, 33, 0.7)),
    radial-gradient(circle at top, rgba(166, 203, 255, 0.08), transparent 30%);
  border: 1px solid rgba(214, 227, 244, 0.14);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.sidebar-top {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

@media (max-height: 900px) and (min-width: 1081px) {
  .sidebar-top,
  .sidebar-bottom {
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .sidebar-brand-large {
    padding: 1rem;
  }

  .sidebar-title {
    font-size: 1.55rem;
  }

  .sidebar-meta {
    font-size: 0.92rem;
  }

  .sidebar-runes {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.26em;
  }

  .sidebar-note {
    margin-top: 0.7rem;
    font-size: 0.88rem;
  }

  .sidebar-nav {
    gap: 0.5rem;
  }

  .sidebar-nav a {
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
  }

  .sidebar-nav-copy strong {
    font-size: 0.92rem;
  }

  .sidebar-nav-copy small {
    font-size: 0.76rem;
  }

  .sidebar-bottom .btn {
    padding: 0.72rem 0.95rem;
  }
}

@media (max-height: 780px) and (min-width: 1081px) {
  .sidebar-note {
    display: none;
  }
}

.sidebar-brand {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(199, 208, 221, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 36, 61, 0.48), rgba(8, 17, 31, 0.66)),
    radial-gradient(circle at top, rgba(222, 194, 127, 0.18), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-brand-large {
  padding: 1.3rem;
  border-radius: 26px;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.sidebar-profile-copy {
  display: grid;
  gap: 0.25rem;
}

.sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(221, 194, 127, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.sidebar-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(183, 149, 83, 0.24), rgba(68, 109, 165, 0.26));
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.sidebar-note {
  margin: 0.95rem 0 0;
  font-size: 0.96rem;
  color: rgba(232, 238, 247, 0.82);
}

.sidebar-kicker,
.eyebrow,
.kicker {
  margin: 0 0 0.45rem 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
}

.sidebar-runes {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(221, 194, 127, 0.16);
  color: rgba(221, 194, 127, 0.7);
  letter-spacing: 0.38em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.sidebar-meta {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-logout-form {
  margin-top: auto;
  padding-top: 0.3rem;
  padding-bottom: 0.2rem;
}

.sidebar-logout-btn {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
}

.sidebar-nav a {
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  border-radius: 15px;
  border: 1px solid rgba(199, 208, 221, 0.08);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, color 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.sidebar-nav a.is-active {
  border-color: rgba(221, 194, 127, 0.26);
  background: linear-gradient(90deg, rgba(183, 149, 83, 0.16), rgba(100, 130, 171, 0.18));
  color: #f5f7fb;
  transform: translateX(3px);
}

.sidebar-nav-rune {
  color: var(--gold-strong);
  font-size: 0.92rem;
  text-align: center;
}

.sidebar-nav-copy {
  display: grid;
  gap: 0.1rem;
}

.sidebar-nav-copy strong {
  font-size: 0.93rem;
}

.sidebar-nav-copy small {
  color: rgba(232, 238, 247, 0.6);
  font-size: 0.77rem;
}

.sidebar-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(221, 194, 127, 0.14);
  background: rgba(8, 18, 31, 0.32);
}

.sidebar-quick-links {
  display: grid;
  gap: 0.6rem;
}

.sidebar-quick-link {
  text-decoration: none;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(199, 208, 221, 0.08);
  color: var(--text);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.sidebar-quick-link:hover,
.sidebar-quick-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(221, 194, 127, 0.24);
  background: rgba(183, 149, 83, 0.09);
}

.content {
  padding: 0.2rem 0 1.5rem;
  display: grid;
  gap: 1.6rem;
}

.content-dashboard {
  align-content: start;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 27, 47, 0.58), rgba(7, 17, 31, 0.48)),
    radial-gradient(circle at top right, rgba(131, 169, 220, 0.12), transparent 32%);
  border: 1px solid rgba(199, 208, 221, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(221, 194, 127, 0.05), transparent 30%, transparent 70%, rgba(115, 164, 134, 0.04));
  pointer-events: none;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.78rem;
}

.panel-head p {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  max-width: 68ch;
}

.panel-hero {
  background:
    linear-gradient(180deg, rgba(13, 27, 47, 0.46), rgba(7, 17, 31, 0.38)),
    radial-gradient(circle at top right, rgba(131, 169, 220, 0.18), transparent 38%);
}

.overview-banner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid rgba(221, 194, 127, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(21, 43, 71, 0.52), rgba(9, 20, 35, 0.58)),
    radial-gradient(circle at top, rgba(128, 173, 231, 0.18), transparent 35%);
}

.overview-copy h2 {
  margin: 0;
  font-size: 2.15rem;
}

.overview-copy p {
  margin: 0.55rem 0 0;
  max-width: 64ch;
  color: var(--muted);
}

.overview-runes {
  align-self: center;
  color: rgba(221, 194, 127, 0.72);
  font-size: 1.1rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(199, 208, 221, 0.12);
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(13, 29, 50, 0.58), rgba(8, 18, 31, 0.52)),
    radial-gradient(circle at top right, rgba(221, 194, 127, 0.12), transparent 28%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(221, 194, 127, 0.28);
}

.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
}

.card-headline {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.card-headline p {
  margin: 0;
}

.card-wide {
  padding: 1.35rem;
}

.card-form-block {
  padding: 1.35rem;
}

.card-overview-block {
  min-height: 100%;
}

.card.stat {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card.stat h3 {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.card.stat p {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1rem, 2.8rem);
  font-weight: 800;
  color: var(--gold-strong);
}

.row {
  padding: 0.85rem 0;
  border-bottom: 0;
}

.row:last-child {
  border-bottom: 0;
}

.row strong {
  color: var(--gold-strong);
}

.row-highlight {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.row-title {
  font-weight: 700;
}

.row-meta {
  color: var(--muted);
  text-align: right;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.stack.compact {
  margin-bottom: 1.2rem;
}

.form-block {
  padding-bottom: 0.2rem;
  border-bottom: 0 !important;
  box-shadow: none;
}

.form-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0 !important;
}

.card-form-block .stack.compact.form-block {
  border-bottom: 0 !important;
}

.card-form-block .stack.compact.form-block + .stack.compact.form-block {
  border-top: 0 !important;
}

.inline-form,
.toolbar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.toolbar-between {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(199, 208, 221, 0.16);
  background: rgba(4, 11, 20, 0.64);
  color: var(--text);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(167, 181, 199, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(221, 194, 127, 0.52);
  box-shadow: 0 0 0 4px rgba(221, 194, 127, 0.08);
  background: rgba(5, 13, 23, 0.96);
}

.btn {
  border: 1px solid rgba(199, 208, 221, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(39, 58, 84, 0.92), rgba(20, 33, 53, 0.92));
  color: var(--text);
  cursor: pointer;
  padding: 0.88rem 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(221, 194, 127, 0.24);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(90deg, #8f7240 0%, #b79553 48%, #d5bb7c 100%);
  color: #111a27;
  border-color: transparent;
}

.btn-ghost {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
}

.btn-discord {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #4a5bbd 0%, #6478d8 100%);
  color: #f7f9ff;
  border-color: rgba(122, 148, 255, 0.3);
  box-shadow: 0 18px 28px rgba(27, 42, 91, 0.28);
}

.btn-discord:hover,
.btn-discord:focus-visible {
  background: linear-gradient(90deg, #4150a7 0%, #5d6fd0 100%);
  box-shadow: 0 0 18px rgba(90, 160, 255, 0.35), 0 4px 12px rgba(27, 42, 91, 0.3);
}

.btn-discord svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.env-groups {
  display: grid;
  gap: 1rem;
}

.env-tools {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.env-tools-hint {
  margin: 0;
  font-size: 0.82rem;
}

.env-group {
  border: 1px solid rgba(221, 194, 127, 0.18);
  border-radius: 18px;
  padding: 1.15rem;
  background: rgba(10, 22, 38, 0.56);
}

.env-group-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.env-group-title-wrap {
  display: grid;
  gap: 0.3rem;
}

.env-group h3 {
  margin: 0;
  font-size: 1.08rem;
}

.env-group-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.env-group-count {
  flex-shrink: 0;
  border: 1px solid rgba(199, 208, 221, 0.2);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.78rem;
  color: var(--silver);
  background: rgba(4, 11, 20, 0.55);
}

.env-group {
  position: relative;
}

.env-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(221, 194, 127, 0.7), rgba(120, 172, 235, 0.35), transparent);
  opacity: 0;
}

.env-group-progression::before,
.env-group-roles::before,
.env-group-modules::before,
.env-group-channels::before {
  opacity: 0.9;
}

.env-group-progression::before {
  background: linear-gradient(90deg, rgba(221, 194, 127, 0.8), rgba(117, 165, 105, 0.42), transparent);
}

.env-group-roles::before {
  background: linear-gradient(90deg, rgba(221, 194, 127, 0.76), rgba(128, 175, 236, 0.4), transparent);
}

.env-group-modules::before {
  background: linear-gradient(90deg, rgba(221, 194, 127, 0.74), rgba(167, 133, 213, 0.36), transparent);
}

.env-group-channels::before {
  background: linear-gradient(90deg, rgba(221, 194, 127, 0.72), rgba(126, 180, 221, 0.42), transparent);
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.env-item {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.52rem 0.58rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.env-item-match {
  border-color: rgba(221, 194, 127, 0.44);
  background: linear-gradient(90deg, rgba(183, 149, 83, 0.16), rgba(120, 172, 235, 0.08));
  box-shadow: 0 0 0 1px rgba(221, 194, 127, 0.16) inset;
}

.env-item span {
  font-size: 0.84rem;
  font-weight: 700;
}

.env-item-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.env-item-key {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.env-item-help {
  font-size: 0.78rem;
  color: rgba(232, 238, 247, 0.68);
  line-height: 1.35;
}

.env-rr-list {
  display: grid;
  gap: 0.45rem;
}

.env-rr-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(199, 208, 221, 0.1);
  background: rgba(4, 11, 20, 0.42);
}

.env-rr-label {
  font-size: 0.88rem;
  color: rgba(232, 238, 247, 0.9);
  font-weight: 700;
}

.env-rr-input {
  width: 100%;
}

.env-rr-picker {
  width: 100%;
}

.env-rr-picker .picker-shell {
  min-height: 48px;
}

.env-boolean-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.env-boolean-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(199, 208, 221, 0.18);
  background: rgba(4, 11, 20, 0.62);
  cursor: pointer;
}

.env-boolean-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cdb170;
}

.env-bool-state {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 700;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-strong);
  letter-spacing: 0.04em;
}

.player-action-title {
  margin: 0.85rem 0 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(199, 208, 221, 0.14);
  color: rgba(232, 238, 247, 0.96);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-form-block .player-action-title:first-of-type {
  margin-top: 0.2rem;
  padding-top: 0;
  border-top: 0;
}

.user-picker {
  display: grid;
  gap: 0.35rem;
}

.option-picker-group {
  display: grid;
  gap: 0.35rem;
}

.picker {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.picker-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 54px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(199, 208, 221, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.74), rgba(5, 13, 23, 0.82)),
    radial-gradient(circle at top right, rgba(118, 172, 238, 0.08), transparent 36%);
}

.picker:focus-within .picker-shell {
  border-color: rgba(221, 194, 127, 0.52);
  box-shadow: 0 0 0 4px rgba(221, 194, 127, 0.08);
}

.picker-search {
  flex: 1 1 180px;
  min-width: 140px;
  border: 0;
  background: transparent;
  padding: 0.3rem 0.2rem;
  color: var(--text);
}

.picker-search:focus {
  box-shadow: none;
  background: transparent;
}

.picker-search::placeholder {
  color: rgba(167, 181, 199, 0.72);
}

.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  padding: 0.28rem 0.4rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: rgba(183, 149, 83, 0.14);
  border: 1px solid rgba(221, 194, 127, 0.24);
  pointer-events: none;
}

.picker-chip-badge,
.picker-chip-label,
.picker-chip-avatar-img {
  pointer-events: none;
}

.picker-chip-badge,
.picker-option-badge {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(94, 136, 191, 0.24);
  color: var(--gold-strong);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.picker-chip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.picker-chip-remove {
  border: 1px solid rgba(199, 208, 221, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  pointer-events: auto;
}

.picker-chip-remove:hover,
.picker-chip-remove:focus-visible {
  background: rgba(201, 121, 114, 0.22);
  border-color: rgba(201, 121, 114, 0.45);
  color: #ffd3cf;
}

.picker-chip-avatar-img,
.picker-option-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.picker-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0;
  max-height: 280px;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid rgba(199, 208, 221, 0.12);
  background: rgba(7, 17, 31, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.picker-menu[hidden] {
  display: none !important;
}

.picker-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 0.62rem;
  align-items: center;
  padding: 0.6rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.picker-option + .picker-option {
  margin-top: 0.24rem;
}

.picker-option:hover,
.picker-option.is-selected {
  border-color: rgba(221, 194, 127, 0.24);
  background: linear-gradient(90deg, rgba(183, 149, 83, 0.12), rgba(100, 130, 171, 0.14));
}

.picker-option-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.picker-option-action {
  border: 1px solid rgba(199, 208, 221, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  padding: 0.34rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  min-width: 88px;
  text-align: center;
}

.picker-option-action:hover,
.picker-option-action:focus-visible {
  border-color: rgba(221, 194, 127, 0.35);
  background: rgba(183, 149, 83, 0.2);
}

.picker-option-action:disabled {
  opacity: 0.62;
  cursor: default;
}

.picker-option-copy strong,
.picker-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-option-copy small,
.picker-option-state,
.picker-empty {
  color: var(--muted);
  font-size: 0.83rem;
}

.picker-empty {
  padding: 0.7rem 0.8rem;
}

.picker-env .picker-chip-label {
  max-width: 160px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(199, 208, 221, 0.12);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.34);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(199, 208, 221, 0.1);
}

th {
  background: rgba(183, 149, 83, 0.08);
  color: var(--gold-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: sticky;
  top: 0;
}

tbody tr:hover {
  background: rgba(221, 194, 127, 0.05);
}

.details-host {
  display: grid;
  gap: 0.9rem;
}

.detail-list {
  display: grid;
  gap: 0.9rem;
}

.detail-item {
  border: 1px solid rgba(199, 208, 221, 0.12);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.28);
  overflow: hidden;
}

.detail-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  align-items: center;
}

.detail-item summary::-webkit-details-marker {
  display: none;
}

.detail-item[open] summary {
  border-bottom: 1px solid rgba(199, 208, 221, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.detail-summary-main {
  font-weight: 700;
}

.detail-summary-meta {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
}

.detail-grid div {
  display: grid;
  gap: 0.22rem;
}

.detail-grid strong {
  color: var(--gold-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-grid-wide {
  grid-column: 1 / -1;
}

.section-hint {
  margin-top: 1rem;
}

.leaderboard-card {
  margin-top: 0.6rem;
}

.warns-panel {
  margin-top: 1.25rem;
  background:
    linear-gradient(180deg, rgba(6, 14, 26, 0.96), rgba(4, 11, 20, 0.95)),
    radial-gradient(circle at top right, rgba(118, 172, 238, 0.08), transparent 34%);
}

.house-points-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.house-points-row input[type="number"] {
  flex: 1 1 100px;
  min-width: 80px;
}

.house-points-row select {
  flex: 1 1 120px;
  min-width: 100px;
}

.house-points-row .btn {
  flex: 0 0 auto;
}

.picker-shell-house {
  min-height: 58px;
  cursor: pointer;
}

.warn-list {
  display: grid;
  gap: 0.55rem;
}

.warn-toolbar {
  margin-bottom: 0.75rem;
}

.warn-toolbar input {
  background: rgba(2, 8, 16, 0.9);
}

.warn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.92);
  box-shadow: inset 0 0 0 1px rgba(199, 208, 221, 0.12);
  position: relative;
}

.warn-row[hidden] {
  display: none !important;
}

.warn-row-info {
  flex: 1;
  display: grid;
  gap: 0.18rem;
}

.warn-target {
  font-weight: 700;
  color: var(--gold-strong);
  font-size: 0.96rem;
}

.warn-reason {
  font-size: 0.94rem;
  color: var(--text);
}

.warn-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.btn-warn-delete {
  flex-shrink: 0;
  border: 1px solid rgba(201, 121, 114, 0.28);
  background: rgba(201, 121, 114, 0.1);
  color: #ffd3cf;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.06rem;
  line-height: 1;
  padding: 0;
  transition: background 150ms ease, border-color 150ms ease;
  pointer-events: auto;
  z-index: 2;
}

.btn-warn-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-warn-delete.is-disabled {
  opacity: 0.55;
  cursor: pointer;
}

.btn-warn-delete:hover,
.btn-warn-delete:focus-visible {
  background: rgba(201, 121, 114, 0.26);
  border-color: rgba(201, 121, 114, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.logs-pagination {
  margin-top: 0.9rem;
  justify-content: center;
  align-items: center;
}

.btn-danger-soft {
  border: 1px solid rgba(201, 121, 114, 0.3);
  background: rgba(201, 121, 114, 0.1);
  color: #ffd3cf;
}

.btn-danger-soft:hover,
.btn-danger-soft:focus-visible {
  background: rgba(201, 121, 114, 0.22);
  border-color: rgba(201, 121, 114, 0.5);
}

.warn-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.warn-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid rgba(199, 208, 221, 0.15);
  background: rgba(4, 11, 20, 0.35);
  border-radius: 12px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.warn-level-low {
  border-color: rgba(115, 164, 134, 0.48);
}

.warn-level-medium {
  border-color: rgba(247, 199, 103, 0.58);
}

.warn-level-high {
  border-color: rgba(201, 121, 114, 0.62);
}

.dashboard-stats,
.overview-secondary-spacious,
.management-grid-spacious,
.moderation-grid {
  gap: 1.35rem;
}

#settings.panel::before {
  opacity: 0;
}

#settings.panel {
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.56), rgba(4, 11, 20, 0.48)),
    radial-gradient(circle at top right, rgba(131, 169, 220, 0.12), transparent 34%);
  backdrop-filter: blur(5px);
}

#settings .card.card-wide {
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.58), rgba(5, 12, 22, 0.5)),
    radial-gradient(circle at top right, rgba(178, 152, 95, 0.13), transparent 36%);
  backdrop-filter: blur(6px);
}

#moderation.panel::before {
  opacity: 0;
}

.moderation-grid .card.card-form-block {
  background:
    linear-gradient(180deg, rgba(6, 14, 26, 0.95), rgba(4, 11, 20, 0.93)),
    radial-gradient(circle at top right, rgba(178, 152, 95, 0.09), transparent 36%);
  backdrop-filter: blur(6px);
}

.moderation-grid .mod-form {
  gap: 0.82rem;
}

.moderation-grid .mod-form input,
.moderation-grid .mod-form select,
.moderation-grid .mod-form .picker-shell {
  background: rgba(2, 8, 16, 0.9);
}

.moderation-grid .mod-form .field-label {
  display: inline-block;
  width: fit-content;
  padding: 0.05rem 0.32rem;
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.92);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  padding: 0.2rem 0;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cdb170;
}

.oauth-notice,
.error,
pre,
.toast {
  border-radius: 16px;
}

.oauth-notice {
  padding: 0.95rem 1rem;
  background: rgba(183, 149, 83, 0.08);
  border: 1px solid rgba(221, 194, 127, 0.18);
  line-height: 1.65;
}

.error {
  color: #ffd3cf;
  padding: 0.9rem 1rem;
  background: rgba(201, 121, 114, 0.14);
  border: 1px solid rgba(201, 121, 114, 0.38);
  margin-bottom: 1rem;
}

pre {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 0.95rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(4, 11, 20, 0.72);
  border: 1px solid rgba(199, 208, 221, 0.12);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(221, 194, 127, 0.24);
  background: rgba(7, 17, 31, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  transform: translateY(150%);
  transition: transform 220ms ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(2, 8, 15, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.confirm-modal[hidden] {
  display: none !important;
}

.confirm-modal-card {
  width: min(460px, 96vw);
  border: 1px solid rgba(199, 208, 221, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 26, 44, 0.96), rgba(8, 18, 31, 0.96));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  padding: 1.05rem 1.1rem;
}

.confirm-modal-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.confirm-modal-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.confirm-modal-actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.auth-layout-login {
  grid-template-columns: 1fr;
  place-items: center;
}

.auth-photo-bg {
  background-image:
    linear-gradient(180deg, rgba(4, 10, 19, 0.18) 0%, rgba(4, 10, 19, 0.10) 35%, rgba(4, 10, 19, 0.22) 100%),
    url("/dashboard/public/assets/dashboard_hintergrund.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.auth-photo-bg::before,
.auth-photo-bg::after {
  display: none;
}

.photo-login-wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.photo-login-card {
  width: min(33vw, 408px);
  min-width: 295px;
  height: min(69vh, 560px);
  min-height: 390px;
  position: absolute;
  left: 50%;
  top: 58.5%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 2.15rem 1.1rem 1.3rem;
  border-radius: 50% 50% 22px 22px / 260px 260px 22px 22px;
  border: none;
  background:
    linear-gradient(180deg, rgba(9, 23, 41, 0.28), rgba(5, 12, 23, 0.22)),
    radial-gradient(circle at 50% 20%, rgba(126, 196, 255, 0.22), transparent 40%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 40px 6px rgba(80, 150, 255, 0.40),
    0 0 80px 12px rgba(50, 110, 220, 0.22);
  animation: card-aura 4s ease-in-out infinite;
}

@keyframes card-aura {
  0%, 100% {
    box-shadow:
      0 22px 44px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 40px 6px rgba(80, 150, 255, 0.40),
      0 0 80px 12px rgba(50, 110, 220, 0.22);
  }
  50% {
    box-shadow:
      0 22px 44px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 65px 12px rgba(80, 150, 255, 0.60),
      0 0 120px 24px rgba(50, 110, 220, 0.35);
  }
}

.photo-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  border-radius: 50% 50% 0 0 / 260px 260px 0 0;
  border: none;
  pointer-events: none;
}

.photo-login-card .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-strong);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 12px rgba(183, 149, 83, 0.45);
}

.photo-login-card h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(2rem, 2vw + 0.9rem, 2.45rem);
}

.photo-login-card .subtitle {
  margin: 0 0 0.95rem;
  font-size: 0.96rem;
}

.photo-login-card .btn-discord {
  margin-top: 0.1rem;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
}

.discord-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.photo-login-note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: rgba(235, 241, 250, 0.84);
}

.auth-hero,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 208, 221, 0.14);
  box-shadow: var(--shadow);
}

.auth-hero {
  min-height: min(80vh, 760px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(9, 22, 40, 0.82), rgba(5, 13, 24, 0.94)),
    radial-gradient(circle at top, rgba(124, 173, 240, 0.12), transparent 38%);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  align-items: end;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(142, 198, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(4, 10, 19, 0) 48%, rgba(4, 10, 19, 0.72) 100%);
  pointer-events: none;
}

.portal-scene {
  position: absolute;
  inset: 1.5rem 1.5rem 8.5rem;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(137, 196, 255, 0.16), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(255, 215, 140, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.28) 0%, rgba(5, 11, 20, 0.82) 78%);
}

.portal-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(151, 212, 255, 0.22), transparent 12%),
    radial-gradient(circle at 50% 26%, rgba(255, 227, 167, 0.06), transparent 8%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.26) 75%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.portal-aura {
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(62vw, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(168, 214, 255, 0.8);
  box-shadow:
    0 0 24px rgba(125, 197, 255, 0.4),
    0 0 64px rgba(125, 197, 255, 0.18),
    inset 0 0 24px rgba(125, 197, 255, 0.12);
  filter: blur(0.2px);
  opacity: 0.9;
  animation: auraPulse 7s ease-in-out infinite;
}

.portal-aura::before,
.portal-aura::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(120, 193, 255, 0.38);
}

.portal-aura::after {
  inset: 10px;
  border-color: rgba(255, 221, 156, 0.14);
}

.portal-arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(58vw, 380px);
  height: min(66vh, 420px);
  transform: translateX(-50%);
}

.portal-arch::before,
.portal-arch::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 245px;
  border-radius: 14px 14px 8px 8px;
  background:
    linear-gradient(180deg, #7f8997 0%, #66707d 18%, #4f5966 55%, #3c434d 100%);
  border: 1px solid rgba(223, 232, 246, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    inset 10px 0 18px rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.38);
}

.portal-arch::before {
  left: 0;
}

.portal-arch::after {
  right: 0;
}

.portal-top {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(100% - 82px);
  height: 168px;
  transform: translateX(-50%);
  border-radius: 160px 160px 0 0;
  background:
    linear-gradient(180deg, #867f74 0%, #6f6a63 20%, #544f49 62%, #403d3a 100%);
  border: 1px solid rgba(223, 232, 246, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    inset 0 12px 18px rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.portal-top::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -96px;
  width: calc(100% - 68px);
  height: 164px;
  transform: translateX(-50%);
  border-radius: 120px 120px 0 0;
  background: rgba(8, 18, 31, 0.94);
  box-shadow:
    0 0 28px rgba(118, 194, 255, 0.2),
    inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.portal-runes {
  position: absolute;
  left: 50%;
  top: 17px;
  width: calc(100% - 48px);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(237, 214, 157, 0.86);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 221, 156, 0.32);
}

.portal-column-runes {
  position: absolute;
  bottom: 44px;
  width: 78px;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  color: rgba(237, 214, 157, 0.78);
  font-size: 0.88rem;
  text-shadow: 0 0 12px rgba(255, 221, 156, 0.18);
}

.portal-column-runes.left {
  left: 0;
}

.portal-column-runes.right {
  right: 0;
}

.portal-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 90px;
  background:
    radial-gradient(circle at 50% 0%, rgba(203, 167, 97, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(35, 40, 52, 0.15), rgba(12, 17, 24, 0.96));
}

.auth-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 580px;
}

.auth-wordmark {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 1.05;
}

.auth-copy {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
}

.feature-list {
  margin: 0;
  padding: 1rem 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(221, 194, 127, 0.16);
  border-radius: 20px;
  background: rgba(8, 18, 31, 0.54);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.feature-list li::before {
  content: "ᛟ";
  color: var(--gold-strong);
  font-size: 0.95rem;
}

.auth-card {
  z-index: 1;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(11, 24, 42, 0.95), rgba(6, 14, 26, 0.95)),
    radial-gradient(circle at top, rgba(181, 214, 255, 0.08), transparent 35%);
  padding: 1.5rem;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(135deg, rgba(221, 194, 127, 0.08), transparent 32%);
  pointer-events: none;
}

.auth-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
}

.auth-seal {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(221, 194, 127, 0.28);
  background: linear-gradient(180deg, rgba(183, 149, 83, 0.18), rgba(183, 149, 83, 0.08));
  color: var(--gold-strong);
  font-size: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card h1 {
  margin: 0;
  font-size: 2rem;
}

.auth-card .subtitle {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.auth-actions {
  display: grid;
  gap: 1rem;
}

.auth-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(199, 208, 221, 0.1);
  font-size: 0.92rem;
}

.auth-footer p {
  margin: 0.35rem 0;
}

.auth-footer strong {
  color: var(--gold-strong);
}

@keyframes auraPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 24px rgba(125, 197, 255, 0.4),
      0 0 64px rgba(125, 197, 255, 0.18),
      inset 0 0 24px rgba(125, 197, 255, 0.12);
  }

  50% {
    transform: translateX(-50%) scale(1.03);
    box-shadow:
      0 0 28px rgba(125, 197, 255, 0.46),
      0 0 78px rgba(125, 197, 255, 0.22),
      inset 0 0 28px rgba(125, 197, 255, 0.14);
  }
}

@media (max-width: 1180px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-layout-login {
    grid-template-columns: 1fr;
  }

  .auth-hero-photo {
    min-height: 740px;
  }

  .auth-hero {
    min-height: 640px;
  }

  .portal-scene {
    inset: 1.2rem 1.2rem 9rem;
  }

  .content {
    padding: 1.15rem;
  }

  .layout-dashboard {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toolbar-between,
  .detail-item summary,
  .row-highlight,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-4,
  .cards-3,
  .cards-2,
  .env-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .env-rr-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .overview-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-runes {
    letter-spacing: 0.22em;
  }

  .inline-form,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar-profile {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sidebar-avatar {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 720px) {
  .auth-layout,
  .content {
    padding: 1rem;
  }

  .auth-photo-bg {
    background-position: 54% center;
  }

  .picker-chip-label {
    max-width: 128px;
  }

  .toolbar .btn,
  .toolbar-between .btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
  }

  .detail-summary-meta {
    font-size: 0.84rem;
  }

  .photo-login-wrap {
    align-items: center;
  }

  .photo-login-card {
    width: min(78vw, 355px);
    min-width: 0;
    height: min(62vh, 475px);
    min-height: 330px;
    top: 59%;
    padding: 1.8rem 0.9rem 1rem;
    border-radius: 50% 50% 20px 20px / 220px 220px 20px 20px;
  }

  .photo-login-card h1 {
    font-size: 1.6rem;
  }

  .photo-login-card::before {
    inset: 0 0 auto;
    height: 40%;
    border-radius: 50% 50% 0 0 / 220px 220px 0 0;
  }

  .auth-hero,
  .auth-card,
  .panel,
  .card,
  .sidebar-brand {
    border-radius: 22px;
  }

  .portal-scene {
    inset: 0.9rem 0.9rem 10.25rem;
  }

  .portal-aura {
    width: min(84vw, 360px);
  }

  .portal-arch {
    width: min(78vw, 320px);
    height: 360px;
  }

  .portal-arch::before,
  .portal-arch::after,
  .portal-column-runes {
    width: 62px;
  }

  .portal-arch::before,
  .portal-arch::after {
    height: 210px;
  }

  .portal-top {
    width: calc(100% - 66px);
    height: 140px;
  }

  .portal-top::before {
    width: calc(100% - 56px);
    bottom: -82px;
    height: 146px;
  }

  .auth-wordmark,
  .overview-copy h2,
  .panel-head h2 {
    letter-spacing: 0.03em;
  }

  .module-list {
    margin-bottom: 1rem;
  }

  .sidebar-top {
    gap: 0.75rem;
    padding: 1rem;
  }

  .sidebar-nav {
    gap: 0.45rem;
  }

  .sidebar-nav a {
    padding: 0.66rem 0.8rem;
  }

  .sidebar-nav-copy strong {
    font-size: 0.9rem;
  }

  .sidebar-nav-copy small {
    font-size: 0.75rem;
  }

  .sidebar-logout-btn {
    padding: 0.62rem 0.86rem;
    font-size: 0.9rem;
  }
}