/**
 * Customer Dashboard Styles
 * Using design standards from DESIGN_STANDARDS.md
 * Primary color: Dark Gray #1e293b → #334155 (slate-800 to slate-700)
 */

:root {
  /* ========== PRIMÄRA FÄRGER - PROFESSIONELL MÖRKGRÅ PALETT ========== */
  --primary: #1e293b;              /* Slate 800 - Huvudfärg */
  --primary-hover: #0f172a;        /* Slate 900 - Hover state */
  --secondary: #334155;            /* Slate 700 - Sekundär färg */
  --slate-800: #1e293b;
  --slate-700: #334155;
  
  /* ========== BAKGRUNDER ========== */
  --bg-main: #f8fafc;              /* Ljusgrå huvudbakgrund */
  --bg-card: #ffffff;              /* Vit för kort */
  --bg-subtle: #f1f5f9;            /* Slate 100 - Subtil bakgrund */
  --bg-hover: #f8fafc;             /* Hover state */
  
  /* ========== TEXT ========== */
  --text-primary: #1e293b;         /* Mörkgrå huvudtext */
  --text-secondary: #64748b;       /* Slate 500 - Sekundär text */
  --text-muted: #94a3b8;           /* Slate 400 - Dämpad text */
  
  /* ========== ACCENTER (MINIMAL ANVÄNDNING) ========== */
  --accent-success: #059669;       /* Grön - endast för success states */
  --accent-warning: #d97706;       /* Amber - endast för varningar */
  --accent-info: #0284c7;          /* Cyan - minimal användning */
  --accent-error: #dc2626;         /* Röd - endast för errors */
  
  /* ========== STATUS FÄRGER (TONANDE NER) ========== */
  --status-pending: #d97706;       /* Toned down orange */
  --status-pending-light: #fef3c7;
  --status-success: var(--slate-800);
  --status-success-light: #f1f5f9; /* Toned down från f8fafc */
  --status-info: #0284c7;          /* Toned down från 3b82f6 */
  --status-info-light: #f0f9ff;    /* Toned down från dbeafe */
  --status-urgent: #dc2626;
  --status-urgent-light: #fee2e2;
  
  /* ========== BORDERS & SHADOWS ========== */
  --border-light: #e2e8f0;         /* Subtil border */
  --border-medium: #cbd5e1;        /* Medium border */
  --shadow-sm: 0 1px 2px 0 rgba(30, 41, 59, 0.05);
  --shadow-md: 0 2px 8px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 4px 12px rgba(30, 41, 59, 0.12);
  
  /* Safe area insets for iPhone X+ notch support */
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
}

/* ========== BASE STYLES ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== MICRO-INTERACTIONS & SMOOTH TRANSITIONS ========== */
/* Apply smooth transitions globally */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* Prevent transitions on page load */
.preload * {
  transition: none !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  /* Safe area support for iPhone X+ */
  padding-left: var(--safe-area-inset-left);
  padding-right: var(--safe-area-inset-right);
  max-width: 100%;
}

/*
 * index.css sätter body { overflow-x: hidden } vilket (CSS-spec) gör
 * overflow-y → auto. Tillsammans med mobile-minimal-shared bryter det
 * window-scroll på mobil. Återställ dokument-scroll här.
 */
@media (max-width: 768px) {
  html {
    overflow-x: clip;
    overflow-y: scroll;
  }
  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* ========== LAYOUT VISIBILITY CONTROL - V2 vs OLD ========== */
/* Desktop/Tablet (>768px): Show V2, Hide Old */
/* NB: .dashboard-container { display:flex !important } under ≤1024px måste slås
   av med högre specificitet — elementet har båda klasserna. */
@media (min-width: 769px) {
  .dashboard-container-v2 {
    display: block !important;
  }
  
  .dashboard-container-old,
  .dashboard-container.dashboard-container-old {
    display: none !important;
  }
}

/* Mobile (<=768px): Hide V2, Show Old */
@media (max-width: 768px) {
  .dashboard-container-v2 {
    display: none !important;
  }
  
  .fab {
    display: none !important;
  }
  
  .dashboard-container-old,
  .dashboard-container.dashboard-container-old {
    display: flex !important;
    flex-direction: column;
  }
}

/* ========== DASHBOARD LAYOUT V2 (DESKTOP/TABLET) ========== */

.dashboard-container-v2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  /* #header-placeholder har redan min-height = header — lägg inte till header-höjd igen */
  margin-top: 0.5rem;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  margin-top: 2rem;
}

/* Tablet: single column */
@media (max-width: 1024px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-container-v2 {
    padding: 1.5rem;
  }
}

.content-primary > .dashboard-section,
.content-secondary > .dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-primary > .dashboard-section {
  min-height: 200px;
}

.content-secondary > .dashboard-section {
  position: sticky;
  top: 120px;
}

/* Section headers in V2 */
.content-primary .section-header,
.content-secondary .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.content-primary .section-header h2,
.content-secondary .section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.content-secondary .section-header h3 {
  font-size: 1.125rem;
}

/* ========== ADAPTIVE HERO HEADER ========== */

.hero-welcome, .hero-action, .hero-status, .hero-waiting {
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

/* Solid bakgrund om hero-has-bg saknas (fallback) */
.hero-welcome:not(.hero-has-bg),
.hero-action:not(.hero-has-bg),
.hero-status:not(.hero-has-bg),
.hero-waiting:not(.hero-has-bg) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Full ruta: bild bakom, ljus overlay, text ovanpå */
.hero-welcome.hero-has-bg,
.hero-action.hero-has-bg,
.hero-status.hero-has-bg,
.hero-waiting.hero-has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  min-height: 13rem;
  text-align: left;
}

.hero-has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #e8edf2;
  background-image: url('/images/customer-dashboard-hero-wood.jpg');
  /* cover = alltid hela headern utan kanaler; beskär i stället för att lämna tom yta */
  background-size: cover;
  /* Lite högre vertikal tyngdpunkt = mer av händerna syns under wide beskärning */
  background-position: center 48%;
  filter: grayscale(100%);
  z-index: 0;
}

.hero-has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(248, 250, 252, 0.85) 35%,
    rgba(248, 250, 252, 0.48) 58%,
    rgba(248, 250, 252, 0.18) 100%
  );
  z-index: 1;
}

.hero-has-bg > .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-welcome-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero-status-inner {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-status-inner h1,
.hero-status-inner .hero-subtitle,
.hero-status-inner .hero-detail,
.hero-status-inner .hero-context {
  text-align: left;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-status-inner h1 {
  margin-bottom: 0.35rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.45;
}

.hero-support {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.hero-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.hero-points {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.hero-points li i,
.hero-points li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #64748b;
}

.hero-status-inner .btn-hero-primary {
  margin-top: 0.15rem;
}

.hero-welcome-inner .hero-content {
  flex: 1;
  min-width: 0;
}

.hero-welcome h1,
.hero-action h1,
.hero-status h1,
.hero-waiting h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

.hero-has-bg h1,
.hero-has-bg .hero-subtitle {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero-content {
  flex: 1;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-hero-secondary:hover {
  background: var(--primary);
  color: white;
}

.hero-action {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-warning);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-badge.urgent {
  animation: pulse 2s infinite;
}

.hero-badge.waiting {
  background: #f59e0b;
  color: #fff;
}

.hero-detail,
.hero-context {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.hero-savings-line {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #059669;
  margin: 0.75rem 0 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
  .hero-welcome-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-status-inner {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-welcome h1,
  .hero-action h1,
  .hero-status h1 {
    font-size: 1.75rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ========== QUICK ACTIONS BAR ========== */

.quick-actions-bar {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Desktop: en rad knappar; scroll horisontellt om allt inte får plats */
@media (min-width: 1101px) {
  .quick-actions-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .quick-actions-bar .action-item {
    flex: 0 0 auto;
    min-width: auto;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.25;
    padding: 0.75rem 0.9rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .quick-actions-bar .action-item > span {
    white-space: nowrap;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .quick-actions-bar .action-item i,
  .quick-actions-bar .action-item svg {
    flex-shrink: 0;
  }
}

/* Tablet / iPad: wrap till 2 rader — undvik ihoptryckt scrollband */
@media (min-width: 769px) and (max-width: 1100px) {
  .quick-actions-bar {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .quick-actions-bar .action-item {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 9.5rem;
    max-width: calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.8125rem;
    line-height: 1.2;
    padding: 0.7rem 0.75rem;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .quick-actions-bar .action-item i,
  .quick-actions-bar .action-item svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
  }
}

.quick-actions-bar::-webkit-scrollbar {
  display: none;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.action-item:hover {
  border-color: var(--primary);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-item i {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.action-item.has-notification {
  border-color: var(--accent-warning);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.action-item .badge {
  padding: 0.25rem 0.625rem;
  background: var(--bg-subtle);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.action-item .badge-warning {
  background: var(--accent-warning);
  color: white;
}

/* ========== FLOATING ACTION BUTTON ========== */

.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

.fab:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(30, 41, 59, 0.4);
  transform: scale(1.05);
}

.fab i {
  font-size: 1.25rem;
}

.fab-label {
  font-family: 'Inter', sans-serif;
}

/* ========== STATS CARDS V2 - INFORMATIVE & LARGE ========== */

.stats-cards-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Tablet: 2 kolumner utan 2+1-hål — sista kortet fyller raden */
@media (min-width: 769px) and (max-width: 1100px) {
  .stats-cards-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .stats-cards-v2 > .stat-card-v2:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .stat-card-v2 {
    padding: 1.35rem;
  }

  .stat-card-v2 .stat-value {
    font-size: 2rem;
  }
}

.stat-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.2s;
  position: relative;
}

.stat-card-v2:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Hela kortet som länk (t.ex. Offerter mottagna → Mina projekt) */
a.stat-card-v2-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
a.stat-card-v2-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
a.stat-card-v2-link .stat-link,
a.stat-card-v2-link .stat-link-primary {
  pointer-events: none;
}

.stat-card-v2.stat-highlight {
  border-color: var(--accent-warning);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.stat-card-v2.stat-primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.stat-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-context {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.stat-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.stat-link:hover {
  color: var(--primary-hover);
}

.stat-link-primary {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-block;
  transition: all 0.2s;
}

.stat-link-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-badge.urgent {
  background: var(--accent-warning);
  color: white;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--accent-success);
}

.stat-change.neutral {
  color: var(--text-muted);
}

.stat-progress {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.progress-bar {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== CAMPAIGN BANNER V2 - FULL WIDTH ========== */

.campaign-banner-v2 {
  margin-bottom: 2rem;
  animation: slideInFromTop 0.6s ease-out;
}

/* Desktop Carousel V2 - Modern design */
.campaign-carousel-v2 {
  display: flex;
  gap: 1.5rem;
  overflow-x: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.campaign-carousel-v2::-webkit-scrollbar {
  display: none;
}

/* Campaign Card V2 - Larger, modern */
.campaign-card-v2 {
  position: relative;
  min-width: 0;
  flex: 1;
  max-width: 450px;
  scroll-snap-align: start;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.campaign-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Campaign Image */
.campaign-card-v2__image {
  position: relative;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-card-v2__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Sponsor Logo Overlay */
.campaign-card-v2__sponsor-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-card-v2__sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Campaign Content */
.campaign-card-v2__content {
  padding: 1.5rem;
}

.campaign-card-v2__badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.campaign-card-v2__badge--offer {
  background: #dcfce7;
  color: #059669;
}

.campaign-card-v2__badge--tips {
  background: #fef3c7;
  color: #d97706;
}

.campaign-card-v2__badge--news {
  background: #ede9fe;
  color: #7c3aed;
}

.campaign-card-v2__badge--info {
  background: #dbeafe;
  color: #0284c7;
}

.campaign-card-v2__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.campaign-card-v2__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  
  /* Truncate to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-v2__cta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.campaign-card-v2:hover .campaign-card-v2__cta {
  gap: 0.75rem;
}

/* Navigation Dots */
.campaign-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.campaign-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s;
  cursor: pointer;
}

.campaign-carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* Tablet - smaller cards, allow scroll */
@media (max-width: 1024px) {
  .campaign-carousel-v2 {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .campaign-carousel-v2::-webkit-scrollbar {
    display: none;
  }
  
  .campaign-card-v2 {
    min-width: 320px;
    flex: 0 0 auto;
  }
  
  .campaign-card-v2__image {
    height: 180px;
  }
}

/* Mobile - hide banner (use existing pill design) */
@media (max-width: 768px) {
  .campaign-banner-v2 {
    display: none;
  }
}

/* ========== TIPS & NEWS SECTION ========== */

.tips-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: 10px;
  transition: all 0.2s;
}

.tip-item:hover {
  background: var(--border-light);
}

.tip-item i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.tip-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tip-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.text-secondary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ========== DASHBOARD LAYOUT (OLD - MOBILE ONLY) ========== */
/* These styles are only used on mobile (<=768px) */
/* The old layout is hidden on desktop via media queries */

.dashboard-container,
.dashboard-container-old {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  /* #header-placeholder reserverar redan fixed header — undvik dubbel offset */
  margin-top: 0.5rem;
  padding-bottom: calc(2rem + var(--safe-area-inset-bottom));
}

/* Desktop Grid Layout (över 1024px) */
@media (min-width: 1025px) {
  .dashboard-container {
    display: grid;
    grid-template-columns: 1fr 320px; /* Smalare sidebar = mer plats för empty state */
    gap: 1.25rem; /* Lite mer gap för bättre andning */
    align-items: start;
    grid-auto-flow: dense; /* Tillåt att element packas tätt */
  }

  /* EXPLICIT GRID-ORDNING: Säkerställ att allt ligger i rätt ordning */
  
  /* 1. Header ALLTID först och tar full bredd */
  .dashboard-container > #dashboardHeaderContainer {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  /* 2. Hero CTA (stor CTA för nya användare) */
  .dashboard-container > .hero-cta-container {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* 3. Status Overview (för återkommande användare) */
  .dashboard-container > #statusOverviewCard {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  /* 4. Stats Grid */
  .dashboard-container > #customerStatsGrid {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  /* 5. Mobile Dashboard Content */
  .dashboard-container > #mobileDashboardContent {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  /* 6. Empty state (visas bara för nya användare) - tar vänster kolumn */
  .dashboard-container > #emptyStateContainer {
    grid-column: 1 / 2;
    grid-row: 6; /* Efter alla header/stats element */
  }

  /* 7. Dashboard layout - normal layout tar båda kolumnerna */
  .dashboard-container > .dashboard-layout {
    grid-column: 1 / -1;
    grid-row: 6; /* Samma rad som empty state när den inte visas */
  }

  /* SPECIAL: När empty state visas, dela upp row 6 i två kolumner */
  .dashboard-container:has(#emptyStateContainer:not(:empty)) > .dashboard-layout {
    grid-column: 2 / 3; /* Flytta till höger kolumn */
    grid-row: 6; /* Samma rad som empty state */
    display: block; /* Override grid layout */
  }

  .dashboard-container:has(#emptyStateContainer:not(:empty)) > .dashboard-layout .dashboard-main {
    display: none; /* Dölj main content när empty state visas */
  }

  .dashboard-container:has(#emptyStateContainer:not(:empty)) > .dashboard-layout .dashboard-sidebar {
    /* Sidebar visas normalt i höger kolumn */
  }
  
  /* Sticky Sidebar - följer med vid scrolling */
  .dashboard-sidebar {
    position: sticky;
    top: 120px; /* Under fixed header */
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain; /* Förhindrar scroll-chaining till parent */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling på iOS */
  }
  
  /* Subtle scrollbar styling för sidebar */
  .dashboard-sidebar::-webkit-scrollbar {
    width: 8px;
  }
  
  .dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  
  .dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  .dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
  }
}

/* ========== MODERN INLINE HEADER 2026 ========== */
.dashboard-header {
  background: transparent;
  color: var(--text-primary);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--slate-800);
}

.dashboard-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== SMART HEADER 2026 - CLEAN VISUAL ========== */

.dashboard-header-smart {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.header-left {
  flex: 1;
  min-width: 0;
}

.header-right {
  flex-shrink: 0;
}

/* Greeting */
.header-greeting {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.greeting-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
}

.greeting-text {
  line-height: 1.2;
}

/* Stats Pills */
.header-stats-pills {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-bullet {
  color: var(--slate-800);
  font-weight: 700;
}

/* Next Action Card - Clean & Minimal */
.next-action-card {
  background: #f8fafc;
  border: 2px solid var(--slate-800);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  transition: all 0.2s ease;
}

.next-action-card:hover {
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.12);
}

.next-action-header {
  margin-bottom: 1rem;
}

.next-action-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate-800);
  text-transform: uppercase;
}

.next-action-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.next-action-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.next-action-content {
  flex: 1;
  min-width: 0;
}

.next-action-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.next-action-context {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

.next-action-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-next-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--slate-800);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-next-action i {
  font-size: 0.75rem;
}

/* Header CTA Button */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  background: var(--slate-800);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.25);
  background: var(--slate-700);
}

.btn-header-cta i {
  font-size: 1rem;
}

/* ========== RESPONSIVE - SMART HEADER ========== */

/* ========== TABLET OPTIMIZATION (768-1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr; /* Single column */
  }
  
  .dashboard-sidebar {
    order: -1; /* Sidebar först på tablet */
  }
  
  .quick-actions-grid-2x2 {
    grid-template-columns: repeat(4, 1fr); /* 4 columns på tablet */
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 1rem;
  }
  
  .status-overview-card .overview-grid {
    grid-template-columns: 1fr; /* Stack vertically */
  }
  
  .hero-cta-prominent {
    padding: 2rem 1.5rem;
  }

  .next-action-card {
    max-width: none;
    width: 100%;
  }

  .dashboard-main {
    padding-bottom: 5.5rem;
  }

  .dashboard-container {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .dashboard-header-smart {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .header-right {
    width: 100%;
  }
  
  .btn-header-cta {
    width: 100%;
    justify-content: center;
  }
  
  .header-greeting {
    font-size: 1.75rem;
  }
  
  .greeting-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  /* Explicit mobilordning (flex-column på .dashboard-container-old) */
  .dashboard-container-old > #broadcastBannerSlotMobile { order: 0; }
  .dashboard-container-old > #dashboardHeaderContainer { order: 1; }
  .dashboard-container-old > #mobileDashboardContent { order: 2; }
  .dashboard-container-old > .hero-cta-container { order: 3; }
  .dashboard-container-old > #statusOverviewCard { order: 4; }
  .dashboard-container-old > #customerStatsGrid { order: 5; }
  .dashboard-container-old > #emptyStateContainer { order: 6; }
  .dashboard-container-old > #offerter,
  .dashboard-container-old > .quotes-priority-section { order: 7; }
  .dashboard-container-old > #customerInfoWidget { order: 8; }
  .dashboard-container-old > #minBostadWidgetMobile { order: 9; }
  .dashboard-container-old > .dashboard-layout { order: 10; }

  #dashboardHeaderContainer {
    order: 1;
  }

  #mobileDashboardContent {
    margin-bottom: 0.5rem;
  }

  .dashboard-container-old > .quotes-priority-section {
    margin-bottom: 0.75rem;
  }

  .dashboard-container-old > #customerInfoWidget {
    margin-bottom: 0.75rem;
  }

  .dashboard-header-smart {
    padding: 0.85rem 0 0.35rem 0;
    margin-bottom: 0;
  }

  /* Kompakt hero-bild bakom “God kväll …” (samma foto som desktop, lägre) */
  #dashboardHeaderContainer .dashboard-header-smart.mobile-greeting-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 120px;
    margin: 0 0 0.5rem;
    padding: 1rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: transparent;
  }

  #dashboardHeaderContainer .mobile-greeting-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #e8edf2;
    background-image: url('/images/customer-dashboard-hero-wood.jpg');
    background-size: cover;
    background-position: center 45%;
    filter: grayscale(100%);
    z-index: 0;
  }

  #dashboardHeaderContainer .mobile-greeting-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Starkare overlay än desktop så greeting läses på smal skärm */
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.94) 0%,
      rgba(248, 250, 252, 0.88) 55%,
      rgba(248, 250, 252, 0.78) 100%
    );
    z-index: 1;
  }

  #dashboardHeaderContainer .mobile-greeting-hero > .header-left {
    position: relative;
    z-index: 2;
  }

  #dashboardHeaderContainer .mobile-greeting-hero .header-greeting {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
  }

  #dashboardHeaderContainer .mobile-greeting-hero .header-stats-pills {
    margin-bottom: 0;
    color: #475569;
  }
  
  .header-greeting {
    font-size: 1.25rem;
  }
  
  .greeting-icon {
    font-size: 1rem;
  }
  
  /* Dölj NÄSTA STEG-kortet i mobilvy */
  .next-action-card {
    display: none !important;
  }
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 320px; /* Matchar dashboard-container */
  gap: 1.25rem; /* Matchar dashboard-container */
}

.dashboard-main {
  min-width: 0;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Empty State Container - matcha main-kolumnens bredd */
#emptyStateContainer {
  max-width: calc(100% - 350px - 2rem); /* Full bredd minus sidebar width minus gap */
}

/* ========== LIGHTER CARD DESIGN 2026 ========== */
.dashboard-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.dashboard-section:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.dashboard-section:active {
  transform: translateY(0);
}

/* ========== OPTIMIZED WHITESPACE 2026 ========== */
/* Extra breathing room for priority sections */
.quotes-priority-section {
  margin-bottom: 2.5rem !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* ========== TYPOGRAPHY SYSTEM 2026 ========== */
.section-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Section Icons (ersätter emojis) */
.section-icon {
  color: var(--primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ========== EMPTY STATE ========== */

.empty-state-guide {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.75rem; /* Mer padding för bättre andningsrum */
  margin: 0; /* Ingen margin för att ta full bredd */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 100%; /* Tar full bredd av sin container */
}

.empty-state-hero {
  text-align: center;
  margin-bottom: 2rem; /* Lagom spacing */
}

.empty-state-icon-large {
  font-size: 3.5rem; /* Mindre ikon */
  margin-bottom: 0.75rem; /* Mindre spacing */
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Fade-in class for dynamic content */
.fade-in {
  animation: slideInFromBottom 0.4s ease-out;
}

.skeleton-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

.empty-state-hero h2 {
  font-size: 1.5rem; /* Mindre rubrik */
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem; /* Mindre spacing */
}

.empty-state-subtitle {
  font-size: 1rem; /* Mindre text */
  color: #64748b;
  line-height: 1.6; /* Tätare radavstånd */
}

/* Process Steps */
.empty-state-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.875rem;
  margin: 2rem 0; /* Lagom spacing */
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border-radius: 12px;
}

.empty-step {
  flex: 1;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.empty-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: none;
}

.step-number {
  width: 32px; /* Mindre storlek */
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1rem; /* Mindre rubrik */
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem; /* Mindre spacing */
}

.step-content p {
  color: #64748b;
  font-size: 0.875rem; /* Mindre text */
  margin-bottom: 0.5rem; /* Mindre spacing */
}

.step-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 0.813rem;
  color: #475569;
}

.step-highlight {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 600;
}

.step-arrow {
  font-size: 2rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

/* Trust Signals */
.empty-state-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #065f46;
  font-weight: 500;
  font-size: 0.875rem; /* Mindre font-size */
}

.trust-item i {
  color: var(--slate-800);
  font-size: 1rem; /* Mindre ikon */
}

/* CTA Actions */
.empty-state-actions {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin: 1.75rem 0; /* Lagom spacing */
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  transition: all 0.2s;
  border: 1px solid var(--primary);
}

.btn-cta-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: none;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem; /* Mindre padding */
  background: white;
  color: #475569;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.938rem; /* Mindre font-size */
  transition: all 0.2s;
}

.btn-cta-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Example Projects */
.empty-state-examples {
  margin: 1.75rem 0; /* Lagom spacing */
  text-align: center;
}

.empty-state-examples h3 {
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.875rem; /* Lagom spacing */
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem; /* Lagom gap */
  justify-content: center;
}

.example-tag {
  padding: 0.375rem 0.75rem; /* Mindre padding */
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem; /* Mindre font-size */
}

.example-tag:hover {
  border-color: var(--slate-800);
  background: #f8fafc;
  transform: translateY(-2px);
}

/* FAQ */
.empty-state-faq {
  margin: 1.75rem 0 0.75rem; /* Lagom spacing */
}

.empty-state-faq h3 {
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.875rem; /* Lagom spacing */
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* Lagom gap mellan FAQ items */
}

.faq-item {
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover {
  background: #f1f5f9;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem; /* Mindre padding */
  font-weight: 500;
  font-size: 0.938rem; /* Mindre font-size */
  color: #334155;
}

.faq-question i {
  transition: transform 0.2s;
  color: #94a3b8;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  padding: 0 1rem; /* Mindre padding */
  color: #64748b;
  font-size: 0.875rem; /* Mindre font-size */
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1rem 0.75rem; /* Mindre padding */
}

/* Compact Empty State */
.empty-state-compact {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fef3c7 100%);
  border-radius: 12px;
}

.empty-state-compact .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-compact h3 {
  font-size: 1.25rem;
  color: #78350f;
  margin-bottom: 0.5rem;
}

.empty-state-compact p {
  color: #92400e;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .empty-state-guide {
    padding: 2rem 1rem;
  }

  .empty-state-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

  .empty-state-trust {
    grid-template-columns: 1fr;
  }

  .empty-state-actions {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ========== STATS GRID ========== */

/* ========== STATS GRID - VISUAL HIERARCHY 2026 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

/* First card (priority) - larger with subtle accent (Subtil Elegance) */
.stat-card:first-child {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--slate-800);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.08);
}

.stat-card:first-child .stat-value {
  font-size: 2.5rem;
  color: var(--slate-800);
}

/* ========== STATUS BADGES 2026 ========== */
.badge-pending {
  background: var(--status-pending-light);
  color: #92400e;
  border: 1px solid var(--status-pending);
}

.badge-success {
  background: var(--status-success-light);
  color: #065f46;
  border: 1px solid var(--status-success);
}

.badge-info {
  background: var(--status-info-light);
  color: #1e40af;
  border: 1px solid var(--status-info);
}

.badge-urgent {
  /* Urgent feature removed */
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.stat-card-clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.stat-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.stat-trend {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.positive {
  background: #f8fafc;
  color: var(--slate-800);
}

.stat-trend.negative {
  background: #fee2e2;
  color: #991b1b;
}

.stat-trend.neutral {
  background: #f3f4f6;
  color: #6b7280;
}

.stat-progress {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-800);
  background: #f1f5f9 !important;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========== STATS CARDS - SMART STATUS & HINTS ========== */

.stat-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: #f0f9ff;
  color: #1e40af;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-card-hint {
  background: #f8fafc;
  border-left: 3px solid var(--slate-800);
  padding: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  border-radius: 4px;
  font-size: 0.813rem;
  color: var(--slate-800);
  line-height: 1.4;
}

.stat-card-urgent {
  border: 2px solid #f59e0b !important;
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  }
}

/* Notification preview */
.notif-preview-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.notif-preview-item {
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.4;
}

.notif-preview-item::before {
  content: "•";
  color: var(--slate-800);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ========== BUTTONS ========== */

/* Primary - Dark gradient (viktigaste actions) */
.btn-primary {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.4);
}

/* Secondary - Dark outline (sekundära actions, konsistent mörkgrå look) */
.btn-secondary {
  background: transparent;
  color: var(--slate-800);
  border: 2px solid var(--slate-800);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--slate-800);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ========== HERO CTA ========== */

/* ========== SUBTLE HERO CTA - BANNER STYLE 2026 ========== */
.hero-cta-container {
  margin-bottom: 1.5rem;
}

.hero-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* Dölj ::before på desktop - visas bara på mobil om hero-cta behålls */
.hero-cta::before {
  display: none;
}

.hero-cta-content {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.hero-cta-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

.hero-cta-text h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.125rem;    /* Lite space */
  color: white;
  display: block;             /* Normal display */
}

.hero-cta-text p {
  font-size: 0.875rem;        /* Mindre brödtext (14px) */
  opacity: 0.9;               /* Lite mer synlig */
  color: white;
  line-height: 1.4;
}

.hero-cta-btn {
  background: white;
  color: #1e293b;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.hero-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #f8fafc;
}

.hero-cta-btn i:last-child {
  transition: transform 0.3s ease;
}

.hero-cta-btn:hover i:last-child {
  transform: translateX(4px);
}

/* ========== SMART HERO CTA - NEW USER PROMINENT VERSION ========== */
.hero-cta-prominent {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.25);
}

.hero-cta-prominent .hero-cta-content {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-cta-prominent .hero-cta-icon {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.hero-cta-prominent .hero-cta-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-cta-prominent .hero-cta-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: white;
  font-weight: 500;
}

.benefit-list li i {
  color: #4ade80;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.hero-cta-prominent .hero-cta-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-cta-prominent .hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ========== DASHBOARD HEADER ACTIONS (RETURNING USERS) ========== */
.dashboard-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-create-project {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-create-project:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.btn-create-project i {
  font-size: 1rem;
}

/* ========== STATUS OVERVIEW CARD - AT A GLANCE ========== */
.status-overview-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
}

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

.overview-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.overview-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.overview-primary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: var(--border-light);
}

.overview-attention {
  background: linear-gradient(135deg, #fef3c7 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

.overview-neutral {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: var(--border-light);
}

.overview-action {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0f9ff 100%);
  border-color: #3b82f6;
}

.overview-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
}

.overview-content {
  flex: 1;
  min-width: 0;
}

.overview-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.overview-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-800);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.overview-status {
  margin-top: 0.5rem;
}

.overview-sublabel {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.overview-task {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0.5rem 0;
  line-height: 1.4;
}

.overview-action {
  margin-top: 0.75rem;
}

.overview-action a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}

.overview-action a:hover {
  gap: 0.5rem;
  color: var(--slate-800);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-good {
  background: #dcfce7;
  color: #16a34a;
}

.status-attention {
  background: #fee2e2;
  color: #dc2626;
}

.status-info {
  background: #f0f9ff;
  color: #2563eb;
}

/* ========== GRIDS ========== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.favorite-card {
  position: relative;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.favorite-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

/* ========== FILTERS ========== */

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========== EMPTY STATE ========== */

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* ========== LOADING OVERLAY ========== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* ========== SKELETON LOADERS ========== */

@keyframes skeleton-loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton-container {
  animation: fadeIn 0.3s ease;
}

.skeleton-fade-out {
  animation: fadeOut 0.2s ease;
}

.content-fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Skeleton base styles */
.skeleton-stat-card,
.skeleton-activity-item,
.skeleton-sidebar-section,
.skeleton-project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.skeleton-icon,
.skeleton-value,
.skeleton-label,
.skeleton-sublabel,
.skeleton-activity-icon,
.skeleton-activity-title,
.skeleton-activity-description,
.skeleton-section-title,
.skeleton-list-item,
.skeleton-project-title,
.skeleton-project-badge,
.skeleton-project-meta,
.skeleton-project-description,
.skeleton-stat-item,
.skeleton-button,
.skeleton-generic {
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Stats card skeleton */
.skeleton-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.skeleton-value {
  width: 60%;
  height: 2rem;
}

.skeleton-label {
  width: 80%;
  height: 0.875rem;
}

.skeleton-sublabel {
  width: 90%;
  height: 0.75rem;
}

/* Activity feed skeleton */
.skeleton-activity-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.skeleton-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-activity-title {
  width: 70%;
  height: 1rem;
}

.skeleton-activity-description {
  width: 90%;
  height: 0.875rem;
}

/* Sidebar skeleton */
.skeleton-sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.skeleton-section-title {
  width: 60%;
  height: 1.25rem;
  margin-bottom: 1rem;
}

.skeleton-list-item {
  width: 100%;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

/* Project card skeleton */
.skeleton-project-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.skeleton-project-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skeleton-project-title {
  width: 60%;
  height: 1.25rem;
}

.skeleton-project-badge {
  width: 80px;
  height: 1.5rem;
  border-radius: 9999px;
}

.skeleton-project-meta {
  width: 50%;
  height: 0.875rem;
  margin-bottom: 1rem;
}

.skeleton-project-description {
  width: 100%;
  height: 0.875rem;
  margin-bottom: 0.5rem;
}

.skeleton-project-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.skeleton-stat-item {
  width: 80px;
  height: 1rem;
}

.skeleton-project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skeleton-button {
  width: 120px;
  height: 2.5rem;
  border-radius: 9999px;
}

.skeleton-generic {
  width: 100%;
  height: 200px;
  border-radius: 12px;
}

/* ========== Project Cards ========== */

.project-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-title i {
  color: var(--primary);
}

.urgent-badge {
  /* Urgent feature removed */
  display: none;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-card-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.project-card-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

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

.project-stat i {
  color: var(--primary);
}

.project-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ========== Quote Cards ========== */

.quotes-header,
.projects-header,
.favorites-header,
.recommendations-header {
  margin-bottom: 1.5rem;
}

.quotes-header h2,
.projects-header h2,
.favorites-header h2,
.recommendations-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quotes-subtitle,
.favorites-subtitle,
.recommendations-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quotes-filters,
.projects-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-group {
  margin-bottom: 2rem;
}

.project-group-header {
  background: linear-gradient(to right, #f8fafc, #ffffff);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.project-group-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.project-group-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}

.quote-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* ========== MICRO-ANIMATIONS 2026 ========== */
.quote-card {
  transition: all 0.2s ease;
}

.quote-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
  transform: translateY(-1px);
}

/* Activity items hover */
.activity-item {
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.activity-item:hover {
  background: #f8fafc;
}

.quote-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
}

.company-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-initials {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.company-avatar-large .company-initials {
  font-size: 1.5rem;
}

.company-info {
  flex: 1;
}

.company-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.company-rating {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.quote-status {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.quote-card-body {
  margin-bottom: 1rem;
}

.quote-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.quote-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quote-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.company-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.quote-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ========== Favorite Cards ========== */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.favorite-card {
  position: relative;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.favorite-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
  transform: translateY(-2px);
}

.favorite-remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fee;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  transition: all 0.2s;
}

.favorite-remove-btn:hover {
  background: #fcc;
  transform: scale(1.1);
}

.favorite-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.contact-btn:hover {
  border-color: var(--primary);
  background: #f0f4ff;
  color: var(--primary);
}

.favorite-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.favorite-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ========== Recommendation Cards ========== */

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.recommendation-card {
  position: relative;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.recommendation-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.2);
  transform: translateY(-4px);
}

.recommendation-card[data-score="95"],
.recommendation-card[data-score="96"],
.recommendation-card[data-score="97"],
.recommendation-card[data-score="98"],
.recommendation-card[data-score="99"],
.recommendation-card[data-score="100"] {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.recommendation-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: linear-gradient(to right, var(--slate-800), var(--slate-700));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.recommendation-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.recommendation-reasons {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.recommendation-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ========== Empty States ========== */

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ========== Section Loading ========== */

.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--primary);
}

.section-loading i {
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Buttons ========== */

/* btn-primary moved to line ~714 for consistency */
/* btn-secondary moved to line ~735 for consistency */

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8faff;
}

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

/* ========== ACTIVITY FEED - FÖRBÄTTRAD UX ========== */

/* Activity Card - Ny struktur */
.activity-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  transition: all 0.2s;
  position: relative;
  margin-bottom: 0.75rem;
}

.activity-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon med badge */
.activity-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.activity-icon svg,
.activity-lucide-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.activity-lucide-inline {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.btn-primary-action .activity-lucide-inline,
.dropdown-item .activity-lucide-inline {
  width: 1rem;
  height: 1rem;
}

/* Status badges */
.status-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-new {
  background: var(--slate-800);
  color: white;
}

.badge-urgent {
  /* Urgent feature removed */
  display: none;
}

.badge-pending {
  background: #f59e0b;
  color: white;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Content area */
.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.activity-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.activity-time {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: 0.75rem;
}

.activity-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

/* Primary action button */
.activity-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.btn-primary-action:active {
  transform: translateY(0);
}

/* Dropdown menu */
.activity-dropdown {
  position: relative;
  flex-shrink: 0;
}

.dropdown-trigger {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-trigger:hover {
  background: #f1f5f9;
  color: #64748b;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.dropdown-item.danger {
  color: #ef4444;
}

.dropdown-item.danger:hover {
  background: #fef2f2;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.25rem 0;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Legacy support för gamla klasser */
.activity-item-wrapper {
  position: relative;
}

.activity-quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-quick-actions .btn-sm {
  flex: 1;
  min-width: 100px;
  white-space: nowrap;
}

.activity-item:hover {
  background: #f8fafc !important;
}

/* ========== SIDEBAR QUICK ACTIONS - PRIORITY STYLING ========== */

.quick-actions-priority {
  background: var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: none;
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary);
}

.quick-actions-priority .section-header h3 {
  color: white !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Override styling for quick actions on dark background */
.quick-actions-priority .btn-outline,
.quick-actions-priority .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-actions-priority .btn-outline:hover,
.quick-actions-priority .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b !important;
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Primary button on dark background - clean white */
.quick-actions-priority .btn-primary {
  background: white; /* Clean white på dark background */
  color: #1e293b;
  border: none;
}

.quick-actions-priority .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ========== SIDEBAR OPTIMIZATION 2026 ========== */
.quick-actions-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-actions-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-action-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem !important;
  text-align: center;
  border-radius: 12px;
  transition: all 0.2s;
  font-size: 0.813rem !important;
  min-height: 75px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.quick-action-btn:hover {
  border-color: var(--primary);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quick-action-btn.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.quick-action-btn.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.quick-action-btn-full {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem !important;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.875rem !important;
  text-decoration: none;
}

.quick-action-btn i {
  font-size: 1.25rem;
}

.quick-action-btn-full i {
  font-size: 1rem;
}

.quick-action-btn span {
  font-weight: 600;
}

.quick-action-btn:hover,
.quick-action-btn-full:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

/* Legacy support */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ========== QUICK ACTIONS HORIZONTAL SCROLL ON MOBILE ========== */
@media (max-width: 768px) {
  /* Dölj Quick Actions på mobil - finns redan i bottom nav */
  .quick-actions-priority {
    display: none !important;
  }
}

/* ========== PROJECT HEALTH WIDGET ========== */

.project-health-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.health-header {
  margin-bottom: 1.5rem;
}

.health-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.health-score-circle {
  position: relative;
  width: 150px;
  height: 150px;
}

.health-score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.health-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.health-status {
  text-align: center;
}

.health-metrics {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.health-metric {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-progress {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.metric-progress-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Metric enhancements */
.metric-count {
  color: var(--text-muted);
  font-size: 0.688rem;
  font-weight: 400;
  margin-left: 0.25rem;
}

.metric-value-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.response-indicator {
  font-size: 1.1rem;
  line-height: 1;
}

.metric-help {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.health-next-steps {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.next-step-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.next-step-item.priority-high {
  border-left-color: #ef4444;
}

.next-step-item.priority-medium {
  border-left-color: #f59e0b;
}

.next-step-item.priority-low {
  border-left-color: var(--slate-800);
}

.step-priority-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.next-step-item span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.next-step-item i {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========== PRICE ANALYSIS WIDGET ========== */

.price-analysis-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.analysis-header {
  margin-bottom: 1.5rem;
}

.price-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-summary-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-range-visual {
  margin-bottom: 1.5rem;
}

.range-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.range-bar {
  position: relative;
  height: 40px;
  background: linear-gradient(to right, var(--slate-800), var(--slate-700));
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.range-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  cursor: help;
}

.recommended-quote {
  background: #f8fafc;
  border: 2px solid var(--slate-800);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recommendation-badge {
  background: var(--slate-800);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.recommendation-text {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.price-comparison-chart {
  margin-bottom: 1.5rem;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparison-bar-item {
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.comparison-bar-item:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

.comparison-bar-item.recommended {
  background: var(--primary)10;
  border-color: var(--primary);
}

.comparison-company {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.company-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.company-rating {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comparison-bar-container {
  position: relative;
  width: 100%;
  height: 32px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}

.comparison-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  transition: width 0.6s ease;
  border-radius: 6px;
}

.bar-price {
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lowest-badge {
  display: inline-block;
  background: var(--slate-800);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.analysis-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

/* ========== SMART RECOMMENDATIONS WIDGET ========== */

.smart-recommendations-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.recommendations-header {
  margin-bottom: 1.5rem;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.recommendation-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.recommendation-item.priority-high {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.recommendation-item.priority-medium {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.recommendation-item.priority-low {
  border-left: 4px solid var(--slate-800);
  background: #f8fafc;
}

.recommendation-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
}

.recommendation-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recommendation-meta-item i {
  font-size: 0.875rem;
  color: #94a3b8;
}

.recommendation-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.recommendation-content {
  flex: 1;
  min-width: 0;
}

.recommendation-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.recommendation-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.recommendation-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.recommendation-action:hover {
  gap: 0.75rem;
}

.recommendation-action i {
  font-size: 0.75rem;
}

/* ========== Emergency Cards ========== */

.emergency-card {
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.emergency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.emergency-badge {
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.emergency-status {
  font-size: 0.875rem;
  color: #991b1b;
  font-weight: 600;
}

.emergency-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7f1d1d;
  margin-bottom: 1rem;
}

.emergency-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #991b1b;
}

.emergency-info {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.emergency-responses {
  margin-top: 1rem;
}

.emergency-response {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.response-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.response-availability {
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.response-price {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.response-actions {
  display: flex;
  gap: 0.5rem;
}

.emergency-tips {
  background: #f0f9ff;
  border: 1px solid #f0f9ff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.waiting-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #fffbeb;
  border-radius: 8px;
  color: #92400e;
  font-weight: 500;
}

/* ========== Toast Notifications ========== */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========== Responsive Design ========== */

/* ========== TABLET OPTIMIZATION (768-1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr 280px; /* Smalare sidebar på tablet */
    gap: 1.25rem; /* Matchar desktop gap */
  }

  .dashboard-container {
    padding: 1.5rem 1rem;
  }

  .hero-cta-text h2 {
    font-size: 1rem; /* Mindre på tablet */
  }

  .hero-cta-text p {
    font-size: 0.813rem;
  }

  .stat-card {
    padding: 1rem; /* Mindre padding på tablet */
  }
}

/* ========== SMALLER DESKTOP (1024-1280px) ========== */
@media (min-width: 1025px) and (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr 320px; /* Smalare sidebar */
  }
}

@media (max-width: 1024px) {
  /* Inte .dashboard-container-old — den ska vara dold ≥769px (se layout visibility ovan) */
  .dashboard-container:not(.dashboard-container-old) {
    display: flex !important; /* Override grid på tablet/mobil */
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Reset empty state specifika regler på tablet/mobil */
  .dashboard-container > #emptyStateContainer,
  .dashboard-container > .dashboard-layout {
    grid-column: unset;
  }
  
  .dashboard-container:has(#emptyStateContainer:not(:empty)) > .dashboard-layout {
    display: flex;
    flex-direction: column;
  }
  
  .dashboard-container:has(#emptyStateContainer:not(:empty)) > .dashboard-layout .dashboard-main {
    display: flex; /* Visa main content på mobil/tablet */
    flex-direction: column;
  }
}

  /* ========== MOBIL CONTENT REORDERING ========== */
  /* Sätt order för optimal mobil-prioritering */
  
  /* Dashboard header alltid först (order: -100 implicit) */
  .dashboard-header {
    order: -100;
  }

  /* Hero CTA (dold på mobil men order för säkerhets skull) */
  .hero-cta-container {
    order: -90;
  }

  /* 📱 MOBILE APP-FIRST DASHBOARD - HÖGSTA PRIORITET! */
  #mobileDashboardContent {
    order: -85;
  }

  /* Quick Actions DIREKT efter header - HÖGSTA PRIORITET */
  .quick-actions-priority {
    order: -80;
  }

  /* Stats Grid efter Quick Actions */
  .stats-grid {
    order: -70;
  }

  /* Dashboard layout (main + sidebar) */
  .dashboard-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    order: -60;
  }

  .dashboard-main {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .dashboard-sidebar {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  /* Flytta Kommande möten från sidebar till tidigt i main flow */
  .dashboard-sidebar > .dashboard-section:has(#upcomingMeetings) {
    order: -15;
  }

  /* Smart Recommendations */
  #smartRecommendationsWidget {
    order: -10;
  }

  /* Väntande offerter */
  .quotes-priority-section {
    order: 0;
  }

  /* Senaste aktivitet */
  .dashboard-main > .dashboard-section:has(#activityFeed) {
    order: 5;
  }

  /* AI Recommendations */
  #aiRecommendationsSection {
    order: 10;
  }

  /* Customer Info Widget (reklam) - längst ner i main content */
  #customerInfoWidget {
    order: 15;
  }

  /* Onboarding Progress - högst upp i sidebar flow */
  #onboardingProgressWidget {
    order: -25;
  }

  /* Project Health & Price Analysis - sist */
  #projectHealthWidget {
    order: 20;
  }

  #priceAnalysisWidget {
    order: 25;
  }

  .hero-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .hero-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-text h2 {
    font-size: 1.5rem;
  }

  .hero-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .price-summary {
    grid-template-columns: 1fr;
  }

  .health-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-container,
  .dashboard-container-old {
    padding: 0.5rem calc(0.5rem + var(--safe-area-inset-left)) calc(1rem + var(--safe-area-inset-bottom)) calc(0.5rem + var(--safe-area-inset-right));
    /* Placeholder = header-clearance; bara tunn andning under headern */
    margin-top: 0;
  }

  .dashboard-header {
    padding: 1.5rem;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  /* ========== MOBIL CONTENT STYLING ========== */
  
  /* Kompakt styling för Kommande möten på mobil */
  .dashboard-sidebar > .dashboard-section:has(#upcomingMeetings) {
    background: linear-gradient(135deg, #f0f9ff 0%, #f0f9ff 100%);
    padding: 1rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
  }

  .dashboard-sidebar > .dashboard-section:has(#upcomingMeetings) .section-header h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Göm Onboarding Progress på mycket små skärmar (finns i More menu) */
  #onboardingProgressWidget {
    display: none;
  }

  .stat-card {
    padding: 1rem !important;
    font-size: 0.9rem;
  }
  
  .stat-card h3 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  /* ========== MINIMAL STATS-KORT FÖR MOBIL ========== */
  .stat-card-minimal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    min-height: 120px !important;
    text-decoration: none !important;
    color: inherit !important;
  }

  .stat-card-minimal:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border-color: #d1d5db !important;
  }

  .stat-card-minimal i {
    font-size: 1.75rem !important;
    color: #6b7280 !important;
    margin-bottom: 0.75rem !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
  }

  .stat-card-minimal .stat-value {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
  }

  .stat-card-minimal .stat-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  /* Dölj gamla element på mobil */
  .stat-card-minimal .stat-card-icon,
  .stat-card-minimal .stat-card-status,
  .stat-card-minimal .stat-card-hint,
  .stat-card-minimal .stat-card-sublabel,
  .stat-card-minimal .stat-trend,
  .stat-card-minimal .notif-preview-list {
    display: none !important;
  }

  .quotes-grid,
  .projects-grid,
  .favorites-grid,
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .project-card-actions,
  .quote-card-actions,
  .favorite-card-actions,
  .recommendation-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .project-card-meta,
  .emergency-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* ========== HERO CTA OPTIMIZATION ========== */
  /* Dölj på mobil - FAB ersätter denna funktion */
  .hero-cta-container {
    display: none;
  }

  /* Alternativ: Behåll men gör mycket kompakt */
  /* Uncommenta nedan om användaren föredrar att behålla den
  .hero-cta {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .hero-cta-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .hero-cta-text h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .hero-cta-text p {
    font-size: 0.813rem;
    display: none; // Dölj beskrivningen
  }

  .hero-cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  */

  /* Mobile-specific improvements */
  .dashboard-section {
    padding: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .activity-quick-actions {
    flex-direction: column;
  }

  .activity-quick-actions .btn-sm {
    width: 100%;
  }

  /* ========== PROJECT HEALTH MOBILE OPTIMIZATION ========== */
  
  .project-health-widget {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .project-health-widget .health-header h3 {
    font-size: 1.125rem;
  }
  
  /* Project selector mobiloptimering */
  .project-selector {
    font-size: 0.875rem !important;
    padding: 0.625rem !important;
    min-height: 44px; /* iOS touch target */
  }
  
  /* Score circle anpassning */
  .health-score-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .health-score-circle {
    width: 120px;
    height: 120px;
  }

  .health-score-value span:first-child {
    font-size: 1.5rem;
  }
  
  /* Status badge mobilvy */
  .health-status {
    width: 100%;
  }
  
  .health-status .status-badge {
    font-size: 0.875rem !important;
    padding: 0.625rem 1rem !important;
  }
  
  /* Metrics stacking */
  .health-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .health-metric {
    width: 100%;
    padding: 0.875rem;
  }
  
  .metric-label {
    font-size: 0.688rem;
    margin-bottom: 0.375rem;
  }
  
  .metric-value {
    font-size: 1rem;
    font-weight: 600;
  }
  
  /* Progress bar full bredd på mobil */
  .metric-progress {
    margin-top: 0.5rem;
    height: 6px;
    background: var(--border-light);
    border-radius: 99px;
    overflow: hidden;
  }
  
  .metric-progress-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
  }
  
  /* Minimalistisk metric help på mobil */
  .metric-help {
    font-size: 0.688rem;
    margin-top: 0.375rem;
  }
  
  .metric-count {
    display: block;
    margin-left: 0;
    margin-top: 0.125rem;
  }
  
  .response-indicator {
    font-size: 1rem;
  }
  
  /* Next steps mobiloptimering */
  .health-next-steps h4 {
    font-size: 0.938rem;
    margin-bottom: 0.625rem;
  }
  
  .next-step-item {
    padding: 1rem;
    font-size: 0.875rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
  }
  
  .next-step-item:active {
    transform: scale(0.98);
    background: #f8fafc;
  }
  
  /* Loading & error states */
  .project-health-widget.loading-state,
  .project-health-widget.error-state {
    min-height: 200px;
  }
  
  .project-health-widget .btn-secondary {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
  }

  .price-analysis-widget,
  .smart-recommendations-widget {
    padding: 1.25rem;
  }

  .comparison-bar {
    padding-right: 0.5rem;
  }

  .bar-price {
    font-size: 0.75rem;
  }

  .recommendation-item {
    flex-direction: column;
    text-align: center;
  }

  .recommendation-icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .quotes-filters,
  .projects-filters {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .dashboard-container {
    padding: 0.75rem 0.25rem;
  }

  .dashboard-header {
    padding: 1rem;
    border-radius: 12px;
  }

  .dashboard-header h1 {
    font-size: 1.25rem;
  }

  .dashboard-header p {
    font-size: 0.875rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card-value {
    font-size: 1.75rem;
  }

  /* Hero CTA redan dold på mobil via @media (max-width: 768px) */

  .dashboard-section {
    padding: 1rem;
    border-radius: 8px;
  }

  .section-header h2 {
    font-size: 1.125rem;
  }

  /* Optimize touch targets */
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-sm {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .stat-card-clickable {
    min-height: 120px;
  }

  .activity-item {
    padding: 0.875rem !important;
  }

  .next-step-item,
  .recommendation-item {
    padding: 0.875rem;
  }

  .comparison-bar-item {
    padding: 0.75rem 0.5rem;
  }

  /* Reduce spacing on small screens */
  .stats-grid,
  .recommendations-list,
  .next-steps-list {
    gap: 0.75rem;
  }

  .health-metrics,
  .price-summary {
    gap: 0.75rem;
  }
  
  /* Ultra-kompakt metric help för små skärmar */
  .metric-help {
    font-size: 0.625rem;
  }
  
  .response-indicator {
    font-size: 0.875rem;
  }
  
  /* Project Health ultra-compact för små skärmar */
  .project-health-widget {
    padding: 0.875rem;
  }
  
  .health-score-circle {
    width: 100px;
    height: 100px;
  }
  
  .health-score-value span:first-child {
    font-size: 1.25rem;
  }
  
  .health-score-value span:last-child {
    font-size: 0.75rem;
  }
  
  .health-metric {
    padding: 0.75rem;
  }
  
  .metric-label {
    font-size: 0.625rem;
  }
  
  .metric-value {
    font-size: 0.938rem;
  }
  
  .next-step-item {
    padding: 0.875rem;
    font-size: 0.813rem;
  }
}

/* ========== RESPONSIVE STATS GRID BREAKPOINTS ========== */

/* Stats Grid: 2 kolumner på mycket små mobiler */
@media (max-width: 389px) {
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  
  .stat-card-minimal {
    padding: 1rem 0.5rem !important;
    min-height: 120px !important;
  }
  
  .stat-card-minimal i {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    color: #6b7280 !important;
  }
  
  .stat-card-minimal .stat-value {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .stat-card-minimal .stat-label {
    font-size: 0.75rem !important;
  }
}

/* Stats Grid: 3 kolumner på iPhone 12 Pro och större mobiler */
@media (min-width: 390px) and (max-width: 768px) {
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  /* Kompaktare design för 3 kolumner */
  .stat-card-minimal {
    padding: 0.75rem 0.375rem !important;
    min-height: 110px !important;
  }
  
  .stat-card-minimal i {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    color: #6b7280 !important;
  }
  
  .stat-card-minimal .stat-value {
    font-size: 1.5rem !important;
    margin-bottom: 0.375rem !important;
    font-weight: 700 !important;
  }
  
  .stat-card-minimal .stat-label {
    font-size: 0.625rem !important;
    line-height: 1.2 !important;
  }
}

/* ========== MOBILE-SPECIFIC ENHANCEMENTS ========== */

/* Pull-to-refresh hint */
@media (max-width: 768px) {
  body {
    overscroll-behavior-y: contain;
  }

  /* Improved touch feedback */
  .stat-card-clickable:active,
  .btn-primary:active,
  .btn-secondary:active,
  .activity-item:active,
  .next-step-item:active,
  .recommendation-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
}


/* ================================================
   QUOTES PRIORITY SECTION - NEW
   ================================================ */

.quotes-priority-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #1e293b;
}

.quotes-priority-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quotes-priority-section .section-header h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.quotes-priority-section .section-header a {
  color: #1e293b;
  opacity: 0.7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.quotes-priority-section .section-header a:hover {
  opacity: 1;
}

/* Compact Quote Cards */
.quotes-compact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-compact-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.quote-compact-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* ✨ FÖRBÄTTRING: Gamla offerter highlight */
.quote-compact-card.quote-old {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.quote-compact-card.quote-very-old {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

/* Ny offert - Glow effect */
.quote-compact-card.quote-new-glow {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5),
                0 8px 24px rgba(59, 130, 246, 0.2);
  }
}

/* Ny offert badge */
.quote-new-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  z-index: 10;
}

/* Varning för gamla offerter */
.quote-warning-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  z-index: 10;
}

.quote-warning-badge i {
  margin-right: 0.25rem;
}

/* Position relative för badges */
.quote-compact-card {
  position: relative;
}

/* Text warning color */
.text-warning {
  color: #f59e0b !important;
  font-weight: 600;
}

/* Quote tip banner */
.quote-tip-banner {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.quote-company-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.quote-company-info img,
.quote-company-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.company-logo-fallback {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  border-radius: 50%;
  aspect-ratio: 1;
  background: var(--slate-800);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
}

.quote-company-info > div {
  flex: 1;
  min-width: 0;
}

.quote-company-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-project {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.quote-price-badge {
  text-align: right;
  flex-shrink: 0;
}

.quote-price-badge .price {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.2;
}

.quote-price-badge .vat {
  font-size: 0.75rem;
  color: #64748b;
}

.quote-compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quote-actions-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.quote-actions-more {
  position: relative;
  flex: 0 0 auto;
}

.quote-actions-more > summary {
  list-style: none;
  cursor: pointer;
}

.quote-actions-more > summary::-webkit-details-marker {
  display: none;
}

.quote-actions-more-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  min-width: 11rem;
}

/* Mobil/tablet: 2×2 — Granska | Acceptera / Jämför | Mer (inte tre höga rader) */
@media (max-width: 1024px) {
  .quote-compact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
  }

  .quote-actions-primary {
    display: contents;
  }

  .quote-actions-primary .quote-action-primary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .quote-actions-more {
    width: auto;
    min-width: 0;
    align-self: stretch;
  }

  .quote-actions-more-toggle,
  .quote-actions-more > summary {
    width: 100%;
    height: 100%;
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }

  .quote-actions-more[open] {
    grid-column: 1 / -1;
  }

  .quote-actions-more-menu {
    width: 100%;
    position: static;
    box-shadow: none;
    margin-top: 0.45rem;
  }

  .quote-actions-more-menu .btn-sm,
  .quote-actions-more-menu .btn-quick-action {
    width: 100%;
    justify-content: center;
  }
}

.quote-compact-actions .btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.quote-compact-actions .btn-sm.btn-outline {
  background: white;
  color: #475569;
  border: 1px solid var(--border-light);
}

.quote-compact-actions .btn-sm.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.quote-compact-actions .btn-sm.btn-success {
  background: var(--slate-800);
  color: white;
}

.quote-compact-actions .btn-sm.btn-success:hover {
  background: var(--slate-700);
}

.quote-compact-actions .btn-sm.btn-secondary {
  background: #64748b;
  color: white;
}

.quote-compact-actions .btn-sm.btn-secondary:hover {
  background: #475569;
}

.quote-compact-actions .btn-sm.btn-primary {
  background: #2563eb;
  color: #fff;
}

.quote-compact-actions .btn-sm.btn-primary:hover {
  background: #1d4ed8;
}

.quote-compact-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.quote-compact-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.quote-compact-meta i {
  color: #94a3b8;
}

.empty-quotes {
  text-align: center;
  padding: 2rem;
  color: white;
  opacity: 0.8;
}

/* Hide old empty-quotes if compact version exists */
.empty-quotes:has(+ .empty-quotes-compact),
.empty-quotes .empty-quotes-compact ~ .empty-timeline {
  display: none;
}

.empty-quotes i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-quotes p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ========== EMPTY STATE TIMELINE (Legacy - for desktop fallback) ========== */

.empty-timeline {
  background: white;
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

/* Hide old timeline on mobile - replaced by compact version */
@media (max-width: 768px) {
  .empty-quotes .empty-timeline {
    display: none;
  }
}

.timeline-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.2s;
}

.timeline-step.completed {
  background: #f8fafc;
}

.timeline-step.active {
  background: #f0f9ff;
  border: 2px solid #3b82f6;
}

.timeline-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--border-light);
  color: #64748b;
  flex-shrink: 0;
}

.timeline-step.completed .timeline-step-icon {
  background: var(--slate-800);
  color: white;
}

.timeline-step.active .timeline-step-icon {
  background: #3b82f6;
  color: white;
}

/* ========== EMPTY QUOTES COMPACT (Mobile-First) ========== */

.empty-quotes-compact {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.empty-compact-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.empty-compact-header i {
  font-size: 2rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.empty-compact-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.empty-compact-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Progress Bar */
.quote-progress-bar {
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--slate-800);
  border-radius: 99px;
  transition: width 0.6s ease-out;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.progress-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

.progress-time {
  font-weight: 600;
  color: #3b82f6;
}

/* Compact Tip */
.empty-compact-tip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-light);
}

.tip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tip-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.tip-content strong {
  font-size: 0.938rem;
  color: #1e293b;
  font-weight: 600;
}

.tip-content span {
  font-size: 0.813rem;
  color: #64748b;
}

/* Compact Action */
.empty-compact-action {
  margin-bottom: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1rem;
  text-decoration: none;
}

/* Compact Footer */
.empty-compact-footer {
  text-align: center;
  font-size: 0.813rem;
  color: #94a3b8;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Desktop: Add more detail */
@media (min-width: 769px) {
  .empty-quotes-compact {
    padding: 2rem;
  }
  
  .empty-compact-header h3 {
    font-size: 1.25rem;
  }
  
  .empty-compact-header p {
    font-size: 0.938rem;
  }
  
  .progress-bar-container {
    height: 10px;
  }
  
  .progress-bar-labels {
    font-size: 0.813rem;
  }
  
  .empty-compact-tip {
    padding: 1.25rem 1.5rem;
  }
  
  .tip-content strong {
    font-size: 1rem;
  }
  
  .tip-content span {
    font-size: 0.875rem;
  }
}

/* Mobile: Ultra-compact */
@media (max-width: 480px) {
  .empty-quotes-compact {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  .empty-compact-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .empty-compact-header i {
    font-size: 1.5rem;
  }
  
  .empty-compact-header h3 {
    font-size: 1rem;
  }
  
  .empty-compact-header p {
    font-size: 0.813rem;
  }
  
  .quote-progress-bar {
    margin-bottom: 1rem;
  }
  
  .empty-compact-tip {
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .tip-icon {
    font-size: 1.75rem;
  }
  
  .tip-content strong {
    font-size: 0.875rem;
  }
  
  .tip-content span {
    font-size: 0.75rem;
  }
  
  .btn-block {
    padding: 0.75rem;
    font-size: 0.938rem;
  }
  
  .empty-compact-footer {
    font-size: 0.75rem;
    padding-top: 0.75rem;
  }
}

/* ========== QUOTE SORTING ========== */

.quote-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.quote-sort-dropdown {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quote-sort-dropdown:hover {
  border-color: #cbd5e1;
}

.quote-sort-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========== SMART TIP BANNER ========== */

.smart-tip-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  border-left: 4px solid #3b82f6;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.smart-tip-banner i {
  color: #3b82f6;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.smart-tip-banner strong {
  color: #1e40af;
}

.smart-tip-banner p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.view-all-quotes {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.view-all-quotes:hover {
  opacity: 0.7;
}

/* Loading state in quotes widget */
.quotes-priority-section .section-loading {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.quotes-priority-section .section-loading i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

/* Mobile responsiveness for quotes */
@media (max-width: 768px) {
  .quote-compact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .quote-price-badge {
    text-align: left;
    width: 100%;
  }

  .quote-compact-card {
    padding: 1rem;
  }

  .quote-actions-primary .btn-sm {
    width: 100%;
    justify-content: center;
  }
  
  .quote-compact-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========================================
   Welcome Onboarding Modal
   ======================================== */

.welcome-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome-modal {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  color: #64748b;
  font-size: 1.25rem;
  z-index: 1;
}

.welcome-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1e293b;
  transform: rotate(90deg);
}

.welcome-modal-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 24px 24px 0 0;
}

.welcome-modal-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.welcome-modal-header p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
}

.welcome-steps {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.welcome-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.welcome-step:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}

.welcome-step-highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fef3c7 100%);
  border-color: #fbbf24;
}

.welcome-step-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
}

.welcome-step-highlight .welcome-step-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.welcome-step-content {
  flex: 1;
}

.welcome-step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.welcome-step-content p {
  margin: 0 0 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

.welcome-step-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-800);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 20px;
}

.welcome-step-highlight .welcome-step-time {
  color: #d97706;
  background: rgba(217, 119, 6, 0.15);
}

.welcome-footer {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 0 0 24px 24px;
}

.welcome-trust-signals {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.welcome-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.95rem;
}

.welcome-trust-item i {
  font-size: 1.25rem;
}

.welcome-cta-primary {
  width: 100%;
  background: var(--slate-800);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.welcome-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.welcome-cta-secondary {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.welcome-cta-secondary:hover {
  color: #1e293b;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .welcome-modal-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .welcome-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .welcome-modal-header p {
    font-size: 1rem;
  }
  
  .welcome-steps {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  
  .welcome-step {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  
  .welcome-step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .welcome-footer {
    padding: 1.5rem 1rem;
  }
  
  .welcome-trust-signals {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .welcome-cta-primary {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* ========================================
   Positive Empty States
   ======================================== */

.empty-state-positive {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, var(--border-light) 100%);
  border-radius: 16px;
}

.empty-state-tips {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.empty-state-tips li {
  margin-bottom: 0.5rem;
  text-align: left;
  color: #475569;
}

.empty-state-tips li:before {
  content: "→ ";
  color: var(--slate-800);
  font-weight: bold;
  margin-right: 0.25rem;
}

.project-tag {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 2px solid var(--border-light);
  display: inline-block;
  transition: all 0.2s;
}

.project-tag:hover {
  border-color: var(--slate-800);
  transform: translateY(-2px);
}

.popular-projects {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .empty-state-positive {
    padding: 2rem 1rem;
  }
  
  .empty-state-tips {
    padding: 1rem;
  }
  
  .project-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ========== SKELETON SCREENS ========== */

.skeleton-container {
  padding: 0;
}

.skeleton-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-65 { width: 65%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-90 { width: 90%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== EMPTY STATES ========== */

/* Removed large empty state cards - now using minimal design */

/* ========== ACTIVITY EMPTY STATE TIMELINE ========== */

.activity-empty-state {
  padding: 1rem 0;
}

.empty-timeline {
  position: relative;
  padding-left: 2rem;
}

.empty-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-icon {
  position: absolute;
  left: -2rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-outline-sm:hover {
  background: var(--primary);
  color: white;
}

/* ========== NEWS FEED ========== */

.news-feed-section {
  background: var(--primary);
  color: white;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--primary);
}

.news-feed-section .section-header h2 {
  color: white;
}

.news-feed-section .section-header .btn-text {
  color: white;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.news-feed-section .section-header .btn-text:hover {
  opacity: 1;
}

.btn-text {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

/* Seasonal Tip Banner */
.seasonal-tip-banner {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.seasonal-tip-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.seasonal-tip-content {
  flex: 1;
}

.seasonal-tip-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.seasonal-tip-content p {
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0;
}

.btn-white-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-white-outline:hover {
  background: white;
  color: var(--primary);
}

/* News List */
.news-list {
  display: grid;
  gap: 0.75rem; /* Minskat från 1rem */
}

.news-card {
  background: white;
  border-radius: 8px; /* Minskat från 12px */
  padding: 1rem; /* Minskat från 1.5rem */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; /* Minskat från 0.75rem */
}

.news-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem; /* Minskat från 0.25rem 0.75rem */
  background: var(--slate-800);
  color: white;
  border-radius: 10px; /* Minskat från 12px */
  font-size: 0.7rem; /* Minskat från 0.75rem */
  font-weight: 600;
}

.news-date {
  font-size: 0.7rem; /* Minskat från 0.75rem */
  color: var(--text-muted);
}

.news-card h3 {
  font-size: 0.95rem; /* Minskat från 1.125rem */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem; /* Minskat från 0.5rem */
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.8rem; /* Minskat från 0.875rem */
  line-height: 1.4; /* Minskat från 1.5 */
  margin-bottom: 0.5rem; /* Minskat från 0.75rem */
}

.news-card-footer {
  display: flex;
  justify-content: flex-end;
}

.news-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.news-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: white;
}

.news-empty-state i {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.news-empty-state p {
  margin: 0;
  opacity: 0.8;
}

/* ========== TIPS CAROUSEL ========== */

.tips-carousel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* Minskat från 12px */
  padding: 1rem; /* Minskat från 1.5rem */
  margin-top: 0.75rem; /* Minskat från 1rem */
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tips-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem; /* Minskat från 1rem */
}

.tips-carousel-header h4 {
  font-size: 0.875rem; /* Minskat från 1rem */
  font-weight: 600;
  margin: 0;
}

.tips-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.tip-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.tips-carousel-content {
  transition: opacity 0.3s;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInTip 0.5s forwards;
}

@keyframes fadeInTip {
  to { opacity: 1; }
}

.tip-icon {
  font-size: 1.5rem; /* Minskat från 2rem */
  flex-shrink: 0;
}

.tip-content h4 {
  font-size: 0.875rem; /* Minskat från 1rem */
  font-weight: 600;
  margin-bottom: 0.2rem; /* Minskat från 0.25rem */
}

.tip-content p {
  font-size: 0.8rem; /* Minskat från 0.875rem */
  opacity: 0.9;
  margin-bottom: 0.5rem; /* Minskat från 0.75rem */
}

.tip-cta {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.tip-cta:hover {
  opacity: 0.8;
}

/* ========== NEWS MODAL ========== */

.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.news-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.news-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.news-modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.news-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.news-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

.news-modal-body .seasonal-tip-banner,
.news-modal-body .tips-carousel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

/* ========== CUSTOMER INFO & ADS WIDGET ========== */

/* Customer Info Cards - Carousel Style */
.customer-info-section {
  margin: 2rem 0;
}

/* Section Header - Inline med dots */
.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Carousel Container */
.info-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.info-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  
  /* Hide scrollbar men behåll funktionalitet */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-carousel::-webkit-scrollbar {
  display: none;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

/* Card - Base styles */
.customer-info-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: fit-content;
}

/* Card - Collapsed State (Default) */
.customer-info-card.collapsed {
  flex: 0 0 320px;
  max-height: none;
}

/* Card - Expanded State */
.customer-info-card.expanded {
  flex: 0 0 420px;
  max-height: none;
}

/* Type-specific colors */
.customer-info-card.type-info {
  border-left-color: #3b82f6;
}

.customer-info-card.type-tips {
  border-left-color: #f59e0b;
}

.customer-info-card.type-offer {
  border-left-color: var(--slate-800);
}

.customer-info-card.type-news {
  border-left-color: #8b5cf6;
}

/* Banner-bild med transition */
.card-banner {
  width: 100%;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Body */
.card-body {
  padding: 1rem;
}

.customer-info-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.customer-info-card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.customer-info-card.type-info .card-icon { 
  background: #f0f9ff; 
  color: #3b82f6; 
}

.customer-info-card.type-tips .card-icon { 
  background: #fef3c7; 
  color: #f59e0b; 
}

.customer-info-card.type-offer .card-icon { 
  background: #f8fafc; 
  color: var(--slate-800); 
}

.customer-info-card.type-news .card-icon { 
  background: #ede9fe; 
  color: #8b5cf6; 
}

.customer-info-card .card-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}

/* Titel - Truncated i collapsed */
.customer-info-card.collapsed .card-content h4 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.customer-info-card.expanded .card-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

/* Text - 3 rader i collapsed, full i expanded */
.customer-info-card.collapsed .card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 0;
  max-height: 4rem;
}

.customer-info-card.expanded .card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

.customer-info-card .card-content p a {
  color: #3b82f6;
  text-decoration: underline;
}

.customer-info-card .card-content p a:hover {
  color: #2563eb;
}

/* Läs mer/mindre knapp */
.btn-read-more {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-read-more:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
}

/* CTA visas endast i expanded */
.customer-info-card.collapsed .card-cta {
  display: none;
}

.customer-info-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.customer-info-card.expanded .card-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.customer-info-card .card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* ========== MODAL NAVIGATION ========== */

.modal-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1.5rem;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #64748b;
}

.nav-btn:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #3b82f6;
}

.nav-btn:active {
  transform: scale(0.95);
}

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

.nav-btn:disabled:hover {
  background: white;
  border-color: #e5e7eb;
  color: #64748b;
}

.page-indicator {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  .customer-info-card.collapsed {
    flex: 0 0 280px;
  }
  
  .customer-info-card.expanded {
    flex: 0 0 340px;
  }
  
  .section-header-inline h3 {
    font-size: 1.1rem;
  }
  
  .carousel-dots {
    gap: 0.4rem;
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
  }
  
  .carousel-dot.active {
    width: 18px;
  }
  
  /* ========== MOBILE CAMPAIGN PILL ========== */
  
  /* Hide desktop carousel on mobile */
  .info-carousel-container {
    display: none !important;
  }
  
  .section-header-inline {
    display: none !important;
  }
  
  /* ========== MOBIL KAMPANJ-ROTATOR ========== */

  .campaign-mobile-rotator {
    margin-bottom: 0.75rem;
  }

  .campaign-mobile-viewport {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    touch-action: pan-y;
  }

  .campaign-mobile-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .campaign-card-mobile {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
    box-shadow: none;
    background: #0f172a;
  }

  .campaign-card-mobile:active {
    opacity: 0.96;
  }

  /* Media: hela bannern syns (contain) — samma strategi som modal */
  .campaign-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 168px;
    max-height: 220px;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
  }

  .campaign-card-mobile.has-image .campaign-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background: #0f172a;
  }

  .campaign-card-mobile.has-image .campaign-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.72) 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  .campaign-card-mobile.no-image[data-type="tips"] .campaign-card-media {
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  }

  .campaign-card-mobile.no-image[data-type="offer"] .campaign-card-media {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  }

  .campaign-card-mobile.no-image[data-type="news"] .campaign-card-media {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  }

  .campaign-card-mobile.no-image[data-type="info"] .campaign-card-media {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  }

  .campaign-card-content {
    position: relative;
    z-index: 3;
    padding: 0.9rem 1rem 1rem;
    color: white;
    width: 100%;
    padding-right: 4.25rem; /* plats för sponsor-logo */
  }

  .campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .campaign-badge i {
    font-size: 0.8rem;
  }

  .campaign-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .campaign-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.95;
  }

  .campaign-cta i {
    transition: transform 0.3s ease;
  }

  .campaign-card-mobile:hover .campaign-cta i {
    transform: translateX(4px);
  }

  .campaign-sponsor-logo {
    position: absolute;
    bottom: 0.85rem;
    right: 0.85rem;
    width: 52px;
    height: 52px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  }

  .campaign-sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .campaign-mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
  }

  .campaign-mobile-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
  }

  .campaign-mobile-dot.active {
    width: 20px;
    background: var(--primary, #1e3a5f);
  }
  
  /* Legacy pill support (backwards compatibility) */
  .campaign-pill-mobile {
    display: none !important;
  }
  
  .pill-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }
  
  .pill-content {
    flex: 1;
  }
  
  .pill-title {
    font-size: 0.938rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .pill-cta {
    font-size: 0.813rem;
    opacity: 0.9;
  }
  
  .seasonal-tip-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .btn-white-outline {
    width: 100%;
  }
  
  .news-card {
    padding: 0.875rem; /* Minskat från 1.25rem */
  }
  
  .news-feed-section {
    padding: 1rem; /* Kompakt på mobil */
  }
  
  .tips-carousel {
    padding: 0.875rem; /* Minskat från 1.25rem */
  }
  
  .tip-card {
    flex-direction: column;
    text-align: center;
  }
  
  .empty-timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-icon {
    width: 32px;
    height: 32px;
    left: -1.5rem;
    font-size: 0.875rem;
  }
}

/* ========== COLLAPSIBLE SECTIONS ========== */

.collapsible-header {
  position: relative;
}

.collapse-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(30, 41, 59, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.collapse-btn:hover {
  background: rgba(30, 41, 59, 0.1);
  color: var(--text-primary);
}

.collapse-btn:active {
  transform: scale(0.95);
}

.collapse-btn i {
  font-size: 0.875rem;
  transition: transform 0.3s;
}

/* Collapsed state */
[data-collapsible="true"].collapsed {
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

[data-collapsible="true"].collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

[data-collapsible="true"].collapsed .section-header ~ * {
  opacity: 0.3;
}

/* Visa collapse-btn endast på mobil */
@media (min-width: 769px) {
  .collapse-btn {
    display: none;
  }
}

/* ========== SWIPE GESTURES ========== */

.swipe-actions {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--slate-800);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.swipe-action {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}

.swipe-action i {
  font-size: 1.25rem;
}

.swipe-action-accept {
  background: var(--slate-800);
}

.swipe-action-view {
  background: #3b82f6;
}

.swipe-action-reject {
  background: #ef4444;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  z-index: 10000;
  min-width: 200px;
  transform: translate(-50%, -100%);
  margin-top: -10px;
}

.context-menu button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.938rem;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.context-menu button:hover,
.context-menu button:active {
  background: #f1f5f9;
}

.context-menu button.danger {
  color: #ef4444;
}

.context-menu button.danger:hover,
.context-menu button.danger:active {
  background: #fee2e2;
}

.context-menu i {
  width: 20px;
  text-align: center;
  color: var(--text-secondary);
}

.context-menu button.danger i {
  color: #ef4444;
}

/* ========== MOBILE UX ENHANCEMENTS ========== */

/* Ensure all touch targets are at least 44x44px (Apple HIG & Material Design) */
@media (max-width: 768px) {
  
  /* Button touch targets */
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-sm,
  button:not(.icon-only) {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  /* Smaller buttons in compact layouts still need good touch */
  .btn-sm {
    min-height: 40px;
    padding: 0.625rem 1rem;
    font-size: 0.938rem;
  }

  /* Quote card actions — primary grid + Mer (se max-width 1024-regler ovan) */
  .quote-compact-actions {
    gap: 0.6rem;
  }

  .quote-actions-primary .btn-sm {
    min-height: 44px;
  }

  /* Stats cards - larger hit areas */
  .stat-card {
    padding: 1.5rem;
    min-height: 140px;
  }

  .stat-card-value {
    font-size: 2.5rem;
  }

  /* Notification bell - larger tap area */
  .notification-icon-btn {
    width: 48px;
    height: 48px;
  }

  /* Filter buttons - easier to tap */
  .filter-btn,
  .quotes-filters button,
  .projects-filters button {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    font-size: 0.938rem;
  }

  /* Action cards */
  .action-card {
    padding: 1.25rem;
  }

  .action-card h3 {
    font-size: 1.125rem;
  }

  /* Increased text size for readability */
  body {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Dashboard header */
  .dashboard-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  /* Section spacing */
  .dashboard-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Empty state badges - better positioning on mobile */
  .quote-new-badge,
  .quote-warning-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  /* Improved scroll for horizontal content */
  .example-tags {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
  }

  .example-tag {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Modal improvements */
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Better spacing for lists */
  .activity-item,
  .timeline-item {
    padding: 1rem;
  }

  /* Activity card mobil-anpassning */
  .activity-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  /* Fix badge overflow on mobile */
  .status-badge {
    position: static;
    display: inline-block;
    margin-top: 0.25rem;
    margin-left: 0;
    white-space: nowrap;
  }
  
  .activity-icon-wrapper {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .activity-time {
    margin-left: 0;
    margin-top: 0.25rem;
  }
  
  .btn-primary-action {
    width: 100%;
    justify-content: center;
  }
  
  .activity-dropdown {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  /* Card hover effects removed on mobile (no hover state) */
  .stat-card:hover,
  .action-card:hover,
  .quote-compact-card:hover {
    transform: none;
  }

  /* Active state instead of hover */
  .stat-card:active,
  .action-card:active,
  .quote-compact-card:active {
    opacity: 0.8;
    transition: opacity 0.1s;
  }

  /* Safe area for notched devices */
  .dashboard-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  /* Sticky header adjustment for notched devices */
  .dashboard-header.sticky {
    top: env(safe-area-inset-top);
  }

  /* Prevent text selection on buttons (improves perceived responsiveness) */
  button,
  .btn,
  .action-card {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Better focus states for accessibility */
  button:focus,
  a:focus,
  input:focus {
    outline: 3px solid var(--slate-800);
    outline-offset: 2px;
  }
}

/* Extra small devices (< 480px) */
@media (max-width: 389px) {
  
  /* Reduce padding even more on very small screens */
  .dashboard-container {
    padding: 0.75rem 0.5rem;
  }

  .dashboard-section {
    padding: 1rem;
  }

  /* Stack everything */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Full width buttons */
  .section-header-actions {
    width: 100%;
  }

  .section-header-actions button {
    width: 100%;
  }

  /* Stats grid - 2 kolumner på mycket små mobiler */
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Quote card price badge */
  .quote-price-badge {
    text-align: left;
    margin-top: 0.75rem;
  }

  /* Empty state */
  .empty-state-hero h2 {
    font-size: 1.5rem;
  }

  .empty-state-icon-large {
    font-size: 4rem;
  }

  /* FAQ answers more compact */
  .faq-item.active .faq-answer {
    max-height: 300px;
  }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .dashboard-header {
    padding: 1rem 1.5rem;
  }

  .empty-state-hero {
    margin-bottom: 2rem;
  }

  .empty-state-steps {
    flex-direction: row;
    padding: 1rem;
  }

  .step-arrow {
    transform: none;
  }
}

/* Dark mode support (if enabled in future) */
@media (prefers-color-scheme: dark) {
  /* Placeholder for dark mode styles */
  /* Currently not implemented */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn,
  .btn-primary,
  .stat-card {
    border: 2px solid currentColor;
  }
}

/* ========== ONBOARDING PROGRESS TRACKER ========== */

.onboarding-progress-card {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--primary);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.progress-percentage {
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: white;
  border-radius: 10px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.next-milestone {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.milestone-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.milestone-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.milestone-content p {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.milestone-content small {
  font-size: 0.813rem;
  opacity: 0.8;
}

.btn-milestone {
  width: 100%;
  background: white;
  color: var(--slate-800);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.btn-milestone:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.milestone-complete {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.milestone-complete i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Full Progress Tracker */
.onboarding-progress-full {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.progress-full-header {
  text-align: center;
  margin-bottom: 2rem;
}

.progress-full-header h2 {
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.progress-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.progress-completed {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 500;
}

.progress-percentage-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-800);
}

.progress-bar-large {
  width: 100%;
  height: 12px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar-fill-large {
  height: 100%;
  background: var(--slate-800);
  border-radius: 10px;
  transition: width 0.8s ease-out;
  box-shadow: none;
}

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

.milestone-card {
  background: #f8fafc;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  opacity: 0.6;
}

.milestone-card.completed {
  background: #f8fafc;
  border-color: var(--slate-800);
  opacity: 1;
}

.milestone-card.active {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.2);
  opacity: 1;
  transform: scale(1.02);
}

.milestone-card.highlight {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.2);
  }
  50% {
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.4);
  }
}

.milestone-icon-large {
  width: 60px;
  height: 60px;
  background: var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.milestone-icon-large.completed {
  background: var(--slate-800);
  color: white;
}

.milestone-card.active .milestone-icon-large {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.milestone-info h3 {
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.milestone-info p {
  font-size: 0.938rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.milestone-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.813rem;
  font-weight: 600;
}

.milestone-status.completed {
  background: #f8fafc;
  color: var(--slate-800);
}

.milestone-status.active {
  background: #e0e7ff;
  color: #4338ca;
}

.milestone-status.pending {
  background: #f1f5f9;
  color: #64748b;
}

.btn-milestone-action {
  margin-top: 1rem;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.btn-milestone-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .onboarding-progress-card {
    padding: 1.25rem;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .progress-stats {
    gap: 1rem;
  }

  .progress-percentage-large {
    font-size: 2rem;
  }
}

/* ========== MOBILE APP-FIRST DASHBOARD ========== */

/* Helper classes */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }

  /* Container för mobilinnehåll */
  #mobileDashboardContent {
    margin-bottom: 1.5rem;
  }

  /* Hero Card - Smart prioriterad action */
  .mobile-hero-card {
    background: #ffffff;
    border: 3px solid #1e293b;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.12);
    text-align: center;
  }

  /* Dark variant for "Nästa steg" (book_meeting) */
  .mobile-hero-card.hero-dark {
    background: #2d3748;
    border: none;
    color: #ffffff;
  }

  .hero-emoji,
  .hero-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    color: #6b7280;
  }

  .mobile-hero-card.hero-dark .hero-emoji,
  .mobile-hero-card.hero-dark .hero-icon {
    color: #f59e0b;
  }

  .hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #1e293b;
  }

  .mobile-hero-card.hero-dark .hero-title {
    color: #ffffff;
  }

  .hero-message {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #64748b;
  }

  .mobile-hero-card.hero-dark .hero-message {
    color: #e2e8f0;
    opacity: 0.9;
  }

  .hero-savings {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #64748b;
  }

  .mobile-hero-card.hero-dark .hero-savings {
    color: #e2e8f0;
  }

  .hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e293b;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
    transition: all 0.2s;
    min-height: 44px;
  }

  .mobile-hero-card.hero-dark .hero-cta-btn {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  }

  .hero-cta-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(30, 41, 59, 0.15);
    background: #0f172a;
  }

  .mobile-hero-card.hero-dark .hero-cta-btn:active {
    background: #ea580c;
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.2);
  }

  /* Action Cards Container */
  .mobile-action-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .action-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Action Card Base */
  .mobile-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: white;
    border-radius: 12px;
    padding: 1.125rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    min-height: 76px;
    overflow: hidden;
  }

  .mobile-action-card.card-full {
    width: 100%;
  }

  .mobile-action-card.card-half {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 110px;
  }

  .mobile-action-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Color variants - Neutralized for minimal design */
  .mobile-action-card.card-green {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #1e293b;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.12);
  }

  .mobile-action-card.card-blue {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  }

  .mobile-action-card.card-orange {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  }

  .mobile-action-card.card-purple {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  }

  .mobile-action-card.card-neutral {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(30, 41, 59, 0.06);
  }

  /* Card icon */
  .card-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    color: #6b7280;
  }

  /* Icon color variations based on card type */
  .mobile-action-card[data-card-type="quotes"] .card-icon {
    color: #475569;
  }

  .mobile-action-card[data-card-type="notifications"]:has(.card-badge) .card-icon {
    color: #f59e0b;
  }

  .card-half .card-icon {
    font-size: 2.5rem;
  }

  /* Badge (notification count) */
  .card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  }

  /* Card content */
  .card-content {
    flex: 1;
    min-width: 0;
  }

  .card-half .card-content {
    width: 100%;
  }

  .card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .card-label {
    font-size: 0.938rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .card-neutral .card-label,
  .card-green .card-label,
  .card-blue .card-label,
  .card-orange .card-label,
  .card-purple .card-label {
    color: #1e293b;
  }

  .card-sublabel {
    font-size: 0.813rem;
    opacity: 0.7;
    margin-top: 0.125rem;
  }

  /* Arrow indicator */
  .card-arrow {
    font-size: 1rem;
    opacity: 0.4;
    flex-shrink: 0;
  }

  .card-half .card-arrow {
    display: none;
  }

  /* Dölj gamla stats-grid på mobil */
  .stats-grid {
    display: none !important;
  }
  
  /* ========== MINIMALISTISK MOBILVY - DÖLJ DISTRAKTION ========== */
  
  /* Dölj hero CTA (ersatt av app-korten) */
  .hero-cta-container {
    display: none !important;
  }
  
  /* Dölj empty state (inte relevant med app-korten) */
  #emptyStateContainer {
    display: none !important;
  }
  
  /* Dölj quick actions i sidebar (duplikat av app-korten) */
  .quick-actions-priority {
    display: none !important;
  }
  
  /* Dölj smart recommendations (för komplex på mobil) */
  #smartRecommendationsWidget {
    display: none !important;
  }
  
  /* Dölj onboarding progress (tillgänglig via "Mer") */
  #onboardingProgressWidget {
    display: none !important;
  }
  
  /* Dölj projekthälsa (tillgänglig via projekt-sidan) */
  #projectHealthWidget {
    display: none !important;
  }
  
  /* Dölj price analysis (tillgänglig via offerter) */
  #priceAnalysisWidget {
    display: none !important;
  }
  
  /* Customer Info Widget - nu synlig med pill-design i mobilvy */
  #customerInfoWidget {
    display: block !important;
  }
  
  /* Dölj AI recommendations sektion */
  #aiRecommendationsSection {
    display: none !important;
  }
  
  /* Dashboard layout - behöver inte 2-kolumner */
  .dashboard-layout {
    display: block !important;
  }
  
  .dashboard-sidebar {
    display: none !important;
  }
  
  /* ========== KOMPAKT VÄNTANDE OFFERTER ========== */
  
  .quotes-priority-section {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
  }
  
  .quotes-priority-section .section-header {
    display: none !important; /* Dölj "Väntande offerter" header */
  }
  
  /* Kompakt quote card */
  #pendingQuotesWidget .quote-card {
    padding: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 12px !important;
    background: white !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  }
  
  /* Minimal text */
  #pendingQuotesWidget .quote-card h3 {
    font-size: 0.938rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  #pendingQuotesWidget .quote-company {
    font-size: 0.813rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  #pendingQuotesWidget .quote-price {
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  
  /* Max 2 offerter visar kompakt */
  #pendingQuotesWidget .quote-card:nth-child(n+3) {
    display: none !important;
  }
  
  /* Mobil "Se alla"-länk (går till quotes.html) */
  .view-all-quotes-mobile {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .view-all-quotes-mobile:hover {
    opacity: 0.8;
  }
  
  /* Dölj desktop "Visa alla" (expand-knapp) i mobilvy */
  .view-all-quotes {
    display: none !important;
  }
}

/* Desktop: Visa expand-knapp, dölj mobil-länk */
@media (min-width: 769px) {
  .view-all-quotes-mobile {
    display: none !important;
  }
  
  .view-all-quotes {
    display: inline-block !important;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .view-all-quotes:hover {
    opacity: 0.8;
  }
}
  
  /* ========== AKTIVITETS-PILL (MINIMALISTISK) ========== */
  
  .dashboard-main > .dashboard-section:has(#activityFeed) {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
  }
  
  /* Dölj section header helt */
  .dashboard-main > .dashboard-section:has(#activityFeed) .section-header {
    display: none !important;
  }
  
  /* Dölj ALL content i activityFeed - ersätts med pill */
  #activityFeed > * {
    display: none !important;
  }
  
  /* Ny pill-stil container med position för ::before */
  #activityFeed {
    min-height: 56px !important;
    padding: 0 !important;
    position: relative !important;
    display: block !important;
  }
  
  /* Pill via pseudo-element (använder data-count) */
  #activityFeed[data-count]::before {
    content: '📋 ' attr(data-count) ' nya aktiviteter  →';
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 56px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    width: 100%;
  }
  
  #activityFeed[data-count]:active::before {
    transform: scale(0.98);
    background: linear-gradient(135deg, #f1f5f9 0%, var(--border-light) 100%);
  }
  
  /* Tom state (0 aktiviteter) */
  #activityFeed[data-count="0"]::before {
    content: '✓ Allt är lugnt!';
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #e5e7eb;
    color: var(--text-secondary);
    opacity: 0.7;
    cursor: default;
  }
  
  #activityFeed[data-count="0"]:active::before {
    transform: none;
  }
  
  /* Singular form för 1 aktivitet */
  #activityFeed[data-count="1"]::before {
    content: '📋 1 ny aktivitet  →';
  }
  
  /* ========== OPTIMERAD SPACING FÖR MINIMAL SCROLL ========== */
  
  /* Minska spacing mellan huvudelement */
  #mobileDashboardContent {
    margin-bottom: 1rem !important;
  }
  
  .mobile-action-cards {
    margin-bottom: 1rem;
  }
  
  .campaign-mobile-rotator {
    margin-bottom: 0.75rem;
  }
  
  /* Väntande offerter - tightare */
  .quotes-priority-section {
    margin-bottom: 0.75rem !important;
  }
  
  /* Aktivitets-pill */
  .dashboard-main > .dashboard-section:has(#activityFeed) {
    margin-bottom: 0.75rem !important;
  }
  
  /* Dashboard container padding */
  .dashboard-container {
    padding: 0.75rem !important;
    padding-bottom: calc(100px + var(--safe-area-inset-bottom)) !important;
  }
  
  /* Header spacing */
  .dashboard-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
    margin-bottom: 1rem !important;
    border-radius: 0 !important;
  }
  
  .dashboard-header h1 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.375rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dashboard-header .greeting-time {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.6;
  }
  
  .dashboard-header p {
    font-size: 0.875rem !important;
    opacity: 0.7 !important;
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
  }
}

/* Ultra-kompakt för små skärmar */
@media (max-width: 480px) {
  .mobile-hero-card {
    padding: 1.25rem;
  }

  .hero-emoji,
  .hero-icon {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-message {
    font-size: 0.938rem;
  }

  .mobile-action-card {
    padding: 1rem;
    min-height: 72px;
  }

  .mobile-action-card.card-half {
    min-height: 100px;
  }

  .card-icon {
    font-size: 1.75rem;
    color: #6b7280;
  }

  .card-half .card-icon {
    font-size: 2.25rem;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .card-label {
    font-size: 0.875rem;
  }
  
  /* Campaign card responsive adjustments */
  .campaign-card-media {
    aspect-ratio: 16 / 11;
    min-height: 150px;
    max-height: 200px;
  }
  
  .campaign-title {
    font-size: 0.98rem;
  }
  
  .campaign-sponsor-logo {
    width: 46px;
    height: 46px;
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* Landscape mode optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .campaign-card-media {
    aspect-ratio: 21 / 9;
    min-height: 120px;
    max-height: 160px;
  }
  
  .campaign-card-content {
    padding: 0.75rem 0.9rem;
    padding-right: 4rem;
  }
  
  .campaign-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
}

/* ========== RÄKNEVERKTYG / CALCULATORS PAGE ========== */

.calculators-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  margin-top: calc(var(--header-height, 69px) + 0.75rem + var(--safe-area-inset-top));
  min-height: calc(100vh - var(--header-height, 69px) - 0.75rem);
}

.calculators-hero {
  margin-bottom: 3rem;
}

.calculators-hero-content {
  max-width: 800px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.back-link i {
  width: 16px;
  height: 16px;
}

.calculators-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calculators-title i {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.calculators-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Calculator Grid */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Calculator Card */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.calculator-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.calculator-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.calculator-icon i {
  width: 28px;
  height: 28px;
}

.calculator-badge {
  background: #fef3c7;
  color: #d97706;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calculator-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.calculator-card-description {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.calculator-card-footer {
  margin-top: auto;
}

.btn-calculator {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-calculator:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-calculator i {
  width: 16px;
  height: 16px;
}

/* Info Section */
.calculators-info {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.info-card {
  background: #f0f9ff;
  border: 1px solid #0284c7;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card > i {
  width: 24px;
  height: 24px;
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-content p {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Hide calculators button on mobile */
@media (max-width: 768px) {
  .quick-action-calculators {
    display: none;
  }
  
  .calculators-container {
    padding: 1.5rem 1rem;
    margin-top: calc(var(--header-height, 56px) + 0.75rem + var(--safe-area-inset-top));
  }
  
  .calculators-title {
    font-size: 1.75rem;
  }
  
  .calculators-title i {
    width: 36px;
    height: 36px;
  }
  
  .calculators-subtitle {
    font-size: 1rem;
  }
  
  .calculators-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .calculators-container {
    padding: 1.5rem;
  }
  
  .calculators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Featured Calculator Card */
.calculator-card.featured {
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
  position: relative;
}

.calculator-card.featured:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

/* Premium Calculator Card (HDH-Altanexperten) */
.calculator-card.premium-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: none;
  color: white;
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.4);
}

.calculator-card.premium-card:hover {
  box-shadow: 0 16px 48px rgba(30, 41, 59, 0.5);
  transform: translateY(-6px);
}

.calculator-card.premium-card .calculator-card-title,
.calculator-card.premium-card .calculator-card-description {
  color: white;
}

.calculator-card.premium-card .calculator-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.calculator-card.premium-card .gradient-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

/* Deck Icon */
.calculator-icon.deck-icon {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Calculator Features Tags */
.calculator-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.feature-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: white;
  font-weight: 500;
}

/* Premium Button */
.btn-calculator.premium-btn {
  background: white;
  color: #1e293b;
  font-weight: 600;
}

.btn-calculator.premium-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
}

/* ROT Icon */
.calculator-icon.rot-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  z-index: 10;
}

.card-badge.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes badge-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* ========== MOBIL: Touch-targets 44px, en kolumn, spacing (plan Fas 1.3) ========== */
@media (max-width: 768px) {
  .dashboard-container-old .hero-cta-btn,
  .dashboard-container-old .btn-hero-primary,
  .dashboard-container-old .btn-hero-secondary,
  .dashboard-container-old .btn-cta-primary,
  .dashboard-container-old .btn-cta-secondary,
  .dashboard-container-old .btn-primary,
  .dashboard-container-old .btn-secondary,
  .dashboard-container-old .btn-outline,
  .dashboard-container-old .btn-next-action,
  .dashboard-container-old .btn-header-cta {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .dashboard-container-old .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .dashboard-container-old .dashboard-section {
    margin-bottom: 1.5rem;
  }

  .dashboard-container-old .section-header a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }
}

.quote-card--rejected {
  opacity: 0.92;
  border-left: 4px solid #ef4444 !important;
  background: #fffbfb;
}

.quote-rejection-reason {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #991b1b;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ========== FAS 1 UX — väntetillstånd, jämförelse, notiser ========== */

.waiting-quotes-state {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
}

.waiting-quotes-state--section {
  margin: 0;
}

.waiting-quotes-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-quotes-icon svg {
  width: 28px;
  height: 28px;
}

.waiting-quotes-state h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.waiting-quotes-lead {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.9375rem;
}

.waiting-quotes-timing {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b45309;
}

.btn-waiting-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.activity-empty-waiting {
  text-align: center;
  padding: 2rem 1.25rem;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
}

.activity-empty-waiting-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-empty-waiting h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.activity-empty-waiting p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.activity-empty-waiting-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.quote-compare-summary {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem;
}

.quote-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quote-compare-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: #f8fafc;
}

.quote-compare-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.quote-compare-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.quote-compare-stat--low .quote-compare-value { color: #059669; }
.quote-compare-stat--mid .quote-compare-value { color: var(--primary); }
.quote-compare-stat--high .quote-compare-value { color: #dc2626; }

.quote-compare-diff {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.quote-compare-summary--inline .quote-compare-diff {
  margin-bottom: 0;
}

.quote-compare-diff-main {
  display: block;
}

.quote-compare-count {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.btn-quote-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.progress-tracker-v2 {
  padding: 0.25rem 0;
}

.progress-tracker-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-tracker-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-tracker-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.progress-tracker-phase {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-tracker-pct {
  color: var(--text-muted);
  font-weight: 600;
}

.progress-tracker-next {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.recent-updates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-update-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.recent-update-item--unread {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.recent-update-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.recent-update-icon--company {
  background: #e2e8f0;
  border: 1px solid #e5e7eb;
}

.recent-update-icon--logo {
  padding: 0;
}

.recent-update-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-update-icon--initials {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.recent-update-text {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.recent-update-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.recent-update-actions {
  margin-top: 0.5rem;
}

.recent-update-actions .notif-action-btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
}

.recent-updates-empty {
  text-align: center;
  padding: 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.recent-updates-all {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.mobile-hero-card.hero-waiting-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}

.mobile-hero-card.hero-waiting-card .hero-cta-btn {
  background: #d97706;
}

.mobile-hero-card.hero-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

.hero-context-mobile {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.25rem 0 0.75rem;
}

.mobile-action-card.card-orange {
  border-color: #fcd34d;
  background: #fffbeb;
}

.mobile-quote-compare {
  margin-bottom: 1rem;
}

.mobile-hero-card.mobile-hero-card--compact {
  padding: 1.25rem 1.25rem 1.35rem;
}

.mobile-hero-card.mobile-hero-card--compact .hero-title {
  margin-bottom: 0.35rem;
}

.mobile-hero-card.mobile-hero-card--compact .hero-message {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  /* Luft så FAB inte täcker prisjämförelsen */
  body:has(.fab-button:not(.hidden)) .mobile-quote-compare {
    margin-bottom: 5.5rem;
  }

  body:has(.fab-button:not(.hidden)) #offerter {
    scroll-margin-bottom: 6rem;
  }
}

.mobile-quote-compare .quote-compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mobile-quote-compare .quote-compare-stat {
  min-width: 0;
  padding: 0.55rem 0.4rem;
}

.mobile-quote-compare .quote-compare-value {
  font-size: 0.875rem;
  word-break: break-word;
}

@media (max-width: 640px) {
  .quote-compare-grid,
  .mobile-quote-compare .quote-compare-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .quote-compare-stat,
  .mobile-quote-compare .quote-compare-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.55rem 0.75rem;
  }

  .quote-compare-label,
  .quote-compare-value,
  .mobile-quote-compare .quote-compare-label,
  .mobile-quote-compare .quote-compare-value {
    display: inline;
    font-size: 0.9rem;
  }
}
