/* Mit Fællesnet – farver og skrifter fra faellesnet.dk */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/PublicSans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #001ae0;
  --blue-600: #0014b0;
  --blue-50: #eef0ff;
  --navy: #000b87;
  --ink: #00031b;
  --text: #333340;
  --muted: #646879;
  --cream: #f6f8eb;
  --cream-2: #eff6e2;
  --lime: #acff97;
  --green: #62eb00;
  --green-700: #1f6e00;
  --card: #fff;
  --line: #e6e9da;
  --input: #7d826c; /* mindst 3:1 mod hvid og cream (WCAG 1.4.11) */
  --red: #b4001f;
  --red-50: #ffe7ea;
  --amber: #7a4b00;
  --amber-50: #fff1cc;

  --head: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 3, 27, 0.04), 0 10px 30px -12px rgba(0, 3, 27, 0.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 {
  font-family: var(--head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
p { margin: 0; }
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 40px; height: 40px; color: var(--blue); }
.ico.inline { width: 18px; height: 18px; vertical-align: -3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 650; text-decoration: none; transition: top .15s;
}
.skip:focus { top: calc(12px + var(--safe-t)); }
h1:focus, h2:focus { outline: none; }

/* ---------------------------------------------------------------- Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 26, 224, .55); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-soft { background: var(--cream-2); color: var(--ink); }
.btn-soft:hover { background: #e3eed2; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn.loading { color: transparent; }
.btn.loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-ghost.loading::after { border-color: rgba(0, 26, 224, .3); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--cream-2); }
.link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; font-size: 15px; }
.link .ico { width: 18px; height: 18px; }
.link:hover { text-decoration: underline; }
.center { align-self: center; }

/* ---------------------------------------------------------------- Layout */
.layout { min-height: 100dvh; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(246, 248, 235, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--lime);
  font: 700 15px/1 var(--head); text-decoration: none;
}
.main {
  padding: 8px 16px calc(100px + var(--safe-b));
  width: 100%; max-width: 1160px; margin: 0 auto; outline: none;
  animation: fade .25s ease-out;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; color: var(--muted); text-decoration: none;
  font-size: 12px; font-weight: 600;
}
.tab .ico { width: 44px; height: 30px; padding: 4px 11px; border-radius: 999px; transition: background .15s; }
.tab[aria-current] { color: var(--blue); }
.tab[aria-current] .ico { background: var(--blue-50); }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 272px 1fr; }
  .topbar, .tabbar, .only-mobile { display: none !important; }
  .sidebar {
    position: sticky; top: 0; height: 100dvh;
    display: flex; flex-direction: column; gap: 32px;
    padding: 28px 18px; background: #fff; border-right: 1px solid var(--line);
  }
  .sidebar .brand { padding: 4px 12px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px 14px; border: 0; border-radius: 14px; background: none;
    color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; text-align: left;
    transition: background .15s, color .15s;
  }
  .side-link:hover { background: var(--cream); color: var(--ink); }
  .side-link[aria-current] { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 26, 224, .6); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
  .who { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--cream); }
  .who-text { display: flex; flex-direction: column; min-width: 0; }
  .who-text strong { color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .who-text small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logout { color: var(--muted); }
  .main { padding: 40px 48px 64px; }
}

/* ---------------------------------------------------------------- Indhold */
.page-head { margin: 12px 0 20px; }
.page-head p { color: var(--muted); margin-top: 6px; }
@media (min-width: 900px) { .page-head { margin: 0 0 28px; } }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .card-help { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .grid { grid-template-columns: 1.15fr 1fr 1fr; } .card-help { grid-column: auto; } .grid-2 { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 700px) and (max-width: 1179px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2 .card-help { grid-column: auto; }

.card {
  background: var(--card); border-radius: var(--r); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(0, 3, 27, .04);
}
.card > h2 { margin-bottom: 14px; }
.card.flush { padding: 4px 20px; }
@media (min-width: 900px) { .card { padding: 24px; } .card.flush { padding: 6px 24px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.amount { font: 700 40px/1.1 var(--head); color: var(--ink); letter-spacing: -0.03em; margin: 6px 0 4px; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Hero på overblikket */
.hero {
  position: relative; overflow: hidden;
  margin: 8px 0 16px; padding: 28px 22px 26px;
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, #0010b8 55%, var(--navy) 100%);
  box-shadow: 0 20px 40px -24px rgba(0, 11, 135, .8);
}
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 48px); margin: 4px 0 18px; }
.hero-kicker { color: rgba(255, 255, 255, .78); font-size: 15px; }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero-blob {
  position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(172, 255, 151, .95), rgba(98, 235, 0, .35) 45%, transparent 70%);
  filter: blur(4px); opacity: .55;
}
.hero-blob::after {
  content: ''; position: absolute; left: -120px; top: 230px; width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; font-weight: 650; font-size: 15px; line-height: 1.3;
}
.hero-pill .ico { width: 20px; height: 20px; }
.hero-pill.ok { background: var(--lime); color: var(--ink); }
.hero-pill.wait { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero-pill.bad { background: #ffd9de; color: var(--red); }
@media (min-width: 900px) { .hero { margin: 0 0 24px; padding: 40px 40px 36px; } .hero-blob { right: 40px; top: -60px; width: 340px; height: 340px; } }

/* Lister */
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.list > li:last-child > .row, .list > .row:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-main strong { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.row-main small { color: var(--muted); font-size: 14px; }
.row-link { border-radius: 14px; margin: 0 -10px; padding: 12px 10px; transition: background .15s; }
.row-link:hover { background: var(--cream); }
.row-link .end { color: var(--muted); width: 18px; height: 18px; }
.list .row-link { border-bottom: 0; }

.tile { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px; }
.tile .ico { width: 22px; height: 22px; }
.tile-internet { background: var(--blue-50); color: var(--blue); }
.tile-tv { background: #e2ffd9; color: var(--green-700); }
.tile-telefon { background: var(--amber-50); color: var(--amber); }
.tile-andet { background: var(--cream-2); color: var(--ink); }
.tile-inv-betalt { background: #e2ffd9; color: var(--green-700); }
.tile-inv-ikke-betalt { background: var(--amber-50); color: var(--amber); }
.tile-inv-forfalden { background: var(--red-50); color: var(--red); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap;
}
.chip .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.chip-ok { background: #ddffd2; color: var(--green-700); }
.chip-wait { background: var(--amber-50); color: var(--amber); }
.chip-bad { background: var(--red-50); color: var(--red); }

/* Produkter */
.product { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product h2 { font-size: 19px; margin: 2px 0 4px; }
.product .price { font: 650 16px/1.3 var(--head); color: var(--ink); margin-bottom: 2px; }
.product .price small { font: 500 13px var(--body); color: var(--muted); }
.product .chip { white-space: normal; }
.product .tile { width: 54px; height: 54px; border-radius: 17px; }
.product .tile .ico { width: 26px; height: 26px; }
@media (max-width: 520px) { .product .btn { width: 100%; } }
.section-title { margin: 32px 0 14px; font-size: 22px; }
.offer { background: linear-gradient(120deg, #fff 55%, #f1ffe9); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(98, 235, 0, .35); }
.offer strong { color: var(--ink); }
.offer.locked { background: #fff; box-shadow: var(--shadow); }
.offer.locked .tile { filter: grayscale(1); opacity: .6; }
.offer.locked .btn:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; opacity: 1; }
.requires {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px;
  padding: 5px 10px; border-radius: 999px; background: var(--amber-50); color: var(--amber);
  font-size: 13px; font-weight: 650;
}
.requires .ico { width: 15px; height: 15px; }
.upsell {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px;
  border-radius: 16px; background: linear-gradient(120deg, #f1ffe9, var(--lime));
  color: inherit; text-decoration: none; transition: filter .15s;
}
.upsell:hover { filter: brightness(.97); }
.upsell .tile { background: #fff; }
.upsell .row-main small { color: var(--ink); opacity: .75; }
.upsell .end { width: 18px; height: 18px; color: var(--ink); }

/* Regninger */
.inv { gap: 12px; padding: 14px 0; }
.inv-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inv-amount strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) {
  .inv { flex-wrap: wrap; }
  .inv .tile { display: none; }
  .inv .row-main { flex-basis: calc(100% - 56px); }
  .inv .icon-btn { order: 2; background: var(--cream-2); }
  .inv-amount { order: 3; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}

/* Profil */
.address { line-height: 1.6; margin-bottom: 8px; }
.address strong { color: var(--ink); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .ico { transition: transform .2s; color: var(--muted); }
.disclosure[open] summary .ico { transform: rotate(90deg); }
.disclosure .form { margin-top: 16px; }

/* ---------------------------------------------------------------- Formularer */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 650; font-size: 14px; color: var(--ink); }
.field small { color: var(--muted); font-size: 13px; }
.field input, .pw input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--input); border-radius: 14px; background: #fff;
  font: 400 16px var(--body); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .pw input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 26, 224, .14); }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw .icon-btn { position: absolute; right: 4px; top: 4px; color: var(--muted); }
.error {
  padding: 12px 14px; border-radius: 12px; background: var(--red-50); color: var(--red);
  font-weight: 600; font-size: 15px;
}
.demo { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--lime); color: var(--ink); font-size: 15px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 14px; color: var(--ink); }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 1.5px solid var(--input); border-radius: 16px; cursor: pointer;
  font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s;
}
.option input, .segment input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--input); transition: border .15s; }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.option:has(input:checked) .radio { border: 7px solid var(--blue); }
.option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.option-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.option small { font-weight: 500; font-size: 13px; color: var(--muted); }
.option-price { display: flex; flex-direction: column; align-items: flex-end; font: 700 17px/1.2 var(--head); white-space: nowrap; }
.option.disabled { opacity: .55; cursor: not-allowed; }
.doc-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 16px; background: var(--blue-50); color: var(--blue);
  font-weight: 600; text-decoration: none;
}
.doc-link span { flex: 1; }
.doc-link .end { width: 18px; height: 18px; }
.doc-link:hover { background: #e2e6ff; }
.order-summary {
  margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--cream);
  display: grid; gap: 6px; font-size: 15px;
}
.order-summary div { display: flex; justify-content: space-between; gap: 16px; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }
.notice-text { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--amber-50); color: var(--amber); font-weight: 600; font-size: 15px; }
.notice-text .ico { flex: none; margin-top: 1px; }
.net .card > .btn { align-self: flex-start; }
.readonly { padding: 14px 16px; border-radius: 14px; background: var(--cream); color: var(--ink); }
.btn-danger { color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn-danger:hover { background: var(--red-50); }
.notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid var(--amber); }
@media (max-width: 520px) { .notice .btn { width: 100%; } }
@media (min-width: 900px) { .notice { margin-bottom: 20px; } }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px;
  border: 2px solid var(--input); border-radius: 7px; color: transparent; transition: .15s;
}
.check .box .ico { width: 16px; height: 16px; stroke-width: 3; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.check input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 2px; }
.check[hidden] { display: none; }
.check small { display: block; font-size: 13px; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0; }
.btn-stack:empty { display: none; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--cream-2); }
.segment label { position: relative; }
.segment span {
  display: block; padding: 11px 8px; border-radius: 999px; text-align: center;
  font-weight: 650; font-size: 15px; color: var(--text); cursor: pointer; transition: background .15s, color .15s;
}
.segment input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0, 3, 27, .1); }
.segment input:focus-visible + span { outline: 3px solid var(--blue); }

/* ---------------------------------------------------------------- Ark (dialog) */
.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  border: 0; border-radius: 26px 26px 0 0; background: #fff; color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 3, 27, .2);
}
.sheet[open] { animation: up .28s cubic-bezier(.2, .9, .3, 1); }
.sheet::backdrop { background: rgba(0, 3, 27, .45); backdrop-filter: blur(2px); }
.sheet-grip { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.sheet-body { padding: 14px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet-body > h2 { font-size: 24px; padding-right: 40px; }
.sheet-body .form { margin-top: 8px; gap: 22px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .sheet { max-width: 520px; margin: auto; border-radius: 26px; }
  .sheet-grip { display: none; }
  .sheet-body { padding: 30px 30px 30px; }
}

/* ---------------------------------------------------------------- Log ind */
.auth { min-height: 100dvh; display: grid; }
.auth-brand { display: none; }
.auth-main { display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.auth-card {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow);
}
.auth-card > h1 { font-size: 30px; margin-top: 10px; }
.auth-card .form { margin-top: 12px; }
.auth-logo-m { margin-bottom: 8px; }
.done { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.done .ico { width: 30px; height: 30px; }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(420px, 1.05fr) 1fr; }
  .auth-brand {
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 48px 56px; color: #fff; position: relative; overflow: hidden;
    background:
      radial-gradient(circle at 85% 12%, rgba(172, 255, 151, .55), transparent 32%),
      radial-gradient(circle at 10% 95%, rgba(98, 235, 0, .25), transparent 35%),
      linear-gradient(150deg, var(--blue), var(--navy));
  }
  .auth-logo { filter: brightness(0) invert(1); }
  .auth-title { font: 700 clamp(40px, 4vw, 56px)/1.1 var(--head); letter-spacing: -0.02em; color: #fff; max-width: 520px; }
  .ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 500; }
  .ticks li { display: flex; align-items: center; gap: 12px; }
  .ticks .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--ink); stroke-width: 3; }
  .auth-help { color: rgba(255, 255, 255, .8); }
  .auth-help a { color: #fff; font-weight: 650; }
  .auth-main { padding: 48px; }
  .auth-card { box-shadow: none; background: transparent; padding: 0; }
  .auth-logo-m { display: none; }
  .auth-card > h1 { font-size: 38px; margin-top: 0; }
}

/* ---------------------------------------------------------------- Login uden kodeord */
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alt-logins { display: grid; gap: 10px; }
@media (min-width: 420px) { .alt-logins { grid-template-columns: 1fr 1fr; } }
.alt-logins .btn { padding: 0 14px; font-size: 15px; }

/* ---------------------------------------------------------------- Mit internet */
.net { margin-bottom: 20px; }
.net .card { display: flex; flex-direction: column; gap: 14px; }
.net .card > h2 { margin-bottom: 0; }
.net-head { display: flex; align-items: center; gap: 14px; }
.net-devices { grid-column: 1 / -1; }
.wifi { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.wifi:last-child { border-bottom: 0; }
.wifi-row { display: grid; grid-template-columns: 100px 1fr auto auto; align-items: center; gap: 4px 8px; }
.wifi-row strong { color: var(--ink); overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .02em; }
@media (max-width: 420px) { .wifi-row { grid-template-columns: 1fr auto auto; } .wifi-row .muted { grid-column: 1 / -1; font-size: 14px; } }
.pay-list { margin-bottom: 20px; }
.pay .tile-inv-ikke-betalt, .pay .tile-inv-forfalden { flex: none; }

/* ---------------------------------------------------------------- Tekstsider */
.doc { min-height: 100dvh; }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 760px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px 8px;
}
.doc-head .link .ico { transform: rotate(180deg); }
.doc-main { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(48px + var(--safe-b)); outline: none; }
.doc-main h2 { margin: 32px 0 10px; }
.doc-main p, .doc-main li { max-width: 68ch; }
.doc-main ul { padding-left: 22px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 14px; }
.side-small { padding: 4px 14px; font-size: 13px; color: var(--muted); }
.card.row-link { margin: 0; padding: 16px 20px; }

/* ---------------------------------------------------------------- Diverse */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 24px; }
.empty p { color: var(--muted); max-width: 360px; }
.empty .btn { margin-top: 8px; }

.sk { border-radius: var(--r); background: linear-gradient(90deg, #eceee2 25%, #f6f7ee 50%, #eceee2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-hero { height: 190px; border-radius: var(--r-lg); margin: 8px 0 16px; }
.sk-card { height: 220px; }
.sk-line { height: 56px; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (min-width: 900px) { .sk-hero { height: 230px; margin-top: 0; } }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); z-index: 100;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff;
  font-weight: 600; box-shadow: 0 12px 30px rgba(0, 3, 27, .3);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast .ico { color: var(--lime); }
#toast.bad .ico { color: #ff9aa8; }
@media (min-width: 900px) { #toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* TV: kanaler i pakkerne */
.tv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tv-head .row-main { flex: 1; min-width: 180px; }
.tv-current h3, .disclosure h3 { margin: 18px 0 8px; font: 700 15px/1.3 var(--head); }
.channels { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.channels li { padding: 6px 11px; border-radius: 999px; background: var(--cream-2); font-size: 14px; line-height: 1.3; }
.disclosure summary .row-main { display: flex; flex-direction: column; }
.disclosure summary small { color: var(--muted); font-size: 13px; }

/* Meld flytning */
.field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--input); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 26, 224, .14); }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.form-move fieldset > * + * { margin-top: 14px; }
.form-move fieldset > legend + * { margin-top: 0; }
.form-move .field-row .field { margin-top: 0; }

.doc-link[hidden] { display: none; }
.channels .plads { display: inline-block; min-width: 1.6em; margin-right: 6px; font-weight: 700; color: var(--blue); text-align: right; }

/* Saldo */
.card[hidden], .saldo-line[hidden] { display: none; }
.saldo .row { padding: 0; border: 0; }
.saldo .amount { font-size: 32px; margin: 2px 0 0; }
.saldo .muted { margin: 10px 0 0; }
.saldo-line { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 15px; }

/* Modem: router/bridge og WiFi til/fra */
.modem:empty { display: none; }
.modem { margin-top: 16px; border-top: 1px solid var(--line); }
.modem-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.modem-row + .modem-row { border-top: 1px solid var(--line); }
.modem-row .row-main small { display: block; color: var(--muted); font-size: 14px; }

/* Driftinfo */
.form-alerts fieldset { border: 0; padding: 0; margin: 0; }
.form-alerts legend { font-weight: 700; margin-bottom: 10px; }
.form-alerts fieldset .check + .check { margin-top: 10px; }
.form-alerts fieldset + fieldset { margin-top: 18px; }
