/* ============================================================
   SavannahRP – stylesheet
   ============================================================ */
:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f12;
  --card: #131317;
  --card-2: #18181d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f2f2f3;
  --muted: #8d8d96;
  --red: #e3101e;
  --red-2: #ff2d3a;
  --red-soft: rgba(227, 16, 30, 0.12);
  --green: #22c55e;
  --yellow: #f5b301;
  --blue: #6d7cff;
  --radius: 14px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Bebas Neue", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: 72px; display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.solid { background: rgba(10, 10, 12, .88); backdrop-filter: blur(12px); border-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; letter-spacing: .5px; flex: none; }
.brand img { width: 40px; }
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .3s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.nav.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Bruger-menu */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .2s; }
.user-chip:hover { border-color: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--red), #7a0a12); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); box-shadow: 0 8px 30px rgba(227,16,30,.35); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-green { background: rgba(34,197,94,.14); color: var(--green); border-color: rgba(34,197,94,.3); }
.btn-green:hover { background: rgba(34,197,94,.22); }
.btn-danger { background: var(--red-soft); color: var(--red-2); border-color: rgba(227,16,30,.3); }
.btn-danger:hover { background: rgba(227,16,30,.2); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../assets/hero-mural.webp") center/cover; filter: brightness(.32) saturate(1.05); transform: scale(1.06); animation: heroZoom 20s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(10,10,12,.5) 60%), linear-gradient(180deg, rgba(10,10,12,.3), var(--bg) 96%); }
.hero-logo { width: min(240px, 55vw); margin: 0 auto 8px; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); animation: fadeUp .9s var(--ease) both; }
.hero h1 { font-family: var(--display); font-size: clamp(56px, 9vw, 108px); line-height: .95; letter-spacing: 1px; animation: fadeUp .9s .1s var(--ease) both; }
.hero h1 span { color: var(--red); }
.hero p { color: #c9c9cf; max-width: 560px; margin: 16px auto 30px; font-size: 17px; animation: fadeUp .9s .2s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: fadeUp .9s .3s var(--ease) both; }
.server-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px; border-radius: 99px; background: rgba(19,19,23,.75); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; animation: fadeUp .9s var(--ease) both; }
.server-pill b { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
.dot.off { background: var(--red); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Sektioner ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.kicker { display: inline-block; color: var(--red-2); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2, .page-title { font-family: var(--display); font-size: clamp(40px, 5.5vw, 62px); line-height: 1; letter-spacing: .5px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Stats-bar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: -50px; position: relative; z-index: 2; }
.stats div { padding: 26px 20px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--display); font-size: 42px; line-height: 1; display: block; }
.stats strong em { color: var(--red); font-style: normal; }
.stats span { color: var(--muted); font-size: 13px; }

/* Om os */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease); }
.about-img:hover img { transform: scale(1.04); }
.about h2 { font-family: var(--display); font-size: 50px; line-height: 1; margin-bottom: 16px; }
.about p { color: #bdbdc5; margin-bottom: 14px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--red-soft); color: var(--red-2); font-size: 12px; flex: none; }

/* Kort-grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Timeline ---------- */
.tl { position: relative; }
.tl-progress { position: relative; height: 2px; background: var(--line-2); margin: 10px 10px 60px; }
.tl-progress .fill { position: absolute; inset: 0 auto 0 0; background: var(--red); transition: width .6s var(--ease); }
.tl-dots { position: absolute; inset: -7px 0 auto; display: flex; justify-content: space-between; }
.tl-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid #3a3a42; cursor: pointer; padding: 0; transition: .3s; }
.tl-dot.done { background: var(--red); border-color: var(--red); }
.tl-dot.active { background: var(--red); border-color: #fff; transform: scale(1.25); box-shadow: 0 0 0 6px rgba(227,16,30,.2); }
.tl-dot small { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl-dot.active small { color: #fff; }
.tl-viewport { overflow: hidden; }
.tl-track { display: flex; transition: transform .7s cubic-bezier(.65,0,.25,1); }
.tl-slide { min-width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 2px; }
.tl-media { aspect-ratio: 16/10; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.tl-media img { max-width: 90%; max-height: 86%; object-fit: contain; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 0; transform: scale(.94); transition: opacity .7s .2s, transform .7s .2s var(--ease); }
.tl-media img.cover { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; }
.tl-slide.active .tl-media img { opacity: 1; transform: none; }
.tl-content > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s var(--ease); }
.tl-slide.active .tl-content > * { opacity: 1; transform: none; }
.tl-slide.active .tl-content > :nth-child(2) { transition-delay: .1s; }
.tl-slide.active .tl-content > :nth-child(3) { transition-delay: .2s; }
.tl-slide.active .tl-content > :nth-child(4) { transition-delay: .3s; }
.tl-tag { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--red-soft); color: var(--red-2); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tl-date { color: var(--muted); font-weight: 600; margin: 14px 0 2px; }
.tl-content h3 { font-family: var(--display); font-size: clamp(36px, 4.5vw, 54px); line-height: 1; margin-bottom: 12px; }
.tl-content p { color: #bdbdc5; max-width: 440px; }
.tl-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.tl-counter { font-family: var(--display); font-size: 22px; color: var(--muted); }
.tl-counter b { color: #fff; font-weight: 400; }
.tl-arrows { display: flex; gap: 8px; }
.tl-arrow { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.tl-arrow:hover { background: var(--red); border-color: var(--red); }
.tl-arrow svg { width: 18px; }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, transform .25s; }
.job:hover { border-color: rgba(227,16,30,.5); transform: translateY(-3px); }
.job .ic { font-size: 28px; margin-bottom: 8px; }
.job h3 { font-size: 18px; }
.job p { color: var(--muted); font-size: 14px; flex: 1; }
.job .state { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .3s; line-height: 1; }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--red-2); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* CTA */
.cta { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 70px 30px; background: radial-gradient(ellipse at 50% 130%, rgba(227,16,30,.3), transparent 60%), var(--card); }
.cta h2 { font-family: var(--display); font-size: clamp(40px, 6vw, 70px); line-height: 1; }
.cta p { color: var(--muted); max-width: 520px; margin: 14px auto 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 28px; margin-top: 110px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }

/* ---------- Undersider ---------- */
.page-head { padding: 130px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(227,16,30,.14), transparent 60%); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 620px; }
.page { padding: 40px 0 0; }

/* Login-boks */
.gate { max-width: 460px; margin: 30px auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px 30px; }
.gate img { width: 90px; margin: 0 auto 16px; }
.gate h2 { font-family: var(--display); font-size: 36px; line-height: 1; margin-bottom: 8px; }
.gate p { color: var(--muted); margin-bottom: 22px; font-size: 15px; }

/* Ansøgningstyper */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.type { position: relative; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.type:hover:not(:disabled) { border-color: var(--line-2); transform: translateY(-2px); }
.type.active { border-color: var(--red); background: linear-gradient(180deg, rgba(227,16,30,.1), var(--card)); }
.type:disabled { cursor: not-allowed; opacity: .55; }
.type .ic { font-size: 26px; display: block; margin-bottom: 10px; }
.type strong { display: block; font-size: 16px; }
.type small { color: var(--muted); font-size: 13px; }
.type .lock { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); }

/* Formular */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; margin-top: 22px; animation: fadeUp .5s var(--ease); }
.form-card h2 { font-family: var(--display); font-size: 36px; line-height: 1; }
.form-card > p { color: var(--muted); margin: 4px 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field label em { color: var(--red-2); font-style: normal; }
.field input, .field select, .field textarea, .input { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.field select option, .input option { background: var(--bg-2); }
.field textarea, textarea.input { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,16,30,.15); }
.field .hint { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.field .hint .ok { color: var(--green); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c4c4cc; margin-bottom: 20px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; background: rgba(245,179,1,.08); border: 1px solid rgba(245,179,1,.25); color: #f3d77a; margin-bottom: 18px; }
.notice.red { background: var(--red-soft); border-color: rgba(227,16,30,.3); color: #ffb0b5; }
.notice.green { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); color: #8ee6ad; }

/* Status-chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.pending { background: rgba(245,179,1,.12); color: var(--yellow); }
.chip.review { background: rgba(109,124,255,.14); color: var(--blue); }
.chip.approved { background: rgba(34,197,94,.12); color: var(--green); }
.chip.denied { background: var(--red-soft); color: var(--red-2); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 100px; align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 4px; }
.side-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; transition: background .2s, color .2s; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-link.active { color: #fff; background: var(--card); box-shadow: inset 2px 0 0 var(--red); }
.side-link .n { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.view { display: none; animation: fadeUp .4s var(--ease); min-width: 0; }
.view.active { display: block; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.view-head h1 { font-family: var(--display); font-size: 42px; line-height: 1; }
.profile { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; flex-wrap: wrap; }
.profile h2 { font-size: 22px; }
.profile .roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.06); color: #ccc; }
.tag.red { background: var(--red-soft); color: var(--red-2); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi strong { display: block; font-family: var(--display); font-size: 38px; line-height: 1.1; margin-top: 4px; }
.kpi small { color: var(--muted); font-size: 12px; }
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel h3 { font-size: 15px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel h3 small { color: var(--muted); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars .bar { width: 100%; max-width: 40px; height: 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--red-2), #8c0a12); transition: height .9s var(--ease); position: relative; }
.bars .bar b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.bars .col small { color: var(--muted); font-size: 12px; }

/* Lister & tabeller */
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer; transition: border-color .2s; flex-wrap: wrap; }
.list-item:hover { border-color: var(--line-2); }
.list-item .ic { font-size: 22px; }
.list-item .grow { flex: 1; min-width: 160px; }
.list-item small { color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { width: auto; padding: 10px 14px; }
.toolbar .input:first-child { flex: 1; min-width: 200px; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 10px; }
.who small { display: block; color: var(--muted); font-size: 12px; }

/* Sagsvisning */
.case { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.qa { display: grid; gap: 10px; }
.qa > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.qa dt { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.qa dd { white-space: pre-wrap; word-break: break-word; }
.timeline-mini { list-style: none; display: grid; gap: 14px; position: relative; }
.timeline-mini li { position: relative; padding-left: 20px; font-size: 13px; }
.timeline-mini li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline-mini li.approved::before { background: var(--green); } .timeline-mini li.denied::before { background: var(--red); }
.timeline-mini li.review::before { background: var(--blue); } .timeline-mini li.pending::before { background: var(--yellow); }
.timeline-mini small { color: var(--muted); display: block; }
.timeline-mini blockquote { margin-top: 4px; padding: 8px 10px; border-left: 2px solid var(--line-2); color: #ccc; background: rgba(255,255,255,.02); border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; background: none; border: 0; cursor: pointer; }
.back:hover { color: #fff; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 999; transform: translate(-50%, 120px); max-width: calc(100% - 32px); background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--green); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-left-color: var(--red); }
.spinner { width: 28px; height: 28px; margin: 60px auto; border: 3px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .jobs { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .panels, .case { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); margin: 0; z-index: -1; }
  .nav.open .nav-links { transform: none; }
  .nav-links a { display: block; padding: 12px; }
  .nav-right { margin-left: auto; }
  .burger { display: block; }
  .nav-right .btn-ghost { display: none; }
  .about, .tl-slide { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tl-dot small { display: none; }
  .dash { grid-template-columns: 1fr; padding-top: 88px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .side-title { display: none; }
  .side-link { width: auto; white-space: nowrap; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .cards, .jobs, .checks, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .hero-actions .btn { flex: 1; }
  .user-chip .name { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ============================================================
   Forside v3 – ren, filmisk forside
   ============================================================ */
:root { --radius: 8px; }
.btn { border-radius: 6px; }
.nav-links a { text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; }
.nav-links a.active { background: none; }
.nav-center .nav-links { margin-inline: auto; }
.brand { letter-spacing: 1px; }

/* Hero */
.h-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 0; isolation: isolate; overflow: hidden; }
.h-hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../assets/hero-mural.webp") left center / cover; filter: brightness(.78) saturate(1.05); transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10,10,12,.94) 0%, rgba(10,10,12,.7) 30%, rgba(10,10,12,0) 62%),
  linear-gradient(180deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,0) 22%, rgba(10,10,12,0) 55%, var(--bg) 100%); }
.h-hero-text { max-width: 620px; padding-bottom: 56px; }
.h-hero-text > * { animation: fadeUp .9s var(--ease) both; }
.h-hero-text > :nth-child(2) { animation-delay: .08s; }
.h-hero-text > :nth-child(3) { animation-delay: .16s; }
.h-hero-text > :nth-child(4) { animation-delay: .24s; }
.h-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10vw, 140px); line-height: .88; letter-spacing: 1px; text-transform: uppercase; }
.h-hero h1 small { display: block; font-size: .32em; letter-spacing: 6px; color: #d6d6db; margin-bottom: 10px; }
.h-hero h1 span { color: var(--red); }
.h-hero p { color: #c9c9cf; font-size: 17px; max-width: 460px; margin: 20px 0 30px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Statuslinje nederst i hero */
.h-status { border-top: 1px solid var(--line-2); }
.h-status .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.h-status .live { display: flex; align-items: center; gap: 10px; }
.h-status b { color: #fff; font-weight: 700; }
.h-status a { color: #fff; cursor: pointer; transition: color .2s; }
.h-status a:hover { color: var(--red-2); }

/* Sektioner */
.h-sec { padding: 120px 0 0; }
.h-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.h-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: .92; letter-spacing: .5px; text-transform: uppercase; }
.h-about p { color: #bdbdc5; font-size: 17px; margin-bottom: 16px; }
.h-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; border-bottom: 1px solid var(--red); padding-bottom: 4px; transition: color .2s, gap .2s; }
.h-link:hover { color: var(--red-2); gap: 12px; }

.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-stats div { padding: 30px 0 26px; }
.h-stats div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.h-stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1; }
.h-stats strong em { color: var(--red); font-style: normal; }
.h-stats span span, .h-stats strong span { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
.h-stats div > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }

.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

/* Jobs – flad rude-grid */
.jobs { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job { background: var(--bg); border: 0; border-radius: 0; padding: 30px 26px; gap: 4px; position: relative; }
.job::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.job:hover { transform: none; background: var(--bg-2); }
.job:hover::before { transform: scaleX(1); }
.job .ic { font-size: 22px; margin-bottom: 18px; }
.job h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .5px; line-height: 1; text-transform: uppercase; }
.job .state { margin-top: 22px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }

/* Footer – én linje */
.h-foot { margin-top: 120px; padding: 0; }
.h-foot .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; min-height: 88px; padding-block: 20px; }
.h-foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.h-foot nav a { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.h-foot nav a:hover { color: #fff; }
.h-foot small { color: #5f5f68; font-size: 12px; }

@media (max-width: 860px) {
  .h-hero-bg { background-position: 48% center; filter: brightness(.6); }
  .h-hero::after { background: linear-gradient(180deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,.1) 25%, rgba(10,10,12,.75) 60%, var(--bg) 100%); }
  .h-hero-text { padding-bottom: 36px; }
  .h-about { grid-template-columns: 1fr; gap: 24px; }
  .h-sec { padding-top: 84px; }
  .h-stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .h-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-stats strong { font-size: 44px; }
  .h-foot { margin-top: 84px; }
}
@media (max-width: 560px) {
  .h-status .container { height: 56px; font-size: 11px; letter-spacing: 1.2px; }
  .h-actions .btn { flex: 1; }
}

/* Billeder fra 2023 */
.h-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 72px; }
.h-proof figure { min-width: 0; }
.h-proof .wide { grid-column: 1 / -1; }
.h-shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 22px; overflow: hidden; }
.h-shot img { height: 170px; width: auto; border-radius: 4px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.h-proof .wide .h-shot { padding: 14px; overflow-x: auto; justify-items: start; }
.h-proof .wide .h-shot img { height: auto; width: 100%; min-width: 760px; max-width: none; }
.h-proof figcaption { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.h-proof figcaption small { color: var(--red-2); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.h-proof figcaption strong { font-size: 15px; font-weight: 600; }
.h-proof + .h-stats { margin-top: 56px; }
@media (max-width: 860px) { .h-proof { margin-top: 48px; } .h-shot img { height: 130px; } }
@media (max-width: 560px) { .h-proof { grid-template-columns: 1fr; } }

/* Profil-menu i nav */
.user-menu { position: relative; }
button.user-chip { cursor: pointer; }
.user-chip .caret { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.user-chip[aria-expanded="true"] .caret { transform: rotate(180deg); }
.user-drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 6px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: fadeUp .18s var(--ease); z-index: 10; }
.user-drop-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.user-drop-head strong { display: block; font-size: 14px; }
.user-drop-head small { color: var(--muted); font-size: 12px; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: none; font-size: 14px; font-weight: 600; color: #d5d5da; cursor: pointer; transition: background .15s, color .15s; }
.user-drop a:hover, .user-drop button:hover { background: rgba(255,255,255,.06); color: #fff; }
.user-drop button { color: var(--red-2); margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-top: 12px; }

/* Profil / rank */
.rank-line { color: var(--muted); font-size: 14px; margin-top: 2px; }
.rank-line b { color: #fff; }
.tag.role { display: inline-flex; align-items: center; gap: 7px; }
.tag.role i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.info { display: grid; }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info dt { color: var(--muted); flex: none; }
.info dd { font-weight: 600; text-align: right; word-break: break-word; }
.rank-big { font-family: var(--display); font-size: 40px; line-height: 1; margin-bottom: 14px; }

/* Status: indkaldt til samtale */
.chip.interview { background: rgba(168,85,247,.14); color: #c084fc; }
.timeline-mini li.interview::before { background: #a855f7; }

/* ============================================================
   v5 – ansøgninger + profil i samme stil som forsiden
   ============================================================ */
/* Rude-grid uden tomme felter */
.jobs, .types { gap: 1px; background: none; border: 0; border-radius: 0; overflow: visible; padding: 1px; }
.job, .type { box-shadow: 0 0 0 1px var(--line); }

/* Sidehoved */
.page-head { padding: 150px 0 52px; background: none; }
.page-title { font-weight: 400; font-size: clamp(56px, 8vw, 104px); line-height: .9; text-transform: uppercase; }
.page-head p { font-size: 17px; margin-top: 16px; max-width: 520px; }
.page { padding-top: 56px; }

/* Ansøgningstyper */
.types { grid-template-columns: repeat(3, 1fr); }
.type { background: var(--bg); border-radius: 0; padding: 30px 26px; display: flex; flex-direction: column; gap: 4px; }
.type::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.type:hover:not(:disabled) { transform: none; background: var(--bg-2); }
.type:hover:not(:disabled)::before, .type.active::before { transform: scaleX(1); }
.type.active { background: var(--bg-2); }
.type .ic { font-size: 22px; margin-bottom: 18px; }
.type strong { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .5px; line-height: 1; text-transform: uppercase; }
.type small { font-size: 14px; flex: 1; }
.type .state { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* Formular */
.form-card { background: none; border-radius: var(--radius); padding: 44px; margin-top: 48px; }
.form-card h2 { font-weight: 400; font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; }
.form-card > p { margin: 8px 0 32px; }
.field input, .field select, .field textarea, .input { border-radius: 6px; }
.gate { background: none; border-radius: var(--radius); }
.gate h2 { font-weight: 400; text-transform: uppercase; }

/* Profil / dashboard */
.dash { display: block; padding-top: 120px; }
.tabs { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 44px; overflow-x: auto; }
.tab { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-color: var(--red); }
.tab .n { background: var(--red); color: #fff; font-size: 11px; letter-spacing: 0; padding: 1px 7px; border-radius: 99px; }
.tabs .btn { margin-left: auto; margin-bottom: 14px; flex: none; }

.d-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 40px; }
.d-head .avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.d-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.5vw, 68px); line-height: .95; letter-spacing: .5px; text-transform: uppercase; }
.d-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.d-head p b { color: #fff; }
.d-head .btn { margin-left: auto; }

.view-head { margin-bottom: 32px; }
.view-head h1 { font-weight: 400; font-size: clamp(42px, 5.5vw, 68px); line-height: .95; text-transform: uppercase; }

.kpis { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.kpi { background: none; border: 0; border-radius: 0; padding: 26px 0 22px; }
.kpi + .kpi { padding-left: 26px; border-left: 1px solid var(--line); }
.kpi span { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.kpi strong { font-weight: 400; font-size: 48px; line-height: 1; margin-top: 8px; }

.panels { gap: 20px; margin-bottom: 20px; }
.panel { background: none; padding: 26px; }
.panel.flat { border: 0; padding: 20px 0 0; }
.panel h3 { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.panel h3 small { letter-spacing: 1px; }
.panel h3 .h-link { margin: 0; }
.bars .bar { background: var(--red); border-radius: 3px 3px 0 0; }
.info .roles { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.list { gap: 0; border-top: 1px solid var(--line); }
.list-item { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 6px; transition: background .15s; }
.list-item:hover { background: rgba(255,255,255,.025); }
.table-wrap { background: none; }
.qa > div { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.qa > div:last-child { border-bottom: 0; }
.empty { border-style: solid; border-color: var(--line); }

@media (max-width: 1000px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) { .dash { padding-top: 100px; } .d-head .btn { margin-left: 0; width: 100%; } .tabs { gap: 22px; } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } .kpi strong { font-size: 38px; } }

/* ---------- Regler ---------- */
.r-pagehead { padding-bottom: 44px; }
.r-search { display: flex; align-items: center; gap: 14px; margin-top: 32px; max-width: 720px; padding: 0 16px 0 18px; height: 58px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .2s, box-shadow .2s; cursor: text; }
.r-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,16,30,.15); }
.r-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.r-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.r-search input::placeholder { color: var(--muted); }
.r-search input::-webkit-search-cancel-button { display: none; }
.r-search kbd { font: 600 12px var(--font); color: var(--muted); background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px 9px; }

.rules { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.r-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 14px 14px; }
.r-updated { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 0 8px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.r-updated svg { width: 15px; height: 15px; }
.r-label { color: var(--red-2); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 0 8px 10px; }
.r-toc { display: grid; gap: 2px; overflow-y: auto; }
.r-toc a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; box-shadow: inset 0 0 0 0 var(--red); color: #b9b9c1; font-size: 14.5px; font-weight: 600; line-height: 1.25; transition: background .15s, color .15s; }
.r-toc a:hover { background: rgba(255,255,255,.04); color: #fff; }
.r-toc a.on { background: rgba(227,16,30,.1); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.r-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--red-soft); color: var(--red-2); font-size: 13px; font-weight: 800; }
.r-n svg { width: 16px; height: 16px; }
.r-t { flex: 1; min-width: 0; }
.r-c { flex: none; min-width: 24px; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 99px; padding: 2px 7px; }

.r-body { display: grid; gap: 20px; min-width: 0; }
.r-sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 34px 38px 30px; scroll-margin-top: 96px; }
.r-head { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.r-head .r-n { width: 54px; height: 54px; border-radius: 12px; font-size: 22px; font-family: var(--display); font-weight: 400; }
.r-head .r-n svg { width: 26px; height: 26px; }
.r-sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; letter-spacing: .5px; text-transform: uppercase; }
.r-sec p.r-sub { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.r-sec p { color: #c4c4cc; margin-bottom: 14px; }
.r-sec h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 30px 0 12px; }
.r-sec ul { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.r-sec li { position: relative; padding-left: 22px; color: #d5d5da; }
.r-sec li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.r-sec p.r-note { margin: 24px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--red-soft); color: #fff; font-weight: 500; }
.r-sec > :last-child { margin-bottom: 0; }
.r-sec mark { background: rgba(227,16,30,.35); color: #fff; border-radius: 3px; padding: 0 2px; }
.r-empty { text-align: center; color: var(--muted); padding: 60px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 960px) {
  .rules { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .r-side { position: static; max-height: none; padding: 14px; min-width: 0; }
  .r-head { align-items: flex-start; }
  .r-updated, .r-label { display: none; }
  .r-toc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .r-toc a { flex: none; white-space: nowrap; padding: 6px 12px 6px 6px; }
  .r-toc a.on { box-shadow: inset 0 0 0 1px var(--red); }
  .r-c { display: none; }
  .r-sec { padding: 24px 20px; }
  .r-head { gap: 14px; padding-bottom: 20px; margin-bottom: 20px; }
  .r-head .r-n { width: 44px; height: 44px; font-size: 18px; }
  .r-search kbd { display: none; }
}

/* ---------- Banner ---------- */
.site-banner { position: fixed; inset: 0 0 auto; z-index: 101; height: 40px; display: block; line-height: 40px; padding: 0 16px; text-align: center; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.site-banner:hover { background: var(--red-2); }
body.has-banner { padding-top: 40px; }
body.has-banner .nav { top: 40px; }
@media (max-width: 860px) { body.has-banner .nav-links { top: 112px; } }

/* ---------- Forside: streamere, nyheder, topliste ---------- */
.h-sec > .container > .h-title, .h-feed .h-title { margin-bottom: 32px; }
.h-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; padding: 1px; }
.h-stream { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); transition: background .2s; }
.h-stream:hover { background: var(--bg-2); }
.h-stream .state { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.h-stream.live .state { color: #fff; }
.h-stream strong { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; }
.h-stream small { color: var(--muted); font-size: 13px; }
.h-stream:not(.live) strong { color: #8d8d96; }
.h-feed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.h-feed.one { grid-template-columns: minmax(0, 760px); }
.h-news { border-top: 1px solid var(--line); }
.h-post { padding: 26px 0; border-bottom: 1px solid var(--line); }
.h-post .meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.h-post h3 { font-size: 20px; margin-bottom: 8px; }
.h-post p { color: #bdbdc5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.h-post p.more { cursor: pointer; }
.h-post p.open { display: block; }
.h-top { list-style: none; border-top: 1px solid var(--line); }
.h-top li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.h-top b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--muted); width: 28px; }
.h-top li:nth-child(-n+3) b { color: var(--red-2); }
.h-top span { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-top em { font-style: normal; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .h-feed { grid-template-columns: minmax(0, 1fr); gap: 64px; } }

/* ---------- Ejer-panel ---------- */
.panels.owner { grid-template-columns: 1fr 1fr; align-items: start; }
.o-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.o-row:last-child { border-bottom: 0; padding-bottom: 0; }
.o-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.o-row .grow small { font-weight: 400; }
.o-list { margin-top: 22px; border-top: 1px solid var(--line); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #34343c; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
@media (max-width: 1000px) { .panels.owner { grid-template-columns: 1fr; } }
