/* TradePlexa 3.3.46 — Seamless fog: no panel edge, no mid-line, true 60-second loop.
   Additive patch for v3.3.45. Changes only the dashboard decorative fog.
   Preserve card layout, all charts, trade logic and six card animations. */

/* The old abstract backdrop was behind the video and could create extra seams. */
html body #dashboard.page.premium-dashboard::before {
  display: none !important;
  content: none !important;
}

/* This is atmospheric background, NOT a boxed card.
   The new MP4 is rendered on #030e20 (TradePlexa midnight blue), with soft
   native edge feathering. CSS also fades it into the underlying page. */
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
  position: absolute !important;
  top: -2px !important;
  left: -18px !important;
  right: -18px !important;
  bottom: auto !important;
  width: auto !important;
  height: 500px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%, rgba(0,0,0,.25) 8%, #000 23%,
    #000 70%, rgba(0,0,0,.65) 82%, transparent 100%) !important;
  mask-image: linear-gradient(180deg,
    transparent 0%, rgba(0,0,0,.25) 8%, #000 23%,
    #000 70%, rgba(0,0,0,.65) 82%, transparent 100%) !important;
}
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero > .tp3345-fog-hero-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: .98 !important;
  filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Readable left side, feathered rather than a dark rectangular overlay. */
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg,
    rgba(3,14,32,.35) 0%, rgba(3,14,32,.12) 30%,
    transparent 64%, rgba(3,14,32,.07) 100%) !important;
}

/* Fix the visible HORIZONTAL CUT at the top of section 01.
   In v3.3.45 the section header had its own rectangular background and
   two pseudo-elements, despite its duplicate video being hidden. */
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  isolation: auto !important;
  overflow: visible !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head::before,
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head > .tp3344-fog-video {
  display: none !important;
}
/* Keep all heading text above the atmosphere; cards already have their own layers. */
html body #dashboard.page.premium-dashboard > .tp68-topbar,
html body #dashboard.page.premium-dashboard > .ref-head.tp68-head,
html body #dashboard.page.premium-dashboard > .tp3343-chapter {
  position: relative !important;
  z-index: 1 !important;
}

/* Remaining chapter banners: the SAME calm video, no extra brightening. */
html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {
  background: #030e20 url('../assets/media/tp3346-chromatic-fog-poster.webp?v=3.3.46') center / cover no-repeat !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter-head > .tp3344-fog-video {
  opacity: .94 !important;
  filter: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 820px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
    left: -12px !important;
    right: -12px !important;
    height: 440px !important;
  }
}
@media (max-width: 520px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
    left: -9px !important;
    right: -9px !important;
    height: 380px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero > .tp3345-fog-hero-video,
  html body #dashboard.page.premium-dashboard .tp3343-chapter-head > .tp3344-fog-video {
    display: none !important;
  }
}
