@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #f5f8fc;
  --bg-2: #e8eef6;
  --text: #0f172a;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.15);
  --btn-ghost-bg: rgba(15, 23, 42, 0.04);
  --btn-ghost-hover: rgba(15, 23, 42, 0.07);
  --foreground: #0f172a;
  --foreground-muted: rgba(15, 23, 42, 0.58);
  --foreground-secondary: rgba(15, 23, 42, 0.82);
  --foreground-faint: rgba(15, 23, 42, 0.38);
  --brand-400: rgba(56, 189, 248, 0.9);
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-900: #0c4a6e;
  --accent: #0ea5e9;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
}

.dark {
  --bg: #030712;
  --bg-2: #0a1220;
  --text: #e8f4fc;
  --line: hsla(210, 40%, 98%, 0.08);
  --line-strong: hsla(210, 40%, 98%, 0.14);
  --btn-ghost-bg: hsla(210, 40%, 98%, 0.04);
  --btn-ghost-hover: hsla(210, 40%, 98%, 0.08);
  --foreground: #e8f4fc;
  --foreground-muted: rgba(232, 244, 252, 0.58);
  --foreground-secondary: rgba(232, 244, 252, 0.82);
  --foreground-faint: rgba(232, 244, 252, 0.38);
  --accent: #38bdf8;
  color-scheme: dark;
}

html.dark select,
html.dark .staff-toolbar select,
html.dark .form-field select,
html.dark .wl-form select,
html.dark .apply-form select {
  background-color: #0a1220;
  color: #e8f4fc;
  border-color: hsla(210, 40%, 98%, 0.14);
  color-scheme: dark;
}

html.dark select option {
  background-color: #0a1220;
  color: #e8f4fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html.nav-loading {
  cursor: progress;
}

main {
  view-transition-name: page-main;
}

@view-transition {
  navigation: auto;
}

body {
  min-height: 100svh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Header */
.site-header:not(.header-ready) #nav-staff-panel,
.site-header:not(.header-ready) #nav-staff-panel-mobile,
.site-header:not(.header-ready) .header-user,
.site-header:not(.header-ready) .header-actions .btn-login,
.site-header:not(.header-ready) #header-login-mobile,
.site-header:not(.header-ready) #header-user-mobile {
  visibility: hidden;
}

.site-header.header-ready #nav-staff-panel[hidden],
.site-header.header-ready #nav-staff-panel-mobile[hidden] {
  display: none !important;
  visibility: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .header-inner {
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}

.logo-link img {
  width: 2.75rem;
  height: 2.75rem;
  user-select: none;
}

@media (min-width: 640px) {
  .logo-link img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.logo-text {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--foreground-secondary);
}

@media (min-width: 640px) {
  .logo-text {
    display: inline-block;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  justify-self: center;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  position: relative;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 13.5px;
  color: var(--foreground-muted);
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--foreground);
}

.desktop-nav a.active {
  color: var(--foreground);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1px;
  height: 1px;
  background: var(--brand-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.25rem;
  padding: 0.5rem;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
  transition: opacity 0.2s;
}

.icon-btn:hover {
  opacity: 0.75;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

.btn-login,
.btn-discord-login {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: none;
  border-radius: 0.375rem;
  background: #5865f2;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-login:hover,
.btn-discord-login:hover {
  background: #4752c4;
}

@media (min-width: 768px) {
  .btn-login:not([hidden]),
  .btn-discord-login:not([hidden]) {
    display: inline-flex;
  }
}

.header-actions .btn-login[hidden],
#header-login-mobile[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--btn-ghost-bg);
  color: var(--foreground);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--btn-ghost-hover);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-panel {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-nav.open .mobile-nav-panel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
}

.mobile-nav-inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  font-size: 15px;
  color: var(--foreground-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.mobile-nav-inner a:hover {
  border-color: var(--line-strong);
  color: var(--foreground);
}

.mobile-nav-inner a.active {
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(2, 132, 199, 0.1);
  color: var(--foreground);
}

.mobile-nav-inner .nav-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground-faint);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 30;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-login {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.btn-login-mobile,
.btn-discord-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.375rem;
  background: #5865f2;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn-login-mobile:hover,
.btn-discord-mobile:hover {
  background: #4752c4;
}

/* Main layout */
main {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
}

.bg-gradient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 20rem;
  background: linear-gradient(
    to bottom,
    rgba(2, 132, 199, 0.18),
    rgba(2, 132, 199, 0.06),
    transparent
  );
}

.dark .bg-gradient::before {
  background: linear-gradient(
    to bottom,
    rgba(12, 74, 110, 0.35),
    rgba(12, 74, 110, 0.1),
    transparent
  );
}

.page-section {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding: 9rem 1.5rem 8rem;
}

@media (min-width: 640px) {
  .page-section {
    padding-top: 11rem;
  }
}

.page-section--wide {
  max-width: 72rem;
}

@media (min-width: 1100px) {
  .page-section--wide {
    max-width: min(100rem, calc(100vw - 2.5rem));
  }
}

.home-section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 9rem 1.5rem 4rem;
}

@media (min-width: 640px) {
  .home-section {
    padding-top: 11rem;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--brand-400);
}

.page-title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-wrap: balance;
}

.lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--foreground-muted);
  text-wrap: pretty;
}

.content-body {
  margin-top: 3rem;
  font-size: 15px;
  line-height: 1.625;
  color: var(--foreground-secondary);
}

/* TOC */
.toc {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--foreground-faint);
}

.toc-list {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.75rem;
  list-style: none;
}

@media (min-width: 640px) {
  .toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 14.5px;
  color: var(--foreground-secondary);
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--foreground);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--foreground-faint);
  transition: color 0.2s;
}

.toc-list a:hover .toc-num {
  color: var(--brand-500);
}

/* Rule sections */
.rule-section {
  margin-top: 4rem;
  scroll-margin-top: 7rem;
}

.rule-section:first-of-type {
  margin-top: 0;
}

.rule-divider {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.rule-heading {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

.rule-content {
  margin-top: 1.25rem;
}

.rule-content > * + * {
  margin-top: 1rem;
}

.rule-content p {
  line-height: 1.75;
}

.rule-content strong {
  font-weight: 600;
  color: var(--foreground);
}

.rule-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.rule-content ul li {
  margin-top: 0.75rem;
  line-height: 1.75;
}

.rule-content ul li::marker {
  color: rgba(2, 132, 199, 0.75);
}

.rule-content ul ul {
  margin-top: 0.5rem;
  list-style: circle;
}

.rule-content ul ul li {
  margin-top: 0.25rem;
}

/* CTA box */
.cta-box {
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.cta-box h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

.cta-box p {
  margin-top: 0.75rem;
  font-size: 14.5px;
  line-height: 1.625;
  color: var(--foreground-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  background: var(--brand-600);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--brand-500);
}

.btn-primary:disabled,
button.btn-primary:disabled {
  background: var(--brand-900);
  color: #fff;
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  color: var(--foreground-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--line);
  color: var(--foreground);
}

/* Home page blocks */
.home-block {
  margin-top: 4rem;
}

.home-block h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.home-block p {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.75;
  color: var(--foreground-secondary);
}

.home-block p + p {
  margin-top: 1rem;
}

.home-hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--brand-400);
}

.home-subtitle {
  margin-top: 0.5rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 14px;
  color: var(--foreground-muted);
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--foreground-faint);
}

.footer-links {
  margin-top: 1rem;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.625rem;
}

.footer-links a {
  font-size: 14px;
  color: var(--foreground-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--foreground-faint);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

/* Fade in — instant (no scroll lag) */
.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.logo-link img {
  object-fit: contain;
}

/* Shop */
.shop-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.shop-card-category {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-500);
}

.shop-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  border-radius: 0;
  background: var(--bg);
  object-fit: cover;
}

.shop-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground-faint);
}

.shop-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
}

.shop-price {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-600);
}

.shop-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px rgba(2, 132, 199, 0.08);
}

.shop-card-body > p {
  margin-top: 0.75rem;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--foreground-muted);
  flex: 1;
}

.shop-perks {
  margin-top: 1rem;
  list-style: none;
}

.shop-perks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 13.5px;
  color: var(--foreground-secondary);
}

.shop-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 700;
}

.shop-card .btn-primary {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

.shop-note {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--foreground-muted);
  text-align: center;
}

/* Whitelist form */
.whitelist-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .whitelist-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.whitelist-sidebar,
.whitelist-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.whitelist-sidebar h3,
.whitelist-form h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.whitelist-sidebar p {
  font-size: 14px;
  color: var(--foreground-muted);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.sidebar-tip {
  font-size: 13px;
}

.sidebar-tip a {
  color: var(--brand-500);
  text-decoration: underline;
}

.discord-linked {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  font-size: 14px;
}

.discord-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.discord-hint {
  margin-top: 1rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

.discord-hint.warn {
  color: #f59e0b;
}

.form-field {
  margin-top: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.form-field-hint {
  margin: -0.15rem 0 0.55rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--foreground-muted);
}

.form-field .required {
  color: var(--brand-500);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(2, 132, 199, 0.35);
  border-color: var(--brand-500);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--foreground-faint);
}

.form-field select option {
  background: var(--bg-2);
  color: var(--foreground);
}

.form-field-checkbox {
  margin-top: 1.5rem;
}

.form-field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--foreground-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.form-field-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-500);
}

.form-actions {
  margin-top: 1.5rem;
}

.form-alert {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 14.5px;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.dark .form-alert.success {
  color: #4ade80;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--btn-ghost-bg);
}

/* Staff panel */
.staff-panel-wrap {
  padding-top: 5.5rem;
  padding-bottom: 2rem;
}

.staff-panel-wrap .page-title {
  font-size: 1.5rem;
}

.staff-panel-wrap .lead {
  font-size: 0.9rem;
}

.staff-panel-wrap .staff-header {
  margin-bottom: 1rem;
}

.staff-panel-wrap .staff-stats {
  margin-bottom: 0.85rem;
}

.staff-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.staff-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.staff-login-form {
  max-width: 360px;
  margin-top: 2rem;
}

.staff-login-options {
  max-width: 360px;
  margin-top: 2rem;
}

.staff-login-options .btn-discord-login {
  width: 100%;
  justify-content: center;
}

.login-divider {
  text-align: center;
  color: var(--foreground-muted);
  font-size: 13px;
  margin: 1rem 0;
}

.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--foreground-muted);
}

.staff-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .staff-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.staff-stat {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-2);
  text-align: center;
}

.staff-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.staff-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--foreground-muted);
}

.staff-stat-pending .staff-stat-num {
  color: #d97706;
}

.staff-stat-approved .staff-stat-num {
  color: #16a34a;
}

.staff-stat-denied .staff-stat-num {
  color: #dc2626;
}

.staff-toolbar select {
  margin-left: 0.5rem;
  padding: 0.45rem 0.65rem;
  min-width: 9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg-2);
  color: var(--foreground);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.staff-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .staff-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1400px) {
  .staff-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.staff-list-wrap,
.staff-detail-wrap {
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.staff-detail-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 11rem);
}

.staff-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem 1rem;
  min-height: 0;
}

.detail-actions-dock {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: 0 -10px 28px rgba(2, 8, 23, 0.14);
  border-radius: 0 0 0.375rem 0.375rem;
}

html.dark .detail-actions-dock {
  background: rgba(16, 16, 20, 0.98);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.45);
}

.detail-actions-dock.staff-actions {
  margin-top: 0;
}

.staff-dock-btn {
  flex: 1 1 140px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  text-align: center;
}

.staff-dock-approve {
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.staff-dock-approve:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

.staff-dock-deny {
  min-width: 140px;
}

.staff-dock-delete {
  flex: 0 1 auto;
  min-width: 88px;
  min-height: 46px;
  font-size: 14px;
}

.detail-history-title {
  margin-top: 1.25rem;
}

.staff-stat-unhandled .staff-stat-num {
  color: var(--foreground-muted);
}

.staff-list {
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
}

.staff-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background 0.15s;
}

.staff-item:hover,
.staff-item.active {
  background: rgba(2, 132, 199, 0.08);
}

.staff-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--foreground);
}

.staff-item-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 4px;
}

.staff-item-date {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--foreground-faint);
}

.staff-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.staff-badge.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.staff-badge.status-denied {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.staff-detail {
  padding: 1rem 1.15rem 1.25rem;
}

.staff-empty {
  padding: 2rem;
  text-align: center;
  color: var(--foreground-muted);
  font-size: 14px;
}

.staff-empty-inline {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--foreground-muted);
  font-size: 14px;
}

.detail-applicant-card {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
}

@media (min-width: 900px) {
  .detail-applicant-top {
    align-items: center;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detail-actions-top {
  position: sticky;
  top: 4.5rem;
  z-index: 8;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--bg-2);
  box-shadow: 0 4px 18px rgba(2, 8, 23, 0.12);
}

html.dark .detail-actions-top {
  background: rgba(18, 18, 22, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.detail-actions-top.staff-actions {
  margin-top: 0;
}

.detail-body-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1100px) {
  .detail-body-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.75fr);
    align-items: start;
  }
}

.detail-body-side .detail-staff-note {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.detail-body-side .detail-section-title {
  margin-top: 1rem;
}

.detail-applicant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.detail-applicant-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}

.detail-meta-grid dt {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground-faint);
}

.detail-meta-grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--foreground-secondary);
  line-height: 1.4;
}

.detail-meta-grid code {
  font-size: 12px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--foreground);
  word-break: break-all;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.detail-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground-faint);
}

.detail-section-head + .detail-answers,
.detail-staff-note + .detail-section-title {
  margin-top: 0;
}

.detail-staff-note + .detail-section-title {
  margin-top: 1.25rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 12px !important;
}

.detail-answers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-answers.has-long {
  gap: 0;
}

.detail-answers-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
}

@media (min-width: 1100px) {
  .detail-answers-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.detail-answer-quick {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.detail-answer-quick-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground-faint);
  line-height: 1.3;
}

.detail-answer-quick-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  word-break: break-word;
}

.detail-answers-long {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  overflow: hidden;
}

.detail-answer-long {
  padding: 0.75rem 0.9rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1100px) {
  .detail-answers-long {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-answer-long {
    border-right: 1px solid var(--line);
    min-height: 100%;
  }

  .detail-answer-long:nth-child(2n) {
    border-right: none;
  }

  .detail-answer-long:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .detail-answer-long:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }
}

.detail-answer-long-title {
  margin: 0 0 0.7rem;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--foreground);
}

.detail-answer-prose {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foreground-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: none;
}

.detail-answers.is-editing {
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
}

.detail-staff-note {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.detail-staff-note label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground-faint);
}

.detail-staff-note textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.detail-history {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  overflow: hidden;
}

.detail-history-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.detail-history-item:last-child {
  border-bottom: none;
}

.detail-history-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.detail-history-meta {
  font-size: 12px;
  color: var(--foreground-muted);
}

.detail-actions-bar {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.detail-actions-bar.staff-actions {
  margin-top: 0;
}

.detail-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.detail-meta {
  margin-top: 0.35rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

.detail-block {
  margin-bottom: 1rem;
}

.detail-block h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground-faint);
  margin-bottom: 0.35rem;
}

.detail-block p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--foreground-secondary);
  white-space: pre-wrap;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.staff-action-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.staff-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.staff-action-group-danger {
  margin-left: auto;
}

.detail-actions-top .staff-action-groups {
  margin: 0;
}

.detail-actions-top .staff-actions {
  margin-top: 0;
  width: 100%;
}

.btn-danger {
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}

.btn-danger-solid {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-danger-solid:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-danger-solid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-danger-outline {
  border: 1px solid rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

html.dark .btn-danger-outline {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

html.dark .btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.28);
}

.detail-edit-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.staff-log-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  font-size: 13px;
  color: var(--foreground-secondary);
}

.staff-log-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.application-status {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.application-status h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.application-status.status-approved {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.application-status.status-denied {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.application-status.status-pending {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.application-status p {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--foreground-secondary);
  line-height: 1.6;
}

.status-meta {
  margin-top: 0.5rem !important;
  font-size: 12px !important;
  color: var(--foreground-faint) !important;
}

/* ─── Ansøgnings-dashboard ─────────────────────────────────── */
.apply-page {
  color: var(--foreground);
}

.apply-page .page-title,
.apply-page .lead,
.apply-dashboard-header h1,
.apply-form h3,
.apply-sidebar h3,
.staff-role-card h3,
.dashboard-section-title,
.dashboard-status-row strong {
  color: var(--foreground);
}

.apply-page .lead,
.apply-form-intro {
  color: var(--foreground-secondary);
}

.apply-page .page-title {
  margin-bottom: 0.5rem;
}

.apply-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.25rem;
}

.apply-tab {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  color: var(--foreground-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.apply-tab:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.apply-tab.active {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
}

.apply-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .apply-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.apply-sidebar {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.apply-sidebar h3,
.apply-form h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.apply-sidebar p {
  font-size: 14px;
  color: var(--foreground-secondary);
  line-height: 1.5;
}

.apply-main {
  min-width: 0;
}

.apply-form {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.apply-dashboard {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.apply-form-intro {
  font-size: 14px;
  color: var(--foreground-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.apply-dashboard {
  margin-bottom: 1.25rem;
}

.apply-dashboard.status-approved {
  border-color: rgba(34, 197, 94, 0.35);
}

.apply-dashboard.status-denied {
  border-color: rgba(239, 68, 68, 0.35);
}

.apply-dashboard.status-pending {
  border-color: rgba(245, 158, 11, 0.35);
}

.dashboard-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--foreground-muted);
  margin-bottom: 0.35rem;
}

.dashboard-dates p {
  font-size: 13px;
  color: var(--foreground-secondary);
  margin: 0.25rem 0;
}

.dashboard-dates span {
  color: var(--foreground-muted);
}

.dashboard-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 14px;
  color: var(--foreground-secondary);
}

.dashboard-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.readonly-answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.readonly-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.readonly-value {
  font-size: 14px;
  color: var(--foreground-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
}

.dashboard-reapply {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--foreground-secondary);
}

.staff-teaser {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.staff-teaser h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--foreground);
}

.staff-teaser p {
  font-size: 13px;
  margin-bottom: 0.75rem;
  color: var(--foreground-secondary);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 13px;
}

/* ─── Whitelist & ansøgninger (Navigate blå) ─── */
.wl-page,
.staff-apply-page,
.apply-page {
  --apply-accent: var(--brand-400);
  --apply-accent-strong: var(--brand-500);
}

.wl-page .fade-in,
.staff-apply-page .fade-in,
.apply-page .fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.wl-page {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--foreground);
}

.wl-page-header {
  margin-bottom: 1.25rem;
}

.wl-page .eyebrow,
.staff-apply-page .eyebrow {
  color: var(--apply-accent);
}

.wl-page-header .page-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wl-page-header .lead {
  color: var(--foreground-secondary);
  font-size: 14px;
  line-height: 1.55;
  max-width: 40rem;
}

.wl-card-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-muted);
}

.wl-status-card {
  margin-bottom: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.wl-status-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.wl-status-left {
  flex: 1 1 220px;
  min-width: 0;
}

.wl-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.wl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.wl-status-badge.status-approved {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.wl-status-badge.status-pending {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.wl-status-badge.status-denied {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.wl-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.wl-status-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground-muted);
}

.wl-status-dates {
  flex: 0 0 auto;
  text-align: right;
}

.wl-status-dates p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--foreground-muted);
}

.wl-status-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 14px;
  color: var(--foreground-secondary);
}

.wl-approved-info {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.375rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 14px;
  line-height: 1.55;
  color: var(--foreground-secondary);
}

.wl-approved-info p {
  margin: 0;
}

.wl-pending-info {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
}

.wl-revoked-info {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.28);
}

.wl-reapply-wait {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.5;
}

.wl-staff-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.wl-staff-card-body {
  flex: 1 1 240px;
  min-width: 0;
}

.wl-staff-card-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--foreground-secondary);
}

.wl-staff-card-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.wl-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wl-fields-row {
  display: grid;
  gap: 1rem;
}

.wl-fields-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .wl-fields-row--2 {
    grid-template-columns: 1fr;
  }

  .wl-status-dates {
    text-align: left;
    width: 100%;
  }
}

.wl-field {
  min-width: 0;
}

.wl-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--apply-accent);
}

.wl-field-hint {
  margin: 0 0 0.45rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--foreground-muted);
}

.wl-input,
.wl-form textarea,
.wl-form input,
.wl-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  color: var(--foreground);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.wl-form textarea {
  min-height: 96px;
  resize: vertical;
}

.wl-form input:focus,
.wl-form textarea:focus,
.wl-form select:focus {
  outline: none;
  border-color: var(--apply-accent-strong);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.wl-form input:disabled,
.wl-form textarea:disabled,
.wl-form select:disabled {
  opacity: 1;
  color: var(--foreground);
  background: var(--bg-2);
  cursor: default;
  border-color: var(--line);
  box-shadow: none;
  -webkit-text-fill-color: var(--foreground);
}

.wl-form input:disabled::placeholder,
.wl-form textarea:disabled::placeholder {
  color: transparent;
}

.apply-form .wl-input,
.apply-form textarea,
.apply-form input,
.apply-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  color: var(--foreground);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.apply-form textarea {
  min-height: 96px;
  resize: vertical;
}

.apply-form input:focus,
.apply-form textarea:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--apply-accent-strong);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.apply-form .wl-field {
  margin-top: 1rem;
}

.wl-regler-label a:hover {
  text-decoration: underline;
}

.apply-form .wl-field:first-child {
  margin-top: 0;
}

.wl-field-checkbox {
  margin-top: 0.35rem;
}

.wl-regler-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--foreground-secondary);
  cursor: pointer;
}

.wl-regler-label input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--apply-accent-strong);
}

.wl-regler-label a {
  color: var(--apply-accent);
  text-decoration: none;
}

.wl-form-actions {
  margin-top: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
}

.wl-discord-gate {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.wl-discord-gate p {
  color: var(--foreground-secondary);
  margin-bottom: 1.25rem;
  font-size: 15px;
}

.btn-text.back-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
}

.btn-text.back-link:hover {
  text-decoration: underline;
}

.staff-apply-page {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.staff-logged-in-card {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.staff-logged-in-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.staff-logged-in-id {
  margin: 0.35rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--foreground-muted);
}

.staff-type-label {
  margin-bottom: 0.85rem;
}

.staff-apply-view {
  margin-top: 1.5rem;
}

.staff-role-picker {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .staff-role-picker {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-role-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
  cursor: pointer;
  min-height: 100%;
}

.staff-role-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.staff-role-card.is-selected {
  border-color: var(--apply-accent-strong);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

.staff-role-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-role-card-body {
  flex: 1;
  min-width: 0;
}

.staff-role-radio-ui {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
}

.staff-role-card.is-selected .staff-role-radio-ui {
  border-color: var(--apply-accent-strong);
  background: radial-gradient(circle at center, var(--apply-accent-strong) 0 42%, transparent 43%);
}

.staff-role-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.65rem;
}

.staff-role-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.staff-role-card p {
  font-size: 14px;
  color: var(--foreground-secondary);
  line-height: 1.6;
  margin: 0;
}

.staff-role-cta {
  display: none;
}

.staff-role-status {
  flex-shrink: 0;
  font-size: 10px !important;
}

/* ─── Redefined-style home hero ─────────────────────────────── */

:root {
  --hero-text: #f8fafc;
  --hero-muted: rgba(248, 250, 252, 0.72);
  --hero-faint: rgba(248, 250, 252, 0.42);
  --hero-border: rgba(248, 250, 252, 0.22);
  --hero-border-hover: rgba(248, 250, 252, 0.38);
}

.home-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(14, 165, 233, 0.35) 0%, transparent 65%),
    linear-gradient(160deg, #020617 0%, #0c4a6e 45%, #030712 100%);
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("assets/logo.svg") center / 120% no-repeat;
  filter: blur(48px) brightness(0.35) saturate(1.2);
  opacity: 0.45;
  transform: scale(1.08);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(14, 165, 233, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0.55) 55%, rgba(3, 7, 18, 0.92) 100%);
}

.home-hero-fade {
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 14rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.home-hero-inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
}

.home-hero-logo {
  width: min(280px, 72vw);
  height: auto;
  user-select: none;
}

@media (min-width: 640px) {
  .home-hero-logo {
    width: min(400px, 60vw);
  }
}

@media (min-width: 768px) {
  .home-hero-logo {
    width: min(480px, 50vw);
  }
}

.home-hero-tagline {
  margin-top: 2.5rem;
  max-width: 36rem;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--hero-muted);
  text-wrap: balance;
}

.home-hero .hero-actions {
  justify-content: center;
  margin-top: 2.5rem;
}

.home-hero .btn-primary {
  padding: 0.75rem 1.5rem;
}

.home-hero .btn-outline {
  border-color: var(--hero-border);
  color: var(--hero-text);
}

.home-hero .btn-outline:hover {
  border-color: var(--hero-border-hover);
  color: var(--hero-text);
}

.home-status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--hero-faint);
}

.home-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #f97316;
  animation: slow-pulse 2.4s ease-in-out infinite;
}

@keyframes slow-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.home-content-section {
  border-top: 1px solid var(--line);
}

.home-content-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

@media (min-width: 640px) {
  .home-content-inner {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.home-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-grid-cell {
  background: var(--bg);
  padding: 2rem;
}

@media (min-width: 640px) {
  .home-grid-cell {
    padding: 2.5rem 3rem;
  }
}

.home-grid-cell h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

.home-grid-cell h2 .text-brand {
  color: var(--brand-500);
}

.home-grid-cell p {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.75;
  color: var(--foreground-secondary);
}

.home-grid-cell p + p {
  margin-top: 1rem;
}

.home-cta-section {
  border-top: 1px solid var(--line);
}

.home-cta-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.home-cta-inner h3 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

.home-cta-inner .cta-actions {
  justify-content: center;
  margin-top: 2rem;
}

/* Hero header overlay (transparent on home) */
.site-header--hero:not(.scrolled) {
  border-bottom-color: transparent;
  background: transparent;
}

.site-header--hero:not(.scrolled) .logo-text,
.site-header--hero:not(.scrolled) .desktop-nav a,
.site-header--hero:not(.scrolled) .icon-btn {
  color: var(--hero-text);
}

.site-header--hero:not(.scrolled) .desktop-nav a {
  color: rgba(248, 250, 252, 0.75);
}

.site-header--hero:not(.scrolled) .desktop-nav a:hover,
.site-header--hero:not(.scrolled) .desktop-nav a.active {
  color: var(--hero-text);
}

.site-header--hero:not(.scrolled) .desktop-nav a.active::after {
  background: var(--hero-text);
}

.site-header--hero:not(.scrolled) .menu-toggle {
  border-color: rgba(248, 250, 252, 0.25);
  background: rgba(248, 250, 252, 0.1);
  color: var(--hero-text);
}

.site-header--hero:not(.scrolled) .menu-toggle:hover {
  background: rgba(248, 250, 252, 0.15);
}

/* Login page */
.login-page {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.login-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.login-card-logo {
  width: min(200px, 50vw);
  height: auto;
  margin: 0 auto;
}

.login-card .eyebrow {
  margin-top: 2rem;
}

.login-card h1 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.login-card .lead {
  margin: 1rem auto 0;
}

.login-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
}

/* Header user session */
.header-user {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .header-user:not([hidden]) {
    display: inline-flex;
  }
}

.header-user-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--foreground-secondary);
}

.site-header--hero:not(.scrolled) .header-user-name {
  color: rgba(248, 250, 252, 0.85);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--btn-ghost-bg);
  color: var(--foreground-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-logout:hover {
  background: var(--btn-ghost-hover);
  color: var(--foreground);
}

.site-header--hero:not(.scrolled) .btn-logout {
  border-color: rgba(248, 250, 252, 0.25);
  background: rgba(248, 250, 252, 0.08);
  color: rgba(248, 250, 252, 0.9);
}

.mobile-nav-user {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.mobile-nav-user .header-user-name {
  max-width: none;
  font-size: 13px;
  color: var(--foreground-muted);
}

.mobile-nav-user .btn-login-mobile {
  background: var(--btn-ghost-bg);
  color: var(--foreground);
  border: 1px solid var(--line-strong);
}

.mobile-nav-user .btn-login-mobile:hover {
  background: var(--btn-ghost-hover);
}

/* Member dashboard page */
.dash-page {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.dash-page-header {
  margin-bottom: 1.5rem;
}

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg-2);
}

.dash-card-approved {
  border-color: rgba(34, 197, 94, 0.35);
}

.dash-card-pending {
  border-color: rgba(245, 158, 11, 0.35);
}

.dash-card-denied {
  border-color: rgba(239, 68, 68, 0.35);
}

.dash-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dash-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--brand-400);
  margin-bottom: 0.35rem;
}

.dash-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.dash-card-copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--foreground-secondary);
}

.dash-card-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--foreground-muted);
  margin-right: 0.5rem;
}

.dash-card-meta-line {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

.dash-card-meta-line span {
  font-weight: 600;
  color: var(--foreground-secondary);
  margin-right: 0.35rem;
}

.dash-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.member-dashboard {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--foreground);
}

.member-dashboard .apply-dashboard-header {
  margin-bottom: 0;
}

.member-dashboard .apply-tabs {
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
}

.member-tab-panel {
  animation: fadeInPanel 0.2s ease;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-dashboard .wl-panel {
  margin-top: 0;
}

.member-dashboard .staff-role-picker {
  margin-top: 0;
}

.nav-dashboard[hidden],
.nav-staff[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .desktop-nav .nav-dashboard:not([hidden]),
  .desktop-nav .nav-staff:not([hidden]) {
    display: inline;
  }
}

.staff-badge.status-none {
  background: rgba(148, 163, 184, 0.15);
  color: var(--foreground-muted);
}

/* Shop admin */
.shop-admin {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-2);
}

.shop-admin-head h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.shop-admin-hint {
  font-size: 13px;
  color: var(--foreground-muted);
  margin-bottom: 1rem;
}

.shop-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .shop-admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-span-2 {
    grid-column: span 2;
  }
}

.shop-admin-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shop-admin-form .field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground-secondary);
}

.shop-admin-form input,
.shop-admin-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font: inherit;
}

.field-hint {
  font-size: 12px;
  color: var(--foreground-muted);
  margin-top: 0.25rem;
}

.shop-image-preview {
  margin-top: 1rem;
}

.shop-image-preview img {
  max-width: 280px;
  max-height: 160px;
  border-radius: 0.375rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.shop-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.shop-card-admin {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.shop-no-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

.shop-empty {
  margin-top: 2rem;
  text-align: center;
  color: var(--foreground-muted);
}

.shop-access-panel {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-2);
}

.staff-access-panel,
#staff-access-panel {
  display: none !important;
}

.staff-access-open-btn {
  white-space: nowrap;
}

.staff-access-type-picker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--foreground-muted);
}

.staff-access-type-picker select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font: inherit;
}

.staff-access-type-picker input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font: inherit;
}

.staff-access-type-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--foreground-muted);
}

body.staff-access-sidebar-open {
  overflow: hidden;
}

.staff-access-sidebar {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.staff-access-sidebar.open {
  pointer-events: auto;
}

.staff-access-sidebar[hidden] {
  display: none !important;
}

.staff-access-sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(2, 8, 23, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.staff-access-sidebar.open .staff-access-sidebar-backdrop {
  opacity: 1;
}

.staff-access-sidebar-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(480px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: -12px 0 40px rgba(2, 8, 23, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

.staff-access-sidebar.open .staff-access-sidebar-panel {
  transform: translateX(0);
}

.staff-access-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.staff-access-sidebar-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.staff-access-sidebar-head .lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.staff-access-sidebar-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.staff-access-sidebar-close:hover {
  border-color: var(--line-strong);
}

.staff-access-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.staff-access-sidebar-actions .btn-primary,
.staff-access-sidebar-actions .btn-outline {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.staff-access-sidebar .staff-access-types {
  display: block;
  flex: 1;
  min-height: 0;
}

.staff-access-sidebar .staff-access-type {
  padding: 0;
  border: 0;
  background: transparent;
}

.staff-access-sidebar .staff-access-roles {
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.staff-access-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.staff-access-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.staff-access-panel-head .lead {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.staff-access-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.staff-access-type {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
}

.staff-access-type h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.staff-access-open-types {
  margin: 0.25rem 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.staff-access-open-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.staff-access-open-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.staff-access-open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.staff-access-open-toggle {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--foreground-muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  min-width: 4.5rem;
}

.staff-access-open-toggle.is-open {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.staff-access-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}

.staff-access-type-tab {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--foreground);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.staff-access-type-tab.active {
  border-color: var(--brand-500);
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand-600, var(--brand-500));
}

.staff-access-type-count {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35;
}

.staff-access-roles {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(55vh, 480px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.staff-access-roles-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--foreground-muted);
}

.staff-access-roles-error {
  margin: 0 0 0.5rem;
}

.staff-access-role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
}

.staff-access-role:hover {
  border-color: var(--line);
  background: rgba(2, 132, 199, 0.06);
}

.staff-access-role-name {
  border-left: 3px solid var(--role-color, var(--line-strong));
  padding-left: 0.45rem;
}

.staff-access-lead-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--foreground-muted);
  line-height: 1.45;
}

.staff-access-live-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--brand-500);
}

.staff-access-role input {
  flex-shrink: 0;
}

.staff-user-access-line {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--foreground-muted);
}

.shop-add-btn[hidden],
#shop-sidebar.shop-admin-hidden,
#shop-sidebar[hidden] {
  display: none !important;
}

.shop-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shop-add-btn {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

body.shop-sidebar-open {
  overflow: hidden;
}

.shop-sidebar {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.shop-sidebar.open {
  pointer-events: auto;
}

.shop-sidebar-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 23, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.shop-sidebar.open .shop-sidebar-backdrop {
  opacity: 1;
}

.shop-sidebar-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: -12px 0 40px rgba(2, 8, 23, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

.shop-sidebar.open .shop-sidebar-panel {
  transform: translateX(0);
}

.shop-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.shop-sidebar-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.shop-sidebar-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--foreground);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.shop-sidebar-close:hover {
  border-color: var(--line-strong);
}

.shop-sidebar .shop-admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shop-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.shop-sidebar-actions .btn-primary,
.shop-sidebar-actions .btn-outline {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.shop-role-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 1rem 0;
}

.shop-role-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  font-size: 14px;
  cursor: pointer;
}

.shop-role-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-500);
}

.shop-role-check span {
  color: var(--foreground);
}

/* Ansøgninger hub */
.apply-hub-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .apply-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .apply-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.apply-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-2);
  min-height: 100%;
}

.apply-hub-card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.apply-hub-card--link:hover {
  border-color: var(--brand-400);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

.apply-hub-card--soon {
  opacity: 0.72;
}

.apply-hub-card h2 {
  font-size: 1.2rem;
  color: var(--foreground);
}

.apply-hub-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--foreground-muted);
  flex: 1;
}

.apply-hub-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apply-hub-badge--closed {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.apply-hub-card--closed {
  opacity: 0.85;
  cursor: default;
}

.apply-hub-card--closed .apply-hub-arrow {
  color: var(--foreground-muted);
}

.apply-closed-msg {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.06);
  color: var(--foreground-muted);
}

html.dark .apply-hub-badge--closed {
  color: #f87171;
}

.apply-hub-badge--open {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.apply-hub-badge--soon {
  background: rgba(148, 163, 184, 0.15);
  color: var(--foreground-muted);
}

.apply-hub-arrow {
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-500);
}

html.dark .apply-hub-badge--open {
  color: #4ade80;
}

