/* ========================================
   Crunch Admin Dashboard
   Apple-Inspired Analytical Interface
   ======================================== */

/* Import premium display font */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Dashboard-specific variables */
.crunch-dashboard {
  --crunch-bg: #f5f5f7;
  --crunch-surface: #ffffff;
  --crunch-surface-elevated: #ffffff;
  --crunch-border: rgba(0, 0, 0, 0.06);
  --crunch-border-subtle: rgba(0, 0, 0, 0.04);

  /* Typography */
  --crunch-text-primary: #1d1d1f;
  --crunch-text-secondary: #86868b;
  --crunch-text-tertiary: #aeaeb2;

  /* Semantic colors - muted and sophisticated */
  --crunch-positive: #34c759;
  --crunch-positive-bg: rgba(52, 199, 89, 0.08);
  --crunch-negative: #ff3b30;
  --crunch-negative-bg: rgba(255, 59, 48, 0.08);
  --crunch-warning: #ff9500;
  --crunch-warning-bg: rgba(255, 149, 0, 0.08);
  --crunch-accent: #007aff;
  --crunch-accent-bg: rgba(0, 122, 255, 0.08);
  --crunch-purple: #af52de;
  --crunch-purple-bg: rgba(175, 82, 222, 0.08);

  /* Shadows - Apple's signature layered depth */
  --crunch-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --crunch-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --crunch-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --crunch-shadow-glow: 0 0 40px rgba(0, 0, 0, 0.06);

  /* Typography scale */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  .crunch-dashboard {
    --crunch-bg: #000000;
    --crunch-surface: #1c1c1e;
    --crunch-surface-elevated: #2c2c2e;
    --crunch-border: rgba(255, 255, 255, 0.1);
    --crunch-border-subtle: rgba(255, 255, 255, 0.06);

    --crunch-text-primary: #f5f5f7;
    --crunch-text-secondary: #98989d;
    --crunch-text-tertiary: #636366;

    --crunch-positive-bg: rgba(52, 199, 89, 0.15);
    --crunch-negative-bg: rgba(255, 59, 48, 0.15);
    --crunch-warning-bg: rgba(255, 149, 0, 0.15);
    --crunch-accent-bg: rgba(0, 122, 255, 0.15);
    --crunch-purple-bg: rgba(175, 82, 222, 0.15);

    --crunch-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --crunch-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --crunch-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --crunch-shadow-glow: 0 0 60px rgba(0, 0, 0, 0.3);
  }
}

/* Base dashboard container */
.crunch-dashboard {
  min-height: 100vh;
  background: var(--crunch-bg);
  padding: 0 0 80px 0;
}

/* Monospace for numbers */
.crunch-mono {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ========================================
   Header
   ======================================== */
.crunch-header {
  background: var(--crunch-surface);
  border-bottom: 1px solid var(--crunch-border);
  padding: 40px 0 32px;
  margin-bottom: 32px;
}

.crunch-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.crunch-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--crunch-text-primary);
  margin: 0 0 6px 0;
}

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

.crunch-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.crunch-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--crunch-border-subtle);
  color: var(--crunch-text-secondary);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.crunch-nav-btn:hover {
  background: var(--crunch-border);
  color: var(--crunch-text-primary);
  text-decoration: none;
}

.crunch-nav-btn svg {
  opacity: 0.7;
}

.crunch-nav-btns {
  display: flex;
  gap: 8px;
}

/* ========================================
   Main Content Container
   ======================================== */
.crunch-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   Hero Profitability Card
   ======================================== */
.crunch-hero {
  position: relative;
  background: var(--crunch-surface);
  border-radius: 20px;
  padding: 40px 48px;
  margin-bottom: 24px;
  box-shadow: var(--crunch-shadow-md);
  overflow: hidden;
}

.crunch-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crunch-positive) 0%, var(--crunch-accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.crunch-hero.profitable::before {
  opacity: 1;
}

.crunch-hero.unprofitable::before {
  background: linear-gradient(90deg, var(--crunch-negative) 0%, var(--crunch-warning) 100%);
  opacity: 1;
}

.crunch-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.crunch-hero-main {
  flex: 1;
}

.crunch-hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crunch-text-tertiary);
  margin-bottom: 12px;
}

.crunch-hero-value {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.crunch-hero.profitable .crunch-hero-value {
  color: var(--crunch-positive);
}

.crunch-hero.unprofitable .crunch-hero-value {
  color: var(--crunch-negative);
}

.crunch-hero-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--crunch-text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--crunch-border-subtle);
}

.crunch-hero.profitable .crunch-hero-trend {
  color: var(--crunch-positive);
  background: var(--crunch-positive-bg);
}

.crunch-hero.unprofitable .crunch-hero-trend {
  color: var(--crunch-negative);
  background: var(--crunch-negative-bg);
}

.crunch-hero-secondary {
  text-align: right;
}

.crunch-hero-secondary-label {
  font-size: 0.8125rem;
  color: var(--crunch-text-tertiary);
  margin-bottom: 4px;
}

.crunch-hero-secondary-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--crunch-text-primary);
}

.crunch-hero-secondary-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--crunch-text-secondary);
  margin-left: 4px;
}

/* ========================================
   Metric Cards Grid
   ======================================== */
.crunch-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .crunch-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .crunch-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.crunch-metric-card {
  background: var(--crunch-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--crunch-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.crunch-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--crunch-shadow-md);
}

.crunch-metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--crunch-border);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.crunch-metric-card:hover::after {
  opacity: 1;
}

.crunch-metric-card.accent-green::after {
  background: var(--crunch-positive);
}

.crunch-metric-card.accent-amber::after {
  background: var(--crunch-warning);
}

.crunch-metric-card.accent-gray::after {
  background: var(--crunch-text-tertiary);
}

.crunch-metric-card.accent-blue::after {
  background: var(--crunch-accent);
}

.crunch-metric-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--crunch-text-secondary);
  margin-bottom: 12px;
}

.crunch-metric-value {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--crunch-text-primary);
  line-height: 1.1;
}

.crunch-metric-value.positive {
  color: var(--crunch-positive);
}

.crunch-metric-value.warning {
  color: var(--crunch-warning);
}

.crunch-metric-value.muted {
  color: var(--crunch-text-tertiary);
}

.crunch-metric-sub {
  font-size: 0.75rem;
  color: var(--crunch-text-tertiary);
  margin-top: 8px;
}

.crunch-metric-sub.positive {
  color: var(--crunch-positive);
}

/* ========================================
   Finance Cards (Revenue/Costs)
   ======================================== */
.crunch-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .crunch-finance-grid {
    grid-template-columns: 1fr;
  }
}

.crunch-finance-card {
  background: var(--crunch-surface);
  border-radius: 16px;
  box-shadow: var(--crunch-shadow-sm);
  overflow: hidden;
}

.crunch-finance-header {
  padding: 20px 24px 0;
}

.crunch-finance-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--crunch-text-primary);
  letter-spacing: -0.01em;
}

.crunch-finance-body {
  padding: 16px 24px 20px;
}

.crunch-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--crunch-border-subtle);
}

.crunch-line-item:last-child {
  border-bottom: none;
}

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

.crunch-line-label-sub {
  font-size: 0.75rem;
  color: var(--crunch-text-tertiary);
  margin-left: 8px;
}

.crunch-line-label-sub.crunch-free-tier {
  color: var(--crunch-positive);
}

.crunch-line-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--crunch-text-primary);
}

.crunch-finance-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--crunch-border-subtle);
  border-top: 1px solid var(--crunch-border);
}

.crunch-finance-total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--crunch-text-primary);
}

.crunch-finance-total-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.crunch-finance-total-value.positive {
  color: var(--crunch-positive);
}

.crunch-finance-total-value.negative {
  color: var(--crunch-negative);
}

/* ========================================
   Storage Section
   ======================================== */
.crunch-storage-card {
  background: var(--crunch-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--crunch-shadow-sm);
  margin-bottom: 24px;
}

.crunch-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.crunch-storage-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--crunch-text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crunch-live-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--crunch-positive-bg);
  color: var(--crunch-positive);
}

.crunch-live-indicator {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--crunch-positive-bg);
  color: var(--crunch-positive);
  margin-left: 6px;
  vertical-align: middle;
}

.crunch-storage-updated {
  font-size: 0.75rem;
  color: var(--crunch-text-tertiary);
  margin-top: 4px;
}

.crunch-refresh-btn {
  flex-shrink: 0;
}

.crunch-storage-error {
  padding: 16px;
  background: var(--crunch-negative-bg);
  border-radius: 8px;
  color: var(--crunch-negative);
  font-size: 0.875rem;
}

.crunch-storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

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

.crunch-storage-stat {
  text-align: left;
}

.crunch-storage-label {
  font-size: 0.8125rem;
  color: var(--crunch-text-tertiary);
  margin-bottom: 6px;
}

.crunch-storage-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--crunch-text-primary);
}

.crunch-storage-value span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--crunch-text-secondary);
}

/* Free tier indicator */
.crunch-storage-free-tier {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crunch-free-tier-bar {
  display: block;
  height: 4px;
  background: var(--crunch-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.crunch-free-tier-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--free-pct, 0%);
  background: var(--crunch-positive);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.crunch-free-tier-text {
  font-size: 0.6875rem;
  color: var(--crunch-text-tertiary);
}

/* Storage Breakdown */
.crunch-storage-breakdown {
  padding-top: 20px;
  border-top: 1px solid var(--crunch-border-subtle);
  margin-bottom: 20px;
}

.crunch-breakdown-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--crunch-text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crunch-breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crunch-breakdown-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
}

.crunch-breakdown-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar-width, 0%);
  background: var(--bar-color, var(--crunch-text-tertiary));
  opacity: 0.15;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.crunch-breakdown-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  position: relative;
  z-index: 1;
}

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

.crunch-breakdown-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--crunch-text-primary);
}

.crunch-breakdown-count {
  font-size: 0.75rem;
  color: var(--crunch-text-tertiary);
  text-align: right;
  min-width: 80px;
}

/* Activity Stats */
.crunch-storage-activity {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--crunch-border-subtle);
}

.crunch-activity-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crunch-activity-label {
  font-size: 0.8125rem;
  color: var(--crunch-text-tertiary);
}

.crunch-activity-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--crunch-text-primary);
}

/* Largest Files */
.crunch-largest-files {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--crunch-border-subtle);
}

.crunch-largest-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--crunch-text-secondary);
  padding: 8px 0;
  list-style: none;
}

.crunch-largest-summary::-webkit-details-marker {
  display: none;
}

.crunch-chevron {
  transition: transform 0.2s ease;
}

.crunch-largest-files[open] .crunch-chevron {
  transform: rotate(180deg);
}

.crunch-largest-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crunch-largest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--crunch-border-subtle);
  border-radius: 6px;
}

.crunch-largest-key {
  font-size: 0.8125rem;
  color: var(--crunch-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 12px;
}

.crunch-largest-size {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--crunch-text-primary);
  flex-shrink: 0;
}

/* ========================================
   Users Table
   ======================================== */
.crunch-table-card {
  background: var(--crunch-surface);
  border-radius: 16px;
  box-shadow: var(--crunch-shadow-sm);
  overflow: hidden;
}

.crunch-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--crunch-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crunch-table-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--crunch-text-primary);
  letter-spacing: -0.01em;
}

.crunch-table-count {
  font-size: 0.875rem;
  color: var(--crunch-text-tertiary);
  background: var(--crunch-border-subtle);
  padding: 4px 12px;
  border-radius: 100px;
}

.crunch-table-wrapper {
  overflow-x: auto;
}

.crunch-table {
  width: 100%;
  border-collapse: collapse;
}

.crunch-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crunch-text-tertiary);
  background: var(--crunch-border-subtle);
  border-bottom: 1px solid var(--crunch-border);
}

.crunch-table th:last-child {
  text-align: right;
}

.crunch-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--crunch-border-subtle);
  vertical-align: middle;
}

.crunch-table tr:last-child td {
  border-bottom: none;
}

.crunch-table tr {
  transition: background 0.15s ease;
}

.crunch-table tr:hover {
  background: var(--crunch-border-subtle);
}

.crunch-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crunch-user-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--crunch-text-primary);
}

.crunch-user-email {
  font-size: 0.8125rem;
  color: var(--crunch-text-tertiary);
}

/* Status badges */
.crunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.crunch-badge-premium {
  background: var(--crunch-positive-bg);
  color: var(--crunch-positive);
}

.crunch-badge-complimentary {
  background: var(--crunch-warning-bg);
  color: var(--crunch-warning);
}

.crunch-badge-free {
  background: var(--crunch-border-subtle);
  color: var(--crunch-text-tertiary);
}

.crunch-badge-admin {
  background: var(--crunch-purple-bg);
  color: var(--crunch-purple);
  margin-left: 6px;
}

.crunch-badge-expiry {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--crunch-text-tertiary);
  margin-top: 4px;
}

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

.crunch-date {
  font-size: 0.875rem;
  color: var(--crunch-text-tertiary);
}

/* Action buttons */
.crunch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.crunch-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.crunch-btn-subtle {
  background: var(--crunch-border-subtle);
  color: var(--crunch-text-secondary);
}

.crunch-btn-subtle:hover {
  background: var(--crunch-border);
  color: var(--crunch-text-primary);
}

.crunch-btn-accent {
  background: var(--crunch-positive-bg);
  color: var(--crunch-positive);
}

.crunch-btn-accent:hover {
  background: var(--crunch-positive);
  color: white;
}

.crunch-btn-danger {
  background: var(--crunch-negative-bg);
  color: var(--crunch-negative);
}

.crunch-btn-danger:hover {
  background: var(--crunch-negative);
  color: white;
}

/* ========================================
   Animations
   ======================================== */
@keyframes crunch-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crunch-animate {
  animation: crunch-fade-in 0.4s ease-out forwards;
}

.crunch-animate-delay-1 { animation-delay: 0.05s; opacity: 0; }
.crunch-animate-delay-2 { animation-delay: 0.1s; opacity: 0; }
.crunch-animate-delay-3 { animation-delay: 0.15s; opacity: 0; }
.crunch-animate-delay-4 { animation-delay: 0.2s; opacity: 0; }
.crunch-animate-delay-5 { animation-delay: 0.25s; opacity: 0; }

/* Number counting animation */
@keyframes crunch-count-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crunch-metric-value,
.crunch-hero-value,
.crunch-finance-total-value {
  animation: crunch-count-up 0.5s ease-out forwards;
}

/* Pulse on profitable status */
@keyframes crunch-pulse-positive {
  0%, 100% {
    box-shadow: var(--crunch-shadow-md);
  }
  50% {
    box-shadow: var(--crunch-shadow-md), 0 0 20px var(--crunch-positive-bg);
  }
}

.crunch-hero.profitable {
  animation: crunch-pulse-positive 3s ease-in-out infinite;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
  .crunch-header {
    padding: 24px 0 20px;
  }

  .crunch-header-inner,
  .crunch-content {
    padding: 0 16px;
  }

  .crunch-title {
    font-size: 1.75rem;
  }

  .crunch-hero {
    padding: 24px;
    border-radius: 16px;
  }

  .crunch-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .crunch-hero-value {
    font-size: 2.5rem;
  }

  .crunch-hero-secondary {
    text-align: left;
  }

  .crunch-metric-card {
    padding: 20px;
    border-radius: 12px;
  }

  .crunch-metric-value {
    font-size: 1.75rem;
  }

  .crunch-table th,
  .crunch-table td {
    padding: 12px 16px;
  }

  .crunch-actions {
    flex-wrap: wrap;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .crunch-animate,
  .crunch-metric-card,
  .crunch-hero,
  .crunch-metric-value,
  .crunch-hero-value,
  .crunch-finance-total-value {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
