/* ==================== ADVANCED STATS STYLES ==================== */

/* Date Picker */
.stats-date-picker {
  display: flex;
  gap: 8px;
}

.stats-date-picker .input-group {
  width: auto;
}

.stats-date-picker input[type="date"] {
  max-width: 130px;
  font-size: 0.875rem;
}

.stats-preset {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

/* Tabs Navigation */
.stats-tabs {
  gap: 8px;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  padding-bottom: 12px;
}

.stats-tabs .nav-link {
  border: 0;
  color: var(--bs-body-color);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.stats-tabs .nav-link:hover {
  background-color: var(--bs-secondary-bg);
  border-bottom-color: var(--bs-primary);
}

.stats-tabs .nav-link.active {
  background: 0;
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}

/* Content Areas */
.stats-content {
  animation: fadeIn 0.3s ease;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  padding-right: 8px;
}

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

/* Chart Containers */
.chart-container {
  background: var(--bs-secondary-bg);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  min-height: 350px;
  max-height: 380px;
}

.chart-container:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Premium Chart Containers - ApexCharts */
.premium-chart {
  background: linear-gradient(135deg, var(--bs-secondary-bg) 0%, rgba(99, 102, 241, 0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  max-height: 420px;
}

.premium-chart:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.apex-chart-wrapper {
  min-height: 340px;
  position: relative;
}

/* ApexCharts Custom Styling */
.apexcharts-tooltip {
  background: rgba(15, 17, 26, 0.95) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.apexcharts-tooltip-title {
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 8px;
}

.apexcharts-tooltip-text-y-value {
  color: #4f46e5 !important;
  font-weight: 600;
}

/* Canvas fallback */
.chart-container canvas {
  max-height: 300px !important;
  height: 300px !important;
}

.chart-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bs-body-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.chart-title i {
  font-size: 1.1rem;
  color: #4f46e5;
}

/* Stat Cards avec animations */
.stat-card {
  background: var(--bs-secondary-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5 0%, #8b5cf6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

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

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.sc-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color);
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.8;
}

.sc-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.sc-meta {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  opacity: 0.7;
}

/* Animation d'apparition pour les counters */
@keyframes countup {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sc-value {
  animation: countup 0.6s ease-out;
}

/* 🌀 ANIMATIONS RADAR & EFFET WOW */
@keyframes radarPulse {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.3));
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  }
}

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

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  }
}

/* ApexCharts Radar Custom */
.apexcharts-radar {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.apexcharts-radar-series circle {
  stroke: #4f46e5 !important;
  stroke-width: 2;
}

.apexcharts-marker {
  transition: all 0.3s ease;
}

/* Halo effect sur les points du radar */
.apexcharts-radar-series:hover circle {
  r: 8;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

/* Radar Chart Wrapper */
.chart-radar-wrapper {
  position: relative !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.apex-radar {
  position: relative;
  width: 100%;
}

/* Performance Badge au centre */
.radar-performance-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 17, 26, 0.85);
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  animation: glowPulse 3s ease-in-out infinite;
}

.rpb-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.rpb-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  font-weight: 600;
  margin-top: 4px;
}

/* 🌍 CARTE DU MONDE */
.chart-world-wrapper {
  min-height: 480px !important;
  max-height: 520px !important;
  padding: 0;
}

/* WORLD MAP WRAPPER */
.chart-world-wrapper {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%) !important;
  border-radius: 20px;
  overflow: hidden;
}

.map-overlay-info {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}

/* TOP 10 PAYS AVEC DRAPEAUX */
.countries-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.grid-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.country-rank-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.country-rank-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.cri-flag {
  font-size: 1.5rem;
}

.cri-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.cri-value {
  font-size: 0.8rem;
  color: var(--bs-primary);
  font-family: 'Monaco', monospace;
}

/* Country Rank Card (Grid Layout) */
.top-country {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.country-rank-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.country-rank-card:hover {
  border-color: rgba(139, 92, 246, 0.5) !important;
  background: rgba(139, 92, 246, 0.08) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.country-rank-card:hover::before {
  opacity: 1;
}

.country-rank-card .badge {
  font-weight: 600;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6) !important;
}

.country-rank-card .progress {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-rank-card .text-primary {
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Follower Country Map */
.follower-country {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#countryMap {
  width: 100%;
}

/* JSVectorMap Overrides */
.jsvectormap {
  background: transparent !important;
}

.jsvectormap-container {
  background: transparent !important;
}

.jsvectormap-region-tooltip {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.chart-title i {
  opacity: 0.7;
}

/* Stat Cards */
.stat-card {
  background: linear-gradient(135deg, var(--bs-secondary-bg) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.sc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-body-color);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sc-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.sc-meta {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.6;
}

.sc-meta.positive {
  color: #10b981;
}

.sc-meta.negative {
  color: #ef4444;
}

.sc-meta.neutral {
  color: #f59e0b;
}

/* Lists (Cities, OS, etc.) */
#cities-list,
#os-list,
#resolution-list,
#countries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bs-secondary-bg);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.list-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.list-item-name {
  font-weight: 500;
  color: var(--bs-body-color);
}

.list-item-bar {
  flex: 1;
  height: 4px;
  background: var(--bs-border-color-translucent);
  border-radius: 2px;
  margin: 0 12px;
  overflow: hidden;
}

.list-item-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bs-primary), #8b5cf6);
  border-radius: 2px;
}

.list-item-value {
  font-weight: 600;
  color: var(--bs-primary);
  min-width: 45px;
  text-align: right;
}

/* Découvrez Masira Section */
.masira-tabs .nav-link {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--bs-body-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.masira-tabs .nav-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.masira-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#discover-masira-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

#nouvelles-list, #astuces-list, #evolutions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nouvelle-item, .astuce-item, .evolution-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--bs-primary);
  transition: all 0.2s ease;
}

.nouvelle-item:hover, .astuce-item:hover, .evolution-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

.nouvelle-item .item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  margin-bottom: 4px;
}

.nouvelle-item .item-desc {
  font-size: 0.8rem;
  color: var(--bs-body-color);
  opacity: 0.8;
  line-height: 1.4;
}

.nouvelle-item .item-date {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.6;
  margin-top: 6px;
}

/* Team & Activities */
#team-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
}

#activities-card {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(245, 158, 11, 0.05));
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.05);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.team-member-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(2px);
}

.team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.team-member-info {
  flex: 1;
  min-width: 0;
}

.team-member-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 2px;
}

.team-member-status {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.7;
}

.team-status-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-status-badge.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.team-status-badge.offline {
  background: #64748b;
}

/* Activity Timeline */
.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.activity-item.show {
  border-left-color: #f59e0b;
}

.activity-item.playlist {
  border-left-color: #6366f1;
}

.activity-item.upload {
  border-left-color: #10b981;
}

.activity-item.config {
  border-left-color: #ec4899;
}

.activity-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(2px);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.6;
  margin-bottom: 4px;
}

.activity-content {
  font-size: 0.85rem;
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-meta {
  font-size: 0.75rem;
  color: var(--bs-body-color);
  opacity: 0.7;
}

/* AI Analysis Card */
.ai-analysis-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(168, 85, 247, 0.06) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.ai-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  padding: 12px;
  background: var(--bs-secondary-bg);
  border-left: 4px solid var(--bs-primary);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideIn 0.3s ease;
}

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

.insight-item.tip {
  border-left-color: #10b981;
}

.insight-item.warning {
  border-left-color: #f59e0b;
}

.insight-item.insight {
  border-left-color: #6366f1;
}

.insight-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.1rem;
  vertical-align: middle;
}

.insight-text {
  color: var(--bs-body-color);
}

.insight-text strong {
  color: var(--bs-primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1399px) {
  .stats-date-picker {
    flex-direction: column;
  }

  .stats-date-picker .input-group {
    width: 100%;
  }

  .stats-date-picker input[type="date"] {
    max-width: 100%;
  }

  .chart-container {
    min-height: 300px;
    max-height: 340px;
  }

  .chart-container canvas {
    max-height: 270px !important;
    height: 270px !important;
  }
}

@media (max-width: 768px) {
  .chart-container {
    padding: 12px;
    min-height: 280px;
    max-height: 320px;
  }

  .chart-container canvas {
    max-height: 240px !important;
    height: 240px !important;
  }

  .stat-card {
    padding: 12px;
  }

  .sc-value {
    font-size: 1.35rem;
  }

  .stats-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-tabs .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #cities-list,
  #os-list,
  #resolution-list,
  #countries-list {
    max-height: 250px;
  }

  .stats-content {
    max-height: calc(100vh - 400px);
  }
}

/* Animation du point live */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.green {
  background-color: #22c55e;
}

.dot.pulse {
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Badge Styling */
.bg-soft-primary {
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.border-primary-subtle {
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Dark Mode */
[data-bs-theme="dark"] .chart-container {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(99, 102, 241, 0.08) 100%);
}

[data-bs-theme="dark"] .list-item {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .list-item:hover {
  background: rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .insight-item {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .ai-analysis-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.3);
}

/* ==================== LIVE AUDIENCE PROGRESSION ==================== */

.live-audience-container {
  padding: 16px 0;
}

/* Live Count Display */
.live-count-display {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.live-count-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.lcd-label {
  font-size: 0.875rem;
  color: var(--bs-body-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lcd-label i {
  color: #ef4444;
  animation: livePulse 2s ease-in-out infinite;
}

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

.lcd-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
  animation: countPulse 1s ease-out;
}

@keyframes countPulse {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.lcd-trend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.trend-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
}

.trend-icon::before {
  content: '↑';
  color: #10b981;
}

.lcd-trend.decreasing .trend-icon::before {
  content: '↓';
  color: #ef4444;
}

.lcd-trend.stable .trend-icon::before {
  content: '→';
  color: #f59e0b;
}

.trend-text {
  color: var(--bs-body-color);
}

.lcd-meta {
  font-size: 0.8rem;
  color: var(--bs-body-color-rgb);
  opacity: 0.7;
  margin-top: 8px;
}

/* Live Progression Chart */
.live-progression-chart {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.live-progression-chart .chart-title {
  color: #3b82f6;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-progression-chart .chart-title i {
  animation: chartPulse 2s ease-in-out infinite;
}

@keyframes chartPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Dark Mode */
[data-bs-theme="dark"] .live-count-display {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.4);
}

[data-bs-theme="dark"] .live-progression-chart {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ==================== MARKETPLACE CHART STYLES ==================== */

#line_chart_basic {
  min-height: 340px !important;
  height: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .lcd-value {
    font-size: 2rem;
  }

  .live-count-display {
    padding: 16px;
  }

  #line_chart_basic {
    min-height: 300px !important;
  }
}
