/* ==========================================================
   CM-PRO-ONLY
   Module: Analytics UI styles
   Added: 2026-03
========================================================== */
/* CM PRO – Analytics (self-contained minimal UI) */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --line: rgba(255,255,255,0.12);
  --accent1: #0050b3;
  --accent2: #009fe3;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(900px 600px at 10% 10%, rgba(0,159,227,0.18), transparent 60%),
              radial-gradient(800px 500px at 90% 20%, rgba(0,80,179,0.20), transparent 60%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.topbar{
  position: sticky;
  top:0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(10,18,32,0.72);
}
.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand .dot{
  width: 14px; height: 14px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 0 4px rgba(0,159,227,0.10);
}
.brand .title{ font-weight: 700; letter-spacing: 0.2px; }
.brand .subtitle{ color: var(--muted); font-size: 12px; margin-top: -2px; }

.nav{ display:flex; align-items:center; gap:10px; }
.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{ background: rgba(255,255,255,0.06); }
.btn.primary{
  border-color: rgba(0,159,227,0.30);
  background: linear-gradient(135deg, rgba(0,80,179,0.55), rgba(0,159,227,0.45));
}

.container{ max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; }

.heroCard{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.heroHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.heroHeader h1{
  margin:0;
  font-size: 22px;
}
.heroMeta{ display:flex; gap: 10px; align-items:center; }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,159,227,0.25);
  background: rgba(0,159,227,0.08);
  font-size: 12px;
  font-weight: 700;
}

.statsGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 980px){
  .statsGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .statsGrid{ grid-template-columns: 1fr; }
}

.stat{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px 12px 10px;
}
.stat .k{ color: var(--muted); font-size: 12px; font-weight: 700; }
.stat .v{ font-size: 26px; font-weight: 800; margin-top: 4px; }

.charts{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .charts{ grid-template-columns: 1fr; }
}

.chartCard{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
}
.chartHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.chartTitle{ font-weight: 800; }
.chartBody{
  border-top: 1px dashed rgba(255,255,255,0.12);
  padding-top: 10px;
}
.fallback{
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.foot{ margin-top: 12px; padding: 0 4px 2px; } 
