/* AOM Traders V40 — Fixed Header + Market Bias Chart + Product Media Finish */
:root{
  --v40-header-space:96px;
  --v40-cyan:#2fd6f3;
  --v40-bear:#ff5d70;
  --v40-neutral:#f2c45c;
}

/* V40 wallpaper: brighter futuristic city, still dark enough for trading UI. */
body{
  background:
    linear-gradient(180deg,rgba(3,15,24,.10),rgba(3,15,24,.27)),
    radial-gradient(circle at 52% 57%,rgba(53,205,229,.10),transparent 38%),
    url('/assets/wallpapers/current.webp?v=4001') center center/cover fixed no-repeat!important;
  padding-top:var(--v40-header-space)!important;
}

/* Header must be viewport-fixed, not sticky inside a short parent. */
.header-shell.v40-fixed-header,
.site-header.v40-fixed-header{
  position:fixed!important;
  top:14px!important;
  left:14px!important;
  right:14px!important;
  bottom:auto!important;
  width:auto!important;
  margin:0!important;
  z-index:2147483500!important;
  transform:none!important;
  background:rgba(4,18,28,.92)!important;
  border:1px solid rgba(56,208,237,.22)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(12px) saturate(125%)!important;
  -webkit-backdrop-filter:blur(12px) saturate(125%)!important;
}
.header-shell.v40-fixed-header .site-header{
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;
  transform:none!important;
}

/* Homepage: align the XAUUSD visual with the top of the left hero column. */
.aom-v40-home-xau-card{
  align-self:start!important;
  position:relative!important;
  z-index:2!important;
  transition:none!important;
}
.aom-v40-home-xau-card svg{overflow:visible!important}
.aom-v40-home-xau-card.is-bearish{--v40-chart-color:var(--v40-bear)}
.aom-v40-home-xau-card.is-bullish{--v40-chart-color:var(--v40-cyan)}
.aom-v40-home-xau-card.is-neutral{--v40-chart-color:var(--v40-neutral)}

/* Product media: remove the visible rectangular/cropped look of source artwork. */
.v40-product-hero{padding-top:46px!important;padding-bottom:46px!important}
.v40-product-shell{align-items:center!important}
.v40-product-media{overflow:visible!important}
.v40-logo-stage{
  position:relative!important;
  width:min(100%,650px)!important;
  aspect-ratio:16/10!important;
  overflow:hidden!important;
  border-radius:28px!important;
  padding:18px!important;
  background:
    radial-gradient(circle at 50% 46%,rgba(61,214,235,.10),transparent 48%),
    linear-gradient(145deg,rgba(8,31,44,.54),rgba(4,19,29,.34))!important;
  border:1px solid rgba(66,206,233,.10)!important;
  box-shadow:0 24px 72px rgba(0,0,0,.16)!important;
}
.v40-logo-stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 0 70px 30px rgba(4,19,29,.72)!important;
}
.v40-logo-stage img{
  position:relative!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:20px!important;
  filter:drop-shadow(0 18px 32px rgba(0,0,0,.28))!important;
  transform:none!important;
}
.v40-review-slot{
  width:min(100%,650px)!important;
  min-height:48px!important;
  margin:16px auto 0!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
}
.v40-review-slot:empty{display:none!important;min-height:0!important;margin:0!important}
.v40-review-slot .btn,
.v40-review-slot .btn-secondary,
.v40-review-slot .v40-performance-review{
  min-width:220px!important;
  min-height:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(12,52,68,.92),rgba(7,34,47,.92))!important;
  border:1px solid rgba(53,211,240,.36)!important;
  color:#effcff!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
.v40-review-slot .btn:hover,
.v40-review-slot .v40-performance-review:hover{
  border-color:rgba(53,211,240,.70)!important;
  background:linear-gradient(180deg,rgba(14,66,83,.98),rgba(8,43,57,.98))!important;
}

/* Slightly brighter glass so the new wallpaper can be seen without washing out text. */
:is(.v39-product-info,.product-card,.market-card,.workspace-card,.detail-card,.hub-panel,.xau-card,.calendar-card,.access-card,.app-card){
  background:linear-gradient(145deg,rgba(7,31,44,.78),rgba(5,23,34,.69))!important;
  border-color:rgba(75,214,238,.18)!important;
}

@media(max-width:1000px){
  :root{--v40-header-space:88px}
  .v40-logo-stage{width:min(94%,720px)!important;aspect-ratio:16/9!important}
  .aom-v40-home-xau-card{margin-top:0!important;transform:none!important}
}
@media(max-width:700px){
  :root{--v40-header-space:78px}
  .header-shell.v40-fixed-header,.site-header.v40-fixed-header{
    top:8px!important;left:8px!important;right:8px!important;
  }
  .v40-logo-stage{width:100%!important;padding:12px!important;border-radius:22px!important}
  .v40-review-slot .btn,.v40-review-slot .v40-performance-review{width:100%!important;max-width:320px!important}
}
