body[data-page="customers"] .go-main {
  width: min(1880px, calc(100% - 28px));
  margin: 0 auto;
}

.customers-shell {
  color: var(--text);
  box-sizing: border-box;
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 16px 34px;
}

.customers-loading {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  color: var(--muted);
}

.customers-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 18px;
}

.customers-head h2 {
  margin: 4px 0;
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 0.92;
}

.customers-head p,
.customers-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.customers-updated {
  border: 1px solid rgba(124, 199, 255, 0.22);
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.08);
  padding: 9px 13px;
}

.customers-hero-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(520px, 1.45fr);
  gap: 14px;
  margin-bottom: 14px;
}

.customers-hero-card,
.customer-signal,
.customer-kpi-group,
.customers-chart,
.customers-controls {
  border: 1px solid rgba(124, 199, 255, 0.2);
  background:
    radial-gradient(circle at 20% 12%, rgba(124, 199, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(13, 22, 34, 0.98), rgba(7, 10, 16, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026), 0 0 28px rgba(97, 175, 239, 0.08);
}

.customers-hero-card {
  min-height: 218px;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}

.customers-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -40% 18%;
  height: 190px;
  background: radial-gradient(circle, rgba(140, 242, 166, 0.24), transparent 66%);
  pointer-events: none;
}

.customers-hero-kicker,
.customer-signal span,
.customer-kpi span,
.customers-chart span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.customers-hero-card strong {
  display: block;
  margin: 12px 0 4px;
  color: #fff;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.88;
}

.customers-hero-card > span {
  color: #7cc7ff;
  font-size: 18px;
  font-weight: 800;
}

.customers-hero-card p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #d9e7f5;
  font-size: 15px;
}

.customers-signal-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-signal {
  min-height: 218px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.customer-signal strong {
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
}

.customer-signal em,
.customer-kpi em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.customers-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
  padding: 12px;
}

.customers-controls button,
.customers-controls input {
  border: 1px solid rgba(124, 199, 255, 0.42);
  border-radius: 8px;
  background: rgba(124, 199, 255, 0.1);
  color: var(--text);
  padding: 9px 12px;
}

.customers-controls button {
  cursor: pointer;
  font-weight: 900;
}

.customers-controls button[aria-pressed="true"],
.customers-controls button:hover {
  border-color: rgba(193, 140, 255, 0.95);
  background: linear-gradient(135deg, rgba(193, 140, 255, 0.24), rgba(124, 199, 255, 0.12));
  box-shadow: 0 0 18px rgba(193, 140, 255, 0.2);
}

.customers-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.customers-kpi-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.customer-kpi-group {
  padding: 16px;
}

.customer-kpi-group h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.customer-kpi-group > div {
  display: grid;
  gap: 10px;
}

.customer-kpi {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.customer-kpi strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
}

.customers-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.customers-chart {
  min-height: 292px;
  padding: 18px;
}

.customers-chart-primary {
  min-height: 382px;
}

.customers-chart-funnel {
  min-height: 382px;
}

.customers-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customers-chart h3 {
  margin: 0;
  font-size: 17px;
}

.customers-chart p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.customer-line-chart,
.customer-bar-chart {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.customers-chart-primary .customer-line-chart {
  min-height: 330px;
  max-width: 1120px;
}

.customer-grid,
.customer-axis {
  fill: none;
  stroke: rgba(127, 132, 142, 0.18);
  stroke-width: 1;
}

.customer-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(124, 199, 255, 0.24));
}

.customer-chart-point circle,
.customer-bar-point rect {
  cursor: help;
  outline: none;
  pointer-events: all;
}

.customer-chart-point circle {
  fill: #05070a;
  stroke-width: 2.5;
}

.customer-chart-point .visitors {
  stroke: #7cc7ff;
}

.customer-chart-point .signups {
  stroke: #c18cff;
}

.customer-chart-point .logins {
  stroke: #8cf2a6;
}

.customer-chart-point:hover circle,
.customer-chart-point:focus circle,
.customer-bar-point:hover rect,
.customer-bar-point:focus rect {
  stroke: #fff;
  stroke-width: 3;
}

.customer-chart-callout {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.customer-chart-point:hover + .customer-chart-callout,
.customer-chart-point:focus + .customer-chart-callout,
.customer-bar-point:hover + .customer-chart-callout,
.customer-bar-point:focus + .customer-chart-callout {
  opacity: 1;
}

.customer-chart-callout rect {
  fill: rgba(5, 7, 10, 0.96);
  stroke: rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.customer-chart-callout text,
.customer-axis-label,
.customer-x-axis text {
  fill: var(--muted);
  font: 11px Inter, sans-serif;
}

.customer-chart-callout text {
  fill: #fff;
  font-weight: 800;
}

.customer-line.visitors {
  stroke: #7cc7ff;
}

.customer-line.signups {
  stroke: #c18cff;
}

.customer-line.logins {
  stroke: #8cf2a6;
}

.customer-legend text {
  fill: var(--muted);
  font: 12px Inter, sans-serif;
}

.customer-bar-chart rect {
  filter: drop-shadow(0 0 10px rgba(193, 140, 255, 0.2));
}

.customer-funnel {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.customer-funnel-row {
  display: grid;
  grid-template-columns: 92px 1fr 88px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.customer-funnel-row div {
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.customer-funnel-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 20px currentColor;
}

.customer-funnel-row strong {
  color: var(--text);
  text-align: right;
}

.customer-tone-blue {
  border-color: rgba(124, 199, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(124, 199, 255, 0.05), 0 0 24px rgba(124, 199, 255, 0.08);
}

.customer-tone-cyan {
  border-color: rgba(104, 231, 239, 0.38);
  box-shadow: inset 0 0 0 1px rgba(104, 231, 239, 0.05), 0 0 24px rgba(104, 231, 239, 0.08);
}

.customer-tone-purple {
  border-color: rgba(193, 140, 255, 0.42);
  background:
    radial-gradient(circle at 20% 12%, rgba(193, 140, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(32, 20, 48, 0.98), rgba(10, 8, 18, 0.96));
  box-shadow: inset 0 0 0 1px rgba(193, 140, 255, 0.05), 0 0 24px rgba(193, 140, 255, 0.1);
}

.customer-tone-green {
  border-color: rgba(140, 242, 166, 0.42);
  background:
    radial-gradient(circle at 20% 12%, rgba(140, 242, 166, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(14, 39, 27, 0.98), rgba(7, 14, 11, 0.96));
  box-shadow: inset 0 0 0 1px rgba(140, 242, 166, 0.05), 0 0 24px rgba(140, 242, 166, 0.1);
}

.customer-tone-amber {
  border-color: rgba(245, 190, 109, 0.42);
  background:
    radial-gradient(circle at 20% 12%, rgba(245, 190, 109, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(44, 29, 12, 0.98), rgba(16, 11, 6, 0.96));
  box-shadow: inset 0 0 0 1px rgba(245, 190, 109, 0.05), 0 0 24px rgba(245, 190, 109, 0.09);
}

/* ── Branded skeleton (pre-hydration) ───────────────────────── */

.customers-brand-mark {
  position: absolute;
  top: 18px;
  right: 22px;
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.28));
}

.customers-skel-dash {
  color: rgba(255, 255, 255, 0.18);
  animation: customers-skel-pulse 2.2s ease-in-out infinite;
}

@keyframes customers-skel-pulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.42; }
}

.customers-skel-pill {
  opacity: 0.45;
}

.customers-skel-range {
  color: var(--faint);
  font-size: 12px;
  padding: 4px 0;
}

.customers-skel-canvas {
  min-height: 210px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.025) 0%,
    rgba(255,255,255,0.045) 50%,
    rgba(255,255,255,0.025) 100%);
  background-size: 200% 100%;
  animation: customers-skel-shimmer 2.4s ease-in-out infinite;
}

.customers-chart-primary .customers-skel-canvas,
.customers-chart-funnel .customers-skel-canvas {
  min-height: 310px;
}

@keyframes customers-skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1180px) {
  .customers-hero-grid,
  .customers-chart-grid {
    grid-template-columns: 1fr;
  }

  .customers-signal-stack,
  .customers-kpi-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-page="customers"] .go-main {
    width: min(100% - 18px, 1780px);
  }

  .customers-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customers-signal-stack,
  .customers-kpi-groups {
    grid-template-columns: 1fr;
  }

  .customers-hero-card,
  .customer-signal,
  .customers-chart {
    min-height: auto;
  }

  .customer-funnel-row {
    grid-template-columns: 78px 1fr 68px;
  }
}
