/* TradePlexa 3.3.45 — Large chromatic fog header / slow breathing banners.
   Replaces ONLY the mountain background in the dashboard header.
   Keeps original data, cards, chart, functionality and their videos intact.
   No second border. The new video loops gently every 24 seconds. */

/* One full-width chromatic-fog canvas behind the toolbar, Dashboard heading
   and the first section divider. The previous mountain <img> is removed. */
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 0 auto 0 !important;
  height: 415px !important;
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  background: #020b1d url('../assets/media/tp3345-chromatic-fog-poster.webp?v=3.3.45') center / 100% 100% no-repeat !important;
  /* Blend the fog naturally into the dark dashboard before the KPI cards. */
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 65%,rgba(0,0,0,.80) 81%,transparent 100%);
  mask-image: linear-gradient(180deg,#000 0%,#000 65%,rgba(0,0,0,.80) 81%,transparent 100%);
}
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero > .tp3345-fog-hero-video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important; /* show the ENTIRE fog composition in the tall hero */
  object-position: center center !important;
  opacity: .91 !important;
  filter: saturate(1.03) brightness(.92);
  pointer-events: none !important;
}
/* Gentle shadow behind the text; no fake lines or added borders. */
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(2,10,26,.82) 0%,
    rgba(2,10,26,.56) 22%,
    rgba(2,10,26,.22) 52%,
    rgba(2,10,26,.08) 78%,
    rgba(2,10,26,.20) 100%);
}
/* All header and section text must sit above the decorative hero video. */
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;
}

/* Large, single-piece first banner: the same background is visible THROUGH
   the first divider, avoiding two independent videos or a double fog layer. */
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {
  min-height: 170px !important;
  padding: 22px 25px !important;
  background: linear-gradient(90deg,rgba(2,9,23,.26),rgba(2,9,23,.02) 75%) !important;
  border: 0 !important;
  border-radius: 19px !important;
  box-shadow: none !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head > .tp3344-fog-video {
  display: none !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head::before {
  background: linear-gradient(90deg,
    rgba(2,9,23,.76) 0%,rgba(2,9,23,.58) 20%,
    rgba(2,9,23,.19) 45%,transparent 76%) !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head::after {
  background: linear-gradient(180deg,rgba(2,9,23,.10),transparent 34%,rgba(2,9,23,.10)) !important;
}

/* The other two section banners use the same NEW slow fog MP4. */
html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {
  min-height: 150px !important;
  padding: 22px 25px !important;
  background: #030c1d url('../assets/media/tp3345-chromatic-fog-poster.webp?v=3.3.45') center / cover no-repeat !important;
  border: 0 !important;
  border-radius: 19px !important;
  box-shadow: none !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter-head > .tp3344-fog-video {
  opacity: .92 !important;
  filter: saturate(1.03) brightness(.95) !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter-head .tp3343-chapter-line {
  display: none !important;
}
@media (max-width: 820px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {height: 385px !important;}
  html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {min-height: 138px !important;padding:18px !important;}
  html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
  html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {min-height: 125px !important;padding:18px !important;}
}
@media (max-width: 520px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {height: 355px !important;}
  html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {min-height: 114px !important;padding:13px !important;}
  html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
  html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {min-height: 110px !important;padding:13px !important;}
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero::after {
    background: linear-gradient(90deg,rgba(2,10,26,.84),rgba(2,10,26,.40) 66%,rgba(2,10,26,.22));
  }
}
@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;}
}
