:root {
  --bg: #0c0e14;
  --fg: #e8eaef;
  --card: #131722;
  --card-hover: #1a2030;
  --panel: #0f1219;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --muted: #8b93a7;
  --border: #252b3b;
  --hero-from: #111827;
  --hero-via: #1e1b4b;
  --hero-to: #0f172a;
  --radius: 12px;
  --shadow: rgba(0, 0, 0, 0.35);
  --danger: #ef4444;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.has-site-backdrop {
  background: var(--bg);
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(99, 102, 241, 0.11), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(59, 130, 246, 0.07), transparent 55%);
}

.site-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 0.6px, transparent 0.6px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

body.page-inner main,
body.auth-layout .auth-shell {
  position: relative;
  z-index: 1;
}

body.page-inner .card,
body.page-inner .support-sidebar {
  background: rgba(19, 23, 34, 0.82);
  backdrop-filter: blur(4px);
  border-color: rgba(96, 165, 250, 0.12);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(59, 130, 246, 0.06);
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(19, 23, 34, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-logo-header {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-logo-footer {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.site-logo-hero-wordmark {
  height: clamp(40px, 7vw, 58px);
  max-width: min(280px, 80vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.45));
}

.hero-logo-wrap {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-logo-hero-banner {
  width: min(560px, 94vw);
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: center 45%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.site-logo-hero {
  height: clamp(44px, 8vw, 64px);
  max-width: min(320px, 90vw);
  margin: 0 auto;
}

.site-logo-auth {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.site-logo-mobile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-brand {
  margin-bottom: 1rem;
}

.site-footer-inner {
  text-align: center;
}

.logo:hover {
  text-decoration: none;
  color: var(--fg);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.nav-login {
  font-weight: 700 !important;
  color: var(--fg) !important;
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-hover);
}

.nav-discord {
  color: #a5b4fc !important;
}

.nav-discord:hover {
  color: #c4b5fd !important;
}

.btn-discord:hover {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.12);
}

.site-footer-links {
  margin: 0.5rem 0 0;
}

.site-footer-links a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.5rem 0;
  color: var(--fg);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  color: var(--fg);
}

.btn-disabled {
  background: #2a3344;
  color: #6b7a90;
  border: 1px solid var(--border);
  cursor: not-allowed;
  opacity: 0.75;
  user-select: none;
}

.btn-disabled:hover {
  transform: none;
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-home {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--bg);
}

.hero-home {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop-image {
  position: absolute;
  inset: -10% 0 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center 35%;
  opacity: 0.28;
  filter: saturate(1.15) blur(0.5px);
  transform: scale(1.05);
}

.hero-backdrop-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(59, 130, 246, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 50%, rgba(59, 130, 246, 0.1), transparent 55%);
}

.hero-backdrop-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 20, 0.55) 0%,
    rgba(12, 14, 20, 0.82) 55%,
    var(--bg) 100%
  );
}

.hero-home .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-home .hero-badge {
  background: rgba(19, 23, 34, 0.75);
  border-color: rgba(96, 165, 250, 0.25);
  color: #93c5fd;
  backdrop-filter: blur(6px);
}

.hero-home h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-cta-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-cta-card .btn {
  margin-top: 0.5rem;
}

.panel-showcase {
  padding-top: 0;
}

.panel-slideshow {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.panel-slideshow-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 40px var(--shadow);
}

.panel-slideshow-track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0e14;
}

.panel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.panel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.panel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #0b0e14;
}

.panel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  background: linear-gradient(180deg, transparent, rgba(12, 14, 20, 0.92) 35%);
}

.panel-slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(19, 23, 34, 0.92);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.panel-slideshow-btn:hover {
  background: var(--card-hover);
  border-color: rgba(96, 165, 250, 0.35);
}

.panel-slideshow-prev {
  left: -0.25rem;
}

.panel-slideshow-next {
  right: -0.25rem;
}

.panel-slideshow-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.panel-slideshow-dot {
  width: 0.62rem;
  height: 0.62rem;
  border: 0;
  border-radius: 999px;
  background: rgba(139, 147, 167, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.panel-slideshow-dot.is-active {
  background: var(--accent-hover);
  transform: scale(1.2);
}

@media (max-width: 720px) {
  .panel-slideshow-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.25rem;
  }

  .panel-slideshow-prev {
    left: 0.35rem;
  }

  .panel-slideshow-next {
    right: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-slide {
    transition: none;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--fg);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--fg);
}

.card h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--fg);
}

.card p,
.card li {
  color: var(--muted);
}

.card code {
  background: var(--panel);
  color: var(--accent-hover);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.88em;
}

.card ol,
.card ul {
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.note {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #93c5fd;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.note strong {
  color: #bfdbfe;
}

.page-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
}

.page-banner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(37, 43, 59, 0.6);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner-text h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
}

.page-banner-text p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.page-banner--staff::before {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%);
}

.page-banner--support::before {
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%);
}

.page-banner--docs::before {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(129, 140, 248, 0.18), transparent 70%);
}

.page-banner--tickets::before {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%);
}

.page-banner--account::before {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(96, 165, 250, 0.14), transparent 70%);
}

.page-banner--admin::before {
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.18) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%);
}

.page-banner--news::before {
  background:
    linear-gradient(180deg, rgba(236, 72, 153, 0.16) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%);
}

.page-banner--about::before {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
}

.page-banner--legal::before {
  background:
    linear-gradient(180deg, rgba(100, 116, 139, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(71, 85, 105, 0.16), transparent 70%);
}

.section-muted {
  background: color-mix(in srgb, var(--card) 40%, transparent);
}

.home-links-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.home-link-card {
  display: block;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.home-link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.home-link-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.05rem;
}

.home-link-card p {
  margin: 0;
  font-size: 0.9rem;
}

.home-link-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-content {
  padding: 1.75rem 2rem;
  max-width: 52rem;
}

.legal-content h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  line-height: 1.65;
  color: var(--muted);
}

.legal-content a {
  color: var(--accent);
}

.legal-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-updated {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.site-footer-legal {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer-legal a {
  color: #a5b4fc;
  text-decoration: none;
}

.site-footer-legal a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.news-page,
.news-post-page {
  padding: 2rem 0 3rem;
}

.news-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.news-grid-home {
  margin-bottom: 0.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem;
  height: 100%;
}

.news-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.news-card-title a {
  color: var(--text);
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  margin: 0;
  flex: 1;
  line-height: 1.55;
  font-size: 0.95rem;
}

.news-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.news-read-more:hover {
  text-decoration: underline;
}

.news-home-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.news-empty {
  padding: 2.5rem;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.news-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.news-post-body {
  padding: 1.75rem 2rem;
  line-height: 1.75;
  font-size: 1rem;
}

.news-post-body p {
  margin: 0 0 1rem;
}

.news-back-link {
  margin: 1.25rem 0 0;
}

.news-draft-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.9rem;
}

.news-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-status-published {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.news-status-draft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}

.news-edit-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.news-delete-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Brugerblok nederst — konto + log ud */
body.has-user-bar .site-footer {
  padding-bottom: calc(2rem + 100px);
}

.site-user-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: 240px;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.site-user-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s;
}

.site-user-account:hover,
.site-user-account.active {
  background: var(--card-hover);
  text-decoration: none;
}

.site-user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.site-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-user-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-user-logout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.site-user-logout:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  text-decoration: none;
}

.site-user-logout-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .site-user-bar {
    width: 100%;
    border-right: none;
  }

  body.has-user-bar .site-footer {
    padding-bottom: calc(2rem + 108px);
  }
}

.site-footer p {
  margin: 0.25rem 0;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.home-staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-staff-head .section-title {
  margin-bottom: 0.25rem;
}

.staff-card-compact .staff-info h2 {
  font-size: 1.1rem;
}

.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.staff-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.staff-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  overflow: hidden;
}

.staff-avatar-img,
.staff-avatar-img.profile-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  font-size: 1.4rem;
}

.staff-join-card {
  text-align: center;
  margin-top: 2rem;
}

.staff-join-card .btn {
  margin-top: 0.5rem;
}

.staff-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.staff-info h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.staff-role {
  margin: 0 0 0.5rem;
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.9rem;
}

.staff-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.support-icon {
  font-size: 2rem;
}

.support-card-muted {
  opacity: 0.85;
}

/* Auth — matcher game panel login */
body.auth-layout {
  min-height: 100vh;
}

.auth-shell {
  flex: 1;
  display: flex;
  min-height: 100vh;
}

.auth-hero {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(12, 14, 20, 0.88) 0%, rgba(12, 14, 20, 0.94) 100%),
    var(--auth-hero-bg, linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 45%, var(--hero-to) 100%));
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-hero-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.auth-brand-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.auth-version {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-hover);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-hero-content h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-hero-content p {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.auth-hero-footer {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.host-card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  margin-bottom: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px var(--shadow), 0 4px 12px var(--shadow);
}

.auth-mobile-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-mobile-brand .logo-badge {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.auth-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card-lead {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.5rem 0;
  padding: 0.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.auth-tab:hover {
  color: var(--fg);
  text-decoration: none;
}

.auth-tab.active {
  background: var(--card-hover);
  color: var(--accent-hover);
  box-shadow: 0 1px 3px var(--shadow);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-submit {
  margin-top: 0.25rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.auth-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.auth-note a {
  color: var(--accent-hover);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .auth-hero {
    display: flex;
  }

  .auth-mobile-brand {
    display: none;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-field input::placeholder {
  color: var(--muted);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.auth-footer {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-nav {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.9rem;
}

.nav-muted {
  color: var(--muted) !important;
}

.text-muted {
  color: var(--muted);
}

/* Account */
.account-alert {
  margin-bottom: 1.25rem;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.account-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.account-profile-info h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.account-profile-info .rank-badge {
  margin-bottom: 0.5rem;
}

.account-since {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-avatar,
.profile-avatar-fallback {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
}

.profile-avatar-lg,
.profile-avatar-fallback.profile-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  font-size: 2rem;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.site-user-avatar-img,
.profile-avatar-fallback.site-user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rank-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rank-owner {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.rank-head-admin {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.rank-mod {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.rank-support {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.account-email-form {
  margin-top: 0.25rem;
}

.account-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.account-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.account-dl dd {
  margin: 0;
}

.card-accent {
  border-color: rgba(59, 130, 246, 0.35);
}

/* Tickets */
.tickets-page {
  padding-bottom: 2.5rem;
}

.support-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-top: 0.5rem;
}

.support-sidebar {
  position: sticky;
  top: 5.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 0;
}

.support-sidebar-title {
  margin: 0 1.15rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.support-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.support-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.support-sidebar-link:hover {
  text-decoration: none;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.support-sidebar-link.active {
  color: var(--fg);
  background: rgba(59, 130, 246, 0.08);
  border-left-color: var(--accent);
}

.support-sidebar-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.support-main {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.tickets-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.tickets-page-header--actions {
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.tickets-page-header h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.tickets-page-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tickets-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.tickets-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tickets-search input[type="search"] {
  width: min(280px, 55vw);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.88rem;
}

.tickets-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ticket-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ticket-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
}

.ticket-stat:hover {
  text-decoration: none;
  color: var(--fg);
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--card-hover);
}

.ticket-stat.active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.ticket-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ticket-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.ticket-panel {
  padding: 0;
  overflow: hidden;
}

.ticket-panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.ticket-panel-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-filter-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.ticket-filter-select {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.88rem;
}

.ticket-panel-count {
  margin: 0;
  font-size: 0.85rem;
}

.ticket-table-wrap {
  overflow-x: auto;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ticket-table thead th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ticket-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.ticket-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ticket-table tbody tr:last-child {
  border-bottom: none;
}

.ticket-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.ticket-table-subject {
  min-width: 220px;
}

.ticket-table-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.ticket-table-link:hover {
  text-decoration: none;
}

.ticket-table-ref {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.ticket-table-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.ticket-table-link:hover .ticket-table-title {
  color: var(--accent-hover);
}

.ticket-table-preview {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-table-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-size: 0.88rem;
}

.ticket-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.ticket-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticket-status-cell.status-open .ticket-status-dot {
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ticket-status-cell.status-answered .ticket-status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.ticket-status-cell.status-closed .ticket-status-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.ticket-table-date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.ticket-empty-inline {
  text-align: center;
  padding: 3rem 1.5rem;
}

.ticket-empty-inline h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.ticket-empty-inline p {
  margin: 0 0 1.25rem;
}

.tickets-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.ticket-list-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ticket-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ticket-card:hover {
  text-decoration: none;
  color: var(--fg);
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--card-hover);
  transform: translateY(-1px);
}

.ticket-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.ticket-card-body {
  min-width: 0;
}

.ticket-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.ticket-card-id {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: 0.02em;
}

.ticket-card-subject {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ticket-card-preview {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  font-size: 0.8rem;
}

.ticket-card-count,
.ticket-card-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.ticket-card-time {
  margin-left: auto;
}

.ticket-card-arrow {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.ticket-card:hover .ticket-card-arrow {
  color: var(--accent-hover);
  transform: translateX(2px);
}

.ticket-empty {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
  margin: 1rem auto 0;
}

.ticket-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.ticket-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.ticket-empty p {
  margin: 0 0 1.25rem;
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
}

.ticket-list-item:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

.ticket-list li:last-child .ticket-list-item {
  border-bottom: none;
}

.ticket-subject {
  font-weight: 600;
}

.ticket-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.status-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.status-open {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.status-answered {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.status-closed {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(760px, 100%);
  margin: 0 auto 2rem;
}

.ticket-view {
  padding-bottom: 2rem;
}

.ticket-view-header h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.ticket-view-subject {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.ticket-reply-form,
.ticket-closed-note {
  width: min(760px, 100%);
  margin: 0 auto;
}

.ticket-message {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.ticket-message-layout {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.ticket-msg-avatar,
.ticket-msg-avatar.profile-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1rem;
}

.ticket-msg-avatar-ai {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.ticket-message-content {
  flex: 1;
  min-width: 0;
}

.ticket-message-user {
  border-color: var(--border);
}

.ticket-message-staff {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.04);
}

.ticket-message-auto {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.ticket-message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.ticket-message-sender {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ticket-message-sender strong {
  font-size: 0.95rem;
}

.ticket-message-head time {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.ticket-msg-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ticket-msg-badge-user {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ticket-msg-badge-staff {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.ticket-msg-badge-ai {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.ticket-auto-notice {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ticket-message-body {
  line-height: 1.6;
  color: var(--fg);
}

.ticket-staff-signature {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ticket-auto-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.ticket-auto-footer a {
  color: #93c5fd;
}

.ticket-message .ticket-attachments {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.ticket-back-link {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.ticket-header-meta--top {
  margin: 0 0 1.25rem;
}

.ticket-flow {
  padding-bottom: 2rem;
}

.ticket-flow-header {
  padding-top: 2rem;
}

.ticket-flow-panel {
  width: min(560px, 100%);
  margin: 0 auto;
}

.ticket-details-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ticket-back-link {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.ticket-details-category {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.ticket-category-icon-lg {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
}

.ticket-details-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ticket-details-cat-name {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.ticket-details-form {
  padding: 1.75rem;
  margin: 0 auto;
}

.ticket-details-fields fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.ticket-details-fields legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
  padding: 0;
}

.priority-options-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.priority-options-bar .priority-option {
  justify-content: center;
}

.priority-options-bar .priority-pill {
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.priority-options-bar .priority-option input:checked + .priority-pill {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  transform: scale(1.02);
}

.file-upload-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.file-upload-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-upload-btn {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.file-upload-btn:hover {
  background: var(--card-hover);
  border-color: var(--accent);
}

.file-upload-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.ticket-category-list {
  padding: 0;
  overflow: hidden;
}

.ticket-category-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s;
}

.ticket-category-row:last-child {
  border-bottom: none;
}

.ticket-category-row:hover {
  background: var(--card-hover);
  text-decoration: none;
  color: var(--fg);
}

.ticket-category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ticket-category-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ticket-category-title {
  font-weight: 600;
  font-size: 1rem;
}

.ticket-category-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.ticket-category-arrow {
  color: var(--muted);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.priority-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.priority-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.priority-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-option input:checked + .priority-pill {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.priority-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.priority-low {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.priority-normal {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.priority-high {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

.category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.ticket-attachments {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ticket-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent-hover);
  text-decoration: none;
}

.ticket-attachment-link:hover {
  text-decoration: underline;
}

.ticket-attachment-size {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Admin */
.admin-page {
  padding-bottom: 2.5rem;
}

.admin-page .ticket-thread,
.admin-page .admin-actions-grid {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.admin-page-header .rank-badge {
  margin-left: 0.35rem;
}

.ticket-stat-static {
  cursor: default;
}

.ticket-stat-static:hover {
  border-color: var(--border);
  background: var(--card);
}

.admin-panels {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-quick {
  padding: 1.25rem;
}

.admin-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.admin-quick-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.admin-quick-link:hover {
  text-decoration: none;
  color: var(--fg);
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--card-hover);
}

.admin-quick-link strong {
  display: block;
  font-size: 0.92rem;
}

.admin-quick-link small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.ticket-table-user {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.ticket-table-email {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-quick-full {
  padding: 1.25rem;
}

.admin-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-recent-panel {
  margin-bottom: 1.25rem;
}

.rank-user {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.users-table-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.users-table-avatar,
.users-table-avatar.profile-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.users-table-you {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.users-table-email-full {
  font-size: 0.88rem;
}

.users-role-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.users-role-select {
  min-width: 130px;
}

.users-table-locked {
  font-size: 0.85rem;
}

.rank-legend {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.rank-legend-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.rank-legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.rank-legend-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.user-row {
  padding: 1rem 1.15rem;
  margin: 0;
}

.user-row-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-row-info {
  min-width: 0;
}

.user-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.2rem;
}

.user-row-date {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.user-row-ranks {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.user-row-ranks-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.user-row-locked {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.rank-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rank-pill-form {
  margin: 0;
}

.rank-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.rank-pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.45);
}

.rank-pill-btn.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rank-pill-btn.rank-user {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
}

.rank-pill-btn.rank-support {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.rank-pill-btn.rank-mod {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.rank-pill-btn.rank-head-admin {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.35);
  background: rgba(192, 132, 252, 0.1);
}

.rank-pill-btn.rank-owner {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
}

.admin-nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-hover);
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  text-align: center;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-value {
  margin: 0.25rem 0 0;
  font-size: 2rem;
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-tab.active,
.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem auto 0;
  width: min(760px, 100%);
}

@media (max-width: 900px) {
  .support-shell {
    grid-template-columns: 1fr;
  }

  .support-sidebar {
    position: static;
  }

  .support-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0.75rem 0.5rem;
    gap: 0.35rem;
  }

  .support-sidebar-title {
    width: 100%;
  }

  .support-sidebar-link {
    border-left: none;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
  }

  .support-sidebar-link.active {
    border-color: rgba(59, 130, 246, 0.45);
  }

  .ticket-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .ticket-card {
    grid-template-columns: auto 1fr;
    padding: 1rem;
  }

  .ticket-card-arrow {
    display: none;
  }

  .ticket-card-time {
    margin-left: 0;
    width: 100%;
  }

  .tickets-page-header {
    align-items: stretch;
  }

  .tickets-page-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .tickets-search {
    width: 100%;
  }

  .tickets-search input[type="search"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .ticket-table thead {
    display: none;
  }

  .ticket-table tbody tr {
    display: block;
    padding: 0.85rem 1rem;
  }

  .ticket-table td {
    display: block;
    padding: 0.25rem 0;
    border: none;
  }

  .ticket-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }

  .ticket-table-subject::before {
    display: none;
  }

  .ticket-table-subject {
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
  }

  .ticket-table-date {
    margin-top: 0.35rem;
  }
}

/* Vedligeholdelse — rød alert for Head Admin / Ejer */
.site-maintenance-alert {
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: 0.9rem 1rem 1rem;
  border-bottom: 3px solid #991b1b;
}

.site-maintenance-alert-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
}

.site-maintenance-alert-text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.site-maintenance-alert-link {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.site-maintenance-alert-link:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Vedligeholdelse / under renovering */
.maintenance-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.12), transparent 55%),
    var(--bg);
}

.maintenance-page {
  width: min(520px, 100%);
}

.maintenance-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 2.5rem;
  box-shadow: 0 20px 50px var(--shadow);
  overflow: hidden;
}

.maintenance-brand {
  margin: 0 0 1.25rem;
}

.maintenance-banner-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-bottom: 1px solid var(--border);
}

.maintenance-wordmark-img {
  height: 48px;
  max-width: 220px;
  margin: 1.25rem auto 0;
}

.maintenance-card h1,
.maintenance-card .maintenance-badge,
.maintenance-card .maintenance-message,
.maintenance-card .maintenance-countdown,
.maintenance-card .maintenance-footer-note,
.maintenance-card .maintenance-staff-link {
  padding-left: 2rem;
  padding-right: 2rem;
}

.maintenance-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.maintenance-badge {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.maintenance-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.maintenance-message {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.maintenance-countdown {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.maintenance-countdown-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.maintenance-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.maintenance-timer-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.5rem;
}

.maintenance-timer-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.maintenance-timer-unit {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.maintenance-timer-sep {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: -0.75rem;
}

.maintenance-countdown-hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.maintenance-footer-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.maintenance-staff-link {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
}

.sidebar-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
  margin-left: auto;
}

.maintenance-admin-status {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.maintenance-admin-status-on {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}

.maintenance-admin-status-off {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.05);
}

.maintenance-admin-status-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.maintenance-admin-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.maintenance-admin-status-on .maintenance-admin-status-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.maintenance-admin-status-off .maintenance-admin-status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.maintenance-admin-disable {
  margin-top: 1rem;
}

.maintenance-admin-panels {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.maintenance-extend-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.maintenance-extend-custom-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.maintenance-extend-custom-row input {
  width: 120px;
}

.maintenance-admin-info {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.maintenance-admin-info h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.maintenance-admin-info ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
