/* ========================================
   FIXFRAKT DESIGN SYSTEM
   Moderne, minimalistisk og profesjonelt
   ======================================== */

/* CSS Variables - Globale farger og stiler */
:root {
  --primary: #5B8FC7;
  --primary-dark: #4A7AB0;
  --primary-light: #8AB4E5;
  --secondary: #5FB88D;
  --accent: #F5A855;
  --text-dark: #2C3E50;
  --text-medium: #5A6C7D;
  --text-light: #7F8C9A;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border: #E8EAED;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Grunnoppsett */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}


/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  background: white;
  border: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hdr {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.hdr-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover .site-logo {
  transform: scale(1.05);
}

.site-logo {
  height: 180px;
  max-width: 480px;
  width: auto;
  transition: transform 0.3s ease;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
}

.avatar-wrap .notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

.avatar-wrap .online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  display: none;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.avatar:hover {
  border-color: var(--primary);
}

.menu-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  margin-left: 8px;
}

.menu-badge.red {
  background: #ef4444;
  color: #fff;
}

.menu-badge.blue {
  background: #1d4ed8;
  color: #fff;
}

.menu-badge.cyan {
  background: #0ea5e9;
  color: #fff;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1;
}

.user-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-light);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  transition: transform 0.2s ease;
}

.user-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Topnav (legacy support) */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topnav__left, .topnav__right, .topnav__center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topnav__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Admin Subnav */
.admin-subnav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.adminnav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}

.adminbrand {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.admin-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
}

.admin-link.right {
  margin-left: auto;
}

.admin-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.admin-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.admin-mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.admin-mobile-menu a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

@media (max-width: 768px) {
  .site-logo {
    height: 150px;
    max-width: 400px;
  }
  
  .avatar {
    width: 32px;
    height: 32px;
  }
  
  .hdr {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .hdr-right {
    gap: 0.5rem;
  }
  
  .btn--sm {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }
  
  /* Hide desktop-only elements on mobile */
  .desktop-only {
    display: none !important;
  }
  
  .hdr-nav {
    display: none;
  }
  
  .admin-link:not(.adminbrand):not(.btn-logout) {
    display: none;
  }
  
  .admin-hamburger {
    display: flex;
  }
  
  .admin-mobile-menu.open {
    display: flex;
  }
  
  .admin-hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .admin-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .admin-hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 480px) {
  .hdr {
    padding: 0.625rem 0.75rem;
  }
  
  .btn--sm {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Footer */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.25rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

.ftr {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.875rem 1.5rem;
}

.ftr-left {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ftr-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  gap: 0.625rem 0.875rem;
  width: 100%;
  justify-content: start;
}

.ftr-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
}

.ftr-nav a:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: #f8fbff;
}

@media (min-width: 1100px) {
  .ftr {
    grid-template-columns: minmax(300px, auto) 1fr;
  }

  .ftr-nav {
    width: auto;
    justify-content: end;
  }
}

@media (max-width: 640px) {
  .ftr {
    gap: 0.75rem;
  }

  .ftr-left {
    text-align: center;
  }

  .ftr-nav {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ftr-nav a {
    justify-content: center;
    width: 100%;
    min-height: 42px;
  }
}

/* ========================================
   SECTIONS & CONTAINERS
   ======================================== */
.section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section--narrow {
  max-width: 700px;
}

.section--wide {
  max-width: 1280px;
}

/* ========================================
   CARDS
   ======================================== */
.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card--job {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card--job:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Card Components */
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.card__text {
  margin: 0;
  color: var(--text-medium);
  line-height: 1.6;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid--3 { 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FORMS
   ======================================== */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-row label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.form-row input, 
.form-row textarea, 
.form-row select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
  color: var(--text-dark);
}

.form-row input:focus, 
.form-row textarea:focus, 
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.form-row--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--secondary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--ghost {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-light);
  border-color: var(--primary-light);
  color: var(--primary);
}

.btn--danger {
  background: #EF4444;
  color: white;
}

.btn--danger:hover {
  background: #DC2626;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border);
}

.badge--primary {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.badge--success {
  background: rgba(95, 184, 141, 0.15);
  color: var(--secondary-dark);
  border-color: var(--secondary);
}

.badge--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #D97706;
  border-color: #F59E0B;
}

.badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
  border-color: #EF4444;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--text-medium);
}

.empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.empty p { 
  margin: 0 0 1.5rem 0;
  color: var(--text-medium);
}

/* ========================================
   PROFILE / AVATAR
   ======================================== */
.profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.profile-link:hover {
  background: var(--bg-light);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}

.avatar--sm {
  width: 32px;
  height: 32px;
}

.avatar--lg {
  width: 64px;
  height: 64px;
}

.avatar--placeholder {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.profile-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ========================================
   LEGACY / COMPATIBILITY
   ======================================== */
/* Logo support */
.logo {
  height: 40px;
  display: block;
  margin: 0 auto;
}

/* Old topnav (keeping for backwards compatibility) */
.topnav__left, .topnav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topnav__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Old variable support */
:root {
  --ffx-bg: var(--bg-light);

/* Old variable support (mapped to new design system) */
:root {
  --ffx-bg: var(--bg-light);
  --ffx-card: white;
  --ffx-text: var(--text-dark);
  --ffx-muted: var(--text-medium);
  --ffx-border: var(--border);
  --ffx-primary: var(--primary);
  --ffx-primary-ghost: var(--primary-light);
  --ffx-radius: var(--radius-lg);
  --ffx-shadow: var(--shadow-md);
}

/* ========================================
   LEGACY HERO STYLES
   ======================================== */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.hero {
  background: white;
  padding: 3rem 0 2rem;
}

.hero--xl { 
  padding: 4rem 0 2.5rem; 
}

.hero__content { 
  text-align: left; 
}

.hero__badge {
  display: inline-block; 
  font-size: 0.75rem; 
  font-weight: 600;
  background: var(--primary-light); 
  color: var(--primary-dark); 
  padding: 0.375rem 0.75rem; 
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid var(--primary);
}

.hero__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2; 
  font-weight: 800; 
  color: var(--text-dark); 
  margin: 0 0 1rem;
}

.hero__subtitle {
  color: var(--text-medium);
  font-size: 1.125rem; 
  line-height: 1.6; 
  max-width: 780px; 
  margin: 0 0 2rem;
}

.hero__actions { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}

/* ========================================
   LEGACY SECTION STYLES
   ======================================== */
.section__header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 1rem 0 0.75rem; 
  color: var(--text-dark);
  font-weight: 700;
}

.section__header .muted { 
  color: var(--text-medium); 
  margin: 0 0 1.5rem; 
  line-height: 1.6;
}

/* Card Grid */
.card-grid {
  display: grid; 
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .card-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (min-width: 980px) {
  .card-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

/* Step Cards */
.card--step { 
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
}

.card__num {
  flex: 0 0 auto; 
  width: 40px; 
  height: 40px; 
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: grid; 
  place-items: center; 
  font-weight: 800; 
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.card__body h3 { 
  margin: 0 0 0.5rem; 
  font-size: 1.125rem; 
  color: var(--text-dark);
  font-weight: 700;
}

.card__body p { 
  margin: 0; 
  color: var(--text-medium); 
  line-height: 1.6;
}

/* ========================================
   OLD BUTTON STYLES (legacy support)
   ======================================== */
/* Old button styles (mapped to new system) */
.btn--primary {
  background: var(--primary); 
  color: white;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  background: white; 
  color: var(--text-dark); 
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  background: var(--primary-light); 
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn--sm {
  height: 34px; 
  padding: 0 1rem; 
  font-size: 0.875rem;
}

/* Header cleanup: remove drop shadow/line */
.site-header {box-shadow:none !important;border-bottom:0 !important;padding:0 !important;}
.hdr{padding:0 12px !important;gap:14px !important;max-width:1400px !important;}

/* ========================================
   LOGO & BRANDING
   ======================================== */
.site-logo {
  max-height: 70px !important;
  height: 70px !important;
  width: auto;
}

.site-header .site-logo {
  max-height: 70px !important;
  height: 70px !important;
  max-width: 280px !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .site-logo {
    max-height: 60px !important;
    height: 60px !important;
  }

  .site-header .site-logo {
    max-height: 60px !important;
    height: 60px !important;
    max-width: 240px !important;
  }
}

@media (max-width: 480px) {
  .site-logo {
    max-height: 50px !important;
    height: 50px !important;
  }

  .site-header .site-logo {
    max-height: 50px !important;
    height: 50px !important;
    max-width: 210px !important;
  }
}

/* ========================================
   DROPDOWN MENUS
   ======================================== */
.menu {
  position: absolute; 
  right: 0; 
  top: 52px; 
  background: white; 
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); 
  border-radius: var(--radius-lg); 
  min-width: 230px; 
  display: none; 
  padding: 0.5rem 0;
  z-index: 1000;
}

.menu.open {
  display: block;
}

.menu a {
  display: block; 
  padding: 0.75rem 1rem; 
  text-decoration: none; 
  color: var(--text-dark);
  font-weight: 500;
  transition: background 0.2s ease;
}

.menu a:hover {
  background: var(--bg-light);
}

.menu hr {
  border: none; 
  border-top: 1px solid var(--border); 
  margin: 0.5rem 0;
}

/* ========================================
   PAGE LAYOUT
   ======================================== */
html, body { 
  height: 100%; 
}

body { 
  display: flex; 
  min-height: 100vh; 
  flex-direction: column; 
}

.page { 
  flex: 1 0 auto; 
}

/* ========================================
   PROFILE PAGES
   ======================================== */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-header .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.profile-header .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-light);
}

.profile-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header .avatar-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-header .who {
  flex: 1;
}

.profile-header .title {
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-header .badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-header .header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Info Card */
.info-card {
  margin-bottom: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title-row .card-title {
  margin: 0;
}

.card-title-row .small {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-grid .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.info-grid .value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.stat-box.green {
  background: rgba(95, 184, 141, 0.1);
  border-color: var(--secondary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.stat-value.green {
  color: var(--secondary-dark);
}

.stat-unit {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .profile-header .header-actions {
    width: 100%;
  }
  
  .profile-header .header-actions .btn {
    flex: 1;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   ADMIN STYLES
   ======================================== */
.btn-logout {
  background: #EF4444;
  color: white;
}

.btn-logout:hover {
  background: #DC2626;
}

/* Admin Search */
.admin-users-searchbar {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.admin-search-input {
  height: 44px;
  line-height: 44px;
  padding: 0 1rem;
  font-size: 0.9375rem;
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-users-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-filter-select {
  height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.9375rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-actions-cell {
  white-space: normal;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-actions form {
  margin: 0;
}

.admin-actions .btn--sm {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-search-input { 
    width: 100%; 
  }
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-card h1 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 800;
}

.auth-card p {
  margin: 0 0 2rem 0;
  color: var(--text-medium);
}

.auth-card form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.auth-card form label:first-of-type {
  margin-top: 0;
}

.ff-input {
  height: 48px;
  line-height: 48px;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.ff-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ff-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.ff-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.ff-checkbox label {
  margin: 0 !important;
  font-weight: 500 !important;
  cursor: pointer;
}

/* ========================================
   GLOBAL RESETS & UTILITIES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ff-spacing: 1rem;
  --ff-input-h: 44px;
  --ff-radius: var(--radius-md);
}

input, select, textarea, button {
  min-width: 0;
}

textarea {
  height: auto;
  min-height: 120px;
  line-height: 1.5;
  padding: 0.75rem 1rem;
}

/* ========================================
   UTILITY GRIDS
   ======================================== */
.ff-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ff-spacing);
}

.ff-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ff-spacing);
}

@media (max-width: 900px) {
  .ff-grid-2,
  .ff-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

/* Main hamburger button */
.hamburger {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 110;
}

.hamburger:hover {
  background: rgba(91, 143, 199, 0.1);
  border-color: var(--primary);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 100;
}

.mobile-menu.open {
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 16px 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--bg-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu hr {
  border: 0;
  border-top: 2px solid var(--border);
  margin: 8px 24px;
}

/* Admin hamburger */
.admin-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 70;
}

.hamburger-line {
.hamburger-line {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.admin-hamburger.open .hamburger-line:nth-child(1) { 
  transform: rotate(45deg) translateY(6px); 
}

.admin-hamburger.open .hamburger-line:nth-child(2) { 
  opacity: 0; 
}

.admin-hamburger.open .hamburger-line:nth-child(3) { 
  transform: rotate(-45deg) translateY(-6px); 
}

/* Mobile dropdown */
.admin-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
  z-index: 60;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.admin-mobile-menu.open {
  max-height: 400px;
}

.admin-mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.875rem 1rem;
  border-left: 3px solid transparent;
  font-weight: 500;
}

.admin-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: white;
}

.admin-mobile-menu a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: white;
}

.btn-logout-mobile {
  background: #EF4444;
  color: white;
  margin: 0.5rem 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  display: block;
  text-decoration: none;
}

.btn-logout-mobile:hover {
  background: #DC2626;
}

@media (max-width: 768px) {
  .admin-subnav {
    position: sticky;
    top: 64px;
    z-index: 60;
  }
  
  .admin-hamburger {
    display: flex;
  }
  
  .adminnav .adminbrand,
  .adminnav .admin-link {
    display: none;
  }
  
  .admin-mobile-menu {
    display: block;
  }
}

/* ========================================
   ADMIN TABLES
   ======================================== */
.a-table {
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0; 
  table-layout: fixed;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.a-table thead th {
  position: sticky; 
  top: 0; 
  z-index: 1;
  background: var(--bg-light); 
  border-bottom: 2px solid var(--border);
  font-weight: 700; 
  text-align: left; 
  padding: 1rem;
  color: var(--text-dark);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a-table tbody td { 
  padding: 1rem; 
  border-top: 1px solid var(--border); 
  vertical-align: middle;
  color: var(--text-dark);
}

.a-table tbody tr:hover { 
  background: var(--bg-light);
}

.a-table td.title { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap;
  font-weight: 600;
}

.a-table .link { 
  color: var(--primary); 
  text-decoration: none;
  font-weight: 600;
}

.a-table .link:hover { 
  text-decoration: underline; 
}

.a-table .num { 
  text-align: right; 
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.a-table .mono { 
  font-variant-numeric: tabular-nums; 
  color: var(--text-medium);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

.a-table .user { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.a-table .status { 
  text-align: center; 
}

.a-table .empty { 
  text-align: center; 
  color: var(--text-medium); 
  padding: 2rem;
  font-style: italic;
}

/* Badge variants for tables */
.badge-open { 
  background: rgba(91, 143, 199, 0.15); 
  color: var(--primary-dark); 
  border-color: var(--primary);
}

.badge-assigned { 
  background: rgba(251, 191, 36, 0.15); 
  color: #D97706; 
  border-color: #F59E0B;
}

.badge-transit { 
  background: rgba(139, 92, 246, 0.15); 
  color: #6D28D9; 
  border-color: #8B5CF6;
}

.badge-delivered { 
  background: rgba(95, 184, 141, 0.15); 
  color: var(--secondary-dark); 
  border-color: var(--secondary);
}

.badge-neutral { 
  background: var(--bg-light); 
  color: var(--text-medium); 
  border-color: var(--border);
}

/* ========================================
   JOB CARDS
   ======================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.job-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Media */
.job-card__media {
  position: relative; 
  display: block; 
  height: 160px; 
  background: var(--bg-light);
}

.job-card__media img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}

.job-card__placeholder {
  width: 100%; 
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light), #FAFBFC);
  color: var(--text-light);
}

.job-card__placeholder svg { 
  width: 48px; 
  height: 48px;
}

/* Price & Status Overlays */
.job-card__price {
  position: absolute; 
  top: 12px; 
  left: 12px;
  background: var(--text-dark); 
  color: white; 
  font-weight: 800; 
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem; 
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.job-card__status {
  position: absolute; 
  top: 12px; 
  right: 12px;
  padding: 0.375rem 0.75rem; 
  font-weight: 700; 
  font-size: 0.75rem; 
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-card__status.open { 
  background: rgba(95, 184, 141, 0.15); 
  color: var(--secondary-dark); 
  border: 1px solid var(--secondary);
}

.job-card__status.assigned { 
  background: rgba(251, 191, 36, 0.15); 
  color: #D97706; 
  border: 1px solid #F59E0B;
}

.job-card__status.in_transit { 
  background: rgba(91, 143, 199, 0.15); 
  color: var(--primary-dark); 
  border: 1px solid var(--primary);
}

.job-card__status.delivered { 
  background: rgba(139, 92, 246, 0.15); 
  color: #6D28D9; 
  border: 1px solid #8B5CF6;
}

/* Body */
.job-card__body { 
  padding: 1.25rem;
}

.job-card__title {
  margin: 0 0 0.875rem;
  font-size: 1.125rem; 
  font-weight: 700; 
  line-height: 1.3;
}

.job-card__title a { 
  color: var(--text-dark); 
  text-decoration: none;
}

.job-card__title a:hover { 
  color: var(--primary);
}

.job-card__route {
  display: flex; 
  gap: 0.75rem; 
  align-items: center; 
  flex-wrap: wrap;
  padding: 0.875rem; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md);
  background: var(--bg-light);
}

.job-card__route .loc {
  display: flex; 
  gap: 0.5rem; 
  align-items: center; 
  color: var(--text-dark); 
  font-weight: 600;
  font-size: 0.875rem;
}

.job-card__route .loc svg {
  width: 16px; 
  height: 16px; 
  color: var(--primary); 
  flex: none;
}

.job-card__route .sep { 
  color: var(--text-light); 
  display: flex; 
  align-items: center;
}

.job-card__route .sep svg { 
  width: 18px; 
  height: 18px;
}

.job-card__meta {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
  margin-top: 1rem;
}

.chip {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  padding: 0.5rem 0.875rem; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-full);
  background: white; 
  color: var(--text-dark); 
  font-weight: 600; 
  font-size: 0.8125rem;
}

.chip svg { 
  width: 16px; 
  height: 16px;
}

.chip.muted { 
  color: var(--text-medium);
}

/* Footer */
.job-card__footer {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 1rem 1.25rem; 
  border-top: 1px solid var(--border); 
  background: var(--bg-light);
}

.job-card__footer .when { 
  color: var(--text-medium); 
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ========================================
   JOB BUTTON STYLES
   ======================================== */

  border:1px solid #D0D7E2; background:#F8FAFC; border-radius:10px;
  padding:8px 12px; font-weight:700; font-size:13.5px; text-decoration:none; color:#0f172a;
}
.btn--ghost{ background:#fff }
.btn--primary{ background:#5B8FC7; border-color:#5B8FC7; color:#fff }
.btn--primary:hover{ filter:brightness(1.05) }
/* === FixFrakt – felles form-card stil (matcher Rediger profil) === */
.section { padding-top: 8px; }
.form-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.form-card + .form-card{ margin-top:18px; }

/* Tittelrad i kort */
.card-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.card-head h2{ font-size:20px; line-height:1.2; margin:0; }

/* Grid som i profil-siden */
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.form-row--3{ grid-template-columns: 1fr 1fr 1fr; }
.form-row--1{ grid-template-columns: 1fr; }
@media (max-width: 900px){
  .form-row, .form-row--3{ grid-template-columns: 1fr; }
}

/* Felt */
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-weight:600; color:#0f172a; font-size:14px; }
.field small.help{ color:#64748b; }

/* Inputs – samme radius/linjehøyde som profil */
.input, .textarea, .select{
  width:100%;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  font-size:15px; line-height:1.4; color:#0f172a;
}
.textarea{ min-height:96px; resize:vertical; }
.input:focus, .textarea:focus, .select:focus{
  outline:2px solid transparent;
  box-shadow:0 0 0 3px rgba(29,78,216,.25);
  border-color:#1d4ed8;
}

/* === Avkrysningsbokser – halver størrelse globalt === */
input[type="checkbox"]{
  /* Noen temaer setter store bokser – vi tvinger ned størrelsen */
  width: 16px; height: 16px;
  accent-color: #1d4ed8;       /* pen blå hake */
  vertical-align: middle;
}
.checkbox-sm{ width:14px; height:14px; }

/* === Toggle switch (for Innstillinger – Live tracking, varsler osv.) === */
.switch{
  position:relative;
  display:inline-block;
  width: 44px; height: 26px;
}
.switch input{ opacity:0; width:0; height:0; }
.switch .slider{
  position:absolute; inset:0;
  background:#e5e7eb;
  border-radius:9999px;
  transition: background .18s ease;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.switch .slider::before{
  content:""; position:absolute; top:3px; left:3px;
  width:20px; height:20px; border-radius:9999px;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.12);
  transition: transform .18s ease;
}
.switch input:checked + .slider{ background:#1d4ed8; }
.switch input:checked + .slider::before{ transform: translateX(18px); }

/* Rader med label + kontroll (match profil-stil) */
.rowline{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:8px 0;
}
.rowline .desc{ color:#475569; font-size:14px; }
/* Mindre bilde-kort i "Hvordan fungerer det?" */
.card-grid .card--image {
  padding: 10px;                 /* litt luft rundt bildet */
}

.card-grid .card--image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;             /* ← gjør bildet lavere (juster tallet fritt) */
  aspect-ratio: 4 / 3;           /* holder jevn proporsjon */
  object-fit: cover;             /* fyll kortet pent */
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(16,24,40,.08);
}

/* Gjør dem litt høyere på store skjermer om ønskelig */
@media (min-width: 1200px) {
  .card-grid .card--image img {
    max-height: 240px;           /* kan økes eller fjernes */
    aspect-ratio: 16 / 9;        /* mer “banner”-aktig på brede skjermer */
  }
}
.plan-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16,24,40,.08);
  transform: translateY(0) scale(1);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.plan-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hover = løft litt */
.plan-card:hover,
.plan-card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(16,24,40,.12);
  cursor: pointer;
}

/* Klikk ned */
.plan-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(16,24,40,.10);
}
/* --- Ens størrelse på abonnementsbilder --- */
.plan-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16,24,40,.08);
  transform: translateY(0) scale(1);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  /* Lås høyde/bredde-forholdet likt for alle */
  aspect-ratio: 16 / 9;         /* samme “kort”-format */
  background: #f6f7f9;          /* nøytral bakgrunn mens bildet lastes */
}

.plan-card img {
  position: absolute;           /* dekker hele kortet */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fyller uten å strekke */
  display: block;
}

/* Hover/fokus/aktiv (trykk-effekt) – som før */
.plan-card:hover,
.plan-card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(16,24,40,.12);
  cursor: pointer;
}
.plan-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(16,24,40,.10);
}

/* Litt høyere kort på store skjermer, om ønskelig */
@media (min-width: 1200px) {
  .plan-card { aspect-ratio: 21 / 9; } /* mer “banner” widescreen */
}

/* Tette mellomrom til gridet, for jevn visning */
.card-grid .plan-card { margin: 0; }
/* Vipps-knapp – Vipps-oransje */
.btn--vipps{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 16px;
  border-radius:10px;
  background:#FF5B24;
  color:#fff;
  border:1px solid #FF5B24;
  text-decoration:none;
  font-weight:700;
  transition:background .15s ease, box-shadow .15s ease, transform .08s ease;
}
.btn--vipps:hover{ background:#E14F20; box-shadow:0 3px 10px rgba(0,0,0,.08); }
.btn--vipps:active{ transform:translateY(1px); }
.btn--vipps[disabled], .btn--vipps[aria-disabled="true"]{ opacity:.7; cursor:not-allowed; }
.btn--vipps .vipps-logo, .btn--vipps .vipps-logo-full{ height:20px; filter:brightness(0) invert(1); }
