:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #fff;
  --muted: #a3a3a3;
  --accent: #c8102e;
  --accent-hover: #e63946;
  --radius: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: 84px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
html:hover {
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  min-height: 48px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
html:hover::-webkit-scrollbar-thumb,
body:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(200,16,46,0.5);
  box-shadow: 0 0 12px rgba(200,16,46,0.22);
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
  background: rgba(230,57,70,0.72);
  background-clip: content-box;
}
html::-webkit-scrollbar-corner,
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-corner,
body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
body {
  font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header — 100% gennemsigtig, skjules ved scroll ned */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.site-header.is-hidden {
  transform: translateY(-110%);
  pointer-events: none;
}
.site-header.is-scrolled {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open .site-header {
  transform: translateY(0);
  pointer-events: auto;
}
.site-header .brand,
.site-header .header-nav a,
.site-header .header-actions .btn-ghost,
.site-header .status-pill,
.site-header .theme-toggle,
.site-header .menu-btn {
  text-shadow: 0 1px 10px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.8);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); opacity: 0.92; }
.brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(200,16,46,0.25);
}
.header-nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: transparent;
  border: none;
}
.header-nav a {
  color: rgba(255,255,255,0.72); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.header-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.header-nav a.active {
  color: var(--text);
  background: rgba(200,16,46,0.14);
  box-shadow: inset 0 0 0 1px rgba(200,16,46,0.2);
}
.header-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.header-actions .btn-accent {
  padding: 9px 18px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(200,16,46,0.25);
}
.header-actions .btn-ghost {
  color: rgba(255,255,255,0.92);
  border: none;
  border-radius: 999px;
  background: transparent;
}
.header-actions .btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}
.status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: transparent;
  border: none;
  font-size: 12px; color: rgba(255,255,255,0.92);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 8px transparent;
}
.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200,16,46,0.6);
}
.menu-btn {
  display: none; background: transparent;
  border: none;
  border-radius: 10px; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px 9px;
}
.menu-btn span {
  width: 20px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .2s;
}
body.menu-open .menu-btn {
  background: transparent;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 12px 20px 20px;
  background: rgba(0,0,0,0.85);
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  padding: 12px 14px; font-size: 15px;
  border-radius: 10px;
  transition: background .2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
body.menu-open .mobile-menu { display: flex; }
body.menu-open { overflow: hidden; }

/* Buttons — som Redline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: all .2s; font-family: var(--font);
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  background: rgba(0,0,0,0.35); color: var(--text);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon svg { flex-shrink: 0; }

/* Hero — præcis Redline layout */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(68px + 72px) 0 40px; overflow: hidden;
  margin-top: -68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center; width: 100%;
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.hero-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px; margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 48px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 900px; margin: 0 auto;
}
.hero-stat {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 16px;
  backdrop-filter: blur(10px);
}
.hero-stat strong {
  display: block; font-size: 2rem; font-weight: 800;
  color: var(--accent); margin-bottom: 4px;
}
.hero-stat span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-muted { background: var(--bg-2); }
.section-title-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.section-title-row h2 { font-size: 1.5rem; font-weight: 700; }
.section-sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.section-sub a { color: var(--accent); }
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-desc {
  text-align: center; color: var(--muted); max-width: 560px;
  margin: 0 auto 32px; font-size: 15px;
}
.eyebrow {
  text-align: center; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 8px;
}
.section-cta { text-align: center; margin-top: 28px; }

/* Rules cards — som Redline regel sektion */
.rules-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.rules-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.rules-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.rules-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Features — som Ascend */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(200,16,46,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Jobs row */
.jobs-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.job-pill {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: inherit; min-width: 180px; text-align: center;
  transition: border-color .2s;
}
.job-pill:hover { border-color: var(--accent); color: inherit; }
.job-pill strong { font-size: 15px; }
.job-pill span { font-size: 13px; color: var(--accent); }

/* Contact — som Redline */
.section-contact { padding-bottom: 90px; }
.contact-box {
  text-align: center; padding: 56px 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px;
}
.contact-box h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 10px; }
.contact-box p { color: var(--muted); margin-bottom: 24px; }

/* Footer — som Redline */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-links h4, .footer-status h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-status p { color: var(--muted); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; color: var(--muted); font-size: 13px;
}

/* Subpages */
.page-hero {
  position: relative; padding: 124px 0 60px;
  background: var(--bg-2); overflow: hidden;
  margin-top: -68px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), var(--bg-2));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-top: 8px; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.page-content { padding: calc(68px + 48px) 0 80px; }

.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb-sep { margin: 0 8px; opacity: .4; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.content-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.lead-text { font-size: 16px; color: var(--muted); line-height: 1.75; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { color: var(--muted); font-size: 14px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label,
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
  font-family: var(--font);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a3a3a3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.required { color: var(--accent); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(200,16,46,0.1); border: 1px solid rgba(200,16,46,0.3); color: var(--accent); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid #ef4444; color: #ef4444; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid #3b82f6; color: #3b82f6; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-success { background: rgba(200,16,46,0.15); color: var(--accent); }
.badge-warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-danger { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-info { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-neutral { background: rgba(255,255,255,0.08); color: var(--muted); }

.rules-search-wrap { padding: 20px; margin-bottom: 24px; }
.rules-search-label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.rules-search { position: relative; }
.rules-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.rules-search-input {
  width: 100%; padding: 12px 44px 12px 42px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 15px;
  font-family: var(--font);
}
.rules-search-input:focus { outline: none; border-color: var(--accent); }
.rules-search-input::placeholder { color: var(--muted); }
.rules-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.rules-search-clear:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.rules-search-count { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 18px; }
.rules-search-count.has-results { color: var(--accent); }
.rules-search-count.no-results { color: #f59e0b; }
.rule-item.is-match h4 { color: var(--accent); }
.is-hidden { display: none !important; }

.rules-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start;
}
.rules-nav { position: sticky; top: 88px; padding: 20px; }
.rules-nav h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rules-nav nav { display: flex; flex-direction: column; gap: 4px; }
.rules-nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-size: 14px; transition: all .2s;
}
.rules-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.rules-main { padding: 32px; }
.rules-intro { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.rules-alert {
  margin: 24px 0 32px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid rgba(200,16,46,0.35);
  background: rgba(200,16,46,0.08);
}
.rules-alert strong { display: block; font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.rules-alert p { color: var(--muted); font-size: 14px; margin: 0; }
.rules-section { margin-bottom: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rules-section:last-child { border-bottom: none; margin-bottom: 0; }
.rules-section h2 {
  font-size: 1.35rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text); scroll-margin-top: 96px;
}
.rules-section-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.rule-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.rule-item:first-of-type { border-top: none; padding-top: 0; }
.rule-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 28px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 700;
  background: rgba(200,16,46,0.12); color: var(--accent);
}
.rule-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.rule-item p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.rule-item p:last-child { margin-bottom: 0; }
.rules-content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--accent); }
.rules-content ul { padding-left: 20px; color: var(--muted); }
.rules-content li { margin-bottom: 6px; }

.jobs-showcase, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.job-showcase-card, .news-card-premium {
  display: block; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: inherit;
}
.job-showcase-card:hover, .news-card-premium:hover { border-color: var(--accent); color: inherit; }
.news-date { font-size: 12px; color: var(--accent); }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.status-card { text-align: center; padding: 32px 20px; }
.stat-banner-value { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-banner-label { font-size: 13px; color: var(--muted); }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); display: inline-block; margin-bottom: 12px; }
.status-indicator.online { background: var(--accent); }
.uptime-card { padding: 24px; }
.uptime-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.uptime-head h3 { margin: 0 0 6px; }
.uptime-sub { color: var(--muted); font-size: 14px; margin: 0; }
.uptime-avg {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); line-height: 1;
}
.uptime-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 140px; padding: 8px 0 0;
  overflow-x: auto;
}
.uptime-bar-wrap {
  flex: 1 0 10px; min-width: 8px; max-width: 28px;
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 6px;
}
.uptime-bar {
  width: 100%; border-radius: 4px 4px 2px 2px; min-height: 4px;
  transition: height .25s ease;
}
.uptime-bar.good { background: #22c55e; }
.uptime-bar.ok { background: #eab308; }
.uptime-bar.bad { background: #ef4444; }
.uptime-bar.empty { background: rgba(255,255,255,0.12); }
.uptime-bar-label {
  font-size: 9px; color: var(--muted); transform: rotate(-55deg);
  white-space: nowrap; height: 28px; line-height: 28px;
}
.uptime-legend {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  margin-top: 18px; font-size: 12px; color: var(--muted);
}
.uptime-swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 6px; vertical-align: middle;
}
.uptime-swatch.good { background: #22c55e; }
.uptime-swatch.ok { background: #eab308; }
.uptime-swatch.bad { background: #ef4444; }
.uptime-swatch.empty { background: rgba(255,255,255,0.12); }
.uptime-empty { color: var(--muted); font-size: 14px; }

/* ─── Spillerliste (status) ─── */
.player-list-card { overflow: hidden; }
.player-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.player-list-title { display: flex; align-items: center; gap: 12px; }
.player-list-title h3 { margin: 0; font-size: 1.05rem; }
.player-list-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(200, 16, 46, 0.12); color: var(--accent);
}
.player-list-count {
  font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(200, 16, 46, 0.1); border: 1px solid rgba(200, 16, 46, 0.2);
}
.player-list-count.is-empty { color: var(--muted); background: rgba(255,255,255,0.04); border-color: var(--border); }
.player-list { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.player-list-empty {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 28px 16px; border: 1px dashed var(--border); border-radius: var(--radius);
}
.player-row {
  display: grid; grid-template-columns: 28px 44px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.player-row:hover { border-color: rgba(200, 16, 46, 0.25); background: rgba(200, 16, 46, 0.04); }
.player-rank {
  font-size: 12px; font-weight: 700; color: var(--muted); text-align: center;
}
.player-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.25), rgba(200, 16, 46, 0.08));
  border: 2px solid rgba(200, 16, 46, 0.2);
  font-weight: 700; font-size: 16px; color: var(--accent);
}
.player-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.player-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-id { font-size: 12px; color: var(--muted); }
.player-ping {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  white-space: nowrap;
}
.player-ping.ping-good { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.player-ping.ping-ok { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.player-ping.ping-high { color: #f87171; background: rgba(248, 113, 113, 0.12); }

/* ─── Skeleton loaders ─── */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-player-list { display: flex; flex-direction: column; gap: 8px; }
.skeleton-player-row,
.skeleton-stat,
.skeleton-list-item {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-player-row { height: 72px; }
.skeleton-stat { height: 88px; }
.skeleton-list { display: flex; flex-direction: column; gap: 8px; }
.skeleton-list-item { height: 56px; }

/* ─── Honeypot ─── */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ─── Partnere ─── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.partner-card {
  display: flex; align-items: center; gap: 18px; padding: 22px;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.partner-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-card img { object-fit: contain; flex-shrink: 0; }
.partner-card-body { flex: 1; min-width: 0; }
.partner-card strong { display: block; margin-bottom: 4px; }
.partner-card span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
.partner-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.team-member { padding: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.steps-list { padding-left: 20px; color: var(--muted); font-size: 14px; }

main { padding-top: 0; }

.ticket-create-card {
  margin-bottom: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(255,255,255,0.1);
}
.ticket-user-bar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
}
.ticket-user-avatar {
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(200,16,46,0.25);
}
.ticket-user-bar strong { font-size: 15px; }
.ticket-user-bar p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.ticket-user-logout { margin-left: auto; }
.ticket-section-title {
  margin-bottom: 22px; font-size: 1.15rem; font-weight: 700;
}
.category-field .form-hint { margin: 4px 0 14px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.category-card { display: block; cursor: pointer; }
.category-card-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.category-card-surface {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
  padding: 16px 16px 16px 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.09);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.category-card:hover .category-card-surface {
  border-color: rgba(200,16,46,0.28);
  background: rgba(255,255,255,0.04);
}
.category-card-input:focus-visible + .category-card-surface {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.16);
}
.category-card-input:checked + .category-card-surface {
  border-color: rgba(200,16,46,0.65);
  background: linear-gradient(135deg, rgba(200,16,46,0.14) 0%, rgba(200,16,46,0.05) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(200,16,46,0.18);
}
.category-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: transparent;
  transition: all .2s ease;
}
.category-card-input:checked + .category-card-surface .category-card-check {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}
.category-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.18);
}
.category-card-input:checked + .category-card-surface .category-card-icon {
  background: rgba(200,16,46,0.18);
  border-color: rgba(200,16,46,0.35);
}
.category-card-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 28px;
  min-width: 0;
}
.category-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.category-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.category-grid .category-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.ticket-create-form .btn-accent {
  margin-top: 6px;
  min-width: 180px;
}

.ticket-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ticket-list-header h3 { margin: 0; font-size: 1.05rem; }
.ticket-list-empty {
  color: var(--muted);
  font-size: 14px;
}
.live-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
}
.live-sync-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200,16,46,0.8);
  animation: livePulse 2s ease-in-out infinite;
}
[data-live-wrap].is-synced .live-sync-badge::before {
  animation: none;
  transform: scale(1.2);
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.ticket-detail-head { margin-bottom: 20px; }
.ticket-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.ticket-detail-top h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.ticket-detail-top p {
  font-size: 13px;
  color: var(--muted);
}
.ticket-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ticket-list-item span {
  font-size: 13px;
  color: var(--muted);
}
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: inherit; transition: border-color .2s;
}
.ticket-list-item:hover { border-color: var(--accent); color: inherit; }
.ticket-list-item strong { display: block; margin-bottom: 4px; }
.ticket-chat-card {
  position: relative;
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ticket-chat-card::before,
.ticket-chat-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}
.ticket-chat-card::before {
  top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.ticket-chat-card::after {
  bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.ticket-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 10px 20px 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.ticket-chat:hover,
.ticket-chat:focus-within {
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}
.ticket-chat::-webkit-scrollbar {
  width: 5px;
}
.ticket-chat::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px 0;
}
.ticket-chat::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: content-box;
  min-height: 36px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.ticket-chat:hover::-webkit-scrollbar-thumb,
.ticket-chat:focus-within::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  background-clip: content-box;
}
.ticket-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(200,16,46,0.5);
  box-shadow: 0 0 10px rgba(200,16,46,0.25);
  background-clip: content-box;
}
.ticket-chat::-webkit-scrollbar-thumb:active {
  background: rgba(230,57,70,0.72);
  background-clip: content-box;
}
.ticket-chat::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 88%;
}
.chat-message.is-player { align-self: flex-start; }
.chat-message.is-staff {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.chat-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,16,46,0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.chat-content { min-width: 0; flex: 1; }
.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-size: 12px;
}
.chat-message.is-staff .chat-meta {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.chat-meta strong { font-size: 13px; color: var(--text); }
.chat-meta span { color: var(--muted); }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.22);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-word;
}
.chat-message.is-staff .chat-bubble {
  background: rgba(200,16,46,0.1);
  border-color: rgba(200,16,46,0.28);
}
.header-account { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: 160px;
}
.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-card, #141414);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-menu-panel[hidden] { display: none !important; }
.account-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.account-menu-panel a:hover,
.account-menu-panel a.active {
  background: rgba(200,16,46,0.12);
}
.account-menu-panel a.account-menu-admin {
  color: var(--accent, #c8102e);
  font-weight: 700;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  margin-top: 4px;
  padding-top: 12px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
}
.partner-card span { color: var(--muted); font-size: 14px; }
.partner-card:hover { border-color: rgba(200,16,46,0.35); }

@media (max-width: 1100px) {
  .header-nav a { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 900px) {
  .hero-stats, .rules-cards, .features, .footer-grid, .status-grid { grid-template-columns: 1fr; }
  .player-row { grid-template-columns: 24px 40px 1fr auto; gap: 10px; padding: 12px; }
  .player-avatar { width: 40px; height: 40px; font-size: 14px; }
  .header-nav { display: none; }
  .header-actions .status-pill,
  .header-actions .btn-ghost { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .site-header,
  .site-header.is-scrolled {
    background: transparent;
  }
  .content-layout, .rules-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .rules-nav { position: static; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid .category-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
}

/* ─── Light theme ─── */
html[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-2: #ffffff;
  --bg-card: rgba(0,0,0,0.03);
  --border: rgba(0,0,0,0.1);
  --text: #111111;
  --muted: #52525b;
}
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-scrolled {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
html[data-theme="light"] .site-header .brand,
html[data-theme="light"] .site-header .header-nav a,
html[data-theme="light"] .site-header .header-actions .btn-ghost,
html[data-theme="light"] .site-header .status-pill,
html[data-theme="light"] .site-header .theme-toggle,
html[data-theme="light"] .site-header .menu-btn {
  text-shadow: 0 1px 8px rgba(255,255,255,0.95), 0 0 2px rgba(255,255,255,0.8);
}
html[data-theme="light"] .header-nav a { color: rgba(0,0,0,0.78); }
html[data-theme="light"] .header-nav a:hover,
html[data-theme="light"] .header-nav a.active { color: var(--text); }
html[data-theme="light"] .header-actions .btn-ghost { color: rgba(0,0,0,0.82); }
html[data-theme="light"] .status-pill { color: rgba(0,0,0,0.82); }
html[data-theme="light"] .hero-overlay { background: rgba(255,255,255,0.55); }
html[data-theme="light"] .ticket-chat-card { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .chat-bubble { color: #3f3f46; }
html[data-theme="light"] .theme-icon-dark { display: none; }
html[data-theme="light"] .theme-icon-light { display: block !important; }
html[data-theme="dark"] .theme-icon-light,
.theme-icon-light { display: none; }
.theme-toggle { padding: 8px 10px; cursor: pointer; line-height: 0; }

/* ─── Spiller-dashboard ─── */
.dashboard-profile {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 24px; margin-bottom: 20px;
}
.dashboard-profile-main { display: flex; align-items: center; gap: 16px; }
.dashboard-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.dashboard-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.15); color: var(--accent);
  font-size: 28px; font-weight: 700;
}
.dashboard-discord-id { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.role-panel { padding: 20px; margin-bottom: 20px; }
.role-panel-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.role-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--role-color, var(--accent)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, var(--accent)) 45%, transparent);
}
.role-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--role-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color, var(--accent)) 20%, transparent);
}

.rank-grant-card { padding: 22px; margin-bottom: 16px; }
.rank-grant-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.rank-grant-help { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.rank-grant-search { display: flex; gap: 10px; flex-wrap: wrap; }
.rank-grant-search .form-control { flex: 1; min-width: 220px; }
.rank-grant-status { margin-top: 12px; font-size: 13px; color: var(--muted); }
.rank-grant-status.is-error { color: #ff6b6b; }
.rank-grant-count { font-size: 13px; color: var(--muted); }
.rank-member { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.rank-member-main { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rank-grid { display: flex; flex-direction: column; gap: 10px; }
.rank-chip-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.rank-chip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .rank-chip-row { flex-direction: column; align-items: flex-start; }
}

.dashboard-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
.dashboard-stat {
  padding: 18px; text-align: center;
}
.dashboard-stat strong { display: block; font-size: 1.5rem; margin-bottom: 4px; }
.dashboard-stat span { color: var(--muted); font-size: 13px; }
.dashboard-stat small { display: block; color: var(--accent); font-size: 12px; margin-top: 6px; }
.dashboard-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.dashboard-section { padding: 20px; }
.dashboard-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dashboard-section-head h3 { font-size: 1rem; }
.dashboard-section-head a { font-size: 13px; }
.dashboard-empty { color: var(--muted); font-size: 14px; }
.dashboard-list { display: flex; flex-direction: column; gap: 8px; }
.dashboard-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
html[data-theme="light"] .dashboard-list-item { background: rgba(0,0,0,0.02); }
.dashboard-list-item.is-link { color: inherit; transition: border-color .2s; }
.dashboard-list-item.is-link:hover { border-color: var(--accent); color: inherit; }
.dashboard-list-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.dashboard-list-item span { font-size: 12px; color: var(--muted); }

/* ─── Team grid ─── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.team-card {
  padding: 24px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.team-avatar-fallback {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.15); color: var(--accent);
  font-size: 28px; font-weight: 700;
}
.team-card h3 { font-size: 1rem; }
.team-section { margin-bottom: 36px; }
.team-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
}
.cookie-banner-inner {
  max-width: 720px; margin: 0 auto; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
html[data-theme="light"] .cookie-banner-inner { background: rgba(255,255,255,0.96); }
.cookie-banner-inner p { font-size: 13px; color: var(--muted); max-width: 520px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Join loading ─── */
.btn-join.is-loading {
  position: relative; pointer-events: none; opacity: 0.85;
}
.btn-join.is-loading::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: join-spin 0.7s linear infinite;
}
@keyframes join-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .dashboard-stats, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-profile { flex-direction: column; align-items: flex-start; }
}

/* ─── Forside sektioner ─── */
.home-section { padding: 56px 0; }
.home-section-alt { background: rgba(255,255,255,0.02); }
html[data-theme="light"] .home-section-alt { background: rgba(0,0,0,0.03); }
.home-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.home-section-head h2 { font-size: 1.5rem; }
.home-section-head p,
.home-section-head a { color: var(--muted); font-size: 14px; }
.home-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.home-step { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.home-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.15); color: var(--accent); font-weight: 700; font-size: 14px;
}
.home-step h3 { font-size: 1rem; }
.home-step p { color: var(--muted); font-size: 14px; flex: 1; }
.home-split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start;
}
.home-about { padding: 28px; }
.home-about p { color: var(--muted); margin: 12px 0 18px; line-height: 1.7; }
.home-features {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; gap: 8px; color: var(--muted); font-size: 14px;
}
.home-features li::before { content: '✓ '; color: var(--accent); }
.home-job-card {
  display: block; padding: 16px 18px; margin-bottom: 10px; color: inherit;
  transition: border-color .2s;
}
.home-job-card:hover { border-color: var(--accent); color: inherit; }
.home-job-card strong { display: block; margin-bottom: 4px; }
.home-job-card span { color: var(--muted); font-size: 13px; }
.home-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.home-news-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.home-news-card time { color: var(--muted); font-size: 12px; }
.home-news-card h3 { font-size: 1rem; line-height: 1.4; }
.home-news-card h3 a { color: inherit; }
.home-news-card h3 a:hover { color: var(--accent); }
.home-news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.home-empty { padding: 24px; color: var(--muted); text-align: center; }
.home-cta { padding: 0 0 56px; }
.home-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 28px 32px;
}
.home-cta-inner p { color: var(--muted); margin-top: 6px; }
.home-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-seo { padding: 0 0 64px; }
.home-seo-top {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
}
.home-seo-hub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0.95rem;
}
.home-seo h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.home-seo p {
  color: var(--muted);
  max-width: 72ch;
  margin-bottom: 12px;
  line-height: 1.7;
}
.home-seo a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.home-seo a:hover { color: var(--accent-hover); }
.home-seo-faq {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 72ch;
}
.home-seo-faq details {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 12px 14px;
}
.home-seo-faq summary { cursor: pointer; font-weight: 600; }
.home-seo-faq details p { margin: 10px 0 0; font-size: 0.95rem; }
#hero-stat-players,
#hero-stat-discord { font-variant-numeric: tabular-nums; }

/* ─── Del-knapper ─── */
.share-buttons {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.share-label { font-size: 13px; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.share-btn:hover { border-color: var(--accent); background: rgba(200,16,46,0.08); color: var(--text); }
.article-footer { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ─── Side-skift loader ─── */
.page-loader {
  position: fixed; inset: 0; z-index: 20000;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.page-loader.is-active {
  opacity: 0.92; pointer-events: auto;
}
.page-loader::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: join-spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s;
}
.page-loader.is-active::after { opacity: 1; }

@media (max-width: 900px) {
  .home-steps, .home-news-grid { grid-template-columns: 1fr 1fr; }
  .home-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-steps, .home-news-grid { grid-template-columns: 1fr; }
}

/* ─── Ban appeal felter ─── */
.appeal-fields {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.appeal-fields h4 { margin-bottom: 12px; font-size: 15px; }

/* ─── Ticket vedhæftninger ─── */
.chat-attachments {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.chat-attachment {
  display: block; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); max-width: 180px;
}
.chat-attachment img {
  display: block; width: 100%; height: auto; max-height: 140px; object-fit: cover;
}
