  /* CSS Custom Properties for theme support */
  :root {
    --primary-color: #222;
    --secondary-color: #286090;
    --accent-color: #b3e5fc;
    --success-color: #43a047;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --danger-color: #f44336;
    --purple-color: #9c27b0;
    --teal-color: #00bcd4;
    --indigo-color: #3f51b5;
    --background-color: #f5f5f5;
    --container-bg: #fff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 40px rgba(0,0,0,0.15);
    
    /* Theme colors */
    --theme-bg: var(--background-color);
    --theme-surface: var(--container-bg);
    --theme-text: var(--text-primary);
    --theme-text-secondary: var(--text-secondary);
    --theme-border: var(--border-color);
    
    /* Responsive breakpoints */
    --mobile-sm: 480px;
    --mobile-md: 768px;
    --tablet: 1024px;
    --desktop: 1200px;
  }

  /* Dark theme variables */
  [data-theme="dark"] {
    --primary-color: #1a1a1a;
    --background-color: #121212;
    --container-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --card-bg: #2a2a2a;
    --accent-color: #81d4fa;
    --secondary-color: #3498db;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.3);
    --card-hover-shadow: 0 8px 40px rgba(0,0,0,0.5);
    
    /* Update theme colors for dark mode */
    --theme-bg: var(--background-color);
    --theme-surface: var(--container-bg);
    --theme-text: var(--text-primary);
    --theme-text-secondary: var(--text-secondary);
    --theme-border: var(--border-color);
  }

  /* Reset and base styles */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Enhanced header */
  .header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 60px;
    flex-wrap: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .header .logo {
    display: flex;
    align-items: center;
    font-size: 1.4em;
    font-weight: 600;
    flex: 0 0 auto;
    margin-right: 16px;
  }

  .header .logo img {
    height: 132px;
    width: 132px;
    margin-right: 8px;
    object-fit: contain;
  }

  .header-title-center {
    flex: 1 1 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent-color);
    margin: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header .right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }

  /* Enhanced side menu */
  .side-menu-backdrop {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .side-menu {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--secondary-color);
    color: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
  }

  .side-menu::-webkit-scrollbar {
    width: 6px;
  }

  .side-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .side-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
  }

  .side-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
  }

  .side-menu.open {
    right: 0;
  }

  .side-menu .side-header {
    background: #204d74;
    padding: 20px 18px 16px 18px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .side-menu .side-header img {
    height: 28px;
    width: 28px;
    object-fit: contain;
  }

  .side-menu .side-links {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    min-height: 0;
    padding-bottom: 20px;
  }

  .side-menu .side-link {
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    font-size: 1em;
    border-radius: 6px;
    margin: 1px 0;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    word-break: break-word;
    min-height: 44px;
    flex-shrink: 0;
  }

  .side-menu .side-link.active,
  .side-menu .side-link:hover,
  .side-menu .side-link:focus {
    background: #204d74;
    outline: none;
  }

  /* Theme dropdown in side menu */
  .theme-dropdown {
    position: relative;
    margin: 4px 12px 8px 12px;
    flex-shrink: 0;
  }

  .theme-toggle {
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    font-size: 1em;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
  }

  .theme-toggle:hover,
  .theme-toggle:focus {
    background: #204d74;
    outline: none;
  }

  .theme-toggle .arrow {
    transition: transform 0.2s ease;
    font-size: 0.8em;
  }

  .theme-toggle.active .arrow {
    transform: rotate(180deg);
  }

  .theme-options {
    display: none;
    background: #1a4a6b;
    border-radius: 6px;
    margin-top: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .theme-options.show {
    display: block;
    animation: slideDown 0.2s ease;
  }

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

  .theme-option {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    min-height: 40px;
  }

  .theme-option:hover,
  .theme-option:focus {
    background: #204d74;
    outline: none;
  }

  .theme-option.active {
    background: #204d74;
    position: relative;
  }

  .theme-option.active::after {
    content: '✓';
    margin-left: auto;
    font-weight: bold;
    color: var(--accent-color);
  }

  .theme-icon {
    font-size: 1.1em;
    width: 16px;
    text-align: center;
  }

  /* Enhanced container */
  .container {
    max-width: var(--desktop);
    margin: 24px auto;
    background: var(--theme-surface);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 32px;
    min-height: 60vh;
    flex: 1 0 auto;
    width: calc(100% - 32px);
    transition: all 0.3s ease;
  }

  .dashboard-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 40px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
  }

  .dashboard-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), var(--info-color));
    border-radius: 2px;
  }

  /* Loading State */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .loading-spinner {
    background: var(--theme-surface);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--theme-border);
  }

  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Compact Stats Cards - 6 per row */
  .stats-overview {
    margin-bottom: 48px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--theme-border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: all 0.3s ease;
  }

  .stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
  }

  .stat-card:hover::before {
    height: 6px;
  }

  .stat-card:active {
    transform: translateY(-4px) scale(1.01);
  }

  /* Color variations for stat cards */
  .stat-card.staff::before { background: linear-gradient(90deg, #9c27b0, #e91e63); }
  .stat-card.customers::before { background: linear-gradient(90deg, #ff9800, #ff5722); }
  .stat-card.jobs::before { background: linear-gradient(90deg, #2196f3, #03a9f4); }
  .stat-card.estimates::before { background: linear-gradient(90deg, #607d8b, #795548); }
  .stat-card.cars::before { background: linear-gradient(90deg, #00bcd4, #009688); }
  .stat-card.revenue::before { background: linear-gradient(90deg, #4caf50, #8bc34a); }

  .stat-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
  }

  .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--secondary-color);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.9em;
    color: var(--theme-text-secondary);
    font-weight: 500;
    line-height: 1.2;
  }

  /* Charts Section */
  .charts-container {
    margin-top: 48px;
  }

  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
  }

  .chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border);
    position: relative;
    overflow: hidden;
  }

  .chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
  }

  .chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
  }

  .chart-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--theme-border);
  }

  .chart-title-icon {
    font-size: 1.2em;
    color: var(--secondary-color);
  }

  .chart-container {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--theme-text-secondary);
    font-style: italic;
    flex-direction: column;
    gap: 16px;
  }

  .chart-loading .mini-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  /* Section Headers */
  .section-header {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-border);
  }

  .section-icon {
    font-size: 1.2em;
    color: var(--secondary-color);
  }

  /* MOT Status Cards */
  .mot-status-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }

  .mot-status-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border);
    position: relative;
    overflow: hidden;
  }

  .mot-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
  }

  .mot-status-card.pass::before {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
  }

  .mot-status-card.fail::before {
    background: linear-gradient(90deg, #f44336, #ff5722);
  }

  .mot-status-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
  }

  .mot-icon {
    font-size: 3em;
    margin-bottom: 16px;
    display: block;
  }

  .mot-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
  }

  .mot-status-card.pass .mot-value {
    color: #4caf50;
  }

  .mot-status-card.fail .mot-value {
    color: #f44336;
  }

  .mot-label {
    font-size: 1.1em;
    color: var(--theme-text-secondary);
    font-weight: 500;
  }

  /* Error State */
  .error-card {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #c62828;
    margin: 20px 0;
  }

  [data-theme="dark"] .error-card {
    background: linear-gradient(135deg, #4a1f1f, #3a1515);
    border-color: #8a4545;
    color: #ff8a80;
  }

  /* Enhanced footer */
  .footer {
    background: var(--primary-color);
    color: var(--accent-color);
    font-size: 0.9em;
    text-align: center;
    padding: 20px 16px;
    margin-top: auto;
    letter-spacing: 0.3px;
    border-top: 1px solid #2c5070;
    width: 100%;
  }

  .footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: opacity 0.2s;
  }

  .footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  .footer .sep {
    color: #4fc3f7;
    font-weight: 700;
    margin: 0 8px;
  }
    .trial-banner {
      background: linear-gradient(135deg, #5bc0de 0%, #286090 100%);
      color: white;
      padding: 16px 24px;
      border-radius: 12px;
      margin-bottom: 32px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      animation: slideDown 0.5s ease;
    }

    .trial-banner-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    .trial-icon {
      font-size: 2em;
      animation: pulse 2s infinite;
    }

    .trial-text {
      flex: 1;
      text-align: center;
    }

    .trial-text strong {
      display: block;
      font-size: 1.2em;
      margin-bottom: 4px;
    }

    .trial-upgrade-btn {
      background: white;
      color: #286090;
      padding: 10px 24px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s;
    }

    .trial-upgrade-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    // Add close button to trial banner
    .trial-close {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1.2em;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  /* Responsive Design */
  
  @media (max-width: 1200px) {
    .stats-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    
    .charts-grid {
      gap: 24px;
    }
  }

  @media (max-width: 1024px) {
    .container {
      margin: 16px auto;
      padding: 24px;
      width: calc(100% - 24px);
    }
    
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    
    .charts-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .chart-container {
      height: 250px;
    }
  }

  @media (max-width: 768px) {
    .header {
      padding: 10px 12px;
      min-height: 56px;
    }
    
    .container {
      margin: 12px auto;
      padding: 20px;
      width: calc(100% - 16px);
      border-radius: 12px;
    }
    
    .dashboard-title {
      font-size: 1.8em;
      margin-bottom: 32px;
      flex-direction: column;
      gap: 8px;
    }
    
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .stat-card {
      padding: 16px;
    }
    
    .stat-icon {
      font-size: 2em;
    }
    
    .stat-value {
      font-size: 1.5em;
    }
    
    .stat-label {
      font-size: 0.8em;
    }
    
    .mot-status-cards {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    .chart-container {
      height: 200px;
    }
    
    .section-header {
      font-size: 1.4em;
    }
  }

  @media (max-width: 480px) {
    body {
      font-size: 14px;
    }
    
    .container {
      margin: 8px auto;
      padding: 16px;
      width: calc(100% - 12px);
    }
    
    .dashboard-title {
      font-size: 1.6em;
      margin-bottom: 24px;
    }
    
    .stats-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .stat-card {
      padding: 16px;
    }
    
    .chart-card {
      padding: 16px;
    }
    
    .chart-container {
      height: 180px;
    }
  }

  /* Print styles */
  @media print {
    .header,
    .burger,
    .side-menu,
    .side-menu-backdrop,
    .footer,
    .loading-overlay {
      display: none !important;
    }
    
    .container {
      margin: 0;
      padding: 0;
      box-shadow: none;
      max-width: none;
      width: 100%;
    }
    
    .stats-grid {
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
    }
    
    .charts-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  }

  /* Accessibility enhancements */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* High contrast mode */
  @media (prefers-contrast: high) {
    .stat-card,
    .chart-card,
    .mot-status-card {
      border: 2px solid;
    }
  }

  /* Focus styles for accessibility */
  .stat-card:focus,
  .chart-card:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
  }
/* ============================================================
   v4 2026-06-27 Sat — Site filter pill row.
   Sits above the stats grid. Side-scrolls on narrow viewports
   with a subtle right-edge fade so users can see there's more.
   ============================================================ */

.site-filter-row {
  margin: 0 0 24px 0;
  position: relative;
}

.site-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 24px 4px 0;       /* right padding leaves room for the fade */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}

.site-filter-pills::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

/* Right-edge fade hint when content overflows */
.site-filter-row::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--theme-bg, var(--background-color)));
}

.site-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.site-pill:hover {
  background: var(--accent-color);
  border-color: var(--secondary-color);
}

.site-pill.active {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(40, 96, 144, 0.25);
}

.site-pill:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}
/* vN · New-dashboard teaser in the header centre slot */
.dash-teaser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: teaserIn 0.8s ease 2.5s forwards, teaserPulse 3.5s ease-in-out 3.5s infinite;
  white-space: nowrap;
  /* vN · parent .header-title-center sets pointer-events:none (click-transparent
     title) — re-enable on the teaser or its links/close swallow no clicks */
  pointer-events: auto;
}
.dash-teaser-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85em;
  font-style: italic;
  letter-spacing: 0.02em;
}
.dash-teaser-link {
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.dash-teaser-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}
.dash-teaser-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1em;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.dash-teaser-close:hover { color: #fff; }

@keyframes teaserIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes teaserPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Header centre is tight on phones between logo and burger — hide there;
   mobile users can meet the new dashes via the side menu later */
@media (max-width: 640px) {
  .dash-teaser { display: none !important; }
}
.trial-banner.expired { background: #7a1f1f; border-color: #a33; }
.trial-banner.expired .trial-upgrade-btn { background: #fff; color: #7a1f1f; font-weight: 700; }
