/* ─────────────────────────────────────────────────────
   Vinkelret — design system
   Inspired by Core/Sortify: clean, minimal, modern SaaS
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&family=Source+Sans+3:wght@400;600&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --brand:        #1e3a5f;
  --brand-light:  rgba(30,58,95,.08);
  --brand-hover:  #16304f;

  --charcoal:     #1A202C;
  --body-color:   #374151;
  --muted:        #64748B;
  --border:       #e5e7eb;
  --soft-gray:    #F8F9FA;
  --white:        #ffffff;

  --radius-sm:    .5rem;
  --radius:       .75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.25rem;

  --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);

  --font-head:    'Work Sans', system-ui, sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;

  --transition:   150ms ease;
}

/* ── Reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--body-color); background: var(--white); margin: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); margin-top: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
::selection { background: var(--brand-light); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Bootstrap overrides ────────────────────────────── */
/* Cards */
.card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  background: var(--white);
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--charcoal);
  padding: .875rem 1.25rem !important;
}
.card-footer {
  background: transparent !important;
  border-top: 1px solid var(--border) !important;
}
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow    { box-shadow: var(--shadow) !important; }

/* Buttons */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius) !important;
  transition: all var(--transition);
  font-size: .875rem;
  padding: .5rem 1rem;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: none; }
.btn-primary   { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-primary:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; }
.btn-warning   { background: #f59e0b !important; border-color: #f59e0b !important; color: var(--charcoal) !important; }
.btn-warning:hover { background: #d97706 !important; border-color: #d97706 !important; }
.btn-outline-primary { color: var(--brand) !important; border-color: var(--border) !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--brand-light) !important; border-color: var(--brand) !important; }
.btn-outline-secondary { color: var(--muted) !important; border-color: var(--border) !important; background: transparent !important; }
.btn-outline-secondary:hover { background: var(--soft-gray) !important; color: var(--charcoal) !important; }
.btn-danger    { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; }
.btn-outline-danger { color: #ef4444 !important; border-color: #fca5a5 !important; background: transparent !important; }
.btn-outline-danger:hover { background: #fef2f2 !important; }
.btn-success   { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.btn-link      { color: var(--brand) !important; padding: 0 !important; background: none !important; }
.btn-sm        { font-size: .8125rem !important; padding: .375rem .75rem !important; }
.btn-lg        { padding: .75rem 1.5rem !important; font-size: .9375rem !important; }

/* Forms */
.form-control, .form-select {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  padding: .625rem .875rem;
  font-size: .9375rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: none;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
  outline: none;
}
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--charcoal);
  margin-bottom: .375rem;
}
.form-text { font-size: .8125rem; color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--brand-light); border-color: var(--brand); }

/* Tables */
.table { font-size: .9375rem; }
.table thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border) !important;
  padding: .75rem 1rem;
  background: var(--soft-gray);
}
.table td { border-bottom: 1px solid var(--border) !important; padding: .75rem 1rem; vertical-align: middle; }
.table tbody tr:hover td { background: #fafafa; }
.table-responsive { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

/* Alerts */
.alert {
  border-radius: var(--radius) !important;
  border: none !important;
  font-size: .9375rem;
  padding: .875rem 1rem;
}
.alert-success { background: #f0fdf4; color: #166534; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-info    { background: #eff6ff; color: #1e40af; }

/* Badges */
.badge {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  border-radius: .375rem;
  padding: .25rem .5rem;
}
.bg-primary   { background: var(--brand) !important; }
.bg-success   { background: #16a34a !important; }
.bg-warning   { background: #f59e0b !important; }
.bg-danger    { background: #ef4444 !important; }
.bg-secondary { background: #94a3b8 !important; }
.bg-dark      { background: var(--charcoal) !important; }

/* Nav / tabs */
.nav-tabs { border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .625rem .875rem;
  transition: color var(--transition), border-color var(--transition);
}
.nav-tabs .nav-link:hover { color: var(--charcoal); background: transparent; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }

/* Progress */
.progress { border-radius: 999px; background: var(--border); height: 6px; }
.progress-bar { border-radius: 999px; }

/* Accordion */
.accordion-item { border: 1px solid var(--border) !important; border-radius: var(--radius-lg) !important; overflow: hidden; }
.accordion-button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--charcoal) !important;
  background: var(--white) !important;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--brand) !important; }
.accordion-button::after { filter: none; }

/* ── Public nav ─────────────────────────────────────── */
.vr-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.vr-nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.vr-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.vr-nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal) !important;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.logo-mark svg { display: block; }
.vr-nav-logo .logo-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.vr-nav-links {
  display: flex; align-items: center; gap: .25rem; flex: 1;
}
.vr-nav-link {
  font-family: var(--font-head);
  font-size: .875rem; font-weight: 500;
  color: var(--muted) !important;
  padding: .375rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.vr-nav-link:hover { color: var(--charcoal) !important; background: var(--soft-gray); }
.vr-nav-actions { display: flex; align-items: center; gap: .5rem; }
.vr-nav-spacer { flex: 1; }

/* ── Portal layout ──────────────────────────────────── */
.vr-portal {
  display: flex;
  min-height: 100vh;
}
.vr-sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.vr-sidebar-logo {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none !important;
}
.vr-sidebar-logo .logo-mark {
  width: 26px; height: 26px;
}
.vr-sidebar-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  letter-spacing: -.01em;
}
.vr-sidebar-nav {
  flex: 1;
  padding: .75rem .625rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vr-nav-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.vr-nav-item:hover { color: var(--charcoal) !important; background: var(--soft-gray); }
.vr-nav-item.active { color: var(--brand) !important; background: var(--brand-light); font-weight: 600; }
.vr-nav-divider { height: 1px; background: var(--border); margin: .5rem 0; }
.vr-sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.vr-sidebar-user {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: .5rem;
  font-family: var(--font-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-portal-main {
  flex: 1;
  min-width: 0;
  background: var(--soft-gray);
  overflow-y: auto;
}

/* ── Page scaffolding ───────────────────────────────── */
.vr-page-body { padding: 2rem 1.75rem; max-width: 1100px; }
.vr-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.vr-page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--charcoal);
  margin: 0 0 .25rem;
}
.vr-back-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  color: var(--muted) !important;
  font-family: var(--font-head);
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.vr-back-link:hover { color: var(--charcoal) !important; }

/* ── Custom cards ───────────────────────────────────── */
.vr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.vr-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--charcoal);
  margin-bottom: .875rem;
}
.vr-card-success { border-color: #bbf7d0; background: #f0fdf4; }
.vr-card-warning { border-color: #fcd34d; background: #fffbeb; }

/* ── Custom form atoms ──────────────────────────────── */
.vr-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--charcoal);
  margin-bottom: .375rem;
}
.vr-input {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vr-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
  outline: none;
}

/* ── Custom buttons ─────────────────────────────────── */
.vr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
}
.vr-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vr-btn-primary { background: var(--brand); color: #fff !important; }
.vr-btn-primary:hover { background: var(--brand-hover); }
.vr-btn-secondary { background: var(--soft-gray); color: var(--charcoal) !important; border-color: var(--border); }
.vr-btn-secondary:hover { background: var(--border); }
.vr-btn-ghost { background: transparent; color: var(--muted) !important; border-color: var(--border); }
.vr-btn-ghost:hover { background: var(--soft-gray); color: var(--charcoal) !important; }
.vr-btn-danger { background: #ef4444; color: #fff !important; }
.vr-btn-danger:hover { background: #dc2626; }
.vr-btn-sm { font-size: .8125rem; padding: .3rem .625rem; }
.vr-btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.vr-btn:disabled, .vr-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Custom badges ──────────────────────────────────── */
.vr-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  padding: .25rem .5rem;
  border-radius: .375rem;
  white-space: nowrap;
}
.vr-badge-success { background: #dcfce7; color: #15803d; }
.vr-badge-warning { background: #fef9c3; color: #a16207; }
.vr-badge-danger  { background: #fee2e2; color: #b91c1c; }
.vr-badge-info    { background: #dbeafe; color: #1d4ed8; }
.vr-badge-gray    { background: var(--soft-gray); color: var(--muted); }

/* Rate status */
.rate-planlagt        { background: var(--soft-gray); color: var(--muted); }
.rate-deponeret       { background: #dbeafe; color: #1d4ed8; }
.rate-faerdig         { background: #fef9c3; color: #a16207; }
.rate-godkendt        { background: #dcfce7; color: #15803d; }
.rate-udbetalt        { background: #dcfce7; color: #15803d; }
.rate-tvist           { background: #fee2e2; color: #b91c1c; }

/* ── Timeline ───────────────────────────────────────── */
.vr-timeline { position: relative; padding-left: 2rem; }
.vr-timeline::before {
  content: '';
  position: absolute;
  left: .6rem;
  top: .5rem; bottom: .5rem;
  width: 1.5px;
  background: var(--border);
}
.vr-timeline-item { position: relative; margin-bottom: 1.25rem; }
.vr-timeline-dot {
  position: absolute;
  left: -1.9rem;
  top: .25rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--border);
}
.vr-timeline-dot.done   { background: #16a34a; box-shadow: 0 0 0 1.5px #16a34a; }
.vr-timeline-dot.active { background: #f59e0b; box-shadow: 0 0 0 1.5px #f59e0b; }
.vr-timeline-dot.tvist  { background: #ef4444; box-shadow: 0 0 0 1.5px #ef4444; }

/* ── Auth / centred pages ───────────────────────────── */
.vr-center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--soft-gray);
}
.vr-auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.vr-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.vr-auth-logo .logo-mark {
  width: 40px; height: 40px;
}
.vr-auth-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
}

/* ── Utility ─────────────────────────────────────────── */
.vr-muted { color: var(--muted); font-size: .9375rem; }
.vr-heading { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); }
.vr-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.vr-dl { display: grid; grid-template-columns: auto 1fr; gap: .375rem .75rem; font-size: .875rem; }
.vr-dl dt { color: var(--muted); white-space: nowrap; }
.vr-dl dd { color: var(--charcoal); font-weight: 500; margin: 0; }
.vr-stat { text-align: center; padding: 1.25rem; }
.vr-stat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; color: var(--charcoal); }
.vr-stat-label { font-size: .8125rem; color: var(--muted); margin-top: .125rem; }

/* ── Icon boxes ──────────────────────────────────────── */
.vr-icon-box {
  width: 40px; height: 40px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}
.vr-icon-box svg { width: 18px; height: 18px; }
.vr-icon-box-sm { width: 32px; height: 32px; border-radius: 8px; }
.vr-icon-box-sm svg { width: 14px; height: 14px; }
.vr-icon-box-lg { width: 48px; height: 48px; border-radius: 12px; }
.vr-icon-box-lg svg { width: 22px; height: 22px; }
.vr-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .375rem; }
.vr-check-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9375rem; color: var(--body-color); }
.vr-check-list li svg { flex-shrink: 0; margin-top: .125rem; color: #16a34a; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── App Bar (SaaS top nav) ──────────────────────────── */
.vr-app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: .5rem;
}
.vr-app-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none !important;
  margin-right: 1rem;
  flex-shrink: 0;
}
.vr-app-logo .logo-mark {
  width: 24px; height: 24px;
}
.vr-app-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--charcoal);
}
.vr-app-nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  flex: 1;
}
.vr-app-nav-link {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .625rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color var(--transition), background var(--transition);
}
.vr-app-nav-link:hover  { color: var(--charcoal) !important; background: var(--soft-gray); }
.vr-app-nav-link.active { color: var(--brand) !important; background: var(--brand-light); font-weight: 600; }
.vr-app-bar-right {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-left: auto;
}
.vr-app-user {
  font-size: .8125rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--muted);
}
.vr-app-main {
  min-height: calc(100vh - 56px);
  background: var(--soft-gray);
}

/* ── Mode Switcher ───────────────────────────────────── */
.vr-mode-switcher {
  position: relative;
}
.vr-mode-btn {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .3125rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1.4;
}
.vr-mode-btn:hover { background: var(--soft-gray); }
.vr-mode-btn svg { opacity: .5; }
.vr-mode-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .375rem;
  z-index: 200;
  display: none;
}
.vr-mode-switcher.open .vr-mode-dropdown { display: block; }
.vr-mode-label {
  font-size: .6875rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .375rem .75rem .125rem;
}
.vr-mode-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.vr-mode-option:hover   { background: var(--soft-gray); }
.vr-mode-option.current { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.vr-mode-option-check   { margin-left: auto; color: var(--brand); display: none; }
.vr-mode-option.current .vr-mode-option-check { display: flex; }
.vr-mode-divider { height: 1px; background: var(--border); margin: .375rem 0; }

/* ── Project progress stepper ────────────────────────── */
.vr-stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 72px;
  position: relative;
}
.vr-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.vr-step.done:not(:last-child)::after  { background: #16a34a; }
.vr-step.active:not(:last-child)::after { background: var(--border); }
.vr-step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all var(--transition);
  flex-shrink: 0;
}
.vr-step.done .vr-step-dot   { background: #16a34a; border-color: #16a34a; color: #fff; }
.vr-step.active .vr-step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
.vr-step.tvist .vr-step-dot  { background: #ef4444; border-color: #ef4444; color: #fff; }
.vr-step-dot svg { width: 12px; height: 12px; stroke-width: 2.5; }
.vr-step-label {
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: .375rem;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}
.vr-step.done .vr-step-label   { color: #16a34a; font-weight: 600; }
.vr-step.active .vr-step-label { color: var(--brand); font-weight: 700; }
.vr-step.tvist .vr-step-label  { color: #ef4444; font-weight: 600; }

/* ── Mobile drawer ───────────────────────────────────── */
.vr-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-left: auto;
}
.vr-mobile-toggle:hover { background: var(--soft-gray); }
.vr-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 300;
}
.vr-mobile-overlay.open { display: block; }
.vr-mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 250ms ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.vr-mobile-drawer.open { transform: translateX(0); }
.vr-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.vr-mobile-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm);
  color: var(--muted);
}
.vr-mobile-close:hover { background: var(--soft-gray); color: var(--charcoal); }
.vr-mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: .625rem .75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vr-mobile-nav .vr-app-nav-link {
  width: 100%;
  padding: .625rem .875rem;
  font-size: .9375rem;
}
.vr-mobile-drawer-footer {
  padding: .875rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.vr-mobile-user-name {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
}

/* ── Cookie consent ──────────────────────────────────── */
.vr-cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 2rem));
  background: var(--charcoal);
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: .875rem;
  line-height: 1.5;
}
.vr-cookie-banner a { color: #93c5fd; }
.vr-cookie-banner a:hover { color: #bfdbfe; }
.vr-cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.vr-cookie-btn {
  padding: .375rem .875rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.vr-cookie-btn-accept { background: var(--brand); color: #fff; }
.vr-cookie-btn-accept:hover { background: var(--brand-hover); }
.vr-cookie-btn-decline { background: rgba(255,255,255,.1); color: #e5e7eb; }
.vr-cookie-btn-decline:hover { background: rgba(255,255,255,.18); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .vr-sidebar { display: none; }
  .vr-nav-links { display: none; }
  .vr-page-body { padding: 1.25rem 1rem; }
  .vr-app-nav { display: none; }
  .vr-app-user { display: none; }
  .vr-app-logo-text { display: none; }
  .vr-mobile-toggle { display: flex; }
  .vr-app-bar-right { gap: .25rem; }
  .vr-cookie-banner { flex-direction: column; align-items: flex-start; }

  /* Home page responsive */
  .vr-home-2col { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .vr-home-hero { padding: 3rem 1.25rem !important; }
  .vr-home-stats { grid-template-columns: 1fr 1fr !important; }
}
