:root {
  --bg: #010204;
  --bg-accent: #050914;
  --panel: rgba(4, 8, 16, 0.9);
  --panel-strong: rgba(6, 10, 20, 0.96);
  --border: rgba(90, 118, 170, 0.18);
  --text: #ecf2fa;
  --muted: #8d9cb3;
  --gold: #325f9a;
  --gold-strong: #b9cae6;
  --danger: #ff7f7f;
  --ember: rgba(255, 106, 28, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 72, 126, 0.12), transparent 0 22%),
    radial-gradient(circle at 84% 16%, rgba(255, 106, 28, 0.08), transparent 0 18%),
    linear-gradient(180deg, #06090f 0%, #03050a 60%, #010204 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 106, 28, 0.09), transparent 0 14%),
    radial-gradient(circle at 78% 8%, rgba(63, 109, 180, 0.1), transparent 0 16%);
  filter: blur(12px);
}

h1,
h2,
h3,
h4,
.eyebrow,
.pill,
.slot-label {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.page-shell {
  min-height: 100vh;
  padding: 0 0 48px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.98), rgba(2, 4, 9, 0.95)),
    radial-gradient(circle at center top, rgba(63, 109, 180, 0.12), transparent 0 30%);
  border-bottom: 1px solid rgba(95, 128, 184, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 215, 255, 0.35), transparent);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.header-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guild-mark {
  padding: 0;
  border: 0;
  background: none;
  color: #f4f8ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 16px rgba(126, 215, 255, 0.22);
}

.guild-mark:hover {
  color: #cfe5ff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(104, 136, 188, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.94), rgba(5, 9, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.26);
}

.menu-toggle:hover {
  border-color: rgba(126, 215, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.32);
}

.menu-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 18px;
  height: 18px;
}

.menu-toggle-grid span {
  border-radius: 999px;
  background: #a6b8d6;
  box-shadow: 0 0 8px rgba(126, 215, 255, 0.16);
}

.header-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: none;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(104, 136, 188, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.98), rgba(4, 8, 16, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.header-dropdown.is-open {
  display: grid;
}

.dropdown-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background: rgba(45, 156, 255, 0.1);
  border-color: rgba(126, 215, 255, 0.2);
  color: #f4f8ff;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.header-link {
  padding: 0;
  border: 0;
  background: none;
  color: #c4cfde;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.header-link:hover,
.header-link.is-active {
  color: #f8fbff;
  text-shadow: 0 0 14px rgba(126, 215, 255, 0.22);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(95, 128, 184, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.92), rgba(5, 9, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-option.is-active {
  border-color: rgba(126, 215, 255, 0.24);
  background: rgba(45, 156, 255, 0.14);
  transform: translateY(-1px);
}

.language-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.language-flag-de {
  background: linear-gradient(180deg, #111111 0 33.33%, #cf2027 33.33% 66.66%, #e3b73f 66.66% 100%);
}

.language-flag-en {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6' clip-path='url(%23t)'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='4' clip-path='url(%23t)'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.user-menu {
  position: relative;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(92, 188, 46, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(31, 54, 12, 0.96), rgba(12, 24, 5, 0.98));
  color: #abff7a;
  text-decoration: none;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(219, 255, 188, 0.12),
    0 0 20px rgba(111, 255, 0, 0.12);
}

.user-pill-class-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  margin-right: 8px;
  object-fit: cover;
  border: 1px solid rgba(201, 255, 170, 0.42);
  background: rgba(0, 0, 0, 0.35);
}

.user-pill.is-logged-in {
  color: #c8ffac;
}

.user-pill.is-logged-in::after {
  content: "▾";
  margin-left: 10px;
  font-size: 0.8rem;
  opacity: 0.9;
}

.user-pill.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(92, 188, 46, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 17, 7, 0.98), rgba(6, 12, 5, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.user-menu.is-authenticated:hover .user-menu-dropdown,
.user-menu.is-authenticated:focus-within .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-action {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(92, 188, 46, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(62, 110, 23, 0.94), rgba(32, 61, 9, 0.98));
  color: #eaffd7;
  font-weight: 700;
  cursor: pointer;
}

.user-menu-action:hover {
  filter: brightness(1.08);
}

main.container {
  padding-top: 8px;
}

.page-view {
  display: grid;
  gap: 18px;
}

.landing-wallpaper {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: calc(100vh - 128px);
  padding: 0;
  overflow: hidden;
  background: #020402;
  border: 1px solid rgba(76, 191, 118, 0.24);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(214, 255, 200, 0.05),
    0 0 28px rgba(58, 184, 98, 0.1);
}

.landing-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(113, 255, 90, 0.16), transparent 0 26%),
    radial-gradient(circle at 50% 80%, rgba(106, 255, 42, 0.12), transparent 0 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.62));
  pointer-events: none;
  z-index: 1;
}

.landing-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(160, 255, 125, 0.08) 50%, transparent 80%);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: wallpaperShimmer 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.landing-wallpaper-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) brightness(0.82);
  animation: wallpaperDrift 14s ease-in-out infinite alternate;
}

.landing-overlay {
  position: absolute;
  inset: auto 32px 32px 32px;
  z-index: 2;
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: 22px 24px;
  border: 1px solid rgba(112, 255, 103, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(4, 14, 10, 0.56), rgba(4, 8, 12, 0.82)),
    radial-gradient(circle at top left, rgba(109, 255, 86, 0.08), transparent 0 24%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(224, 255, 205, 0.08),
    0 0 28px rgba(83, 255, 46, 0.08);
  backdrop-filter: blur(8px);
  animation: overlayRise 700ms ease;
}

.landing-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(149, 255, 129, 0.08);
  box-shadow: inset 0 0 24px rgba(92, 255, 70, 0.04);
  pointer-events: none;
}

.landing-overlay h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(104, 255, 84, 0.18);
  animation: titlePulse 5.2s ease-in-out infinite;
}

.landing-badge {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(87, 220, 48, 0.14);
  border: 1px solid rgba(111, 255, 0, 0.2);
  color: #d9ffbf;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.landing-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(226, 255, 208, 0.34), transparent);
  transform: translateX(-120%);
  animation: badgeSweep 4.6s ease-in-out infinite;
}

.landing-tagline {
  margin: 0;
  color: #e4f1dc;
  font-size: 1.02rem;
  max-width: 58ch;
  text-shadow: 0 0 18px rgba(79, 220, 60, 0.08);
}

.landing-cta {
  margin-top: 4px;
}

.landing-cta .btn {
  animation: ctaGlow 3.8s ease-in-out infinite;
}

.landing-cta .btn:nth-child(2) {
  animation-delay: 0.8s;
}

.landing-stats {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.landing-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 255, 103, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 20, 12, 0.42), rgba(8, 12, 18, 0.46));
  box-shadow: inset 0 1px 0 rgba(211, 255, 179, 0.04), 0 0 22px rgba(74, 255, 57, 0.05);
  animation: statFloat 5.8s ease-in-out infinite;
}

.landing-stat:nth-child(2) {
  animation-delay: 0.7s;
}

.landing-stat:nth-child(3) {
  animation-delay: 1.3s;
}

.landing-stat strong {
  color: #f1ffe4;
}

.landing-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-ambient {
  position: absolute;
  z-index: 1;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.32;
  pointer-events: none;
  animation: ambientPulse 6.8s ease-in-out infinite;
}

.landing-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.landing-particles span {
  position: absolute;
  bottom: -20px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(170, 255, 126, 0.95), rgba(170, 255, 126, 0));
  box-shadow: 0 0 16px rgba(98, 255, 61, 0.34), 0 0 28px rgba(98, 255, 61, 0.14);
  animation: emberRise linear infinite;
}

.landing-particles span:nth-child(1)  { left: 6%;  width: 6px;  height: 6px;  animation-duration: 9s;   animation-delay: 0.4s; }
.landing-particles span:nth-child(2)  { left: 14%; width: 8px;  height: 8px;  animation-duration: 8.4s; animation-delay: 1.5s; }
.landing-particles span:nth-child(3)  { left: 22%; width: 7px;  height: 7px;  animation-duration: 7.4s; animation-delay: 2s; }
.landing-particles span:nth-child(4)  { left: 31%; width: 5px;  height: 5px;  animation-duration: 10.2s; animation-delay: 0.8s; }
.landing-particles span:nth-child(5)  { left: 41%; width: 9px;  height: 9px;  animation-duration: 8.8s; animation-delay: 1.3s; }
.landing-particles span:nth-child(6)  { left: 50%; width: 6px;  height: 6px;  animation-duration: 7.9s; animation-delay: 2.6s; }
.landing-particles span:nth-child(7)  { left: 58%; width: 8px;  height: 8px;  animation-duration: 9.6s; animation-delay: 1.1s; }
.landing-particles span:nth-child(8)  { left: 63%; width: 7px;  height: 7px;  animation-duration: 7s;   animation-delay: 2.5s; }
.landing-particles span:nth-child(9)  { left: 71%; width: 5px;  height: 5px;  animation-duration: 10.8s; animation-delay: 0.6s; }
.landing-particles span:nth-child(10) { left: 79%; width: 9px;  height: 9px;  animation-duration: 9.2s; animation-delay: 0.9s; }
.landing-particles span:nth-child(11) { left: 87%; width: 6px;  height: 6px;  animation-duration: 8.1s; animation-delay: 1.9s; }
.landing-particles span:nth-child(12) { left: 94%; width: 8px;  height: 8px;  animation-duration: 7.6s; animation-delay: 2.3s; }

.landing-runes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rune-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(118, 255, 73, 0.16);
  box-shadow: inset 0 0 20px rgba(124, 255, 107, 0.06), 0 0 26px rgba(64, 255, 46, 0.08);
  opacity: 0.55;
}

.rune-circle::before,
.rune-circle::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1px dashed rgba(170, 255, 126, 0.16);
}

.rune-circle::after {
  inset: 34px;
  border-style: solid;
  border-color: rgba(102, 233, 255, 0.12);
}

.rune-circle-left {
  left: 6%;
  top: 14%;
  animation: runeRotate 14s linear infinite;
}

.rune-circle-right {
  right: 8%;
  bottom: 18%;
  animation: runeRotateReverse 18s linear infinite;
}

.landing-scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(162, 255, 134, 0.12) 48%, transparent 100%);
  opacity: 0.2;
  transform: translateY(-100%);
  animation: scanlineMove 7.5s ease-in-out infinite;
}

.ambient-left {
  left: -40px;
  bottom: 90px;
  background: radial-gradient(circle, rgba(104, 255, 84, 0.42), transparent 65%);
}

.ambient-right {
  right: -20px;
  top: 60px;
  background: radial-gradient(circle, rgba(127, 214, 255, 0.24), transparent 65%);
  animation-delay: 1.2s;
}

@keyframes wallpaperDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-8px);
  }
}

@keyframes wallpaperShimmer {
  0%,
  100% {
    transform: translateX(-10%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateX(10%) scale(1.02);
    opacity: 0.55;
  }
}

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

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(104, 255, 84, 0.12), 0 0 30px rgba(104, 255, 84, 0.06);
  }
  50% {
    text-shadow: 0 0 28px rgba(124, 255, 103, 0.24), 0 0 42px rgba(104, 255, 84, 0.12);
  }
}

@keyframes ambientPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.4;
  }
}

@keyframes badgeSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(140%);
  }
}

@keyframes ctaGlow {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(24, 48, 8, 0.42), inset 0 1px 0 rgba(211, 255, 179, 0.16), inset 0 -2px 0 rgba(10, 25, 3, 0.32), 0 0 14px rgba(111, 255, 0, 0.1);
  }
  50% {
    box-shadow: 0 14px 28px rgba(24, 48, 8, 0.5), inset 0 1px 0 rgba(229, 255, 204, 0.2), inset 0 -2px 0 rgba(10, 25, 3, 0.4), 0 0 22px rgba(111, 255, 0, 0.22);
  }
}

@keyframes runeRotate {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.03);
  }
}

@keyframes runeRotateReverse {
  from {
    transform: rotate(360deg) scale(1);
  }
  to {
    transform: rotate(0deg) scale(1.04);
  }
}

@keyframes emberRise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-90vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes scanlineMove {
  0%,
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: 0.16;
  }
  50% {
    transform: translateY(100%);
    opacity: 0.22;
  }
  70% {
    opacity: 0.1;
  }
}

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

.admin-section,
.recruitment-hero,
.recruitment-layout {
  padding: 24px;
}

.logs-section {
  padding: 24px;
}

.logs-list {
  margin-top: 20px;
}

.logs-overview {
  margin-top: 18px;
}

.raids-subtabs {
  margin-bottom: 18px;
}

.raids-pane-intro {
  display: grid;
  gap: 18px;
}

.raids-planning-grid {
  margin-top: 20px;
}

.raid-plan-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.95), rgba(5, 10, 20, 0.98)),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 0 28%),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 0 24%);
}

.raid-plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.raid-plan-card-title {
  margin: 4px 0 0;
  color: var(--color-heading, #e8d5a3);
  font-size: 1.08rem;
}

.raid-plan-card-copy {
  margin: 0;
}

.raid-plan-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.raid-plan-card-actions {
  justify-content: flex-start;
}

.raid-helper-comp-editor {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.raid-helper-comp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.raid-helper-comp-head h4 {
  margin: 4px 0 0;
  color: var(--color-heading, #e8d5a3);
}

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

.raid-helper-comp-grid label,
.raid-helper-group-field {
  display: grid;
  gap: 6px;
}

.raid-helper-comp-grid span,
.raid-helper-group-field span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #7a8aaa);
}

.raid-helper-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.raid-helper-comp-actions {
  justify-content: flex-start;
}

.raid-helper-assignment-board {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.raid-helper-assignment-board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.raid-helper-assignment-board-head h4 {
  margin: 4px 0 0;
  color: var(--color-heading, #e8d5a3);
}

.raid-helper-group-assignment {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.85);
}

.raid-helper-group-assignment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.raid-helper-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.raid-helper-slot-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.raid-helper-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.raid-helper-slot-picker {
  display: grid;
  gap: 6px;
}

.raid-helper-slot-picker span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #7a8aaa);
}

.raid-helper-slot-current {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.08);
}

.raid-helper-slot-current.is-empty {
  background: rgba(148, 163, 184, 0.08);
}

.raid-helper-slot-current span {
  font-weight: 600;
  color: var(--color-text, #f8fafc);
}

.raid-helper-slot-current small {
  color: var(--color-muted, #7a8aaa);
}

.raid-helper-slot-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.raid-roster-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.raid-roster-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.raid-roster-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.raid-roster-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.raid-roster-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.8);
}

.raid-roster-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.raid-roster-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.raid-roster-member {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.raid-roster-member.is-empty {
  grid-template-columns: 1fr;
  color: var(--color-muted, #7a8aaa);
}

.raid-roster-member-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--color-heading, #e8d5a3);
  font-size: 0.78rem;
  font-weight: 700;
}

.raid-roster-member-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.raid-roster-member-copy {
  display: grid;
  gap: 2px;
}

.raid-roster-member-copy strong {
  font-size: 0.95rem;
}

.raid-roster-member-copy small {
  color: var(--color-muted, #7a8aaa);
}

.logs-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.logs-filter-group {
  display: grid;
  gap: 6px;
}

.logs-filter-group span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #7a8aaa);
}

.logs-filter-select {
  min-height: 42px;
}

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

.logs-overview-card {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 17, 31, 0.92), rgba(7, 13, 24, 0.98)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 0 24%);
}

.logs-overview-card strong {
  color: #f8fafc;
  font-size: 1.1rem;
}

.logs-overview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #7a8aaa);
}

.logs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.logs-raid-group {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.logs-raid-group:first-child {
  margin-top: 0;
}

.logs-raid-group-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.logs-raid-group-title {
  margin: 4px 0 0;
  color: var(--color-heading, #e8d5a3);
  font-size: 1.2rem;
}

.logs-raid-group-count {
  font-size: 0.8rem;
  color: var(--color-muted, #7a8aaa);
  padding-bottom: 4px;
}

.logs-grid-grouped {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.logs-grid-grouped.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.log-card {
  display: grid;
  gap: 14px;
  align-content: start;
  align-self: start;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.95), rgba(5, 10, 20, 0.98)),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 0 28%),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 0 24%);
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.log-card-title {
  display: block;
  font-size: 1.08rem;
  color: var(--color-heading, #e8d5a3);
  margin-top: 2px;
}

.log-card-date {
  font-size: 0.8rem;
  color: var(--color-muted, #7a8aaa);
  white-space: nowrap;
  padding-top: 2px;
}

.log-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.log-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #d9e2f1;
}

.log-meta-pill.is-kill {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.24);
}

.log-meta-pill.is-wipe {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.24);
}

.log-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-card-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-card-metric strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.log-card-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #7a8aaa);
}

.log-card-link {
  align-self: start;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.log-card-bosses {
  display: grid;
  gap: 8px;
}

.log-timeline-shell {
  display: grid;
  gap: 10px;
}

.log-timeline-toggle {
  justify-self: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-muted, #7a8aaa);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.log-timeline-toggle:hover {
  color: var(--color-heading, #e8d5a3);
  border-color: rgba(232, 213, 163, 0.18);
}

.log-boss-timeline.is-hidden {
  display: none;
}

.log-boss-zone-group {
  display: grid;
  gap: 8px;
}

.log-boss-zone-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading, #e8d5a3);
  padding-top: 4px;
}

.log-boss-timeline {
  position: relative;
}

.log-boss-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.log-boss-line {
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.log-boss-row.is-last .log-boss-line {
  display: none;
}

.log-boss-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.log-boss-dot.is-kill {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

.log-boss-dot.is-wipe {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.log-boss-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.log-boss-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.log-boss-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.77rem;
}

.log-boss-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.log-boss-name {
  color: currentColor;
}

.log-boss-attempts {
  font-size: 0.66rem;
  opacity: 0.75;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.log-boss-tag.is-kill {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.log-boss-tag.is-wipe {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.log-boss-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
}

.log-boss-status.is-kill {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.log-boss-status.is-wipe {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.log-boss-time {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 4px;
  font-weight: 400;
}

.log-stats-details {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
  margin-top: 2px;
}

.log-stats-summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--color-muted, #7a8aaa);
  user-select: none;
  background: none;
  border: none;
  padding: 2px 0;
  text-align: left;
}

.log-stats-summary:hover {
  color: var(--color-heading, #e8d5a3);
}

.log-stats-body {
  margin-top: 8px;
}

.log-stats-body.is-hidden {
  display: none;
}

.log-zone-stats-stack {
  display: grid;
  gap: 10px;
}

.log-zone-stats {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-zone-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.log-zone-stats-title {
  color: var(--color-heading, #e8d5a3);
  font-size: 0.84rem;
}

.log-zone-stats-total {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.72rem;
}

.log-zone-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.log-zone-stat-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-zone-stat-card-empty {
  justify-items: start;
}

.log-zone-stat-card .log-rank-item {
  min-height: 0;
  padding: 8px 0;
}

.log-zone-stat-card .log-rank-item:first-child {
  padding-top: 2px;
}

.log-zone-stat-card .log-rank-value {
  min-width: 78px;
}

.log-zone-stat-label {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-zone-stat-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.log-zone-stat-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.84rem;
}

.log-zone-stat-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-zone-stat-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-zone-stat-spec {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.72rem;
}

.log-zone-stat-value {
  color: var(--color-heading, #e8d5a3);
  font-size: 0.9rem;
}

.log-zone-stat-empty {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.78rem;
}

.log-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.log-stats-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.log-stats-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 3px;
  opacity: 0.9;
}

.log-stats-panel-damage::before {
  background: linear-gradient(180deg, #f59e0b, #f97316);
}

.log-stats-panel-healing::before {
  background: linear-gradient(180deg, #22c55e, #14b8a6);
}

.log-stats-panel-deaths::before {
  background: linear-gradient(180deg, #ef4444, #f97316);
}

.log-stats-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-muted, #7a8aaa);
  min-height: 36px;
}

.log-stats-panel-title {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.78rem;
}

.log-stats-panel-total {
  display: grid;
  justify-items: end;
  gap: 1px;
  text-align: right;
}

.log-stats-panel-total strong {
  color: #e2e8f0;
  font-size: 0.98rem;
  line-height: 1;
}

.log-stats-panel-total span {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.7rem;
  line-height: 1.1;
}

.log-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.log-rank-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 52px;
}

.log-rank-item:last-child {
  border-bottom: none;
}

.log-rank-index {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-muted, #7a8aaa);
  font-size: 0.72rem;
  font-weight: 700;
}

.log-rank-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.log-rank-icon-wrap {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.log-rank-name-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.log-rank-name {
  display: inline-flex;
  align-items: center;
  color: #f8fafc;
  font-size: 0.84rem;
  min-width: 0;
}

.log-rank-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-rank-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-rank-spec {
  color: var(--color-muted, #7a8aaa);
  font-size: 0.72rem;
  min-height: 1.1em;
}

.log-rank-spec.is-empty {
  visibility: hidden;
}

.log-rank-value {
  color: var(--color-heading, #e8d5a3);
  font-size: 0.86rem;
  font-weight: 700;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  min-width: 64px;
}

.log-stats-empty {
  margin: 0;
  padding: 6px 0;
}

.log-card-detail-stack {
  display: grid;
  gap: 8px;
}

.log-loot-groups {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.log-loot-group {
  display: grid;
  gap: 4px;
}

.log-loot-group-title {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-heading, #e8d5a3);
}

.log-loot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}

.log-loot-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .logs-filter-bar,
  .logs-overview-grid,
  .log-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .logs-filter-bar,
  .logs-overview-grid,
  .log-card-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .logs-raid-group-header,
  .log-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.log-loot-player {
  min-width: 90px;
  font-size: 0.78rem;
}

.log-loot-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
}

.log-loot-name {
  flex: 1;
}

.log-loot-source {
  white-space: nowrap;
}

/* WoW item quality colours */
.quality-poor    { color: #9d9d9d; }
.quality-common  { color: #ffffff; }
.quality-uncommon{ color: #1eff00; }
.quality-rare    { color: #0070dd; }
.quality-epic    { color: #a335ee; }
.quality-legendary { color: #ff8000; }



.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(7, 13, 25, 0.92), rgba(5, 10, 19, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(126, 215, 255, 0.14), transparent 0 26%),
    radial-gradient(circle at 88% 12%, rgba(255, 170, 0, 0.12), transparent 0 24%);
  border: 1px solid rgba(126, 215, 255, 0.12);
  border-radius: 22px;
}

.admin-hero h3 {
  margin: 6px 0 8px;
}

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

.admin-metric-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 110px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 215, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-metric-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.admin-metric-card strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: #f4fbff;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.82);
  border: 1px solid rgba(126, 215, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.admin-subtab {
  display: grid;
  gap: 2px;
  min-width: 180px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.admin-subtab span {
  font-size: 0.98rem;
}

.admin-subtab small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-subtab.is-active {
  border-color: rgba(126, 215, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(126, 215, 255, 0.07));
  color: #f5fbff;
  transform: translateY(-1px);
}

.admin-subtab.is-active small {
  color: #cfe5ff;
}

.admin-tab-panel {
  display: grid;
  gap: 14px;
}

.admin-stage {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 14, 25, 0.88), rgba(5, 10, 19, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(255, 170, 0, 0.08), transparent 0 28%);
  border: 1px solid rgba(126, 215, 255, 0.12);
}

.admin-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-stage-head h3 {
  margin: 6px 0 0;
}

.admin-form,
.admin-side {
  display: grid;
  gap: 12px;
}

.admin-import-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

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

.admin-side {
  align-content: start;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.admin-raid-list {
  display: grid;
  gap: 12px;
}

.admin-stack-list {
  gap: 14px;
}

.admin-raid-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(126, 215, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

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

.admin-record-card {
  gap: 12px;
}

.admin-record-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-record-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.admin-record-title {
  margin: 4px 0 0;
  color: #f5fbff;
}

.admin-record-body {
  display: grid;
  gap: 6px;
}

.admin-record-facts {
  display: flex;
.admin-raid-selectable {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.admin-raid-selectable:hover {
  border-color: rgba(126, 215, 255, 0.26);
  transform: translateY(-1px);
}
.admin-raid-selectable.is-selected {
  border-color: rgba(255, 170, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 170, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
  flex-wrap: wrap;
  gap: 8px;
}

.admin-raid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-hardres-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-hardres-search-wrap {
  margin-top: 8px;
}

.admin-hardres-selected-block {
  display: grid;
  gap: 8px;
}

.admin-hardres-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-hardres-chip {
  border: 1px solid rgba(126, 215, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: #e8f3ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.admin-hardres-chip:hover {
  border-color: rgba(255, 170, 0, 0.45);
  color: #ffe3b5;
}

.admin-hardres-editor label {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-hardres-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(126, 215, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #e8f3ff;
  padding: 8px;
}

.admin-hardres-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease;
  min-height: 36px;
}

.admin-toggle-inline:has(input:checked) {
  border-color: rgba(111, 255, 0, 0.38);
  color: #deffd0;
}

.admin-toggle-inline input {
  width: 14px;
  min-height: 14px;
  flex-shrink: 0;
  accent-color: #76e034;
}

.admin-selection-block {
  display: grid;
  gap: 10px;
}

.admin-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.admin-selection-grid-classes {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

  .admin-raid-maxperitem-input {
    width: 62px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(126, 215, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #deffd0;
    font-size: 0.82rem;
    text-align: center;
    transition: border-color 160ms ease, opacity 160ms ease;
  }
  .admin-raid-maxperitem-input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .admin-raid-maxperitem-input:focus {
    outline: none;
    border-color: rgba(111, 255, 0, 0.5);
  }

  .pill.pill-highlight {
    background: rgba(111, 255, 0, 0.12);
    border-color: rgba(111, 255, 0, 0.35);
    color: #deffd0;
  }

.admin-preview-panel {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.admin-toggle {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.admin-empty-state {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(126, 215, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.admin-empty-state strong {
  color: #f4fbff;
}

.admin-empty-state span {
  color: var(--muted);
}

.admin-application-message {
  line-height: 1.55;
}

.softres-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 255, 0, 0.22);
  background: rgba(52, 123, 15, 0.18);
  color: #dcffbe;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.raid-softres-id {
  margin: 8px 0 0;
  color: #d9f6c3;
}

.raid-softres-remove {
  flex: 0 0 auto;
  margin-top: 4px;
}

.raid-softres-meta {
  margin: 4px 0 0;
}

.recruitment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
}

.recruitment-copy h3 {
  margin-top: 6px;
  margin-bottom: 10px;
}

.recruitment-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.recruitment-point {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(126, 215, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.recruitment-point strong {
  color: var(--gold-strong);
}

.recruitment-point span {
  color: var(--muted);
}

.recruitment-form {
  display: grid;
  gap: 12px;
}

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

.recruitment-actions {
  align-items: center;
}

.form-message {
  font-size: 0.95rem;
}

.form-message.is-success {
  color: #aef08c;
}

.form-message.is-error {
  color: #ff9d9d;
}

.is-hidden {
  display: none !important;
}

.hero-badges {
  margin-bottom: 14px;
}

.hero-mmo {
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.95), rgba(3, 6, 12, 0.98)),
    radial-gradient(circle at center top, rgba(70, 105, 160, 0.1), transparent 0 26%);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  padding: 28px;
  min-height: 420px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.78), rgba(4, 7, 14, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(71, 110, 170, 0.16), transparent 0 24%),
    linear-gradient(120deg, rgba(255, 106, 28, 0.06), transparent 34%, transparent 72%, rgba(58, 91, 146, 0.08));
  border: 1px solid rgba(185, 202, 230, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 50px rgba(0, 0, 0, 0.42);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 106, 28, 0.08));
  pointer-events: none;
}

.hero-side-panel {
  display: grid;
  gap: 16px;
}

.floating-panel {
  position: relative;
  z-index: 1;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.highlight-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(201, 222, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.highlight-card strong {
  color: var(--text);
  font-size: 1rem;
}

.highlight-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

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

.feature-card {
  min-height: 180px;
}

.ornate-card {
  position: relative;
}

.ornate-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 222, 255, 0.06);
  border-radius: 14px;
  pointer-events: none;
}

.landing-section {
  padding: 24px;
  margin-bottom: 18px;
}

.framed-section {
  background:
    linear-gradient(180deg, rgba(9, 15, 29, 0.9), rgba(5, 10, 20, 0.95)),
    radial-gradient(circle at 50% 0%, rgba(110, 159, 255, 0.1), transparent 0 28%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 18px;
  border: 1px solid rgba(126, 215, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.stat-item {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid rgba(201, 222, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.86), rgba(6, 10, 20, 0.94));
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  color: var(--gold-strong);
  font-size: 1.05rem;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}

.showcase-card {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.9), rgba(7, 11, 22, 0.96)),
    radial-gradient(circle at top right, rgba(255, 115, 32, 0.1), transparent 0 20%);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(11, 19, 38, 0.92), rgba(6, 10, 20, 0.96)),
    radial-gradient(circle at top left, rgba(95, 160, 255, 0.18), transparent 0 24%);
}

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

.news-card {
  min-height: 170px;
  background:
    linear-gradient(180deg, rgba(9, 15, 28, 0.9), rgba(5, 10, 19, 0.96)),
    radial-gradient(circle at bottom left, rgba(255, 115, 32, 0.08), transparent 0 22%);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(126, 215, 255, 0.22), rgba(45, 156, 255, 0.22));
  color: var(--gold-strong);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(45, 156, 255, 0.14);
}

.step-card h3 {
  margin: 0 0 8px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.92), rgba(4, 7, 13, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(93, 126, 182, 0.04), transparent 40%, transparent 60%, rgba(58, 91, 146, 0.04)),
    linear-gradient(180deg, transparent, rgba(255, 106, 28, 0.025));
  pointer-events: none;
}

.card-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 28px;
}

.hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  max-width: 12ch;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(45, 156, 255, 0.18);
}

.subtitle {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--gold-strong);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-shadow: 0 0 14px rgba(126, 215, 255, 0.35);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(10, 20, 43, 0.96), rgba(6, 12, 27, 0.98));
  border: 1px solid rgba(126, 215, 255, 0.24);
  border-radius: 20px;
  padding: 20px;
  align-self: stretch;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 10, 30, 0.42);
}

.profile-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 197, 106, 0.14);
}

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

.profile-class-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(126, 215, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
}

.profile-form {
  display: grid;
  gap: 10px;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.toggle-inline input {
  width: auto;
  min-height: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  background: rgba(255, 111, 145, 0.12);
  border: 1px solid rgba(255, 111, 145, 0.28);
  color: #ffd8e3;
  box-shadow: 0 0 18px rgba(255, 111, 145, 0.08);
}

.status-badge.is-ready {
  background: rgba(84, 209, 255, 0.14);
  border-color: rgba(84, 209, 255, 0.3);
  color: #dff8ff;
  box-shadow: 0 0 22px rgba(84, 209, 255, 0.12);
}

.status-badge.is-warning {
  background: rgba(255, 111, 145, 0.12);
  border-color: rgba(255, 111, 145, 0.28);
  color: #ffd8e3;
}

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

.compact-card {
  padding: 20px;
}

.raid-section {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section-copy {
  max-width: 40ch;
  text-align: right;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(115, 159, 228, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(67, 104, 161, 0.96), rgba(34, 52, 84, 0.96));
  color: #ecf2fa;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 26px rgba(15, 24, 40, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 18, 32, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.ghost {
  border-color: rgba(105, 134, 180, 0.24);
  background: rgba(5, 9, 18, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 0 0 1px rgba(90, 118, 170, 0.03);
}

.btn.danger {
  border-color: rgba(180, 50, 50, 0.45);
  background: linear-gradient(180deg, #8b1a1a 0%, #5c0e0e 100%);
  color: #ffe8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 12px rgba(140, 20, 20, 0.4), inset 0 1px 0 rgba(255, 180, 180, 0.15);
}

.btn.danger:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 16px rgba(180, 20, 20, 0.55), inset 0 1px 0 rgba(255, 200, 200, 0.2);
}

.btn.btn-fantasy,
.btn.fantasy {
  border-color: rgba(92, 188, 46, 0.28);
  background:
    linear-gradient(180deg, #4e9c20 0%, #34720d 48%, #234d07 100%);
  color: #f5ffe8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    0 10px 22px rgba(24, 48, 8, 0.45),
    inset 0 1px 0 rgba(211, 255, 179, 0.2),
    inset 0 -2px 0 rgba(10, 25, 3, 0.35),
    0 0 18px rgba(111, 255, 0, 0.14);
}

.btn.btn-fantasy:hover,
.btn.fantasy:hover {
  filter: brightness(1.08);
  box-shadow:
    0 14px 28px rgba(24, 48, 8, 0.55),
    inset 0 1px 0 rgba(229, 255, 204, 0.24),
    inset 0 -2px 0 rgba(10, 25, 3, 0.4),
    0 0 22px rgba(111, 255, 0, 0.2);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.raid {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 19, 40, 0.84), rgba(5, 10, 24, 0.92));
  padding: 20px;
  margin-top: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 8, 25, 0.32);
}

.raid-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.raid-head h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  text-shadow: 0 0 16px rgba(126, 215, 255, 0.15);
}

.raid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.export-row {
  margin: 16px 0 6px;
}


.duplicate-items-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 215, 255, 0.28);
  background: linear-gradient(180deg, rgba(30, 84, 146, 0.18), rgba(12, 28, 52, 0.16));
}

.duplicate-items-icon {
  font-size: 1.1rem;
  color: #7ed9ff;
  flex-shrink: 0;
  margin-top: 1px;
}

.duplicate-items-banner div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.duplicate-items-banner strong {
  font-size: 0.92rem;
  color: #d8ecff;
}

.duplicate-items-banner .muted {
  font-size: 0.84rem;
}

.duplicate-items-banner-hardres {
  border-color: rgba(255, 120, 120, 0.3);
  background: linear-gradient(180deg, rgba(120, 20, 20, 0.2), rgba(80, 10, 10, 0.12));
}

.duplicate-items-banner-hardres .duplicate-items-icon {
  color: #ffb4b4;
}

.duplicate-items-banner-hardres strong {
  color: #ffd4d4;
}

.duplicate-items-banner-hardres .muted {
  color: rgba(255, 212, 212, 0.82);
}

.hardres-banner-items {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.hardres-banner-items .item-inline {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.export-note {
  margin-top: 0;
}

.reservation-lock-row {
  margin: 8px 0 10px;
  display: flex;
  justify-content: flex-end;
}

.reservation-flow {
  position: relative;
  margin: 18px 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(126, 215, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(118, 197, 255, 0.12), transparent 0 24%),
    linear-gradient(180deg, rgba(10, 21, 42, 0.92), rgba(4, 10, 22, 0.9));
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 10, 28, 0.34);
}

.reservation-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.05) 28%, transparent 42%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.flow-steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(126, 215, 255, 0.3), rgba(126, 215, 255, 0.08));
  opacity: 0.9;
}

.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 12px 0;
  border-radius: 16px;
  border: 1px solid rgba(126, 215, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(6px);
  transform: translateY(10px);
  opacity: 0;
  animation: flowStepReveal 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--flow-step-delay, 0ms);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.flow-step.no-reveal {
  animation: none;
  opacity: 1;
  transform: none;
}

.flow-step:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 215, 255, 0.26);
}

.flow-step-number {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(126, 215, 255, 0.3);
  background: linear-gradient(180deg, rgba(16, 32, 58, 0.96), rgba(9, 16, 34, 0.98));
  color: #d8ecff;
  box-shadow: 0 0 0 6px rgba(8, 14, 28, 0.9);
}

.flow-step-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 2px 12px 2px 0;
}

.flow-step-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.flow-step-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-step.is-done {
  border-color: rgba(111, 255, 0, 0.28);
  background: linear-gradient(180deg, rgba(111, 255, 0, 0.06), rgba(111, 255, 0, 0.02));
  box-shadow: none;
}

.flow-step.is-done .flow-step-number {
  border-color: rgba(111, 255, 0, 0.45);
  background: linear-gradient(180deg, rgba(63, 109, 25, 0.82), rgba(26, 54, 8, 0.92));
  color: #deffd0;
  box-shadow: 0 0 0 6px rgba(11, 22, 7, 0.9);
}

.flow-step.is-active {
  border-color: rgba(255, 164, 55, 0.44);
  background:
    linear-gradient(180deg, rgba(171, 92, 18, 0.26), rgba(73, 38, 8, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 0 0 1px rgba(255, 177, 84, 0.28), 0 0 32px rgba(255, 142, 28, 0.28);
  animation: flowStepReveal 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--flow-step-delay, 0ms);
}

.flow-step.is-active .flow-step-number {
  background: linear-gradient(180deg, rgba(255, 170, 78, 0.96), rgba(157, 79, 12, 0.98));
  border-color: rgba(255, 222, 168, 0.62);
  color: #fff7e9;
  box-shadow: 0 0 0 6px rgba(38, 21, 8, 0.92), 0 0 30px rgba(255, 151, 39, 0.34);
}

.flow-step.is-pending {
  border-color: rgba(170, 180, 198, 0.24);
  background: linear-gradient(180deg, rgba(78, 88, 106, 0.16), rgba(35, 43, 56, 0.18));
  box-shadow: none;
  opacity: 0.84;
}

.flow-step.is-pending .flow-step-number {
  border-color: rgba(165, 176, 194, 0.36);
  background: linear-gradient(180deg, rgba(71, 80, 98, 0.92), rgba(39, 48, 62, 0.96));
  color: #c5cfde;
  box-shadow: 0 0 0 6px rgba(14, 20, 32, 0.88);
  border-style: dashed;
}

.flow-action {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 15, 31, 0.92), rgba(5, 10, 23, 0.88));
  border: 1px solid rgba(126, 215, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flow-profile-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 15, 31, 0.94), rgba(5, 10, 23, 0.9));
  border: 1px solid rgba(126, 215, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flow-profile-form .btn,
.flow-action .btn {
  min-width: 180px;
}

@keyframes flowStepReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reservation-flow::before,
  .flow-step,
  .flow-step.is-active {
    animation: none;
  }

  .flow-step {
    opacity: 1;
    transform: none;
  }
}

#reservationSearch {
  width: min(380px, 100%);
}

.reservation-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(126, 215, 255, 0.14);
  border-radius: 14px;
  background: rgba(4, 10, 24, 0.35);
}

.reservation-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.reservation-table th,
.reservation-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(126, 215, 255, 0.08);
}

.reservation-table thead th {
  color: var(--gold-strong);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.reservation-table tbody tr:hover {
  background: rgba(45, 156, 255, 0.08);
}

.reservation-table .is-own-row {
  background: rgba(45, 156, 255, 0.12);
}

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

.item-link {
  text-decoration: none;
}

.item-tooltip {
  cursor: help;
  position: relative;
}

.item-tooltip-box {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(320px, 78vw);
  padding: 10px 12px;
  border: 1px solid rgba(122, 168, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 26, 64, 0.98), rgba(12, 18, 45, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 30;
}

.item-tooltip:hover .item-tooltip-box,
.item-tooltip:focus-within .item-tooltip-box {
  display: grid;
  gap: 5px;
}

.tooltip-title {
  font-weight: 700;
  line-height: 1.2;
}

.tooltip-meta {
  color: #ffd86e;
  font-size: 0.86rem;
}

.tooltip-desc {
  color: #d8e6ff;
  font-size: 0.88rem;
  line-height: 1.35;
}

.item-icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.item-name {
  font-weight: 600;
}

.rarity-poor {
  color: #9d9d9d;
}

.rarity-common {
  color: #ffffff;
}

.rarity-uncommon {
  color: #1eff00;
}

.rarity-rare {
  color: #0070dd;
}

.rarity-epic {
  color: #a335ee;
}

.rarity-legendary {
  color: #ff8000;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 156, 255, 0.12);
  border: 1px solid rgba(126, 215, 255, 0.24);
  color: var(--gold-strong);
  font-size: 0.9rem;
  box-shadow: 0 0 18px rgba(45, 156, 255, 0.08);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

/* Step-by-step priority wizard */
.prio-wizard {
  margin: 18px 0;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.slot-step-counter {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.slot-card {
  border: 1px solid rgba(126, 215, 255, 0.16);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.slot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-state-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 9px;
  color: var(--muted);
}

.slot-state-pill.is-current {
  border-color: rgba(126, 215, 255, 0.42);
  color: #d8ecff;
}

.slot-state-pill.is-complete {
  border-color: rgba(111, 255, 0, 0.45);
  color: #deffd0;
}

.slot-state-pill.is-upcoming {
  border-style: dashed;
}

.slot-card.is-active-step {
  border-color: rgba(126, 215, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(35, 92, 156, 0.22), rgba(13, 30, 55, 0.2)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 0 1px rgba(126, 215, 255, 0.18), 0 0 28px rgba(57, 151, 240, 0.14);
  transform: translateY(-1px);
}

.slot-card.is-complete {
  border-color: rgba(111, 255, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(111, 255, 0, 0.05), rgba(111, 255, 0, 0.015)),
    rgba(255, 255, 255, 0.02);
}

.slot-locked-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(126, 215, 255, 0.2);
  background: rgba(6, 13, 26, 0.7);
}

.slot-card-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slot-label {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 1rem;
}

/* Item search in priority wizard */
.item-search-wrap {
  position: relative;
  margin-top: 10px;
}

.item-search-input {
  width: 100%;
}

.item-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(5, 12, 28, 0.98);
  border: 1px solid rgba(126, 215, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 6, 22, 0.62);
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

.item-search-result {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease;
}

.item-search-result:hover {
  background: rgba(126, 215, 255, 0.1);
}

.item-search-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-search-icon-ph {
  display: inline-block;
  background: rgba(126, 215, 255, 0.08);
  border: 1px solid rgba(126, 215, 255, 0.14);
}

.item-search-name {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-search-slot {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.item-search-meta {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.item-search-no-result {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.item-search-count {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.18);
}

.item-search-count.is-full {
  border-color: rgba(220, 60, 60, 0.45);
  color: #ffaaaa;
}

.item-search-count.is-hardres {
  border-color: rgba(255, 160, 60, 0.55);
  color: #ffd9a8;
}

.item-search-result.is-full {
  opacity: 0.5;
  cursor: not-allowed;
}

.item-search-result.is-hardres {
  opacity: 0.55;
  cursor: not-allowed;
}

.item-search-result.is-full:hover {
  background: transparent;
}

.item-search-result.is-hardres:hover {
  background: transparent;
}

.slot-actions {
  margin-top: 12px;
}

.slot-hint,
.muted {
  color: var(--muted);
}

.item-preview {
  margin: 10px 0 0;
}

.item-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.item-flag-hardres {
  border: 1px solid rgba(255, 160, 60, 0.55);
  background: rgba(255, 160, 60, 0.14);
  color: #ffd9a8;
}

.item-flag-softres {
  border: 1px solid rgba(111, 255, 0, 0.5);
  background: rgba(111, 255, 0, 0.14);
  color: #deffd0;
}

.reservations,
.my-res-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.raid-loot-table-block {
  margin-top: 18px;
}

.raid-loot-table-block h4 {
  margin: 0 0 10px;
}

.raid-loot-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 10px;
  margin-bottom: 10px;
}

.raid-loot-search,
.raid-loot-category {
  min-height: 40px;
}

.raid-loot-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(126, 215, 255, 0.14);
  border-radius: 14px;
  background: rgba(4, 10, 24, 0.35);
}

.raid-loot-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.raid-loot-table th,
.raid-loot-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(126, 215, 255, 0.08);
}

.raid-loot-table th {
  color: var(--gold-strong);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}

.raid-loot-table tbody tr:hover {
  background: rgba(45, 156, 255, 0.08);
}

@media (max-width: 760px) {
  .raid-loot-controls {
    grid-template-columns: 1fr;
  }

  .raid-loot-table {
    min-width: 640px;
  }
}

.reservations li,
.my-res-list li {
  display: grid;
  grid-template-columns: 48px minmax(110px, 180px) 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}

.reservations li.has-remove {
  grid-template-columns: 48px minmax(110px, 180px) 1fr auto;
}

.my-res-list li {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .priority-wizard-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.is-own-reservation {
  border: 1px solid rgba(126, 215, 255, 0.24);
  background: rgba(45, 156, 255, 0.08);
}

.reservation-remove {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 130, 130, 0.48);
  background: rgba(120, 18, 18, 0.32);
  color: #ffd4d4;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.reservation-remove:hover {
  border-color: rgba(255, 165, 165, 0.66);
  background: rgba(166, 28, 28, 0.5);
}

select,
button {
  font-size: 0.98rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(126, 215, 255, 0.22);
  background: rgba(5, 11, 24, 0.9);
  color: var(--text);
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

textarea {
  resize: vertical;
  min-height: 136px;
  padding: 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(126, 215, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 156, 255, 0.16), 0 0 20px rgba(45, 156, 255, 0.12);
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .card-hero,
  .hero-stage,
  .admin-hero,
  .info-grid,
  .landing-grid,
  .steps-grid,
  .showcase-grid,
  .news-grid,
  .stat-strip,
  .section-heading,
  .raid-head,
  .hero-highlights,
  .recruitment-layout,
  .recruitment-form-grid,
  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-copy {
    text-align: left;
  }

  .admin-stage-head,
  .admin-record-top {
    flex-direction: column;
  }

  .raid-meta {
    justify-content: start;
  }

  #reservationSearch {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, calc(100% - 24px));
  }

  .user-pill {
    min-width: 132px;
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .language-switcher {
    margin-left: auto;
  }

  .landing-overlay {
    inset: auto 14px 14px 14px;
    padding: 16px;
  }

  .rune-circle {
    width: 120px;
    height: 120px;
    opacity: 0.35;
  }

  .admin-subtabs {
    padding: 6px;
  }

  .admin-subtab {
    min-width: 0;
    width: 100%;
  }

  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .card-hero,
  .raid-section,
  .compact-card,
  .raid {
    padding: 18px;
  }

  .reservations li {
    grid-template-columns: 1fr;
  }
}