/* Erra twin chrome — reflection palette (violet → gold), same industrial DNA as Velaru */

body.erra-surface {
  --erra-violet: #818cf8;
  --erra-gold: #fbbf24;
  --erra-cyan: #4fd1c5;
  --erra-panel: rgba(12, 16, 24, 0.94);
  --erra-border: rgba(129, 140, 248, 0.28);
}

body.erra-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -6;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 92% -8%, rgba(129, 140, 248, 0.18), transparent 58%),
    radial-gradient(760px 480px at 8% 12%, rgba(251, 191, 36, 0.1), transparent 52%),
    radial-gradient(700px 600px at 50% 110%, rgba(129, 140, 248, 0.08), transparent 62%);
}

body.erra-surface .industrial-grid {
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.05) 1px, transparent 1px);
}

body.erra-surface .velaru-nav a.active,
body.erra-surface .velaru-nav-pills a.active,
body.erra-surface .compliance-subnav a.active {
  border-color: rgba(129, 140, 248, 0.55) !important;
  color: var(--erra-violet) !important;
  background: rgba(129, 140, 248, 0.1) !important;
}

body.erra-surface .velaru-nav a:hover,
body.erra-surface .compliance-subnav a:hover {
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: var(--erra-gold) !important;
}

body.erra-surface h1 {
  background: linear-gradient(90deg, var(--erra-violet), var(--erra-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.erra-surface .btn-primary,
body.erra-surface a.btn-primary {
  background: linear-gradient(135deg, var(--erra-violet), #6366f1) !important;
  color: #0b0820 !important;
  border: none !important;
}

body.erra-surface .btn-primary:hover,
body.erra-surface a.btn-primary:hover {
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.42) !important;
}

body.erra-surface .live-bar,
body.erra-surface .live-pill.ok,
body.erra-surface .twin-strip {
  border-color: var(--erra-border) !important;
  background: rgba(129, 140, 248, 0.08) !important;
}

body.erra-surface .live-pill em,
body.erra-surface a {
  color: var(--erra-violet);
}

body.erra-surface a:hover {
  color: var(--erra-gold);
}

body.erra-surface .section h2,
body.erra-surface .card strong {
  color: var(--erra-violet) !important;
}

body.erra-surface .reflection-table th {
  background: rgba(129, 140, 248, 0.1);
  color: var(--erra-violet);
}

body.erra-surface .peer-infra-strip {
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(251, 191, 36, 0.05));
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.55;
}

body.erra-surface .peer-infra-strip strong {
  color: var(--erra-gold);
  font-family: 'Space Grotesk', sans-serif;
}

body.erra-surface .peer-infra-strip code {
  color: var(--erra-violet);
  font-size: 10px;
}

body.erra-surface .industrial-content a,
body.erra-surface .industrial-content button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
