/* ============================================
   Chart Component
   ============================================ */

   .chart-card {
    padding: var(--space-lg);
    background-color: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
  }
  
  .chart-card__title {
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
  }
  
  .chart-card__canvas-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: visible;
  }
  
  .chart-card__canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Hero stat card next to chart */
  .hero-stat-card {
    position: relative;
    overflow: hidden;
    padding: 48px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
  }
  
  .hero-stat-card::before {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 256px;
    height: 256px;
    content: "";
    pointer-events: none;
    background: rgb(255 255 255 / 0.1);
    border-radius: 50%;
    filter: blur(32px);
  }
  
  .hero-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    color: #fff;
    background-color: rgb(255 255 255 / 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: var(--radius-xl);
  }
  
  .hero-stat-card__label {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
  }
  
  .hero-stat-card__value {
    margin-bottom: var(--space-md);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  
  .hero-stat-card__star {
    color: var(--color-emerald-300);
    font-size: 60%;
    vertical-align: super;
  }
  
  .hero-stat-card__caption {
    max-width: 320px;
    margin: 0 auto;
    color: var(--color-emerald-100);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
  }
  
  @media (min-width: 768px) {
    .chart-card {
      padding: var(--space-xl);
    }
  
    .chart-card__canvas-wrap {
      height: 420px;
    }
  }
  
  @media (max-width: 767px) {
    .chart-card {
      padding: var(--space-md);
    }
  
    .chart-card__canvas-wrap {
      height: 300px;
    }
  
    .hero-stat-card {
      padding: 32px 24px;
    }
  
    .hero-stat-card__icon {
      width: 64px;
      height: 64px;
      margin-bottom: var(--space-lg);
    }
  }
  
  /* Presentation mode */
  @media (min-width: 992px) {
    html.presentation-mode .chart-card {
      padding: clamp(1rem, 2vw, 1.5rem);
    }
  
    html.presentation-mode .chart-card__title {
      margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
      font-size: clamp(1rem, 1.5vw, 1.125rem);
    }
  
    html.presentation-mode .chart-card__canvas-wrap {
      height: clamp(260px, 42vh, 390px);
    }
  
    html.presentation-mode .hero-stat-card {
      padding: clamp(1.5rem, 3vw, 2.5rem);
    }
  
    html.presentation-mode .hero-stat-card__icon {
      width: clamp(56px, 6vw, 76px);
      height: clamp(56px, 6vw, 76px);
      margin-bottom: clamp(1rem, 2vh, 1.5rem);
    }
  
    html.presentation-mode .hero-stat-card__value {
      font-size: clamp(2.25rem, 4vw, 3.75rem);
    }
  }
  
  @media (min-width: 992px) and (max-height: 760px) {
    html.presentation-mode .chart-card__canvas-wrap {
      height: clamp(220px, 38vh, 320px);
    }
  
    html.presentation-mode .hero-stat-card {
      padding: 1.5rem;
    }
  
    html.presentation-mode .hero-stat-card__icon {
      width: 56px;
      height: 56px;
      margin-bottom: 1rem;
    }
  
    html.presentation-mode .hero-stat-card__label {
      margin-bottom: 0.75rem;
    }
  
    html.presentation-mode .hero-stat-card__value {
      margin-bottom: 0.75rem;
      font-size: clamp(2rem, 3.5vw, 3rem);
    }
  
    html.presentation-mode .hero-stat-card__caption {
      font-size: 0.8125rem;
      line-height: 1.45;
    }
  }
  
  @media (prefers-reduced-transparency: reduce) {
    .hero-stat-card__icon {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }