/* Avenor RolePlay hjemmeside, samme stil som loadingskærmen */
:root {
  --blue: #1a8cff;
  --blue-dark: #0a6fd6;
  --bg: #0a0c10;
  --bg-alt: #0f1218;
  --card: #141821;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .1);
  --green: #2fd27a;
  --red: #ff5a5a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
select option { background: #141821; color: #fff; }
img { display: block; }

/* ---------- KNAPPER ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  color: var(--text);
  transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; background: var(--blue); }

/* ---------- BESKED ØVERST ---------- */
.notice {
  position: relative; z-index: 60;
  padding: .55rem 16px;
  background: var(--blue);
  text-align: center;
  font-size: .9rem; font-weight: 500;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  height: 64px; padding: 0 max(16px, calc((100% - 1160px) / 2));
  background: rgba(10, 12, 16, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 500; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand b { font-weight: 800; }
.links { display: flex; gap: 1.6rem; margin-left: auto; }
.links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.links a:hover { color: var(--text); }
.menu { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.menu span { display: block; height: 2px; margin: 6px 6px; background: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
}
.slides, .slide, .scrim { position: absolute; inset: 0; }
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; }
.slide.show { opacity: 1; animation: drift 12s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.scrim {
  background:
    linear-gradient(180deg, rgba(10, 12, 16, .4) 0%, transparent 30%, transparent 55%, var(--bg) 100%),
    rgba(10, 12, 16, .6);
}
.hero-inner { position: relative; padding: 4rem 16px; max-width: 760px; }
.hero-logo { width: 170px; height: 170px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 8px 32px rgba(0, 0, 0, .6)); animation: appear .9s ease-out both; }
.hero h1 { margin-top: 1.5rem; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; animation: appear .9s .1s ease-out both; }
.hero h1 span { color: var(--blue); }
.lead { margin: 1.1rem auto 0; max-width: 560px; color: var(--muted); font-size: 1.1rem; animation: appear .9s .2s ease-out both; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; animation: appear .9s .35s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem; padding: .45rem 1rem;
  border: 1px solid var(--line); border-radius: 2rem;
  background: rgba(0, 0, 0, .35);
  font-size: .9rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  animation: appear .9s .3s ease-out both;
}
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.online i { background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
.status-pill.offline i { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 122, .6); } 100% { box-shadow: 0 0 0 10px rgba(47, 210, 122, 0); } }

/* ---------- TAL ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1160px; margin: -3rem auto 0; position: relative;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card);
  margin-left: max(16px, calc((100% - 1160px) / 2)); margin-right: max(16px, calc((100% - 1160px) / 2));
}
.stats div { padding: 1.4rem 1rem; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- SEKTIONER ---------- */
.section { padding: 6rem max(16px, calc((100% - 1160px) / 2)); }
.section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: .4rem 0 1rem; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 700; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section p + p { margin-top: 1rem; }
.section > .muted { max-width: 600px; margin: 0 auto; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.two-col p { color: var(--muted); }
.checks { list-style: none; display: grid; gap: .8rem; }
.checks li {
  padding: .95rem 1.1rem .95rem 3rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card) no-repeat 1.1rem center / 18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  font-weight: 500;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.card {
  padding: 1.6rem;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(26, 140, 255, .55); transform: translateY(-3px); }
.ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 12px; background: rgba(26, 140, 255, .14); font-size: 1.5rem; }
.card p { margin-top: .4rem; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.steps li { padding: 1.8rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.steps li > b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--blue); font-weight: 800; }
.steps p { margin: .4rem 0 .9rem; color: var(--muted); font-size: .95rem; }
.steps a { font-weight: 600; }
code {
  display: block; padding: .6rem .8rem;
  border-radius: 8px; background: #000;
  font: 500 .9rem ui-monospace, Consolas, monospace;
  color: var(--blue); overflow-x: auto; white-space: nowrap;
}

.rules { max-width: 760px; margin: 2.5rem auto 0; display: grid; gap: .7rem; }
.rules details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rules summary { padding: 1.05rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.rules details[open] summary::after { content: '−'; }
.rules details p { padding: 0 1.2rem 1.1rem; color: var(--muted); }

.players {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem;
  max-width: 960px; margin: 2rem auto 0;
}
.players li {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-weight: 500; font-size: .95rem;
}
.players li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players li span:last-child { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.players .empty { grid-column: 1 / -1; justify-content: center; color: var(--muted); }

.footer {
  display: flex; align-items: center; gap: 1rem;
  padding: 2rem max(16px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.footer img { width: 32px; height: 32px; object-fit: contain; }
.footer a { margin-left: auto; font-weight: 600; }
.footer .staff-link { margin-left: 0; color: var(--muted); font-weight: 500; }

/* ---------- MODERNE LAG ---------- */
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(26, 140, 255, .08), transparent 60%), var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); }
.nav { background: transparent; border-bottom-color: transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(10, 12, 16, .75); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); }
.btn-primary { background: linear-gradient(135deg, #3aa0ff, var(--blue) 50%, #0a64d0); box-shadow: 0 10px 30px -8px rgba(26, 140, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(26, 140, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }

.hero { margin-top: -64px; min-height: 100vh; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.glow { position: absolute; width: 700px; height: 700px; left: 50%; top: 40%; translate: -50% -50%; background: radial-gradient(circle, rgba(26, 140, 255, .28), transparent 60%); filter: blur(40px); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; scale: 1.1; } }
.tag { display: inline-block; margin-bottom: 1.2rem; padding: .35rem .9rem; border: 1px solid rgba(26, 140, 255, .4); border-radius: 2rem; background: rgba(26, 140, 255, .1); color: #8cc6ff; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; animation: appear .9s ease-out both; }
.hero h1 { background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { background: linear-gradient(135deg, #6cb8ff, var(--blue)); -webkit-background-clip: text; background-clip: text; }
.hero-logo { margin-bottom: .4rem; }

.stats { background: rgba(20, 24, 33, .7); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.stats b { background: linear-gradient(180deg, #fff, #9fb7d6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card, .steps li, .checks li, .rules details, .players li {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  border-color: rgba(255, 255, 255, .08);
}
.checks li { background-color: transparent; }
.card { position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at 0 0, rgba(26, 140, 255, .14), transparent 50%); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 20px 50px -20px rgba(26, 140, 255, .35); }
.ico { border: 1px solid rgba(26, 140, 255, .3); background: linear-gradient(135deg, rgba(26, 140, 255, .22), rgba(26, 140, 255, .05)); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: #6cb8ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps li > b { background: linear-gradient(135deg, #3aa0ff, #0a64d0); box-shadow: 0 8px 20px -6px rgba(26, 140, 255, .7); }
.section.alt { background: linear-gradient(180deg, var(--bg), var(--bg-alt) 20%, var(--bg-alt) 80%, var(--bg)); }
.rules details[open] { border-color: rgba(26, 140, 255, .35); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .glow, .slide.show { animation: none; } }

/* ---------- ANSØGNING ---------- */
.links a.active { color: var(--text); }
.links a.wl { color: #8cc6ff; }
.apply { position: relative; max-width: 820px; margin: 0 auto; padding: 4rem 16px 6rem; }
.apply .glow { top: 0; width: 600px; height: 500px; opacity: .6; z-index: -1; }
.apply-head { text-align: center; margin-bottom: 2.5rem; }
.apply-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.apply-head .muted { max-width: 560px; margin: 1rem auto 0; }
.panel {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.panel.center { text-align: center; padding: 3rem 2rem; }
.panel.center h2 { font-size: 1.6rem; }
.panel .btn { margin-top: 1.4rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.panel .cta { margin-top: .6rem; }
.btn-discord { background: linear-gradient(135deg, #6f7dff, #5865f2); box-shadow: 0 10px 30px -8px rgba(88, 101, 242, .7); }
.discord-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 18px; background: #5865f2; }
.discord-mark svg { width: 34px; fill: #fff; }
.status-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; font-size: 1.8rem; font-weight: 800; }
.status-icon.pending { background: rgba(26, 140, 255, .15); border: 1px solid rgba(26, 140, 255, .4); }
.status-icon.approved { background: rgba(47, 210, 122, .15); border: 1px solid rgba(47, 210, 122, .5); color: var(--green); }
.status-icon.denied { background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .45); color: var(--red); }
.reason { max-width: 520px; margin: 1.2rem auto 0; padding: 1rem 1.2rem; border-left: 3px solid var(--red); border-radius: 8px; background: rgba(255, 90, 90, .07); text-align: left; color: var(--muted); }

.user { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.user img { width: 44px; height: 44px; border-radius: 50%; }
.user small { display: block; color: var(--muted); font-size: .8rem; }
.user a { margin-left: auto; color: var(--muted); font-size: .9rem; }
#fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  background: rgba(0, 0, 0, .35); color: var(--text);
  font: inherit; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 140, 255, .18); }
.field ::placeholder { color: rgba(255, 255, 255, .35); }
.field small { color: rgba(255, 255, 255, .4); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.field small.ok { color: var(--green); }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.6rem; color: var(--muted); font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue); flex-shrink: 0; }
.error { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #ffb3b3; font-size: .95rem; }
#submit { width: 100%; padding: 1rem; }
#submit:disabled { opacity: .6; cursor: wait; }

.type-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.type-tabs:empty { display: none; }
.type-tabs a { padding: .45rem 1rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.type-tabs a.active { background: var(--blue); color: #fff; }
.type-tabs a:not(.active):hover { color: var(--text); }
.type-tabs .locked { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 9px; color: rgba(255, 255, 255, .35); font-weight: 600; font-size: .9rem; cursor: not-allowed; }
.type-tabs .locked::before { content: ''; width: 11px; height: 9px; margin-top: 3px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 -3px currentColor; }
#view-disabled .btns { justify-content: center; margin-top: 1.4rem; }

/* ---------- REGLER (opdelt i kategorier) ---------- */
h2 .ver { margin-left: .4rem; padding: .15rem .55rem; border: 1px solid rgba(26, 140, 255, .4); border-radius: 2rem; background: rgba(26, 140, 255, .1); color: #8cc6ff; font-size: .8rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.rule-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2rem auto 0; }
.rule-cats button { padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 2rem; background: rgba(255, 255, 255, .03); color: var(--muted); font: 600 .88rem 'Inter', sans-serif; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.rule-cats button:hover { color: var(--text); border-color: rgba(255, 255, 255, .2); }
.rule-cats button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.rules summary b { display: inline-grid; place-items: center; min-width: 2rem; height: 1.7rem; margin-right: .7rem; padding: 0 .4rem; border-radius: .5rem; background: rgba(26, 140, 255, .14); color: #8cc6ff; font-size: .8rem; font-variant-numeric: tabular-nums; }
.rules summary { justify-content: flex-start; align-items: center; }
.rules summary::after { margin-left: auto; }
.rules details ul { margin: 0; padding: 0 1.2rem 1.1rem 3.6rem; color: var(--muted); }
.rules details li + li { margin-top: .4rem; }
.rules details[hidden] { display: none; }
.rules-note { margin-top: 1.6rem; font-size: .9rem; }

/* ---------- MIN KONTO: ANSØGNINGER TIL BEHANDLING ---------- */
.acc-nav { display: inline-flex; gap: 2px; padding: 3px; margin: 1.6rem 0 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.acc-nav[hidden] { display: none; }
.acc-nav button { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .92rem 'Inter', sans-serif; cursor: pointer; }
.acc-nav button.active { background: var(--blue); color: #fff; }
.acc-nav em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff5a5a; color: #fff; font-size: .75rem; font-style: normal; font-weight: 800; line-height: 20px; text-align: center; }
.rv-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tabs-public em { margin-left: .3rem; color: #8cc6ff; font-style: normal; }
.acc-tabs h2 small { font-size: .9rem; font-weight: 500; }
.rv-card { overflow: hidden; margin-bottom: .8rem; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--blue); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); }
.rv-card.approved { border-left-color: var(--green); }
.rv-card.denied { border-left-color: var(--red); }
.rv-top { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; cursor: pointer; }
.rv-top img { width: 38px; height: 38px; border-radius: 50%; }
.rv-top div { min-width: 0; flex: 1; }
.rv-top b { display: block; }
.rv-top small { color: var(--muted); font-size: .82rem; }
.rv-top .status { margin-top: 0; }
.rv-body { display: none; padding: 0 1.1rem 1.1rem; }
.rv-card.open .rv-body { display: block; }
.rv-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.rv-qa div { padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); }
.rv-qa .wide { grid-column: 1 / -1; }
.rv-qa span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rv-qa p { white-space: pre-wrap; word-break: break-word; }
.rv-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.rv-actions.left { justify-content: flex-start; }
.rv-actions .btn { margin-top: 0; }
.rv-done { margin-top: .9rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: .9rem; }
.btn-danger { background: rgba(255, 90, 90, .18); border: 1px solid rgba(255, 90, 90, .45); color: #ff9a9a; }
.rv-deny { color: #ff9a9a; }
.btn-small.btn-ghost { height: 38px; }
.rv-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(5px); overflow-y: auto; }
.rv-bg[hidden] { display: none; }
.rv-dialog { width: 100%; max-width: 480px; padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(14, 17, 24, .98); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.rv-dialog h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.rv-dialog textarea, .rv-dialog input, .rv-dialog select { width: 100%; margin-top: .8rem; padding: .7rem .9rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; outline: 0; resize: vertical; }
.rv-dialog textarea:focus, .rv-dialog input:focus, .rv-dialog select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 140, 255, .18); }
.tpl-dialog { max-width: 860px; }
.tpl-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.tpl-head select { width: auto; margin: 0; }
.tpl-head .muted { margin: 0; font-size: .85rem; }
.tpl-desc { display: block; margin-top: 1rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.tpl-cols, .tpl-row { display: grid; grid-template-columns: 1fr 120px 70px 70px 104px; gap: .5rem; align-items: center; }
.tpl-cols { margin-top: 1rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tpl-row { margin-top: .5rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.tpl-row input, .tpl-row select { margin: 0; min-width: 0; }
.tpl-row .acts { display: flex; gap: 4px; justify-content: flex-end; }
.tpl-row .acts button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; }
.tpl-row .acts button:disabled { opacity: .3; cursor: not-allowed; }
.tpl-row .lock { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.rv-toast { position: fixed; right: 16px; bottom: 16px; z-index: 95; max-width: 360px; padding: .9rem 1.1rem; border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--green); border-radius: 12px; background: rgba(20, 25, 35, .97); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: .92rem; }
.rv-toast.err { border-left-color: var(--red); }
.rv-toast[hidden] { display: none; }
@media (max-width: 760px) { .rv-qa { grid-template-columns: 1fr; } .tpl-cols { display: none; } .tpl-row { grid-template-columns: 1fr 1fr 1fr; } .tpl-row > :first-child, .tpl-row .acts { grid-column: 1 / -1; } .tpl-head { flex-direction: column; } }

/* ---------- ANSØGNINGSKORT ---------- */
.apply.wide { max-width: 1100px; }
.cards-group { margin: 2.2rem 0 1rem; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cards-group:first-child { margin-top: 0; }
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.app-cards[hidden] { display: none; }
.app-card-big { overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); transition: border-color .2s, transform .2s; }
.app-card-big:not(.is-locked):hover { border-color: rgba(26, 140, 255, .5); transform: translateY(-4px); }
.app-card-big.is-locked { opacity: .75; }
.acb-banner { position: relative; height: 110px; background: #0d1119 center / cover; }
.acb-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, .3), rgba(15, 18, 26, .95)); }
.is-locked .acb-banner { filter: grayscale(1); }
.acb-badge { position: absolute; z-index: 1; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .75rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 2rem; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); color: var(--muted); font-size: .8rem; font-weight: 700; }
.acb-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.acb-badge.open, .acb-badge.done { color: var(--green); border-color: rgba(47, 210, 122, .4); background: rgba(47, 210, 122, .12); }
.acb-badge.wait { color: #8cc6ff; border-color: rgba(26, 140, 255, .4); background: rgba(26, 140, 255, .14); }
.acb-badge.denied { color: #ff8a8a; border-color: rgba(255, 90, 90, .4); background: rgba(255, 90, 90, .12); }
.acb-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 1.6rem 1.6rem; }
.acb-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; margin-bottom: 1.1rem; border: 1px solid rgba(26, 140, 255, .35); border-radius: 16px; background: #0f1a2b; box-shadow: 0 10px 24px -8px rgba(26, 140, 255, .5); }
.acb-ico svg { width: 26px; height: 26px; fill: none; stroke: #6cb8ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-locked .acb-ico { border-color: rgba(255, 255, 255, .12); background: #151922; box-shadow: none; }
.is-locked .acb-ico svg { stroke: var(--muted); }
.acb-body h2 { margin: 0 0 .5rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.acb-body p { flex: 1; margin-bottom: 1.6rem; color: var(--muted); }
.acb-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin: 0; padding: .9rem 1rem; }
.acb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acb-btn.disabled { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .4); cursor: not-allowed; }
.reason.approved { border-left-color: var(--green); background: rgba(47, 210, 122, .07); }
.back-link { color: var(--muted); font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--text); }
.type-tabs:has(.back-link) { border: 0; background: none; padding: 0; }

/* ---------- TOPBAR (fælles for alle sider) ---------- */
.nav { gap: 1rem; }
.nav .nv { display: flex; align-items: center; gap: .25rem; margin-left: 1.2rem; }
.nv-i { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .9rem; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: 500 .93rem 'Inter', sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.nv-i svg, .nv-menu svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv-i:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nv-i.active { color: #8cc6ff; background: rgba(26, 140, 255, .12); border-color: rgba(26, 140, 255, .35); }
.nv-caret { width: 6px; height: 6px; margin-left: .1rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .15s; }
.nv-dd, .nv-user, .nv-bell { position: relative; }
.open > button .nv-caret { transform: rotate(225deg) translateY(-1px); }
.nv-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 210px; padding: .4rem;
  display: grid; gap: 2px; background: rgba(16, 20, 28, .98); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.open > .nv-menu { opacity: 1; visibility: visible; transform: none; }
.nv-menu > a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nv-menu > a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.nv-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nv-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff5a5a; color: #fff; font-size: .74rem; line-height: 20px; text-align: center; }
.nv-user > button { display: flex; align-items: center; gap: .55rem; height: 40px; padding: 0 .75rem 0 .35rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text); font: 600 .9rem 'Inter', sans-serif; cursor: pointer; }
.nv-user > button:hover { background: rgba(255, 255, 255, .08); }
.nv-user img { width: 28px; height: 28px; border-radius: 50%; }
.nv-user .nv-menu, .nv-bell .nv-menu { left: auto; right: 0; }
.nv-bell > button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.nv-bell > button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.nv-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff5a5a; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.nv-notifs { width: 320px; padding: .6rem; }
.nv-notifs p { padding: .3rem .5rem .5rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nv-notifs em { padding: 1rem .6rem; color: var(--muted); font-size: .9rem; font-style: normal; }
.nv-n { display: grid; grid-template-columns: 8px 1fr auto; align-items: start; gap: .6rem; padding: .65rem .6rem; border-radius: 9px; color: var(--text); font-size: .88rem; }
.nv-n:hover { background: rgba(255, 255, 255, .07); }
.nv-n i { width: 8px; height: 8px; margin-top: .4rem; border-radius: 50%; background: var(--blue); }
.nv-n.approved i { background: var(--green); } .nv-n.denied i { background: var(--red); } .nv-n.pending i { background: var(--muted); }
.nv-n small { color: var(--muted); font-size: .76rem; white-space: nowrap; }

/* ---------- HERO MED STATUSKORT ---------- */
.hero { text-align: left; }
.hero-split { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px); gap: 3rem; align-items: center; width: 100%; max-width: 1180px; padding: 5rem 16px; }
.hero-split h1 { margin-top: 1rem; font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
.hero-split .lead { margin: 1.1rem 0 0; max-width: 520px; font-size: 1.12rem; }
.hero-split .cta { justify-content: flex-start; }
.hero-split .btn svg { width: 17px; height: 17px; margin-right: .5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero-split .btn { display: inline-flex; align-items: center; }
.srv-card { padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(14, 17, 24, .6); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); animation: appear .9s .3s ease-out both; }
.srv-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.srv-ico { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.srv-ico svg { width: 20px; height: 20px; fill: none; stroke: #cfe6ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.srv-head b { font-size: 1.02rem; font-weight: 700; }
.srv-pill { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; padding: .28rem .75rem; border-radius: 2rem; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: .8rem; font-weight: 700; }
.srv-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.srv-pill.online { background: rgba(47, 210, 122, .14); color: var(--green); }
.srv-pill.offline { background: rgba(255, 90, 90, .14); color: #ff8a8a; }
.srv-row { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: .98rem; }
.srv-row b { color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.srv-row b em { font-style: normal; }
.srv-row b span { color: var(--muted); font-weight: 500; }
.srv-bar { height: 8px; margin: .8rem 0 .55rem; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.srv-bar div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2fd27a, #6fe0a4); transition: width .8s ease; }
.srv-card small { color: var(--muted); font-size: .82rem; }
.srv-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 16px 4rem; text-align: center; } .hero-split .lead { margin-inline: auto; } .hero-split .cta { justify-content: center; } }

/* gløden bag siderne må ikke gøre siden bredere end skærmen (clip bevarer sticky indholdsfortegnelse) */
.rules-page, .apply { overflow-x: clip; }

/* ---------- TOPBAR PÅ SMÅ SKÆRME ---------- */
@media (max-width: 560px) {
  .nav { gap: .5rem; padding-inline: 12px; }
  .nav .brand span { display: none; }
  .nv-right { gap: .3rem; }
  .nv-right .btn-small { padding: .45rem .8rem; font-size: .8rem; }
  .nav .menu { flex-shrink: 0; }
}

/* ---------- TOPBAR PÅ MOBIL ---------- */
@media (max-width: 860px) {
  .nav .nv { position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: .6rem 12px 1rem; flex-direction: column; align-items: stretch; background: rgba(10, 12, 16, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav .nv.open { display: flex; }
  .nv-dd .nv-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255, 255, 255, .03); display: none; margin: .2rem 0 .4rem; }
  .nv-dd.open .nv-menu { display: grid; }
  .nv-user > button span:not(.nv-caret) { display: none; }
  .nv-notifs { width: min(320px, calc(100vw - 24px)); }
  .nv-right { margin-left: auto; }
}

/* ---------- REGLER PÅ FORSIDEN ---------- */
.rule-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 2.4rem 0 2rem; }
.rule-group { display: block; padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); color: var(--text); transition: border-color .2s, transform .2s; }
.rule-group:hover { border-color: rgba(26, 140, 255, .55); transform: translateY(-3px); }
.rule-group span { color: #8cc6ff; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rule-group h3 { margin: .3rem 0 .8rem; font-size: 1.1rem; }
.rule-group ul { list-style: none; color: var(--muted); font-size: .92rem; }
.rule-group li { padding: .25rem 0; border-top: 1px solid var(--line); }
.rule-group li:first-child { border-top: 0; }
.section .center .btn + .btn { margin-left: .5rem; }
@media (max-width: 1000px) { .rule-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rule-groups { grid-template-columns: 1fr; } }

/* ---------- REGELSIDE ---------- */
.rules-page { position: relative; max-width: 1180px; margin: 0 auto; padding: 3.5rem 16px 5rem; }
.rules-page .glow { top: 0; width: 700px; height: 420px; opacity: .55; z-index: -1; }
.rules-hero { text-align: center; margin-bottom: 2.6rem; }
.rules-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.rules-motto { margin-top: .6rem; color: #8cc6ff; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.rules-tools { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.rules-tools input { flex: 1; min-width: 240px; max-width: 460px; padding: .8rem 1.1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 2rem; background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; outline: 0; }
.rules-tools input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 140, 255, .18); }
.rules-tools .btn { white-space: nowrap; }
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.4rem; align-items: start; }
.rules-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; }
.rules-toc > p { margin-bottom: .6rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rules-toc a { display: block; color: var(--muted); font-size: .88rem; }
.rules-toc .toc-g { margin-top: 1rem; color: var(--text); font-weight: 700; font-size: .85rem; }
.rules-toc .toc-g span { margin-right: .35rem; color: #8cc6ff; font-variant-numeric: tabular-nums; }
.rules-toc .toc-s { padding: .28rem 0 .28rem .8rem; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.rules-toc .toc-s:hover, .rules-toc .toc-s.cur { color: var(--text); border-left-color: var(--blue); }
.card-box { padding: 1.8rem 2rem; margin-bottom: 1.4rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }
.card-box h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.card-box p { color: var(--muted); }
.card-box p + p { margin-top: .8rem; }
.card-box .lead { max-width: none; margin: 0 0 .8rem; animation: none; color: var(--text); font-size: 1.1rem; font-weight: 600; }
.rgroup { margin-top: 2.4rem; scroll-margin-top: 84px; }
.rgroup-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.rgroup-head span { color: #8cc6ff; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rgroup-head h2 { margin: 0; font-size: 1.5rem; }
.rsec { margin-bottom: 1.2rem; padding: 1.5rem 1.8rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .02); scroll-margin-top: 84px; }
.rsec h3 { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; font-size: 1.2rem; }
.rsec h3 b { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: var(--blue); color: #fff; font-size: .95rem; }
.rrule { padding: 1rem 0 .2rem; border-top: 1px solid var(--line); margin-top: 1rem; scroll-margin-top: 84px; }
.rrule:first-of-type { border-top: 0; margin-top: .4rem; }
.rrule h4 { margin-bottom: .45rem; font-size: 1rem; font-weight: 700; }
.rrule h4 a { margin-right: .35rem; color: #8cc6ff; font-variant-numeric: tabular-nums; }
.rrule p { color: var(--muted); }
.rrule p + p, .rrule ul + p, .rrule p + ul { margin-top: .7rem; }
.rrule ul { padding-left: 1.3rem; color: var(--muted); }
.rrule li + li { margin-top: .35rem; }
.rrule li::marker { color: var(--blue); }
.rrule .ex { padding: .8rem 1rem; border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: rgba(26, 140, 255, .08); color: #cfe6ff; }
.rules-empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.rules-extra { margin-top: 1.4rem; }
.rules-extra dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; margin: 0; }
.rules-extra dl div { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.rules-extra dt { font-weight: 700; }
.rules-extra dd { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.rules-extra h4 { margin-top: 1rem; font-size: .95rem; }
.rules-extra h4:first-child { margin-top: 0; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; max-height: none; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
  .rules-toc .toc-s { display: inline-block; padding: .25rem .6rem; margin: .2rem .2rem 0 0; border: 1px solid var(--line); border-radius: 2rem; }
  .card-box, .rsec { padding: 1.2rem; }
}

/* ---------- MIN KONTO ---------- */
.account-link { display: inline-flex !important; align-items: center; gap: .5rem; }
.account-link img { width: 22px; height: 22px; border-radius: 50%; margin-left: -.4rem; }
.profile { display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem 2rem; }
.profile > img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(26, 140, 255, .5); box-shadow: 0 0 0 6px rgba(26, 140, 255, .1); }
.profile small { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.profile h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.profile-actions { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.profile-actions .btn { margin-top: 0; }
.badge, .status { display: inline-block; margin-top: .35rem; padding: .2rem .65rem; border-radius: 2rem; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--muted); }
.badge.blue, .status.blue { background: rgba(26, 140, 255, .15); color: #8cc6ff; }
.badge.green, .status.green { background: rgba(47, 210, 122, .14); color: var(--green); }
.status.red { background: rgba(255, 90, 90, .14); color: #ff8a8a; }
.status { margin-top: 0; flex-shrink: 0; }
.acc-tabs { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.4rem 0 1rem; }
.acc-tabs h2 { margin: 0; font-size: 1.3rem; }
.tabs-public { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tabs-public button { padding: .45rem .9rem; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .85rem 'Inter', sans-serif; cursor: pointer; }
.tabs-public button.active { background: rgba(255, 255, 255, .08); color: var(--text); }
.acc-list { display: grid; gap: .8rem; }
.acc-item {
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--blue); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
}
.acc-item.approved { border-left-color: var(--green); }
.acc-item.denied { border-left-color: var(--red); }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.acc-head b { display: block; }
.acc-head small, .acc-item > small { display: block; color: var(--muted); font-size: .85rem; }
.acc-item > p, .acc-item > small { margin-top: .6rem; }
.acc-item .reason { margin: .8rem 0 0; max-width: none; }
.new-app { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.new-app .btn { text-align: center; }
.btn-locked { opacity: .45; cursor: not-allowed; }
.new-app-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; width: 100%; padding: 1.1rem 1.3rem; border: 1px dashed rgba(255, 255, 255, .15); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.new-app-box small { display: block; margin-top: .15rem; color: var(--muted); font-size: .85rem; }
.new-app-box .btn { flex: 0 0 auto; margin: 0; }

/* ---------- MOBIL ---------- */
@media (max-width: 860px) {
  .menu { display: block; margin-left: auto; }
  .nav .btn-small { display: none; }
  .links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    display: none;
  }
  .links.open { display: flex; }
  .links a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .two-col, .grid, .steps { grid-template-columns: 1fr; gap: 1rem; }
  .two-col { gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .hero-logo { width: 120px; height: 120px; }
  .footer { flex-wrap: wrap; }
  #fields { grid-template-columns: 1fr; }
  .nav .account-link { margin-left: auto; }
  .nav .account-link + .menu { margin-left: .4rem; }
  .profile { flex-wrap: wrap; padding: 1.4rem; }
  .profile-actions { margin-left: 0; width: 100%; }
  .profile-actions .btn { flex: 1; text-align: center; }
  .panel { padding: 1.4rem; }
}

/* Min konto: karakterer */
.chars { margin-bottom: 34px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.char-card { background: var(--card, rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.char-card.pending { border-style: dashed; }
.char-card.add { align-items: center; justify-content: center; text-align: center; min-height: 150px; border-style: dashed; transition: border-color .2s, transform .2s; }
.char-card.add:hover { border-color: #1a8cff; transform: translateY(-2px); }
.char-card.add small { opacity: .6; }
.char-top { display: flex; align-items: center; gap: 12px; }
.char-top > div:nth-child(2) { flex: 1; min-width: 0; }
.char-top b, .char-top small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-top small { opacity: .6; font-size: 12px; }
.char-ava { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #1a8cff, #5865f2); display: grid; place-items: center; font-weight: 700; flex: none; }
.char-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.char-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.char-card dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .char-top { flex-wrap: wrap; } }

.acc-nav button[hidden] { display: none; }
