/*
 * VELAEA verified-badge surface standard
 * Gives transparent verification artwork a consistent, readable backdrop in
 * Light Mode without changing the original badge assets or Dark Mode.
 */
:root {
  --velaea-verified-surface-bg:
    radial-gradient(ellipse at center,
      rgba(13, 30, 48, .18) 0%,
      rgba(13, 30, 48, .10) 38%,
      rgba(13, 30, 48, .035) 58%,
      transparent 78%);
  --velaea-verified-surface-border: transparent;
  --velaea-verified-surface-shadow:
    0 14px 30px rgba(15, 23, 42, .12),
    0 4px 10px rgba(15, 23, 42, .08);
}

html[data-theme="light"] :is(.velaea-verified-backtest-stamp, .community-verified-stamp),
body.light-mode :is(.velaea-verified-backtest-stamp, .community-verified-stamp) {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 14px 22px rgba(15, 23, 42, .13))
    drop-shadow(0 3px 7px rgba(15, 23, 42, .10)) !important;
}

html[data-theme="light"] [data-verified-badge-surface],
body.light-mode [data-verified-badge-surface] {
  position: relative;
  isolation: isolate;
}

html[data-theme="light"] [data-verified-badge-surface]::before,
body.light-mode [data-verified-badge-surface]::before {
  position: absolute;
  z-index: -1;
  content: "";
  border: 0;
  background: var(--velaea-verified-surface-bg);
  box-shadow: none;
  filter: blur(12px);
  opacity: .88;
  pointer-events: none;
}

html[data-theme="light"] [data-verified-badge-surface="wide"]::before,
body.light-mode [data-verified-badge-surface="wide"]::before {
  inset: -18% -10%;
  border-radius: 45%;
}

html[data-theme="light"] [data-verified-badge-surface="seal"]::before,
body.light-mode [data-verified-badge-surface="seal"]::before {
  top: 50%;
  left: 50%;
  width: min(86%, 248px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

html[data-theme="light"] [data-verified-badge-surface] > img,
body.light-mode [data-verified-badge-surface] > img {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 13px 20px rgba(15, 23, 42, .14))
    drop-shadow(0 3px 6px rgba(15, 23, 42, .09)) !important;
}

@media (max-width: 640px) {
  html[data-theme="light"] [data-verified-badge-surface="wide"]::before,
  body.light-mode [data-verified-badge-surface="wide"]::before {
    inset: -16% -8%;
    border-radius: 45%;
  }

  html[data-theme="light"] [data-verified-badge-surface="seal"]::before,
  body.light-mode [data-verified-badge-surface="seal"]::before {
    width: min(90%, 218px);
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] :is(.velaea-verified-backtest-stamp, .community-verified-stamp),
  body.light-mode :is(.velaea-verified-backtest-stamp, .community-verified-stamp) {
    transition: none !important;
  }
}

.verified-forward-chart-stamp {position:absolute;right:12px;bottom:10px;width:clamp(92px,18%,150px);height:auto;z-index:5;pointer-events:none;object-fit:contain;}
.mt5-svg-chart,.bt-chart{position:relative;}
@media(max-width:640px){.verified-forward-chart-stamp{right:7px;bottom:7px;width:88px;}}
