/* === STATS PRO - Ultra Professional Design === */

/* Testimonials Mini Grid */
.testimonials-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.testimonial-mini {
  background: #fff;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  transition: all .3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.3);
}

.testimonial-mini-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.testimonial-mini-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00d9ff, #0077ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-mini-info {
  flex: 1;
  min-width: 0;
}

.testimonial-mini-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-mini-role {
  font-size: 0.7rem;
  color: #6a6a6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-mini-stars {
  color: #fbbf24;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.testimonial-mini-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
}

.testimonial-mini-text strong {
  color: #00d9ff;
  font-weight: 700;
}

/* Stat Card Pro - Minimalist & Elegant */
.stat-card-pro {
  background: #fff;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d9ff, #0077ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.stat-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #00d9ff;
}

.stat-card-pro:hover::before {
  transform: scaleX(1);
}

/* Icon Pro - Minimalist */
.stat-icon-pro {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 119, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all .3s ease;
}

.stat-icon-pro svg {
  color: #00d9ff;
  stroke-width: 2.5;
}

.stat-icon-pro.secondary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.08));
}

.stat-icon-pro.secondary svg {
  color: #7c3aed;
}

.stat-icon-pro.tertiary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.08));
}

.stat-icon-pro.tertiary svg {
  color: #10b981;
}

.stat-icon-pro.quaternary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.08));
}

.stat-icon-pro.quaternary svg {
  color: #f59e0b;
}

.stat-card-pro:hover .stat-icon-pro {
  transform: scale(1.05);
}

/* Value Pro - Large & Bold */
.stat-value-pro {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-percent,
.stat-unit-pro {
  font-size: 2.2rem;
  font-weight: 700;
  color: #00d9ff;
  line-height: 1;
}

/* Labels Pro - Clean Typography */
.stat-label-pro {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.stat-sublabel {
  font-size: 0.85rem;
  color: #6a6a6a;
  font-weight: 400;
  line-height: 1.4;
}

/* === PERFORMANCE DASHBOARD WIDE === */
.performance-dashboard-wide {
  max-width: 100%;
  margin: 0 auto;
  padding: 50px 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e5e5;
  position: relative;
  z-index: 1;
}

.dashboard-layout-wide {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 60px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.dashboard-subtitle {
  font-size: 1.05rem;
  color: #6a6a6a;
  font-weight: 400;
}

/* Dashboard Grid - Main Chart + Metrics */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* === MAIN CHART - Growth Bars === */
.dashboard-chart-main {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.chart-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.chart-period {
  font-size: 0.85rem;
  color: #6a6a6a;
  font-weight: 500;
  padding: 6px 14px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

/* Chart Wrapper with Y-Axis */
.chart-wrapper {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  min-width: 50px;
}

.y-label {
  font-size: 0.75rem;
  color: #6a6a6a;
  font-weight: 600;
  text-align: right;
}

/* Growth Bars - Animated */
.growth-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  height: 280px;
  padding: 20px 0;
  position: relative;
  background-image: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: 0 0;
}

.growth-bars::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bar-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.bar-fill {
  width: 100%;
  background: #e8e8e8;
  border-radius: 12px 12px 0 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
}

.bar-fill.active {
  background: linear-gradient(180deg, #00d9ff 0%, #0077ff 100%);
  box-shadow: 0 -4px 20px rgba(0, 217, 255, 0.2);
}

.bar-fill.pulse {
  animation: pulse-bar 2s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% {
    box-shadow: 0 -4px 20px rgba(0, 217, 255, 0.2);
  }
  50% {
    box-shadow: 0 -8px 32px rgba(0, 217, 255, 0.4);
  }
}

.bar-label-inline {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}

.bar-fill.active .bar-label-inline {
  opacity: 1;
}

.bar-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4a4a4a;
  text-align: center;
}

.bar-value.highlight {
  color: #00d9ff;
  font-size: 1.1rem;
}

.bar-value.highlight-strong {
  color: #0077ff;
  font-size: 1.3rem;
}

/* === DASHBOARD METRICS === */
.dashboard-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-item {
  background: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  transition: all .3s ease;
}

.metric-item:hover {
  border-color: #00d9ff;
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.1);
  transform: translateX(4px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 119, 255, 0.08));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon svg {
  color: #00d9ff;
  stroke-width: 2.5;
}

.metric-trend {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.metric-trend.up {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.metric-trend.down {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 12px;
}

.metric-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d9ff, #0077ff);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.metric-bar-fill.success {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* === DASHBOARD CTA === */
.dashboard-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  gap: 32px;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cta-text {
  font-size: 0.95rem;
  color: #6a6a6a;
  line-height: 1.5;
}

.btn-dashboard {
  padding: 16px 36px;
  background: linear-gradient(135deg, #00d9ff, #0077ff);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.25);
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 217, 255, 0.35);
}

/* Metrics Tabs - Horizontal Layout */
.metrics-tabs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.metrics-tabs .metrics-hint {
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
}

.metrics-tabs .metric-item {
  flex: 0 1 auto;
  min-width: 200px;
  max-width: 250px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 10px;
}

.metric-trend {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.metric-bar {
  height: 5px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .testimonials-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .testimonials-mini-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .testimonial-mini {
    padding: 16px 14px;
  }
  
  .performance-dashboard-wide {
    padding: 32px 20px;
    border-radius: 20px;
  }
  
  .dashboard-title {
    font-size: 1.6rem;
  }
  
  .metrics-tabs {
    flex-direction: column;
    gap: 12px;
  }
  
  .metrics-tabs .metric-item {
    min-width: 100%;
    max-width: 100%;
  }
  
  .dashboard-grid {
    gap: 24px;
  }
  
  .growth-bars {
    height: 220px;
    gap: 12px;
  }
  
  .bar-label-inline {
    font-size: 0.65rem;
  }
  
  .dashboard-cta {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    gap: 20px;
  }
  
  .btn-dashboard {
    width: 100%;
    justify-content: center;
  }
}

/* Animation on scroll */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-card-pro,
.metric-item {
  animation: fadeInScale 0.5s ease-out;
}
