/* ETHsns ambient background FX — login, desk, hero */
.ethsns-fx-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ethsns-fx-wrap > .ethsns-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ethsns-fx-canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}
.ethsns-fx-grid {
  z-index: 1;
  background:
    linear-gradient(rgba(98, 217, 174, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 217, 174, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 42% 38%, #000 15%, transparent 72%);
  opacity: 0.65;
  animation: ethsns-grid-drift 28s linear infinite;
}
.ethsns-fx-aurora {
  z-index: 0;
  background:
    radial-gradient(520px 380px at 18% 22%, rgba(49, 196, 147, 0.38), transparent 62%),
    radial-gradient(480px 420px at 82% 68%, rgba(43, 108, 176, 0.22), transparent 58%),
    radial-gradient(640px 520px at 55% 105%, rgba(98, 217, 174, 0.2), transparent 55%),
    #0a1814;
  filter: blur(0);
}
.ethsns-fx-aurora::before,
.ethsns-fx-aurora::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: ethsns-aurora 14s ease-in-out infinite alternate;
}
.ethsns-fx-aurora::before {
  background: radial-gradient(circle, rgba(126, 240, 200, 0.35) 0%, transparent 62%);
  transform: translate(-8%, -6%);
}
.ethsns-fx-aurora::after {
  background: radial-gradient(circle, rgba(64, 140, 255, 0.22) 0%, transparent 65%);
  animation-duration: 18s;
  animation-delay: -4s;
  transform: translate(10%, 8%);
}
.ethsns-fx-scan {
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(126, 240, 200, 0.06) 48%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(126, 240, 200, 0.05) 52%,
    transparent 58%
  );
  background-size: 220% 100%;
  animation: ethsns-scan 7s ease-in-out infinite;
  opacity: 0.7;
}
.ethsns-fx-vignette {
  z-index: 3;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 35%, rgba(5, 14, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 20, 16, 0.15), rgba(8, 20, 16, 0.72));
}
.ethsns-fx-flow {
  z-index: 2;
  overflow: hidden;
}
.ethsns-fx-content {
  position: relative;
  z-index: 4;
}
.ethsns-fx-node {
  position: absolute;
  left: -140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 6px;
  border-radius: 999px;
  background: rgba(15, 31, 25, 0.72);
  border: 1px solid rgba(98, 217, 174, 0.28);
  color: #dce8e4;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(49, 196, 147, 0.12);
  animation: ethsns-flow-across var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.ethsns-fx-node i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  color: #0f2b23;
  background: linear-gradient(135deg, #7ef0c8, #31c493);
}
.ethsns-auth-fx {
  position: relative;
  overflow: hidden;
  background: #eef2f0 !important;
}
.ethsns-auth-fx::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(49, 196, 147, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(43, 108, 176, 0.12), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), transparent 55%);
  animation: ethsns-auth-glow 16s ease-in-out infinite alternate;
}
.ethsns-auth-fx .card {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 60px rgba(16, 32, 28, 0.08),
    0 0 0 1px rgba(22, 133, 101, 0.06);
  border-radius: 10px;
  padding: 8px 8px 4px;
}
.ethsns-workspace-fx {
  opacity: 0.48;
}
.shell.fx-ready .topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}
.shell.fx-ready .list-pane,
.shell.fx-ready .detail-pane {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.shell.fx-ready .chat {
  background: rgba(247, 248, 247, 0.78);
  backdrop-filter: blur(6px);
}
.shell.fx-ready .placeholder {
  background: transparent;
}
.sidebar.fx-sidebar {
  background:
    linear-gradient(165deg, #152320 0%, #122822 45%, #0f1f1a 100%);
  position: relative;
  overflow: hidden;
}
.sidebar.fx-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(98, 217, 174, 0.08), transparent 38%, rgba(49, 196, 147, 0.05));
  pointer-events: none;
}
.sidebar.fx-sidebar > * {
  position: relative;
  z-index: 1;
}
.hero.fx-hero .hero-chart {
  opacity: 0.58;
}
.hero.fx-hero .hero-slide::before {
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(49, 196, 147, 0.15), transparent 55%),
    rgba(9, 27, 21, 0.58);
}
@keyframes ethsns-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}
@keyframes ethsns-aurora {
  0% { transform: translate(-6%, -4%) scale(1); opacity: 0.45; }
  100% { transform: translate(8%, 6%) scale(1.08); opacity: 0.72; }
}
@keyframes ethsns-scan {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
@keyframes ethsns-flow-across {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 280px)); opacity: 0; }
}
@keyframes ethsns-auth-glow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.06) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ethsns-fx-grid,
  .ethsns-fx-aurora::before,
  .ethsns-fx-aurora::after,
  .ethsns-fx-scan,
  .ethsns-auth-fx::before,
  .ethsns-fx-node {
    animation: none !important;
  }
  .ethsns-fx-canvas {
    display: none;
  }
}
