/* ===== ANALYTICS DASHBOARD ===== */
.analytics-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.analytics-panel {
  width: 100%; max-width: 680px; max-height: 85vh; overflow-y: auto;
  border-radius: 24px; padding: 1.5rem;
}
.analytics-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.analytics-header h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.analytics-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.an-stat {
  text-align: center; padding: 1rem 0.5rem;
  background: var(--glass-inner); border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.an-stat-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.an-stat-label { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.2rem; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.an-card {
  background: var(--glass-inner); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1rem;
}
.an-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.8rem; }
.an-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.an-bar-row { display: flex; align-items: center; gap: 0.5rem; }
.an-bar-label { font-size: 0.72rem; color: var(--text-dim); min-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { flex: 1; height: 6px; background: rgba(94,92,230,0.08); border-radius: 3px; overflow: hidden; }
.an-bar-fill { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.5s ease; }
.an-bar-val { font-size: 0.72rem; font-weight: 700; color: var(--accent); min-width: 24px; text-align: right; }
.an-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 0.5rem; }
.an-chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.an-chart-fill { width: 100%; background: var(--gradient); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; }
.an-chart-label { font-size: 0.6rem; color: var(--text-dim); margin-top: 0.3rem; transform: rotate(-45deg); white-space: nowrap; }
@media(max-width:600px) {
  .analytics-overlay{padding:1rem}
  .analytics-panel{padding:1rem;border-radius:18px}
  .analytics-stats { grid-template-columns: repeat(2,1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
  .an-stat-num{font-size:1rem}
  .an-stat-label{font-size:0.62rem}
  .an-chart{height:80px}
}
