/* FRA Prop HQ v8.1.4 — visible ambient trading background */
#fraAmbientWash,
#fraAmbient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}

#fraAmbientWash {
  z-index: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(163,255,60,.060), transparent 43%),
    radial-gradient(circle at 87% 88%, rgba(0,230,130,.050), transparent 49%);
  animation: fraAmbientWashDrift 34s ease-in-out infinite alternate;
}

#fraAmbient {
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
}

body.fra-ambient-active #fraAmbientWash,
body.fra-ambient-active #fraAmbient {
  opacity: 1;
}

/* v8.1.3 was hidden by opaque app-shell/view backgrounds. These overrides
   deliberately open those surfaces so the canvas can actually be seen. */
body.fra-ambient-active .app-shell {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

body.fra-ambient-active .app-shell > .main-content {
  background: rgba(8,10,11,.46) !important;
  -webkit-backdrop-filter: blur(.55px);
  backdrop-filter: blur(.55px);
}

body.fra-ambient-active .app-shell .view {
  background: transparent !important;
}

body.fra-ambient-active .app-shell .topbar {
  background: rgba(8,10,11,.86) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Sidebar stays solid for navigation clarity. */
body.fra-ambient-active .app-shell > .sidebar {
  background: rgba(11,13,14,.97) !important;
}

/* Data surfaces stay readable but allow a tiny amount of ambient depth. */
body.fra-ambient-active .app-shell .panel {
  background: rgba(15,18,19,.92) !important;
}

body.fra-ambient-active .app-shell .kpi-card,
body.fra-ambient-active .app-shell .table-wrap,
body.fra-ambient-active .app-shell .data-table {
  background-color: rgba(12,15,16,.90) !important;
}

@keyframes fraAmbientWashDrift {
  from { opacity: .68; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 760px) {
  body.fra-ambient-active .app-shell > .main-content {
    background: rgba(8,10,11,.58) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fraAmbientWash { animation: none; }
}
