/* ========== FONTS ========== */
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/Lexend-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/Lexend-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ========== TOKENS ========== */
:root {
  --bg: #F0EAE0;
  --card: #FFFFFF;
  --ink: #1F1B2E;
  --border: oklch(90% 0.015 85);
  --muted: oklch(95% 0.018 85);
  --muted-fg: oklch(48% 0.03 285);

  --brand: #5B1AFF;
  --brand-hover: #3A0F99;
  --gradient-action: linear-gradient(90deg, #5B1AFF 0%, #973BFF 100%);

  --success: oklch(68% 0.16 155);
  --success-tint: oklch(68% 0.16 155 / .12);
  --success-text: oklch(38% 0.12 155);
  --warning: oklch(78% 0.16 75);
  --warning-tint: oklch(78% 0.16 75 / .15);
  --warning-text: oklch(42% 0.12 75);
  --destructive: oklch(58% 0.26 5);
  --destructive-tint: oklch(58% 0.26 5 / .12);
  --destructive-text: oklch(38% 0.20 5);

  --neutral-500: oklch(56% 0.03 285);
  --neutral-700: oklch(35% 0.04 285);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  --elev-1: 0 1px 2px oklch(20% 0.05 290 / .06), 0 1px 3px oklch(20% 0.05 290 / .04);
  --elev-2: 0 4px 12px oklch(20% 0.05 290 / .08), 0 2px 4px oklch(20% 0.05 290 / .04);
  --elev-3: 0 16px 40px oklch(20% 0.05 290 / .12), 0 4px 12px oklch(20% 0.05 290 / .06);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== LAYOUT ========== */
.dashboard { display: flex; min-height: 100vh; }

.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.topbar-logo { display: flex; align-items: center; gap: 8px; flex: 1; }
.topbar-logo img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.topbar-brand {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.burger {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 150ms ease-out;
}
.burger:hover { background: var(--muted); }
.burger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.burger svg { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 46, 0.3);
  z-index: 14;
}
.sidebar-backdrop.open { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 200px;
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 15;
  overflow-y: auto;
  padding: 16px 12px;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sidebar-logo img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.sidebar-brand {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

/* Luk-knap i mobil-menuen — sidebar-overlayet dækker topbarens burger/X,
   så panelet skal selv have en synlig luk-knap. Skjult på desktop. */
.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-md);
  color: var(--ink);
}
.sidebar-close:hover { background: var(--muted); }
.sidebar-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background 150ms ease-out;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--muted); }
.nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-item.active {
  background: var(--card);
  box-shadow: var(--elev-1);
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
}
.nav-item.disabled {
  opacity: 0.45;
  cursor: default;
}
.nav-item.disabled:hover { background: transparent; }
.nav-item svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  stroke: var(--neutral-700);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-separator {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  gap: 2px;
}
.sidebar-email {
  font-size: 12px;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-logout {
  font-size: 12px;
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
}
.sidebar-logout:hover { color: var(--brand); }
.sidebar-logout:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.main-content {
  margin-left: 200px;
  padding: 24px 32px 80px;
  max-width: 850px;
  flex: 1;
  min-width: 0;
}

/* ========== PAGE HEADER ========== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 2px;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--gradient-action);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms ease-out;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary:disabled { opacity: 0.4; cursor: default; }
.btn-primary:disabled:hover { opacity: 0.4; }

.btn-primary-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--r-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--r-pill);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease-out;
}
.btn-secondary:hover { color: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.btn-ghost:hover { background: var(--muted); }
.btn-ghost:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-ghost-sm {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: var(--r-sm);
}

.btn-destructive-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--destructive);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.btn-destructive-ghost:hover { background: var(--destructive-tint); }
.btn-destructive-ghost:focus-visible { outline: 2px solid var(--destructive); outline-offset: 2px; }

/* ========== SHARED COMPONENTS ========== */
.kicker {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.badge-plan {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
}
.badge-active { background: var(--success-tint); color: var(--success-text); }
.badge-pending { background: var(--warning-tint); color: var(--warning-text); }
.badge-expired { background: var(--destructive-tint); color: var(--destructive-text); }
.badge-method {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted-fg);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
}

/* ========== METRICS STRIP ========== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-tile { padding: 16px; }
.metric-tile .kicker { display: block; margin-bottom: 8px; }
.metric-value {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}
.metric-sub { font-size: 12px; color: var(--muted-fg); }

/* ========== MEMBERS TABLE ========== */
.members-card { padding: 0; overflow: hidden; }
.members-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 10px;
}
.preview-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Rubik', system-ui, sans-serif;
}
.preview-link:hover { color: var(--brand-hover); }
.preview-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.table-scroll { overflow-x: auto; }

.members-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.members-table th {
  text-align: left;
  padding: 8px 20px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
  background: var(--muted);
  font-weight: 400;
}
.members-table td {
  padding: 10px 20px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.members-table tr:hover td { background: oklch(97% 0.01 85); }
.td-name { font-weight: 500; }
.td-email { color: var(--muted-fg); font-size: 12px; }
.td-badge { white-space: nowrap; }
.td-noplan { font-size: 12px; color: var(--muted-fg); }
.td-actions { white-space: nowrap; }
.td-actions .btn-ghost-sm { margin-right: 4px; }

/* ========== MODAL ========== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 46, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--elev-3);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 32px;
  animation: modal-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal h2 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 16px;
}
.modal-field { margin-bottom: 20px; }
.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.modal-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.modal-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px oklch(58% 0.28 285 / .15);
}
.modal-input.error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 2px oklch(58% 0.26 5 / .15);
}
.modal-error {
  font-size: 13px;
  color: var(--destructive);
  margin-top: 6px;
}
.modal-radio-group { display: flex; flex-direction: column; gap: 8px; }
.modal-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.modal-radio input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }
.modal-radio .radio-price {
  font-size: 12px;
  color: var(--muted-fg);
  margin-left: 4px;
}
.modal-hint {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 20px;
  line-height: 18px;
}
.modal-field-hint {
  font-size: 12px;
  color: var(--muted-fg);
  margin-top: 5px;
}
.modal-label .optional {
  color: var(--muted-fg);
  font-weight: 400;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* ========== FORMS (settings) ========== */
.form-card { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px oklch(58% 0.28 285 / .15);
}
.form-input.error {
  border-color: var(--destructive);
}
.form-error {
  font-size: 13px;
  color: var(--destructive);
  margin-top: 4px;
}
.form-footer {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
}

/* Segmented control */
.segmented-control {
  display: inline-flex;
  background: var(--muted);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.segmented-option {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 150ms ease-out;
  white-space: nowrap;
}
.segmented-option:hover { color: var(--ink); }
.segmented-option.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--elev-1);
}
.segmented-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--elev-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  pointer-events: auto;
  animation: toast-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 360px;
}
.toast.removing {
  animation: toast-out 150ms ease-out forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(24px); }
}
.toast-icon { flex-shrink: 0; width: 16px; height: 16px; }
.toast-icon.success { color: var(--success-text); }
.toast-icon.error { color: var(--destructive-text); }
.toast-close {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 4px;
}
.toast-close:hover { background: var(--muted); }

/* ========== LOADING / ERROR / EMPTY ========== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--muted-fg);
  font-size: 14px;
}
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.empty-state-text {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.error-state h2 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}
.error-state p {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 16px;
}
.error-state a {
  color: var(--brand);
  text-decoration: none;
}
.error-state a:hover { color: var(--brand-hover); }

/* ========== RESPONSIVE (< 900px) ========== */
@media (max-width: 899px) {
  .topbar { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: none;
    z-index: 25;
    top: 0;
    width: 240px;
    padding: 20px 16px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--elev-3);
  }

  .main-content {
    margin-left: 0;
    margin-top: 56px;
    padding: 16px 16px 80px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-header h1 { font-size: 18px; line-height: 24px; }
  .page-header .btn-primary { display: none; }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric-tile { padding: 14px; }
  .metric-value { font-size: 18px; }

  .members-card-header { padding: 12px 16px 8px; }
  .members-table th { padding: 8px 16px; }
  .members-table td { padding: 10px 16px; }

  /* Mobil-menuen: luk-knap i stedet for logoet (Mortens valg 18/8) */
  .sidebar .sidebar-logo img,
  .sidebar .sidebar-logo .sidebar-brand { display: none; }
  .sidebar .sidebar-logo { justify-content: flex-end; margin-bottom: 12px; }
  .sidebar-close { display: inline-flex; }

  .nav-item { height: 44px; padding: 0 12px; gap: 12px; font-size: 14px; }
  .nav-item svg { width: 20px; height: 20px; }
  .sidebar-footer { padding-top: 16px; }
  .sidebar-email { font-size: 13px; }
  .sidebar-logout { font-size: 13px; }

  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: none; }
}

/* ========== ONBOARDING (brugere uden org) ========== */
.onboard-card {
  padding: 48px 56px;
  max-width: 620px;
  margin: 40px auto 0;
  text-align: left;
}
.onboard-card .kicker { display: block; margin-bottom: 12px; }
.onboard-card h1 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 34px;
  margin-bottom: 8px;
}
.onboard-sub { font-size: 15px; color: var(--muted-fg); margin-bottom: 28px; }
.onboard-features { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.onboard-features li { display: flex; gap: 14px; align-items: flex-start; }
.onboard-feature-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-feature-icon svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.onboard-features strong { display: block; font-size: 14px; font-weight: 500; font-family: 'Rubik', system-ui, sans-serif; }
.onboard-features p { font-size: 13px; color: var(--muted-fg); }
.onboard-price {
  font-size: 13px;
  color: var(--muted-fg);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 24px;
}
.onboard-cta { display: flex; align-items: center; gap: 16px; }
.onboard-cta .btn-lg { height: 48px; padding: 0 28px; font-size: 15px; border-radius: var(--r-md); }
.onboard-cta-note { font-size: 12px; color: var(--muted-fg); }

@media (max-width: 599px) {
  .onboard-card { padding: 28px 20px; margin-top: 16px; }
  .onboard-card h1 { font-size: 22px; line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
  .modal { animation: none; }
  .toast { animation: none; }
  .toast.removing { animation: none; opacity: 0; }
}

/* ========== KUNDEVISNING (top-admin, fase 4) ==========
   Den ene mørke flade i dashboardet — bevidst udenfor kundens UI-lag,
   så det altid er tydeligt hvis dashboard man ser (design-guide afsnit 5). */
.customer-view-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
}
.customer-view-bar strong { font-weight: 600; }
.customer-view-back {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  white-space: nowrap;
}
.customer-view-back:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.customer-view-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

body.customer-view .sidebar { top: 36px; height: calc(100vh - 36px); }
body.customer-view .topbar { top: 36px; }
body.customer-view .main-content { padding-top: 60px; }

@media (max-width: 899px) {
  body.customer-view .main-content { padding-top: 16px; margin-top: 92px; }
}
