/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

:root {
  --disciply-menu-viewport-height: 100dvh;
  --disciply-menu-top-padding: calc(84px + env(safe-area-inset-top, 0px));
  --disciply-menu-bottom-padding: calc(28px + env(safe-area-inset-bottom, 0px));
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-main, #e5e7eb);
  min-height: 100vh;
  padding-bottom: 80px; /* spazio per navbar */
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

body::before {
  z-index: -3;
}

body::after {
  z-index: -2;
}

.app-background-layer {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-background-layer::before,
.app-background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-background-layer__starfield,
.app-background-layer__noise,
.app-background-layer__market-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.app-background-layer__starfield {
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-background-layer__noise {
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-background-layer__market-wall,
.background-theme-preview__market-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--market-wall-columns, 18), minmax(0, 1fr));
  grid-template-rows: repeat(var(--market-wall-rows, 12), minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(28px, 4vw, 72px);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
  mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.app-background-layer__market-wall::before,
.app-background-layer__market-wall::after,
.background-theme-preview__market-wall::before,
.background-theme-preview__market-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-background-layer__market-wall::before,
.background-theme-preview__market-wall::before {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 48%, rgba(20, 25, 31, 0.7) 0%, rgba(20, 25, 31, 0.54) 16%, rgba(20, 25, 31, 0.18) 32%, transparent 48%),
    linear-gradient(90deg, rgba(14, 18, 24, 0.68) 0%, rgba(14, 18, 24, 0.24) 16%, transparent 34%, transparent 66%, rgba(14, 18, 24, 0.24) 84%, rgba(14, 18, 24, 0.68) 100%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.34) 0%, transparent 18%, transparent 82%, rgba(14, 18, 24, 0.42) 100%);
}

.app-background-layer__market-wall::after,
.background-theme-preview__market-wall::after {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.035), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 28%);
  opacity: 0.5;
}

.market-wall-cell {
  --market-wall-tone: 146, 160, 176;
  --market-wall-strength: 0.18;
  --market-wall-opacity: 0.68;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-height: 52px;
  padding: 11px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(var(--market-wall-tone), calc(0.035 + var(--market-wall-strength) * 0.12)), rgba(15, 19, 25, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(var(--market-wall-tone), calc(0.04 + var(--market-wall-strength) * 0.06));
  opacity: var(--market-wall-opacity);
  transform:
    translate(var(--market-wall-offset-x, 0px), var(--market-wall-offset-y, 0px))
    scale(calc(0.94 + var(--market-wall-depth, 0.4) * 0.08));
  color: rgba(230, 236, 243, 0.78);
  transition:
    background 720ms ease,
    border-color 720ms ease,
    box-shadow 720ms ease,
    opacity 720ms ease,
    transform 520ms ease,
    color 520ms ease;
  overflow: hidden;
}

.market-wall-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%);
  opacity: 0.54;
  pointer-events: none;
}

.market-wall-cell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(18px - 1px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.market-wall-cell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.market-wall-cell__symbol,
.market-wall-cell__tag,
.market-wall-cell__value,
.market-wall-cell__meta {
  display: block;
}

.market-wall-cell__symbol,
.market-wall-cell__tag,
.market-wall-cell__meta {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.market-wall-cell__symbol {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(235, 240, 246, 0.76);
}

.market-wall-cell__tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(162, 176, 191, 0.58);
}

.market-wall-cell__value {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(15px, 1.05vw, 22px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(232, 238, 244, 0.86);
  text-shadow: 0 0 18px rgba(var(--market-wall-tone), calc(0.04 + var(--market-wall-strength) * 0.08));
}

.market-wall-cell__meta {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(184, 195, 206, calc(0.54 + var(--market-wall-strength) * 0.18));
}

.market-wall-cell.is-rising {
  --market-wall-tone: 74, 196, 129;
}

.market-wall-cell.is-rising .market-wall-cell__value,
.market-wall-cell.is-rising .market-wall-cell__meta {
  color: rgba(196, 243, 214, 0.88);
}

.market-wall-cell.is-falling {
  --market-wall-tone: 224, 96, 107;
}

.market-wall-cell.is-falling .market-wall-cell__value,
.market-wall-cell.is-falling .market-wall-cell__meta {
  color: rgba(248, 205, 209, 0.88);
}

.market-wall-cell.is-neutral {
  --market-wall-tone: 135, 148, 162;
}

.market-wall-cell.is-glow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(var(--market-wall-tone), calc(0.08 + var(--market-wall-strength) * 0.08)),
    0 0 26px rgba(var(--market-wall-tone), calc(0.05 + var(--market-wall-strength) * 0.08));
}

html.native-performance-mode .app-background-layer__market-wall .market-wall-cell,
html.native-performance-mode .app-background-layer__market-wall .market-wall-cluster,
html.native-performance-mode .background-theme-preview__market-wall .market-wall-cell,
html.native-performance-mode .background-theme-preview__market-wall .market-wall-cluster {
  transition: none !important;
  will-change: auto !important;
}

html.native-performance-mode .app-background-layer__market-wall .market-wall-cell.is-glow,
html.native-performance-mode .background-theme-preview__market-wall .market-wall-cell.is-glow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(var(--market-wall-tone), 0.08);
}

html.native-performance-mode .app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::before,
html.native-performance-mode .background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::before {
  filter: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] {
  display: block;
  padding: 0;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell {
  position: relative;
  display: grid;
  justify-items: start;
  width: fit-content;
  max-width: none;
  min-width: 44px;
  min-height: auto;
  padding: 2px 0;
  border-radius: 0;
  align-content: center;
  gap: 1px;
  opacity: calc(0.14 + var(--market-wall-opacity) * 0.64);
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  white-space: nowrap;
  transform:
    translate(var(--market-wall-anchor-x, 0%), var(--market-wall-anchor-y, 0%))
    translate(var(--market-wall-offset-x, 0px), var(--market-wall-offset-y, 0px))
    scale(calc(0.94 + var(--market-wall-depth, 0.4) * 0.08));
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-position-mode="absolute"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-position-mode="absolute"] {
  position: absolute;
  z-index: 1;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="left"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="left"] {
  justify-items: end;
  text-align: right;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  height: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--market-wall-tone), calc(0.03 + var(--market-wall-strength) * 0.12)), transparent 72%);
  opacity: 0.42;
  filter: blur(10px);
  transform: translateY(-50%);
  pointer-events: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell::after {
  content: "";
  position: absolute;
  top: calc(50% + 1px);
  width: var(--market-wall-line-length, 64px);
  height: 1px;
  opacity: calc(0.26 + var(--market-wall-strength) * 0.42);
  background: linear-gradient(90deg, rgba(var(--market-wall-tone), calc(0.22 + var(--market-wall-strength) * 0.26)), rgba(var(--market-wall-tone), 0));
  transform: translateY(-50%);
  pointer-events: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="right"]::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="right"]::after {
  left: calc(100% + 7px);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="left"]::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="left"]::after {
  right: calc(100% + 7px);
  transform: translateY(-50%) scaleX(-1);
  transform-origin: center;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="none"]::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-line-dir="none"]::after {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__head,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__head {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__symbol,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__symbol {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: rgba(220, 229, 238, 0.24);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__tag,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__tag {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__value,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__value {
  font-size: clamp(10px, 0.8vw, 13px);
  line-height: 1;
  font-weight: 600;
  opacity: 0.94;
  color: rgba(230, 236, 242, 0.82);
  text-shadow: 0 0 14px rgba(var(--market-wall-tone), calc(0.04 + var(--market-wall-strength) * 0.1));
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__meta,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell__meta {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-muted="true"] .market-wall-cell__symbol,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-muted="true"] .market-wall-cell__symbol {
  color: rgba(220, 229, 238, 0.16);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"] {
  opacity: calc(0.08 + var(--market-wall-opacity) * 0.42);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"]::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"]::before {
  opacity: 0.18;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"] .market-wall-cell__value,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="ghost"] .market-wall-cell__value {
  font-size: clamp(9px, 0.72vw, 12px);
  color: rgba(var(--market-wall-tone), calc(0.34 + var(--market-wall-strength) * 0.22));
  text-shadow: 0 0 10px rgba(var(--market-wall-tone), 0.08);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="stack"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="stack"] {
  gap: 0;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="boxed"],
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="boxed"] {
  min-width: auto;
  padding: 3px 7px 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(var(--market-wall-tone), calc(0.1 + var(--market-wall-strength) * 0.18)), rgba(8, 12, 16, 0.04));
  box-shadow:
    0 0 0 1px rgba(var(--market-wall-tone), calc(0.06 + var(--market-wall-strength) * 0.08)),
    0 0 18px rgba(var(--market-wall-tone), calc(0.05 + var(--market-wall-strength) * 0.08));
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="boxed"]::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell[data-cell-kind="boxed"]::before {
  opacity: 0.22;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-neutral,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-rising,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-falling,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-neutral,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-rising,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-falling {
  background-color: transparent;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-glow,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-glow {
  opacity: calc(0.18 + var(--market-wall-opacity) * 0.74);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-glow::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cell.is-glow::before {
  opacity: 0.66;
}

.market-wall-cluster {
  --cluster-accent: 178, 188, 198;
  position: absolute;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(var(--cluster-accent), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(var(--cluster-accent), 0.04), rgba(10, 13, 18, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 28px rgba(0, 0, 0, 0.16),
    0 0 28px rgba(var(--cluster-accent), 0.05);
  opacity: 0.74;
  overflow: hidden;
  pointer-events: none;
  transition:
    border-color 620ms ease,
    box-shadow 620ms ease,
    opacity 620ms ease,
    background 620ms ease;
}

.market-wall-cluster[data-cluster-tone="green"] {
  --cluster-accent: 74, 196, 129;
}

.market-wall-cluster[data-cluster-tone="red"] {
  --cluster-accent: 224, 96, 107;
}

.market-wall-cluster[data-cluster-tone="warm"] {
  --cluster-accent: 231, 178, 96;
}

.market-wall-cluster[data-cluster-tone="neutral"] {
  --cluster-accent: 178, 188, 198;
}

.market-wall-cluster[data-cluster-tone="cool"] {
  --cluster-accent: 136, 156, 214;
}

.market-wall-cluster.is-rising {
  --cluster-accent: 74, 196, 129;
}

.market-wall-cluster.is-falling {
  --cluster-accent: 224, 96, 107;
}

.market-wall-cluster.is-neutral {
  --cluster-accent: 178, 188, 198;
}

.market-wall-cluster.is-active {
  opacity: 0.92;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(var(--cluster-accent), 0.14),
    0 0 36px rgba(var(--cluster-accent), 0.08);
}

.market-wall-cluster::before,
.market-wall-cluster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.market-wall-cluster::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), transparent 32%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 13px),
    linear-gradient(90deg, rgba(var(--cluster-accent), 0.018), transparent 24%, transparent 76%, rgba(var(--cluster-accent), 0.018));
  opacity: 0.36;
}

.market-wall-cluster::after {
  inset: 1px;
  border-radius: calc(18px - 1px);
  border: 1px solid rgba(255, 255, 255, 0.028);
}

.market-wall-cluster__label {
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 2;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220, 229, 238, 0.56);
}

.market-wall-cluster--ladder,
.market-wall-cluster--profile {
  min-height: 160px;
}

.market-wall-ladder,
.market-wall-profile {
  position: absolute;
  inset: 22px 8px 8px;
  display: grid;
  gap: 2px;
}

.market-wall-ladder__row,
.market-wall-profile__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 12px;
}

.market-wall-ladder__bar,
.market-wall-profile__bar {
  display: flex;
  align-items: center;
  min-height: 11px;
  width: calc(14% + var(--fill, 0.2) * 86%);
  padding: 0 4px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.market-wall-ladder__bar--bid,
.market-wall-profile__bar--left {
  justify-self: end;
  justify-content: flex-end;
  color: rgba(255, 182, 171, 0.84);
  background: linear-gradient(90deg, rgba(242, 74, 57, 0.02), rgba(242, 74, 57, 0.28));
  box-shadow: 0 0 16px rgba(242, 74, 57, 0.06);
}

.market-wall-ladder__bar--ask,
.market-wall-profile__bar--right {
  justify-self: start;
  justify-content: flex-start;
  color: rgba(189, 241, 209, 0.84);
  background: linear-gradient(90deg, rgba(74, 196, 129, 0.28), rgba(74, 196, 129, 0.02));
  box-shadow: 0 0 16px rgba(74, 196, 129, 0.06);
}

.market-wall-ladder__price,
.market-wall-profile__price {
  min-width: 38px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  text-align: center;
  color: rgba(223, 231, 239, 0.74);
  letter-spacing: 0.04em;
}

.market-wall-cluster--profile .market-wall-profile__bar {
  min-height: 12px;
  opacity: 0.9;
}

.market-wall-cluster--zone {
  background: rgba(14, 18, 24, 0.04);
  border-color: rgba(var(--cluster-accent), 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.032),
    0 0 0 1px rgba(var(--cluster-accent), 0.06),
    0 0 32px rgba(var(--cluster-accent), 0.04);
}

.market-wall-cluster--zone::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.024));
  opacity: 0.3;
}

.market-wall-zone__head {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-wall-zone__title,
.market-wall-zone__delta,
.market-wall-zone__marker {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.market-wall-zone__title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(217, 226, 235, 0.58);
}

.market-wall-zone__value {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(228, 235, 242, 0.84);
}

.market-wall-zone__delta {
  font-size: 8.5px;
  color: rgba(var(--cluster-accent), 0.82);
}

.market-wall-zone__line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(50% + var(--zone-line-offset, 0px));
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--cluster-accent), 0.28) 18%, rgba(var(--cluster-accent), 0.72) 50%, rgba(var(--cluster-accent), 0.28) 82%, transparent 100%);
  opacity: 0.78;
}

.market-wall-zone__line::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--cluster-accent), 0.85);
  box-shadow: 0 0 12px rgba(var(--cluster-accent), 0.24);
  transform: translateX(-50%);
}

.market-wall-zone__marker {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: rgba(183, 194, 205, 0.5);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster {
  background: transparent;
  box-shadow: none;
  opacity: 0.92;
  overflow: visible;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile {
  border: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder::before,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile::before,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder::after,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--ladder::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--profile::after {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster__label,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster__label {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile {
  inset: 6px 0 0;
  gap: 1px;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder::before,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(223, 231, 239, 0.2), rgba(223, 231, 239, 0.08) 42%, rgba(223, 231, 239, 0.12) 100%);
  opacity: 0.42;
  transform: translateX(-50%);
  pointer-events: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row {
  gap: 1px;
  min-height: 8px;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar {
  width: calc(10% + var(--fill, 0.2) * 90%);
  min-height: 8px;
  font-size: 6.5px;
  padding: 0 2px;
  border-radius: 2px;
  opacity: calc(0.3 + var(--fill, 0.2) * 0.72);
  box-shadow: 0 0 14px rgba(var(--cluster-accent), 0.1);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar--bid,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar--left,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar--bid,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar--left {
  background: linear-gradient(90deg, rgba(242, 74, 57, 0.015), rgba(242, 74, 57, var(--bar-alpha, 0.42)));
  box-shadow: 0 0 18px rgba(242, 74, 57, 0.08);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar--ask,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar--right,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__bar--ask,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__bar--right {
  background: linear-gradient(90deg, rgba(74, 196, 129, var(--bar-alpha, 0.42)), rgba(74, 196, 129, 0.015));
  box-shadow: 0 0 18px rgba(74, 196, 129, 0.08);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__price,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__price {
  min-width: 29px;
  font-size: 6.8px;
  color: rgba(226, 234, 241, 0.68);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row.is-left-dominant .market-wall-ladder__price,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row.is-left-dominant .market-wall-profile__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row.is-left-dominant .market-wall-ladder__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row.is-left-dominant .market-wall-profile__price {
  color: rgba(255, 170, 150, 0.78);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row.is-right-dominant .market-wall-ladder__price,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row.is-right-dominant .market-wall-profile__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-ladder__row.is-right-dominant .market-wall-ladder__price,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-profile__row.is-right-dominant .market-wall-profile__price {
  color: rgba(168, 237, 193, 0.82);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--zone,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--zone,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline {
  border-radius: 0;
  border-width: 1px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(var(--cluster-accent), 0.06),
    0 0 18px rgba(var(--cluster-accent), 0.025);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--zone::before,
.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--zone::before,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline::before {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline::after,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-cluster--outline::after {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__title,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__title {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__head,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__head {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__value,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__value {
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(228, 235, 242, 0.34);
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__delta,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__delta {
  font-size: 6px;
  opacity: 0.48;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__line,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__line {
  display: none;
}

.app-background-layer__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__marker,
.background-theme-preview__market-wall[data-market-wall-variant="orderflow"] .market-wall-zone__marker {
  display: none;
}

/* Evita il flash del login mentre Firebase verifica la sessione */
body.auth-pending #authBar,
body.auth-pending #app {
  display: none !important;
}

body.auth-pending #authLoader {
  display: flex;
}

body.bootstrap-shell-pending #authLoader {
  display: none !important;
}

/* Mantiene nascosta la dashboard mobile finche il routing desktop post-login non e deciso. */
body.desktop-route-pending #authBar,
body.desktop-route-pending #app {
  display: none !important;
}

body.desktop-route-pending #authLoader {
  display: flex !important;
}

body.bootstrap-shell-pending #authBar {
  display: none !important;
}

body.bootstrap-shell-pending #app {
  display: block !important;
}

body.bootstrap-shell-pending .after-login {
  display: block !important;
}

body.bootstrap-shell-pending .pre-login {
  display: none !important;
}

body.bootstrap-shell-pending #app,
body.bootstrap-login-transition #app,
body.bootstrap-shell-pending #authBar,
body.bootstrap-login-transition #authBar {
  transition: opacity 220ms ease, transform 220ms ease;
}

body.bootstrap-shell-pending #app {
  opacity: 1;
  transform: translateY(0);
}

body.bootstrap-login-transition #app {
  opacity: 0;
  transform: translateY(10px);
}

body.bootstrap-login-transition #authBar {
  opacity: 0;
  transform: translateY(12px);
}

.bootstrap-status-banner {
  position: sticky;
  top: 16px;
  z-index: 12140;
  display: none;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100vw - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(245, 209, 95, 0.12), rgba(20, 24, 32, 0.94) 45%, rgba(20, 24, 32, 0.9)),
    rgba(12, 15, 21, 0.86);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.bootstrap-status-banner.is-visible {
  display: flex;
}

.bootstrap-status-banner__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f5d15f;
  box-shadow: 0 0 0 6px rgba(245, 209, 95, 0.12), 0 0 18px rgba(245, 209, 95, 0.55);
  animation: bootstrapStatusPulse 1.8s ease-in-out infinite;
}

.bootstrap-status-banner__copy {
  display: grid;
  gap: 4px;
}

.bootstrap-status-banner__copy strong {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #f8ebbc;
}

.bootstrap-status-banner__copy span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.45;
}

.bootstrap-status-banner__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.bootstrap-status-step {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.bootstrap-status-step.is-active {
  border-color: rgba(245, 209, 95, 0.32);
  background: rgba(245, 209, 95, 0.14);
  color: #f8ebbc;
}

.bootstrap-status-step.is-done {
  border-color: rgba(83, 210, 139, 0.28);
  background: rgba(83, 210, 139, 0.12);
  color: #d8f7e4;
}

.bootstrap-status-step.is-warning {
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.14);
  color: #ffd9bf;
}

.bootstrap-status-step.is-pending {
  opacity: 0.78;
}

@media (max-width: 640px) {
  .bootstrap-status-banner {
    width: calc(100vw - 24px);
    margin-top: 14px;
    padding: 12px;
    gap: 10px;
  }

  .bootstrap-status-banner__steps {
    gap: 5px;
  }

  .bootstrap-status-step {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 10px;
  }
}

.bootstrap-status-banner[data-status="ok"] .bootstrap-status-banner__dot {
  background: #53d28b;
  box-shadow: 0 0 0 6px rgba(83, 210, 139, 0.12), 0 0 18px rgba(83, 210, 139, 0.45);
}

.bootstrap-status-banner[data-status="offline"] .bootstrap-status-banner__dot {
  background: #7dd3fc;
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.12), 0 0 18px rgba(125, 211, 252, 0.45);
}

.bootstrap-status-banner[data-status="warning"] .bootstrap-status-banner__dot {
  background: #fb923c;
  box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.14), 0 0 18px rgba(251, 146, 60, 0.42);
}

[data-bootstrap-skeleton="pending"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

[data-bootstrap-skeleton="pending"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, 0.22), rgba(11, 15, 21, 0.34));
  transform: translateX(-100%);
  animation: bootstrapSkeletonSweep 1.45s ease-in-out infinite;
  pointer-events: none;
}

[data-bootstrap-skeleton="pending"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(11, 15, 21, 0.18);
  pointer-events: none;
}

#heroSection[data-bootstrap-skeleton="pending"] {
  min-height: 220px;
}

.export-section[data-bootstrap-skeleton="pending"] {
  min-height: 360px;
  border-radius: 20px;
}

#tradesList[data-bootstrap-skeleton="pending"] {
  min-height: 184px;
  border-radius: 18px;
}

#performanceSection[data-bootstrap-skeleton="pending"],
#calendarioSection[data-bootstrap-skeleton="pending"],
#consoleSection[data-bootstrap-skeleton="pending"],
#traderProfileSection[data-bootstrap-skeleton="pending"],
#analysisSection[data-bootstrap-skeleton="pending"] {
  min-height: 220px;
  border-radius: 20px;
}

#equityChart[data-bootstrap-skeleton="pending"] {
  display: block;
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

#decisionImpactMapSection[data-bootstrap-skeleton="pending"] {
  min-height: 360px;
  border-radius: 26px;
}

body.bootstrap-shell-pending .btn,
body.bootstrap-shell-pending input,
body.bootstrap-shell-pending select,
body.bootstrap-shell-pending textarea,
body.bootstrap-shell-pending canvas {
  user-select: none;
}

.auth-loader {
  position: fixed;
  inset: 0;
  z-index: 12050;
  background:
    radial-gradient(1200px 520px at 50% -20%, rgba(212, 175, 55, 0.14), transparent 60%),
    rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-loader__panel {
  width: min(320px, 90vw);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.92), rgba(15, 18, 24, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.auth-loader__orbital {
  width: 58px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
}

.auth-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.auth-loader__ring--outer {
  border: 2px solid rgba(212, 175, 55, 0.23);
  border-top-color: rgba(212, 175, 55, 0.9);
  border-right-color: rgba(212, 175, 55, 0.55);
  animation: authSpin 1.2s linear infinite;
}

.auth-loader__ring--inner {
  inset: 9px;
  border: 2px solid rgba(246, 214, 118, 0.2);
  border-bottom-color: rgba(246, 214, 118, 0.82);
  border-left-color: rgba(246, 214, 118, 0.5);
  animation: authSpinReverse 0.9s linear infinite;
}

.auth-loader__core {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffe9a4 0%, #d4af37 70%, #967720 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.75);
}

.auth-loader__brand {
  font-size: 12px;
  letter-spacing: 2.2px;
  color: #f2d98b;
  font-weight: 700;
}

.auth-loader__text {
  margin: 0;
  color: #d8dde7;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.auth-loader__bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auth-loader__bar-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(245, 209, 95, 0.95), rgba(212, 175, 55, 0.2));
  animation: authBarSlide 1.25s ease-in-out infinite;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

@keyframes authSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes authBarSlide {
  0% { transform: translateX(-140%); }
  60% { transform: translateX(190%); }
  100% { transform: translateX(190%); }
}

@keyframes bootstrapSkeletonSweep {
  0% {
    transform: translateX(-100%);
  }
  55% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes bootstrapStatusPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* =========================
   COLORI GLOBALI
========================= */
:root {
  --bg-main: #0e0f12;
  --bg-card: #16181d;
  --bg-soft: #1e2128;
  --surface-raised: #0f1115;
  --surface-elevated: #141720;
  --input-bg: #1e2128;
  --text-main: #f3f5fb;
  --text-soft: #cfd5df;
  --text-muted: #9ca3af;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.28);
  --overlay: rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(12, 15, 22, 0.92);
  --nav-border: rgba(255, 255, 255, 0.08);
  --positive: #2ecc71;
  --danger: #e74c3c;
  --warning: #f59e0b;

  --gold: #d4af37;
  --gold-dark: #b8962e;
  --green: #2ecc71;
  --red: #e74c3c;
  --gray: #9ca3af;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 420px;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px; /* SPAZIATURA VERA */
}

/* =========================
   TITOLI
========================= */
h1 {
  font-size: 22px;
  color: var(--text-main, #fff);
}

h2 {
  font-size: 18px;
  color: var(--text-main, #fff);
}

/* =========================
   CARD
========================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px; /* evita effetto “attaccato” */
  box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,0.45));
}
.card h3 {
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.equity-chart-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.equity-chart-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 4px;
}

.equity-chart-surface {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

#equityChart {
  width: 100% !important;
  display: block;
}

.equity-chart-customize {
  min-width: 150px;
}

/* ================= XM CTA ================= */
.xm-cta-section {
  max-width: 1080px;
  margin: 30px auto 20px;
  padding: 0 22px;
  display: flex;
  justify-content: center;
}

.xm-cta-card {
  width: 100%;
  max-width: 980px;
  border: 1px solid rgba(255, 58, 58, 0.24);
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #0b0b0d 0%, #0f0f17 48%, #1a0101 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 0 50px rgba(255, 58, 58, 0.08);
}

.xm-cta-badge {
  display: inline-flex;
  font-size: 0.72rem;
  color: #ffd6d6;
  border: 1px solid rgba(255, 58, 58, 0.38);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(166, 0, 0, 0.2);
}

.xm-cta-title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #ffe9e9;
  text-shadow: 0 2px 18px rgba(255, 58, 58, 0.35);
}

.xm-cta-text {
  margin: 0;
  color: #c7c7c7;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 760px;
}

.xm-cta-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.xm-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 58, 58, 0.5);
  background: linear-gradient(180deg, #ff1f1f 0%, #b90000 100%);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(166, 0, 0, 0.45);
}

.xm-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(166, 0, 0, 0.55);
}

.xm-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd1d1;
  border: 1px solid rgba(255, 209, 209, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 14px;
}

@media (max-width: 720px) {
  .xm-cta-section {
    padding: 0 16px;
  }

  .xm-cta-card {
    padding: 22px;
    border-radius: 18px;
    text-align: center;
  }

  .xm-cta-text {
    margin-left: auto;
    margin-right: auto;
  }

  .xm-cta-actions {
    justify-content: center;
  }

  .xm-cta-btn,
  .xm-cta-ghost {
    width: 100%;
  }
}

/* ================= SUPPORT CENTER ================= */
.support-center-section {
  margin: 24px auto 18px;
  padding: 0 16px;
}

.support-center-card {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(255, 214, 0, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 0, 0.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(8, 9, 13, 0.98), rgba(11, 13, 16, 0.96));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.support-center-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.045), transparent 24%);
}

.support-center-header,
.support-center-trust-row,
.support-center-channel-list,
.support-center-email-card,
.support-center-actions {
  position: relative;
  z-index: 1;
}

.support-center-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.support-center-header-copy {
  min-width: 0;
}

.support-center-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #ffd000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.support-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 0, 0.18);
  background: rgba(255, 214, 0, 0.08);
  color: #ffd467;
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
}

.support-center-badge svg,
.support-center-trust-icon svg,
.support-center-channel-icon svg,
.support-center-channel-arrow svg,
.support-center-copy-button svg,
.support-center-email-micro-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-center-title {
  margin: 18px 0 0;
  color: #f5f5f5;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.support-center-subtitle {
  max-width: 720px;
  margin: 16px 0 0;
  color: #a1a1aa;
  font-size: clamp(1rem, 2.3vw, 1.16rem);
  line-height: 1.65;
}

.support-center-trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-center-trust-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.support-center-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffd000;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(255, 214, 0, 0.04);
}

.support-center-trust-item strong {
  display: block;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 600;
}

.support-center-trust-item p {
  margin: 4px 0 0;
  color: #9ca3af;
  line-height: 1.45;
}

.support-center-channel-list {
  display: grid;
  gap: 14px;
}

.support-center-channel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.support-center-channel-card:hover,
.support-center-channel-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.support-center-channel-card:focus-visible,
.support-center-copy-button:focus-visible,
.support-center-primary-btn:focus-visible,
.support-center-secondary-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 0, 0.42);
  outline-offset: 2px;
}

.support-center-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 7vw, 72px);
  height: clamp(58px, 7vw, 72px);
  border-radius: 50%;
  color: #ffd000;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 214, 0, 0.08), transparent 65%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-center-channel-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.support-center-channel-title {
  color: #f5f5f5;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.support-center-channel-description {
  color: #9ca3af;
  font-size: clamp(0.97rem, 2vw, 1.08rem);
  line-height: 1.55;
}

.support-center-channel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
}

.support-center-email-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1), transparent 30%),
    rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.support-center-email-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #b3c7ff;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-center-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.support-center-email-address {
  color: #f5f5f5;
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.support-center-copy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: #9bb8ff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.support-center-copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.52);
  background: rgba(96, 165, 250, 0.1);
}

.support-center-email-note {
  color: #c8d2ea;
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.support-center-email-micro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fb2ff;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.5;
}

.support-center-email-micro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7ea7ff;
}

.support-center-copy-status {
  min-height: 1.2em;
  color: #dbe7ff;
  font-size: 0.95rem;
}

.support-center-actions {
  display: grid;
  gap: 12px;
}

.support-center-primary-btn,
.support-center-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: clamp(1.08rem, 2.2vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
  gap: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.support-center-primary-btn {
  color: #111318;
  border: 1px solid rgba(255, 214, 0, 0.55);
  background: linear-gradient(135deg, #e0ad20, #ffd34d);
  box-shadow: 0 14px 26px rgba(224, 173, 32, 0.2);
}

.support-center-secondary-btn {
  color: #ffd467;
  border: 1px solid rgba(255, 214, 0, 0.38);
  background: rgba(255, 255, 255, 0.015);
}

.support-center-primary-btn:hover,
.support-center-secondary-btn:hover {
  transform: translateY(-2px);
}

.support-center-primary-btn svg,
.support-center-secondary-btn svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 760px) {
  .support-center-trust-item {
    padding-inline: 8px;
  }

  .support-center-trust-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 22px;
  }

  .support-center-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .support-center-section {
    margin: 14px auto 10px;
  }

  .support-center-card {
    gap: 13px;
    padding: 15px 14px;
    border-radius: 20px;
  }

  .support-center-header {
    gap: 10px;
  }

  .support-center-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .support-center-badge {
    align-self: start;
    min-height: 32px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.74rem;
  }

  .support-center-badge svg {
    width: 16px;
    height: 16px;
  }

  .support-center-title {
    margin-top: 8px;
    font-size: clamp(1.58rem, 7vw, 2.08rem);
    line-height: 1.03;
  }

  .support-center-subtitle {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .support-center-trust-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
  }

  .support-center-trust-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .support-center-trust-icon {
    width: 34px;
    height: 34px;
  }

  .support-center-trust-item strong {
    font-size: 0.84rem;
  }

  .support-center-trust-item p {
    margin-top: 1px;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .support-center-channel-list {
    gap: 8px;
  }

  .support-center-channel-card {
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .support-center-channel-icon {
    width: 40px;
    height: 40px;
  }

  .support-center-channel-icon svg {
    width: 18px;
    height: 18px;
  }

  .support-center-channel-title {
    font-size: 0.94rem;
  }

  .support-center-channel-description {
    font-size: 0.79rem;
    line-height: 1.28;
  }

  .support-center-channel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .support-center-email-card {
    gap: 10px;
    padding: 11px;
    border-radius: 15px;
  }

  .support-center-email-label {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .support-center-email-address {
    font-size: clamp(1.06rem, 5.2vw, 1.45rem);
    letter-spacing: -0.03em;
  }

  .support-center-copy-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .support-center-copy-button svg {
    width: 16px;
    height: 16px;
  }

  .support-center-email-note {
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .support-center-email-micro {
    gap: 8px;
    padding-top: 10px;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .support-center-email-micro-icon svg {
    width: 15px;
    height: 15px;
  }

  .support-center-copy-status {
    font-size: 0.74rem;
  }

  .support-center-primary-btn,
  .support-center-secondary-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    gap: 10px;
  }

  .support-center-primary-btn svg,
  .support-center-secondary-btn svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 560px) {
  .support-center-section {
    padding: 0 10px;
  }

  .support-center-card {
    gap: 11px;
    border-radius: 18px;
    padding: 13px 12px;
  }

  .support-center-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .support-center-title {
    font-size: clamp(1.42rem, 8vw, 1.76rem);
  }

  .support-center-subtitle {
    font-size: 0.8rem;
  }

  .support-center-channel-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
  }

  .support-center-email-card {
    padding: 10px;
    border-radius: 14px;
  }

  .support-center-email-row {
    align-items: flex-start;
    gap: 8px;
  }

  .support-center-email-address {
    font-size: clamp(0.98rem, 5.8vw, 1.26rem);
  }

  .support-center-actions {
    gap: 6px;
  }

  .support-center-primary-btn,
  .support-center-secondary-btn {
    min-height: 43px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .support-center-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .support-center-badge {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .support-center-title {
    font-size: 1.34rem;
  }

  .support-center-channel-title {
    font-size: 0.88rem;
  }

  .support-center-channel-description,
  .support-center-email-note {
    font-size: 0.76rem;
  }

  .support-center-trust-item strong {
    font-size: 0.8rem;
  }

  .support-center-trust-item p,
  .support-center-email-micro,
  .support-center-copy-status {
    font-size: 0.71rem;
  }
}

.equity-chart-custom-range {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.equity-chart-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.equity-chart-custom-label {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.equity-chart-custom-label input {
  margin: 0;
}

.equity-chart-apply {
  width: 100%;
  padding: 9px;
  font-size: 12px;
}

/* =========================
   INPUT & FORM
========================= */
input, select {
  width: 100%;
  background: var(--input-bg, var(--bg-soft));
  border: 1px solid var(--border-soft, #2a2d35);
  border-radius: 12px;
  padding: 13px;
  color: var(--text-main, white);
  font-size: 14px;
}

input::placeholder {
  color: var(--gray);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

.asset-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.asset-field {
  position: relative;
}

.asset-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid #2a2d35;
  border-radius: 12px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 20;
}

.asset-results.hidden {
  display: none;
}

.asset-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #23262e;
}

.asset-item:last-child {
  border-bottom: none;
}

.asset-item:hover,
.asset-item.active {
  background: #1f232b;
}

.asset-symbol {
  font-weight: 600;
  color: #fff;
}

.asset-name {
  color: var(--gray);
  font-size: 12px;
}

.tv-widget {
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form {
  scroll-margin-top: 88px;
}

.tv-widget__inner {
  min-height: 150px;
}

.tv-widget__note {
  font-size: 12px;
  color: var(--gray);
}

@media (max-width: 460px) {
  .asset-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BOTTONI (FIX ATTACCATI)
========================= */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
/*
.btn + .btn {
  margin-top: 12px; /* SPAZIO TRA BOTTONI 
}
*/
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0e0f12;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.forum-btn{
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color:#0e0f12;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.forum-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.btn-danger {
  background: var(--red);
  color: white;
}

/* =========================
   DASHBOARD STATS
========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--bg-soft);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}

.stat-box span {
  font-size: 12px;
  color: var(--gray);
}

.stat-box strong {
  font-size: 17px;
  display: block;
  margin-top: 4px;
}

/* =========================
   TRADE LIST
========================= */
.trade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.trade-content{
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.trades-toolbar{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 12px 0 8px;
}

.operations-market-entry{
  position: relative;
  isolation: isolate;
  appearance: none;
  width: 100%;
  min-height: 82px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(62px, 0.78fr) minmax(150px, 2.35fr) minmax(62px, 0.78fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(126, 160, 176, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 15%, rgba(77, 255, 116, 0.08), transparent 34%),
    radial-gradient(circle at 75% 88%, rgba(255, 57, 72, 0.07), transparent 34%),
    linear-gradient(112deg, #09140d 0%, #0b100d 29%, #101415 51%, #160d0f 73%, #240b0d 100%);
  color: #f6faf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.operations-market-entry::before,
.operations-market-entry::after{
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  transform: skewX(-13deg);
}

.operations-market-entry::before{
  left: 27%;
  background: linear-gradient(180deg, transparent, rgba(91, 224, 98, 0.34), transparent);
}

.operations-market-entry::after{
  right: 23%;
  background: linear-gradient(180deg, transparent, rgba(255, 70, 78, 0.34), transparent);
}

.operations-market-entry__side{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.operations-market-entry__side::before{
  content: "";
  position: absolute;
  inset: 12% -18%;
  opacity: 0.75;
  filter: blur(10px);
  pointer-events: none;
}

.operations-market-entry__bull{
  background: linear-gradient(118deg, rgba(10, 75, 25, 0.9), rgba(19, 97, 31, 0.27) 72%, transparent);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.operations-market-entry__bull::before{
  background: radial-gradient(circle, rgba(85, 255, 99, 0.46), transparent 66%);
}

.operations-market-entry__bear{
  background: linear-gradient(70deg, transparent, rgba(111, 21, 25, 0.36) 28%, rgba(118, 16, 22, 0.86));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.operations-market-entry__bear::before{
  background: radial-gradient(circle, rgba(255, 67, 76, 0.42), transparent 66%);
}

.operations-market-entry__side svg{
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operations-market-entry__bull svg{
  color: #62ef5a;
  filter: drop-shadow(0 0 7px rgba(73, 239, 79, 0.42));
}

.operations-market-entry__bear svg{
  color: #ff4d57;
  filter: drop-shadow(0 0 7px rgba(255, 58, 68, 0.38));
}

.operations-market-entry__chart,
.operations-market-entry__arrow{
  stroke: currentColor;
  stroke-width: 4;
}

.operations-market-entry__bar{
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.42;
}

.operations-market-entry__content{
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 13px 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.15;
}

.operations-market-entry__title{
  color: #f7fbf8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.operations-market-entry__action{
  margin-top: 3px;
  color: #67e85e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.operations-market-entry__description{
  margin-top: 5px;
  color: rgba(226, 234, 228, 0.76);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.operations-market-entry:hover{
  transform: translateY(-2px);
  border-color: rgba(126, 209, 132, 0.34);
  box-shadow: -8px 12px 28px rgba(25, 138, 45, 0.09), 8px 12px 28px rgba(171, 27, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.operations-market-entry:active{
  transform: translateY(0) scale(0.992);
}

.operations-market-entry:focus-visible{
  outline: 2px solid #f1c95b;
  outline-offset: 3px;
}

.operations-secondary-actions{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
}

.mt5-refresh-actions{
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
}

.operations-secondary-actions .btn,
.operations-secondary-actions .mt5-refresh-pill{
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  border-radius: 11px;
}

.mt5-refresh-actions .mt5-refresh-pill{
  width: 100%;
  min-width: 0;
  padding-inline: 9px;
}

@media (max-width: 430px){
  .operations-secondary-actions{
    grid-template-columns: minmax(0, 1fr);
  }

  .mt5-refresh-actions{
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}

.mt5-deep-recovery-btn{
  appearance: none;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 105, 105, 0.56);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(176, 32, 42, 0.96), rgba(117, 18, 29, 0.98));
  color: #fff5f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 18px rgba(105, 12, 23, 0.22);
  font: 800 1rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}

.mt5-deep-recovery-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 152, 152, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px rgba(105, 12, 23, 0.3);
}

.mt5-deep-recovery-btn:focus-visible{
  outline: 2px solid #ff9a9a;
  outline-offset: 3px;
}

.mt5-deep-recovery-btn.is-loading{
  animation: mt5-deep-recovery-pulse 1s ease-in-out infinite;
  cursor: progress;
}

.mt5-deep-recovery-btn:disabled{
  opacity: 0.58;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

@keyframes mt5-deep-recovery-pulse{
  50%{ box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16), 0 10px 22px rgba(105, 12, 23, 0.26); }
}

.operations-secondary-actions .btn-group-trades{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(17, 33, 50, 0.96), rgba(12, 21, 31, 0.96));
  color: #47b5ff;
  border: 1px solid rgba(72, 157, 222, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 700;
}

.operations-secondary-actions .btn-group-trades:hover{
  transform: translateY(-1px);
  color: #78caff;
  border-color: rgba(92, 182, 247, 0.4);
  box-shadow: 0 9px 20px rgba(4, 13, 22, 0.24);
}

.operations-secondary-actions__group-icon{
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.operations-secondary-actions__group-icon::after{
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -4px;
  right: -4px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: #0f1b28;
}

.mt5-refresh-pill{
  appearance: none;
  border: 1px solid rgba(125, 162, 214, 0.32);
  background: rgba(18, 24, 34, 0.76);
  color: #d8e8ff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.operations-secondary-actions .mt5-refresh-pill::before{
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.6px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.mt5-refresh-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(154, 208, 255, 0.42);
  background: rgba(24, 33, 49, 0.88);
  box-shadow: 0 10px 22px rgba(3, 8, 16, 0.22);
}

.mt5-refresh-pill.is-active{
  color: #eff7ff;
  border-color: rgba(91, 176, 255, 0.42);
}

.mt5-refresh-pill.is-inactive{
  color: rgba(207, 221, 242, 0.8);
}

.mt5-refresh-pill.is-loading{
  cursor: progress;
  pointer-events: none;
}

.mt5-refresh-pill.is-loading::after{
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(207, 221, 242, 0.24);
  border-top-color: #dff0ff;
  animation: mt5-refresh-spin 0.8s linear infinite;
}

.mt5-refresh-pill:disabled{
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.mt5-refresh-feedback{
  margin: 2px 0 10px;
  font-size: 0.8rem;
  color: rgba(212, 222, 238, 0.84);
  min-height: 18px;
}

.mt5-refresh-feedback.is-success{
  color: #7ce3a1;
}

.mt5-refresh-feedback.is-warn{
  color: #f3d46b;
}

.mt5-refresh-feedback.is-error{
  color: #ff8f8f;
}

.mt5-sync-center{
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 79, 0.2);
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(7, 10, 16, 0.96), rgba(18, 24, 34, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 12px;
}

.mt5-sync-center[data-state="healthy"]{
  border-color: rgba(47, 209, 122, 0.22);
}

.mt5-sync-center[data-state="stale"]{
  border-color: rgba(110, 168, 254, 0.24);
}

.mt5-sync-center[data-state="warning"]{
  border-color: rgba(214, 168, 79, 0.34);
}

.mt5-sync-center[data-state="error"]{
  border-color: rgba(255, 138, 138, 0.28);
}

.mt5-sync-center__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mt5-sync-center__title-wrap{
  min-width: 0;
}

.mt5-sync-center__eyebrow{
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 168, 79, 0.8);
}

.mt5-sync-center__headline{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mt5-sync-center__title{
  color: #f7f8fb;
  font-size: 0.98rem;
  line-height: 1.2;
}

.mt5-sync-health-badge{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt5-sync-health-badge.is-healthy{
  color: #8cf0aa;
  border-color: rgba(47, 209, 122, 0.35);
  background: rgba(17, 82, 45, 0.22);
}

.mt5-sync-health-badge.is-stale{
  color: #b5d7ff;
  border-color: rgba(110, 168, 254, 0.34);
  background: rgba(24, 52, 86, 0.26);
}

.mt5-sync-health-badge.is-warning{
  color: #f7d98a;
  border-color: rgba(214, 168, 79, 0.4);
  background: rgba(78, 52, 12, 0.28);
}

.mt5-sync-health-badge.is-error{
  color: #ffb0b0;
  border-color: rgba(255, 138, 138, 0.38);
  background: rgba(97, 21, 21, 0.24);
}

.mt5-sync-center__stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mt5-sync-center__stat{
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
}

.mt5-sync-center__stat-label{
  color: rgba(213, 223, 240, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mt5-sync-center__stat-value{
  color: #f8fbff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.mt5-sync-center__summary{
  margin: 0;
  color: rgba(239, 243, 251, 0.92);
  font-size: 0.86rem;
  line-height: 1.45;
}

.mt5-sync-center__flags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mt5-sync-center__flag{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 234, 246, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.mt5-sync-center__flag.is-info{
  border-color: rgba(110, 168, 254, 0.24);
  color: #d7e8ff;
}

.mt5-sync-center__flag.is-warning{
  border-color: rgba(214, 168, 79, 0.3);
  color: #f7d98a;
}

.mt5-sync-center__flag.is-error{
  border-color: rgba(255, 138, 138, 0.28);
  color: #ffb0b0;
}

@keyframes mt5-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.trade-left,
.trade-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-left {
  flex-wrap: wrap;
  min-width: 0;
}

.trade-right {
  gap: 10px;
}

.trade-dir {
  opacity: 0.85;
  font-size: 13px;
}

.trade-badge {
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
  background: rgba(212,175,55,0.18);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
}

.trade-badge.scalp {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

.trade-badge.session {
  background: rgba(46, 196, 182, 0.12);
  color: #8ef3e6;
  border-color: rgba(46, 196, 182, 0.35);
}

.trade-badge.session.overlap {
    background: rgba(255, 183, 3, 0.16);
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.45);
  }

.trade-badge--meta {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.02em;
}

.trade-list-filters {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(245, 196, 0, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.trade-list-filters + .trade,
.trade-list-filters + .trade-list-empty {
    margin-top: 12px;
}

.trade-list-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.trade-list-filters__row--presets {
    align-items: center;
}

.trade-list-filter-field {
    display: grid;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 0;
}

.trade-list-filter-field span {
    font-size: 11px;
    color: rgba(255,255,255,0.68);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trade-list-filter-field select,
.trade-list-filter-field input {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(12, 15, 22, 0.72);
    color: #f7f8fb;
    padding: 0 12px;
    font: inherit;
}

.trade-list-filter-field select:focus,
.trade-list-filter-field input:focus {
    outline: none;
    border-color: rgba(245, 196, 0, 0.52);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.12);
}

.trade-filter-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.82);
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.trade-filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 196, 0, 0.35);
}

.trade-filter-chip.is-active {
    background: rgba(245, 196, 0, 0.14);
    border-color: rgba(245, 196, 0, 0.55);
    color: #ffe07a;
}

.trade-list-filters__reset {
    width: auto;
    min-width: 148px;
    margin: 0;
}

.trade-list-filters__summary {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
}

.trade-list-empty {
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.025);
    color: rgba(255,255,255,0.72);
    text-align: center;
}

.trade-swing {
    border-left: 4px solid var(--gold);
    box-shadow: 0 6px 16px rgba(212,175,55,0.12);
  }

.trade-scalp {
  border-left: 4px solid rgba(255,255,255,0.12);
}

.trade + .trade {
  margin-top: 10px;
}

.trade.profit {
  border-left: 4px solid var(--green);
}

.trade.loss {
  border-left: 4px solid var(--red);
}

.trade .asset {
  font-weight: 600;
}

.trade .profit {
  font-weight: bold;
}

.partials-inline-title {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
}

.partials-inline {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
}

.partials-inline.empty {
  color: var(--gray);
  font-size: 13px;
}

.partial-inline-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* =========================
   CHECKLIST CONFERME
========================= */
.confirmations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.confirm-button {
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  color: var(--gray);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
}

.confirm-button.active {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* =========================
   GRAFICO (LINEA ONDULATA)
========================= */
.chart {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px;
}

.chart svg {
  width: 100%;
  height: 120px;
}

.chart path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   NAV BAR
========================= */
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid #2a2d35;
}

.navbar a {
  color: var(--gray);
  text-decoration: none;
  font-size: 12px;
}

.navbar a.active {
  color: var(--gold);
  font-weight: 600;
}
/* =========================
   AUTH BAR (PICCOLA)
========================= */
.auth-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.auth-email {
  color: var(--gray);
  font-size: 12px;
}

/* Bottoni piccoli */
.auth-btn {
  background: transparent;
  border: 1px solid #2a2d35;
  color: var(--gray);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.auth-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.auth-btn.logout {
  border-color: var(--red);
  color: var(--red);
}
.chart-center-text {
  position: relative;
  top: -120px;
  text-align: center;
  font-weight: 600;
  color: white;
  pointer-events: none;
}
.hidden {
  display: none !important;
}
/* ===== CONFERME OPERAZIONE ===== */
.conf {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.conf-btn {
  background: #FFD700;          /* giallo */
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.conf-btn:hover {
  background: #e6c200;
}

/* STATO SELEZIONATO */
.conf-btn.active {
  background: #c9a600;          /* giallo scuro */
  color: #000;
  box-shadow: inset 0 0 0 2px #00000030;
}
/* ===== NOTE INPUT MODERNO ===== */
.notes-input {
  width: 100%;
  min-height: 42px;              /* 1 riga */
  max-height: 180px;             /* limite */
  padding: 10px 14px;
  background: #f7f7f4;           /* bianco sporco */
  color: #111;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: none;                  /* niente resize manuale */
  line-height: 1.4;
  transition: all 0.2s ease;
}

/* focus moderno */
.notes-input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
  background: #fffdf5;
}

/* placeholder soft */
.notes-input::placeholder {
  color: #999;
}
/* HERO SECTION */
.hero {
  padding: 32px 20px;
  margin: 20px auto 10px;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  color: #f5c400; /* giallo principale */
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-points span {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 0, 0.25);
}
/* GRAPH INFO SECTION */
.graph-info {
  max-width: 800px;
  margin: 24px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.graph-info-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400; /* giallo principale */
  margin-bottom: 10px;
}

.graph-info-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.graph-info-text.muted {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* STATS – PILL STYLE */
#stats {
  max-width: 900px;
  margin: 30px auto 45px;
  padding: 0 20px;

  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 10px 14px;
  min-width: 120px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 999px; /* pill vera */

  backdrop-filter: blur(6px);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400; /* giallo */
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  white-space: nowrap;
}
/* SAVED TRADES SECTION */
.trades-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400;
  text-align: center;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

/* LIST */
.trades-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD */
.trade-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.trade-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.trade-asset {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.trade-result {
  font-size: 14px;
  font-weight: 600;
}

.trade-result.positive {
  color: #4caf50;
}

.trade-result.negative {
  color: #f44336;
}

.trade-details {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
/* WHY SAVE TRADES SECTION */
.why-section {
  max-width: 800px;
  margin: 30px auto 45px;
  padding: 0 20px;
  text-align: center;
}

.why-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.why-points {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.why-points span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 600px) {
  .hero-points,
  .why-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-items: stretch;
  }

  .hero-points span,
  .why-points span {
    width: 100%;
    text-align: center;
    padding: 5px 8px;
    font-size: 12px;
  }

  .hero-points span:last-child,
  .why-points span:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
  }
}
/* PERFORMANCE INSIGHTS SECTION */
.performance-section {
  max-width: 850px;
  margin: 40px auto 45px;
  padding: 0 20px;
  text-align: center;
}

.performance-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.performance-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.performance-tip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
/* FINAL MESSAGE SECTION */
.final-section {
  max-width: 900px;
  margin: 60px auto 70px;
  padding: 0 20px;
  text-align: center;
}

.final-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #f5c400; /* giallo focus */
}
.trade-pnl {
  font-weight: 600;
}

.trade-pnl-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.trade-pnl.positive {
  color: #4caf50; /* verde */
}

.trade-pnl.negative {
  color: #f44336; /* rosso */
}

.trade-pnl-meta {
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.9;
}

.trade-pnl-meta.positive {
  color: #4caf50;
}

.trade-pnl-meta.negative {
  color: #f44336;
}

.trade-pnl-meta.neutral {
  color: rgba(255,255,255,0.7);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.btn.ghost:hover {
  border-color: #f5c400;
  color: #f5c400;
}
.trade {
  cursor: pointer;
}

.trade * {
  pointer-events: none;
}
/* ===== STATS CIRCLES ===== */
.stats-circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-circle {
  border: 2px solid #FFD700;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 215, 0, 0.05);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-circles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fake-chart {
  background: linear-gradient(
    to top,
    rgba(212,175,55,0.08),
    transparent
  );
  border-radius: 22px;

  /* QUI È IL FIX */
  padding: 22px 14px;   /* meno spazio laterale */
  margin: 22px auto 18px;
  max-width: 94%;       /* grafico più “incassato” */
}

.fake-chart svg {
  width: 100%;
  height: 300px;
}

.fake-chart path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* =========================
   STATISTICHE — VALORI %
========================= */
.stat-box strong {
  color: var(--gold);
}


/* ===== WELCOME TEXT ===== */
.welcome-text {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #FFD700;
  margin: 40px 0 30px;
  letter-spacing: 0.5px;
}

/* Sottile separatore elegante */
.welcome-text::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .welcome-text {
    font-size: 22px;
    margin: 25px 0 20px;
  }
}
.trial-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.trial-box {
  background: #111;
  border: 1px solid #FFD700;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
}

.trial-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.hidden {
  display: none;
}

.tutorial-welcome-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 18px;
}

.tutorial-welcome-box {
  position: relative;
  background: #101112;
  border: 1px solid rgba(245, 196, 0, 0.5);
  border-radius: 14px;
  width: min(94vw, 520px);
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.close-tutorial-welcome {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
  font-size: 18px;
  cursor: pointer;
}

.close-tutorial-welcome:hover {
  border-color: rgba(245, 196, 0, 0.7);
  color: #f5c400;
}

.tutorial-welcome-badge {
  margin: 0 0 8px;
  color: #f5c400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutorial-welcome-title {
  margin: 0 0 18px;
  color: #fff7d1;
}

.tutorial-preview-card {
  display: block;
  text-decoration: none;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tutorial-preview-card,
.tutorial-preview-card * {
  text-decoration: none;
}

.tutorial-preview-card:hover {
  border-color: rgba(245, 196, 0, 0.65);
}

.tutorial-preview-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0c0d;
}

.tutorial-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutorial-preview-play {
  position: absolute;
  inset: auto auto 10px 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(245, 196, 0, 0.75);
  color: #f5c400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.tutorial-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  align-items: center;
  text-align: center;
}

.tutorial-preview-meta strong {
  color: #ffffff;
}

.tutorial-preview-meta span {
  color: #cbd0d8;
  font-size: 13px;
}

.tutorial-welcome-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tutorial-welcome-actions a,
.tutorial-welcome-actions a:hover,
.tutorial-welcome-actions a:focus,
.tutorial-welcome-actions a:visited {
  text-decoration: none;
}

.renewal-required-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.renewal-required-box {
  position: relative;
  background: #111;
  border: 1px solid #ffb347;
  padding: 28px;
  width: min(92%, 460px);
  border-radius: 12px;
  text-align: center;
}

.renewal-required-title {
  margin-top: 0;
  color: #ffb347;
}

.close-renewal-required {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 20px;
  cursor: pointer;
}

.close-renewal-required:hover {
  color: #fff;
}

.renewal-required-actions {
  margin-top: 18px;
}

.premium-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10000;
}

.premium-box {
  position: relative;
  background: #0f0f0f;
  border: 1px solid #FFD700;
  padding: 32px;
  max-width: 520px;
  width: 92%;
  border-radius: 14px;
  text-align: center;
}

.premium-title {
  color: #FFD700;
  margin-bottom: 20px;
}

.premium-graph {
  height: 120px;
  margin: 20px 0;
  position: relative;
  background: rgba(255,215,0,0.05);
  border-radius: 8px;
}

.graph-line {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #4caf50);
  transform: rotate(-5deg);
}

.premium-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.premium-stats .stat strong {
  color: #FFD700;
  font-size: 20px;
}

.premium-stats .stat span {
  font-size: 12px;
  opacity: 0.8;
}

.premium-plans {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.close-premium {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.12);
  font-size: 18px;
  color: #FFD700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-premium:hover {
  color: #0f0f0f;
  background: #FFD700;
  border-color: #FFD700;
}

/* === FIX DEFINITIVO PULSANTI PREMIUM === */
.premium-plans button {
  flex: 1 !important;
  height: 48px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 14px !important;
  font-weight: 600 !important;

  border-radius: 10px;
  box-sizing: border-box !important;
}

/* --- CALC WRAPPER --- */
.calc-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.calc-link {
  width: 92%;
  max-width: 420px;
  background: #141720;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  border: none;
}

/* ===== MODAL BACKDROP ===== */
.modal {
  position: fixed;
  inset: 0;
  background: var(--overlay, rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px;
}

.hidden {
  display: none !important;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  width: 100%;
  max-width: 420px;
  background: var(--surface-raised, #0f1115);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: var(--text-main, #fff);
  box-shadow: var(--shadow-card, 0 8px 30px rgba(0,0,0,0.5));
  animation: slideUp .18s ease-out;
}

/* Calculator modal: allow full-height scrolling when lot section is expanded */
#calculatorModal {
  align-items: flex-start;
  overflow-y: auto;
}

#calculatorModal .modal-content {
  margin: 10px auto 20px;
}

#calculatorModal .replica-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

#calculatorModal .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#calculatorModal .field label {
  text-align: left;
  font-size: 13px;
  color: var(--text-soft, #cfd5df);
}

#calculatorModal #openLotFormBtn {
  margin-top: 2px;
}

#calculatorModal .percent-results,
#calculatorModal .lot-result-card {
  margin-top: 4px;
}

#calculatorModal .warning-line {
  margin-top: 4px;
}

#calculatorModal .lot-warning-line {
  margin: 2px 0 0;
  text-align: left;
  font-size: 13px;
  color: var(--text-soft, #cfd5df);
}

.lot-calculator-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  gap: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.lot-calculator-collapsed.is-open {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  margin-top: 4px;
  gap: 10px;
}

/* Title */
.modal-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #fff);
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  outline: none;
  background: var(--input-bg, #1a1d24);
  color: var(--text-main, #fff);
  font-size: 15px;
  text-align: center;
}

/* Results */
.results {
  background: var(--surface-elevated, #141720);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.results p {
  margin: 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results strong { font-weight: 600; }

/* Buttons */
.modal-content .btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.primary {
  background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #000;
  border: none;
  box-shadow:
    0 4px 10px rgba(245, 196, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong, #2a2e3a);
  color: var(--text-soft, #ccc);
}

.note {
  font-size: 12px;
  opacity: 0.75;
}

.modal-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft, inherit);
  opacity: 0.85;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

@keyframes slideUp {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* small screens adjustments (optional but safe) */
@media (max-width: 420px) {
  .modal-content { padding: 16px; border-radius: 14px; }
  .calc-link { padding: 10px; font-size: 14px; }
}

.calc-link {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
}



.app-footer {
  margin-top: 40px;
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  opacity: 1;
}

.market-news-section {
  --market-news-gold: #f2b94b;
  --market-news-gold-strong: #ffd84d;
  --market-news-text: #f7f8fb;
  --market-news-muted: rgba(232, 237, 246, 0.68);
  position: relative;
  isolation: isolate;
  max-width: 980px;
  margin: 28px 12px 0;
  padding: 20px;
  border: 1px solid rgba(242, 185, 75, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(242, 185, 75, 0.15), transparent 26%),
    radial-gradient(circle at 4% 96%, rgba(82, 142, 222, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(8, 12, 20, 0.99), rgba(4, 7, 13, 0.985));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: var(--market-news-text);
  overflow: hidden;
}

.market-news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.045), transparent 30%),
    linear-gradient(90deg, transparent, rgba(242, 185, 75, 0.035), transparent);
}

.market-news-header {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.market-news-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.market-news-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 185, 75, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 216, 77, 0.15), rgba(242, 185, 75, 0.045));
  color: var(--market-news-gold-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.market-news-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-news-heading__copy {
  min-width: 0;
}

.market-news-eyebrow {
  display: block;
  margin: 1px 0 5px;
  color: var(--market-news-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

#marketNewsSection .market-news-heading__copy h3 {
  margin: 0;
  color: var(--market-news-text);
  font-size: clamp(22px, 5.8vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.market-news-heading__copy p {
  max-width: 64ch;
  margin: 7px 0 0;
  color: var(--market-news-muted);
  font-size: 13px;
  line-height: 1.5;
}

.market-news-overview {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.market-news-count,
.market-news-status {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.market-news-count:empty {
  display: none;
}

.market-news-count {
  border: 1px solid rgba(242, 185, 75, 0.2);
  background: rgba(242, 185, 75, 0.09);
  color: #ffe091;
}

.market-news-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(239, 243, 250, 0.66);
}

.market-news-section[data-market-news-state="stale"] .market-news-status,
.market-news-section[data-market-news-state="error"] .market-news-status {
  border-color: rgba(242, 185, 75, 0.2);
  color: #f4cf77;
}

.market-news-track {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 84%);
  gap: 12px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(242, 185, 75, 0.46) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.market-news-track:empty {
  min-height: 120px;
}

.market-news-track::-webkit-scrollbar {
  height: 6px;
}

.market-news-track::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.market-news-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(242, 185, 75, 0.42);
}

.market-news-card {
  min-width: 0;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 19px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(7, 11, 18, 0.86);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: var(--market-news-text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.market-news-card:hover {
  border-color: rgba(242, 185, 75, 0.3);
  background:
    linear-gradient(155deg, rgba(242, 185, 75, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(7, 11, 18, 0.9);
  transform: translateY(-2px);
}

.market-news-card:focus-visible {
  outline: 2px solid var(--market-news-gold-strong);
  outline-offset: 2px;
  border-color: rgba(255, 216, 77, 0.48);
  box-shadow:
    0 0 0 4px rgba(255, 216, 77, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.market-news-card__meta,
.market-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-news-card__category {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(242, 185, 75, 0.2);
  border-radius: 999px;
  background: rgba(242, 185, 75, 0.08);
  color: #f5ca68;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.market-news-card__time {
  color: rgba(232, 237, 246, 0.55);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

#marketNewsSection .market-news-card__title {
  display: -webkit-box;
  margin: 15px 0 9px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.34;
}

.market-news-card__summary {
  display: -webkit-box;
  margin: 0 0 17px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(232, 237, 246, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

.market-news-card__footer {
  min-height: 25px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 700;
}

.market-news-card__source {
  min-width: 0;
  overflow: hidden;
  color: rgba(242, 244, 248, 0.68);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-news-card__link {
  flex: 0 0 auto;
  color: var(--market-news-gold);
}

.market-news-card--skeleton {
  pointer-events: none;
}

.market-news-card--skeleton span {
  height: 11px;
  display: block;
  margin-bottom: 13px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 20%,
    rgba(255, 255, 255, 0.1) 48%,
    rgba(255, 255, 255, 0.045) 76%
  );
  background-size: 220% 100%;
  animation: marketNewsSkeleton 1.5s ease-in-out infinite;
}

.market-news-card--skeleton span:nth-child(1) {
  width: 34%;
}

.market-news-card--skeleton span:nth-child(2) {
  width: 94%;
  height: 17px;
  margin-top: 20px;
}

.market-news-card--skeleton span:nth-child(3) {
  width: 78%;
  height: 17px;
}

.market-news-card--skeleton span:nth-child(4) {
  width: 55%;
  margin-top: auto;
}

.market-news-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.market-news-attribution {
  margin: 0;
  color: rgba(225, 231, 241, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

.market-news-retry {
  min-width: 112px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(242, 185, 75, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe37a, #f2b94b);
  box-shadow: 0 12px 26px rgba(242, 185, 75, 0.18);
  color: #080a0e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.market-news-retry:hover {
  filter: brightness(1.05);
}

.market-news-retry:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.market-news-retry[hidden] {
  display: none;
}

@keyframes marketNewsSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (min-width: 680px) {
  .market-news-section {
    margin-right: auto;
    margin-left: auto;
    padding: 24px;
  }

  .market-news-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .market-news-overview {
    justify-content: flex-end;
  }

  .market-news-track {
    grid-auto-columns: minmax(275px, calc((100% - 24px) / 3));
  }

  .market-news-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .market-news-attribution {
    max-width: 78ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-news-card {
    transition: none;
  }

  .market-news-card:hover {
    transform: none;
  }

  .market-news-card--skeleton span {
    animation: none;
  }
}

.tiktok-mode-cta-section {
  margin-top: 28px;
  padding: 0 12px;
}

.tiktok-mode-cta-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(242, 185, 75, 0.18);
  background:
    radial-gradient(circle at top right, rgba(68, 196, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(242, 185, 75, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(9, 16, 28, 0.98), rgba(7, 12, 22, 0.96));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.tiktok-mode-cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 28%);
  opacity: 0.8;
}

.tiktok-mode-cta-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tiktok-mode-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 185, 75, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #f2b94b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tiktok-mode-cta-copy h3 {
  margin: 10px 0 8px;
  font-size: clamp(21px, 3vw, 31px);
  line-height: 1.05;
  color: #f5f7fb;
}

.tiktok-mode-cta-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(245, 247, 251, 0.76);
  line-height: 1.55;
  text-decoration: none;
  border: 0;
}

.tiktok-mode-cta-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.tiktok-mode-cta-btn,
.tiktok-mode-cta-ghost {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.tiktok-mode-cta-btn::after,
.tiktok-mode-cta-ghost::after {
  content: "\2192";
  font-size: 1rem;
  line-height: 1;
}

.tiktok-mode-cta-btn {
  min-height: 58px;
  padding-inline: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 216, 77, 0.34);
  background: linear-gradient(135deg, #ffe37a 0%, #f5c400 52%, #e3a900 100%);
  color: #05070b;
  box-shadow:
    0 18px 34px rgba(242, 185, 75, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.tiktok-mode-cta-ghost {
  min-height: 52px;
  padding-inline: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  color: #eef3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tiktok-mode-cta-btn:hover,
.tiktok-mode-cta-btn:focus-visible,
.tiktok-mode-cta-ghost:hover,
.tiktok-mode-cta-ghost:focus-visible {
  transform: translateY(-2px);
}

.tiktok-mode-cta-btn:hover,
.tiktok-mode-cta-btn:focus-visible {
  box-shadow:
    0 24px 38px rgba(242, 185, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tiktok-mode-cta-ghost:hover,
.tiktok-mode-cta-ghost:focus-visible {
  border-color: rgba(104, 184, 255, 0.4);
  background: linear-gradient(180deg, rgba(104, 184, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: #ffffff;
}

.tiktok-mode-cta-btn:focus-visible,
.tiktok-mode-cta-ghost:focus-visible {
  outline: 2px solid rgba(255, 216, 77, 0.34);
  outline-offset: 2px;
}

.app-footer > p,
.app-footer .footer-links,
.app-footer .footer-note-center,
.app-footer .muted-text {
  opacity: 0.55;
}

.support-card {
  max-width: 460px;
  margin: 0 auto 14px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.03));
}

.support-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #f5d47a;
}

.support-card p {
  margin: 0 0 10px;
  line-height: 1.45;
  opacity: 0.9;
}

.support-card-mail {
  display: inline-flex;
  margin-top: 10px;
  color: #f7d97d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.support-card-mail:hover {
  color: #ffe7a9;
  text-decoration: underline;
}

.support-modal-content {
  max-width: 520px;
  text-align: left;
}

.support-modal-content textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 13px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
}

.support-modal-content textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.app-footer p {
  margin: 6px 0;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-note {
  max-width: 420px;
  margin: 10px auto 0;
  line-height: 1.4;
  text-align: center;
}


/* ===== LEGAL MODALS ===== */
.modal-content.legal {
  max-height: 80vh;
  overflow-y: auto;
}

.legal-text {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.legal-text p {
  margin-bottom: 10px;
}

/* ===== FOOTER CENTER FIX DEFINITIVO ===== */

.footer-center {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.footer-center p {
  text-align: center;
}

@media (max-width: 720px) {
  .tiktok-mode-cta-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .tiktok-mode-cta-copy h3 {
    font-size: 24px;
  }

  .tiktok-mode-cta-copy p {
    font-size: 14px;
  }

  .tiktok-mode-cta-btn,
  .tiktok-mode-cta-ghost {
    min-height: 50px;
    border-radius: 16px;
  }
}

.footer-note-center {
  margin-top: 10px;
  line-height: 1.4;
  opacity: 0.75;
}

.footer-settings {
  margin-top: 14px;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.footer-settings h4 {
  margin: 0 0 8px;
  font-size: 13px;
  opacity: 0.9;
}

.settings-toggle{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.settings-panel{
  margin-top:10px;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.25);
  display:none;
}

.settings-panel.active{
  display:block;
}

.footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}

.chat-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: #ffd166;
}

.footer-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:8px 0;
  font-size:12px;
  opacity:0.9;
}

.settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.settings-group {
  display: grid;
  gap: 8px;
  text-align: left;
}

.settings-language-actions {
  display: flex;
  gap: 8px;
}

.settings-lang-btn {
  flex: 1;
}

.settings-lang-btn.is-active {
  border-color: rgba(245, 196, 0, 0.75);
  color: #f5c400;
  background: rgba(245, 196, 0, 0.12);
}

.settings-group-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.4px;
  opacity: 0.82;
}

.settings-subgroup {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.settings-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cache-inspector-entry {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 13px; color: #fff; text-align: left; border: 1px solid rgba(245,196,0,.22);
  border-radius: 14px; background: linear-gradient(145deg, rgba(245,196,0,.08), rgba(8,8,8,.9)); cursor: pointer;
}
.cache-inspector-entry__dot { width: 11px; height: 11px; border-radius: 50%; background: #7c8491; box-shadow: 0 0 12px currentColor; }
.cache-inspector-entry[data-cache-tone="green"] .cache-inspector-entry__dot { background: #22c55e; }
.cache-inspector-entry[data-cache-tone="yellow"] .cache-inspector-entry__dot { background: #f5c400; }
.cache-inspector-entry[data-cache-tone="red"] .cache-inspector-entry__dot { background: #ef4444; }
.cache-inspector-entry__copy { display: grid; gap: 2px; min-width: 0; }
.cache-inspector-entry__copy strong { font-size: 14px; }
.cache-inspector-entry__copy span, .cache-inspector-entry__copy small { color: rgba(255,255,255,.66); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cache-inspector-modal { z-index: 10020; }
.cache-inspector-panel { width: min(94vw, 560px); max-height: 85dvh; overflow-y: auto; padding: 18px; color: #fff; background: linear-gradient(155deg, #17140b, #050505 34%); border: 1px solid rgba(245,196,0,.34); }
.cache-inspector-panel h3, .cache-inspector-panel h4, .cache-inspector-panel p { margin: 0; }
.cache-inspector-panel .settings-modal-header p { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 12px; }
.cache-inspector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.cache-inspector-grid > div, .cache-inspector-compare, .cache-inspector-preview { padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.cache-inspector-grid span { display: block; color: rgba(255,255,255,.54); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.cache-inspector-grid strong { display: block; margin-top: 4px; font-family: "IBM Plex Mono", monospace; font-size: 12px; overflow-wrap: anywhere; }
.cache-inspector-grid__wide { grid-column: 1 / -1; }
.cache-inspector-compare { display: grid; gap: 7px; font-size: 12px; }
.cache-inspector-compare h4, .cache-inspector-preview h4 { color: #f5c400; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.cache-inspector-comparison { margin-top: 5px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.cache-inspector-actions { display: grid; gap: 8px; margin-top: 12px; }
.cache-inspector-actions .btn { min-height: 44px; width: 100%; }
.cache-inspector-actions small { margin: -3px 0 3px; text-align: center; color: rgba(255,255,255,.54); }
.cache-inspector-preview { margin-top: 12px; }
.cache-inspector-trade { display: grid; gap: 3px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #0b0b0b; font: 11px/1.4 "IBM Plex Mono", monospace; }
.cache-inspector-trade strong { color: #f5c400; }.cache-inspector-trade span { color: rgba(255,255,255,.68); overflow-wrap: anywhere; }
@media (max-width: 420px) { .cache-inspector-grid { grid-template-columns: 1fr; }.cache-inspector-grid__wide { grid-column: auto; } }


.settings-input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.settings-modal-content {
  max-width: 520px;
  text-align: left;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#settingsModal {
  align-items: flex-start;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#settingsPanel {
  margin: 8px auto;
}

.settings-modal-content::-webkit-scrollbar,
#settingsModal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  border-radius: 10px;
}

.settings-modal-close:hover {
  color: #fff;
}

.bot-mode-modal-content {
  max-width: 560px;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 14px;
  gap: 10px;
  text-align: left;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(245, 198, 93, 0.18);
  background:
    radial-gradient(circle at top right, rgba(79, 125, 255, 0.14), transparent 36%),
    radial-gradient(circle at 20% 0%, rgba(245, 198, 93, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.96) 0%, rgba(7, 9, 13, 0.98) 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 36px rgba(79, 125, 255, 0.1);
  animation: surface-enter 0.52s var(--ease-soft, ease) both;
}

.bot-mode-modal-content::before,
.bot-mode-modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bot-mode-modal-content::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(245, 198, 93, 0.14), rgba(79, 125, 255, 0.06) 52%, transparent 88%);
  opacity: 0.72;
}

.bot-mode-modal-content::after {
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 24px);
  opacity: 0.1;
}

#botModeModal {
  z-index: 12160;
  align-items: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at top, rgba(79, 125, 255, 0.14), transparent 34%),
    rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding:
    max(14px, env(safe-area-inset-top, 0px))
    14px
    calc(20px + env(safe-area-inset-bottom, 0px));
}

#botModeModal::-webkit-scrollbar,
.bot-mode-modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bot-mode-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5c65d;
  text-shadow: 0 0 18px rgba(245, 198, 93, 0.16);
}

.bot-mode-modal__lead {
  margin: 6px 0 0;
  font-size: 13px;
  color: #97a0b3;
  line-height: 1.45;
}

  .bot-mode-modal-content .settings-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -2px -2px 0;
  padding: 2px 2px 8px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.bot-mode-summary {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(245, 198, 93, 0.08), rgba(79, 125, 255, 0.08)),
    rgba(15, 18, 24, 0.84);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.bot-mode-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 198, 93, 0.16);
  background: rgba(245, 198, 93, 0.08);
  color: #f2d489;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bot-mode-status-pill.is-active {
  border-color: rgba(2, 192, 118, 0.36);
  background: rgba(2, 192, 118, 0.12);
  color: #90f0c2;
  box-shadow: 0 0 0 1px rgba(2, 192, 118, 0.12) inset;
}

.bot-mode-summary__count {
  color: #f5f7fb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bot-mode-stepper {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bot-mode-stepper__step {
  min-height: 36px;
  min-width: 0;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(18, 22, 30, 0.88);
  color: #97a0b3;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bot-mode-stepper__step.is-active {
  border-color: rgba(245, 198, 93, 0.34);
  background: linear-gradient(135deg, rgba(245, 198, 93, 0.18), rgba(79, 125, 255, 0.12));
  color: #f5f7fb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.bot-mode-stepper__step:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 198, 93, 0.22);
}

.bot-mode-step {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(18, 22, 30, 0.92), rgba(12, 15, 21, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bot-mode-step.is-active {
  display: block;
}

.bot-mode-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bot-mode-field {
  display: grid;
  gap: 5px;
}

.bot-mode-field > span,
.bot-mode-toggle > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #97a0b3;
}

.bot-mode-field .settings-input,
.bot-mode-field textarea.settings-input,
.bot-mode-field select.settings-input {
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.35;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 18, 24, 0.88);
  color: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.bot-mode-field .settings-input::placeholder,
.bot-mode-field textarea.settings-input::placeholder {
  color: rgba(151, 160, 179, 0.76);
}

.bot-mode-field .settings-input:focus,
.bot-mode-field textarea.settings-input:focus,
.bot-mode-field select.settings-input:focus {
  border-color: rgba(245, 198, 93, 0.34);
  box-shadow:
    0 0 0 1px rgba(245, 198, 93, 0.16),
    0 0 0 4px rgba(245, 198, 93, 0.08);
}

.bot-mode-field textarea.settings-input {
  min-height: 88px;
  resize: vertical;
}

.bot-mode-field--full,
.bot-mode-toggle--full {
  grid-column: 1 / -1;
}

.bot-mode-toggle {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(79, 125, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(79, 125, 255, 0.1), rgba(245, 198, 93, 0.06)),
    rgba(18, 22, 30, 0.82);
}

.bot-mode-toggle input {
  accent-color: #f5c65d;
  margin: 1px 0 0;
  width: 16px;
  height: 16px;
}

.bot-mode-toggle > span {
  display: block;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.bot-mode-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-mode-actions__primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bot-mode-actions .btn {
  min-height: 40px;
  width: auto;
  flex: 0 1 auto;
  border-radius: 12px;
  border-width: 1px;
  font-weight: 700;
  font-size: 12px;
  padding: 0 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.bot-mode-actions .btn:hover {
  transform: translateY(-1px);
}

.bot-mode-actions .btn.ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 30, 0.86);
  color: #f5f7fb;
}

.bot-mode-actions .btn.ghost:hover {
  border-color: rgba(245, 198, 93, 0.22);
  background: rgba(24, 29, 38, 0.94);
}

.bot-mode-actions .btn.btn-primary {
  border-color: rgba(255, 214, 111, 0.28);
  background: linear-gradient(135deg, #f5c65d 0%, #ffd66f 100%);
  color: #07090d;
  box-shadow: 0 14px 28px rgba(245, 198, 93, 0.22);
}

.bot-mode-actions .btn.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(245, 198, 93, 0.28);
}

.bot-mode-modal-content h3 {
  color: #f5f7fb;
  letter-spacing: -0.04em;
  font-size: 18px;
  line-height: 1.05;
  margin: 0;
}

.bot-mode-modal-content select.settings-input {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245, 198, 93, 0.78) 50%),
    linear-gradient(135deg, rgba(245, 198, 93, 0.78) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#closeBotModeModal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 30, 0.52);
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
}

#closeBotModeModal:hover {
  border-color: rgba(245, 198, 93, 0.24);
  background: rgba(24, 29, 38, 0.96);
}

body.settings-modal-active .hamburger-btn,
body.settings-modal-active .language-badge {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.settings-modal-content .footer-toggle {
  justify-content: space-between;
  margin: 0;
  font-size: 14px;
}

.settings-toggle-label {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.background-theme-modal-content {
  max-width: 780px;
  text-align: left;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}

.background-theme-preview-shell {
  margin-top: 16px;
}

.background-theme-preview {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  background: linear-gradient(180deg, #090b10 0%, #11151d 100%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.background-theme-preview::before,
.background-theme-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.background-theme-preview__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-theme-preview__starfield,
.background-theme-preview__noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-theme-preview__starfield {
  opacity: 0;
}

.background-theme-preview__noise {
  opacity: 0;
}

.background-theme-preview__noise::before,
.background-theme-preview__noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.background-theme-preview__viewport {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.background-theme-preview__sizer {
  position: relative;
  width: 100%;
  min-height: 480px;
}

.background-theme-preview__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}

.background-theme-preview__frame > * {
  pointer-events: none !important;
}

.background-theme-preview__frame .welcome-text {
  margin: 0 0 26px;
}

.background-theme-preview__frame .hero {
  margin-top: 0;
}

.background-theme-preview__frame .card.export-section {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.background-theme-preview__frame .graph-info {
  margin-bottom: 28px;
}

.background-theme-preview__frame .stats-circles,
.background-theme-preview__frame #stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.background-theme-preview__frame .equity-chart-custom-range,
.background-theme-preview__frame .equity-chart-actions,
.background-theme-preview__frame #exportCsv,
.background-theme-preview__frame .btn {
  display: none !important;
}

.background-theme-preview__frame .stat-pill {
  justify-content: center;
  text-align: center;
  min-width: 120px;
  backdrop-filter: none;
}

.background-theme-preview__frame canvas {
  display: block;
}

.background-theme-preview__frame [data-preview-source-id="equityChart"] {
  width: 100% !important;
  height: 150px !important;
  max-height: 150px;
  border-radius: 14px;
  overflow: hidden;
  clip-path: inset(0 round 14px);
}

.background-theme-preview__market-wall {
  z-index: 1;
  padding: 22px;
  gap: 9px;
}

.background-theme-preview__market-wall .market-wall-cell {
  min-height: 44px;
  padding: 8px 9px 9px;
  border-radius: 15px;
}

.background-theme-preview__market-wall .market-wall-cell::after {
  border-radius: calc(15px - 1px);
}

.background-theme-preview__market-wall .market-wall-cell__head {
  margin-bottom: 7px;
}

.background-theme-preview__market-wall .market-wall-cell__symbol {
  font-size: 8.5px;
}

.background-theme-preview__market-wall .market-wall-cell__tag,
.background-theme-preview__market-wall .market-wall-cell__meta {
  font-size: 8px;
}

.background-theme-preview__market-wall .market-wall-cell__value {
  font-size: clamp(12px, 1.3vw, 17px);
}

.background-theme-preview__market-wall .market-wall-cluster {
  border-radius: 15px;
}

.background-theme-preview__market-wall .market-wall-cluster::after {
  border-radius: calc(15px - 1px);
}

.background-theme-preview__market-wall .market-wall-cluster__label,
.background-theme-preview__market-wall .market-wall-zone__title {
  font-size: 7px;
}

.background-theme-preview__market-wall .market-wall-ladder,
.background-theme-preview__market-wall .market-wall-profile {
  inset: 18px 6px 6px;
}

.background-theme-preview__market-wall .market-wall-ladder__row,
.background-theme-preview__market-wall .market-wall-profile__row {
  gap: 3px;
  min-height: 10px;
}

.background-theme-preview__market-wall .market-wall-ladder__bar,
.background-theme-preview__market-wall .market-wall-profile__bar {
  min-height: 9px;
  font-size: 7px;
  padding: 0 3px;
}

.background-theme-preview__market-wall .market-wall-ladder__price,
.background-theme-preview__market-wall .market-wall-profile__price,
.background-theme-preview__market-wall .market-wall-zone__delta,
.background-theme-preview__market-wall .market-wall-zone__marker {
  font-size: 7px;
}

.background-theme-preview__market-wall .market-wall-zone__value {
  font-size: 10px;
}

.background-theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.background-theme-option {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #f3f5f8;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.background-theme-option:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.3);
}

.background-theme-option.is-active {
  border-color: rgba(245, 196, 0, 0.7);
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.background-theme-option__title {
  font-size: 14px;
  font-weight: 700;
}

.background-theme-option__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(231, 236, 244, 0.72);
}

.background-theme-preview[data-preview-style="none"] {
  background: #0e0f12;
}

.background-theme-preview[data-preview-style="none"]::before,
.background-theme-preview[data-preview-style="none"]::after {
  opacity: 0;
}

.background-theme-preview[data-preview-style="none"] .background-theme-preview__starfield,
.background-theme-preview[data-preview-style="none"] .background-theme-preview__noise,
.background-theme-preview[data-preview-style="none"] .background-theme-preview__noise::before,
.background-theme-preview[data-preview-style="none"] .background-theme-preview__noise::after {
  opacity: 0;
}

.background-theme-preview[data-preview-style="light"] {
  background:
    radial-gradient(960px 420px at 12% -12%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(780px 360px at 88% 0%, rgba(129, 140, 248, 0.08), transparent 56%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 48%, #eef2f7 100%);
}

.background-theme-preview[data-preview-style="light"]::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.26;
  mask-image: radial-gradient(circle at center, black 52%, transparent 92%);
}

.background-theme-preview[data-preview-style="light"]::after {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.86), transparent 18%),
    radial-gradient(circle at 78% 16%, rgba(212, 175, 55, 0.12), transparent 20%),
    linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.07) 50%, transparent 100%) center 70% / 68% 1px no-repeat;
  opacity: 1;
}

.background-theme-preview[data-preview-style="light"] .background-theme-preview__starfield,
.background-theme-preview[data-preview-style="light"] .background-theme-preview__market-wall {
  opacity: 0;
}

.background-theme-preview[data-preview-style="light"] .background-theme-preview__noise {
  opacity: 0.3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 34%);
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="light"] .background-theme-preview__frame .welcome-text,
.background-theme-preview[data-preview-style="light"] .background-theme-preview__frame .hero,
.background-theme-preview[data-preview-style="light"] .background-theme-preview__frame .card.export-section {
  filter: saturate(0.92) brightness(1.08);
}

.background-theme-preview[data-preview-style="classic"] {
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(219, 182, 69, 0.18), transparent 65%),
    radial-gradient(760px 380px at 88% 0%, rgba(219, 182, 69, 0.1), transparent 58%),
    linear-gradient(180deg, #020304 0%, #05070b 42%, #070a10 100%);
}

.background-theme-preview[data-preview-style="classic"]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, black 48%, transparent 90%);
}

.background-theme-preview[data-preview-style="classic"]::after {
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.05), transparent 16%),
    radial-gradient(circle at 78% 18%, rgba(219, 182, 69, 0.07), transparent 18%),
    radial-gradient(circle at 50% 82%, rgba(219, 182, 69, 0.04), transparent 20%);
}

.background-theme-preview[data-preview-style="classic"] .background-theme-preview__starfield {
  opacity: 0.75;
}

.background-theme-preview[data-preview-style="classic"] .background-theme-preview__noise {
  opacity: 1;
  background-image:
    linear-gradient(130deg, rgba(255, 255, 255, 0.015), transparent 42%),
    linear-gradient(320deg, rgba(255, 255, 255, 0.01), transparent 42%);
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="institutional"] {
  background:
    radial-gradient(1120px 420px at 50% -14%, rgba(255, 255, 255, 0.045), transparent 58%),
    radial-gradient(620px 240px at 14% 14%, rgba(215, 177, 103, 0.045), transparent 62%),
    radial-gradient(700px 280px at 84% 10%, rgba(139, 183, 255, 0.065), transparent 58%),
    linear-gradient(180deg, #07080a 0%, #0d1116 44%, #090c11 100%);
}

.background-theme-preview[data-preview-style="institutional"]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.022) 50%, transparent 58%);
  background-size: 112px 112px, 112px 112px, 100% 100%;
  opacity: 0.3;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 88%, transparent 100%);
}

.background-theme-preview[data-preview-style="institutional"]::after {
  background:
    radial-gradient(920px 320px at 50% 0%, rgba(255, 255, 255, 0.032), transparent 64%),
    linear-gradient(90deg, transparent 0%, rgba(215, 177, 103, 0.18) 50%, transparent 100%) center 18% / 66% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%) center 46% / 52% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(139, 183, 255, 0.14) 50%, transparent 100%) center 72% / 58% 1px no-repeat,
    radial-gradient(circle at 22% 82%, rgba(139, 183, 255, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.015));
}

.background-theme-preview[data-preview-style="institutional"] .background-theme-preview__starfield {
  opacity: 0;
}

.background-theme-preview[data-preview-style="institutional"] .background-theme-preview__noise {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.009) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.008));
  mix-blend-mode: normal;
  opacity: 0.075;
}

.background-theme-preview[data-preview-style="institutional"] .background-theme-preview__noise::before {
  background: radial-gradient(circle at 50% 12%, rgba(215, 177, 103, 0.07), transparent 30%);
  opacity: 0.48;
}

.background-theme-preview[data-preview-style="institutional"] .background-theme-preview__noise::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.045) 50%, transparent 100%);
  filter: blur(80px);
  opacity: 0.11;
}

.background-theme-preview[data-preview-style="wallstreet"] {
  --wallstreet-quote-board: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 280' width='560' height='280'%3E%3Cg fill='none' stroke='%23182935' stroke-opacity='.9'%3E%3Cpath d='M30 78h500'/%3E%3Cpath d='M30 138h500'/%3E%3Cpath d='M30 198h500'/%3E%3C/g%3E%3Crect x='28' y='28' width='154' height='34' rx='10' fill='%230a151d' fill-opacity='.62' stroke='%231e3240' stroke-opacity='.96'/%3E%3Ctext x='42' y='50' fill='%2397adbf' font-size='11' font-family='monospace'%3EAAPL%3C/text%3E%3Ctext x='108' y='50' fill='%2339d98a' font-size='11' font-family='monospace'%3E%2B0.84%25%3C/text%3E%3Crect x='206' y='28' width='154' height='34' rx='10' fill='%230a151d' fill-opacity='.62' stroke='%231e3240' stroke-opacity='.96'/%3E%3Ctext x='220' y='50' fill='%2397adbf' font-size='11' font-family='monospace'%3ENVDA%3C/text%3E%3Ctext x='288' y='50' fill='%2339d98a' font-size='11' font-family='monospace'%3E%2B1.42%25%3C/text%3E%3Crect x='384' y='28' width='148' height='34' rx='10' fill='%230a151d' fill-opacity='.62' stroke='%231e3240' stroke-opacity='.96'/%3E%3Ctext x='398' y='50' fill='%2397adbf' font-size='11' font-family='monospace'%3ETSLA%3C/text%3E%3Ctext x='462' y='50' fill='%23ff6b74' font-size='11' font-family='monospace'%3E-0.73%25%3C/text%3E%3Crect x='52' y='92' width='146' height='32' rx='10' fill='%230a151d' fill-opacity='.56' stroke='%23192b38' stroke-opacity='.92'/%3E%3Ctext x='66' y='113' fill='%2393a7b9' font-size='10.5' font-family='monospace'%3EMETA%3C/text%3E%3Ctext x='128' y='113' fill='%2339d98a' font-size='10.5' font-family='monospace'%3E%2B0.63%25%3C/text%3E%3Crect x='230' y='92' width='146' height='32' rx='10' fill='%230a151d' fill-opacity='.56' stroke='%23192b38' stroke-opacity='.92'/%3E%3Ctext x='244' y='113' fill='%2393a7b9' font-size='10.5' font-family='monospace'%3EEURUSD%3C/text%3E%3Ctext x='320' y='113' fill='%23ff6b74' font-size='10.5' font-family='monospace'%3E-0.11%25%3C/text%3E%3Crect x='408' y='92' width='108' height='32' rx='10' fill='%230a151d' fill-opacity='.56' stroke='%23192b38' stroke-opacity='.92'/%3E%3Ctext x='422' y='113' fill='%2393a7b9' font-size='10.5' font-family='monospace'%3EDXY%3C/text%3E%3Ctext x='470' y='113' fill='%2339d98a' font-size='10.5' font-family='monospace'%3E%2B0.18%25%3C/text%3E%3Cpath d='M42 234l38-14 38 8 36-24 42 9 30-31 44 15 40-52 46 16 48-48' stroke='%2339d98a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M58 248l46-2 38 5 36-11 32 6 34-10 38 7 34-15' stroke='%23ff6b74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='5 7' fill='none' opacity='.76'/%3E%3C/svg%3E");
  --wallstreet-mini-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 260' width='620' height='260'%3E%3Cg fill='none' stroke='%23172935' stroke-opacity='.84'%3E%3Cpath d='M24 34h572'/%3E%3Cpath d='M24 86h572'/%3E%3Cpath d='M24 138h572'/%3E%3Cpath d='M24 190h572'/%3E%3Cpath d='M82 18v220'/%3E%3Cpath d='M194 18v220'/%3E%3Cpath d='M306 18v220'/%3E%3Cpath d='M418 18v220'/%3E%3Cpath d='M530 18v220'/%3E%3C/g%3E%3Cpath d='M30 200L88 186 142 204 196 152 252 168 310 122 366 144 424 96 482 114 540 64 594 82' stroke='%2339d98a' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M30 214L90 218 144 208 198 226 252 214 304 230 360 214' stroke='%23ff6b74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='4 8' fill='none' opacity='.74'/%3E%3Crect x='152' y='124' width='8' height='42' rx='3' fill='%2339d98a' fill-opacity='.72'/%3E%3Crect x='266' y='92' width='8' height='58' rx='3' fill='%2339d98a' fill-opacity='.7'/%3E%3Crect x='378' y='144' width='8' height='34' rx='3' fill='%23ff6b74' fill-opacity='.68'/%3E%3Crect x='492' y='76' width='8' height='64' rx='3' fill='%2339d98a' fill-opacity='.78'/%3E%3C/svg%3E");
  background:
    radial-gradient(1040px 420px at 50% -14%, rgba(108, 168, 255, 0.08), transparent 58%),
    radial-gradient(560px 260px at 18% 12%, rgba(57, 217, 138, 0.08), transparent 60%),
    radial-gradient(560px 260px at 82% 10%, rgba(255, 107, 116, 0.07), transparent 58%),
    linear-gradient(180deg, #061018 0%, #08131d 38%, #050b11 100%);
}

.background-theme-preview[data-preview-style="wallstreet"]::before {
  background-image:
    linear-gradient(rgba(126, 166, 205, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 166, 205, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(126, 166, 205, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 166, 205, 0.03) 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 24px 24px, 24px 24px;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.background-theme-preview[data-preview-style="wallstreet"]::after {
  background:
    radial-gradient(circle at 20% 22%, rgba(57, 217, 138, 0.09), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 107, 116, 0.08), transparent 16%),
    radial-gradient(circle at 50% 0%, rgba(108, 168, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%, transparent 82%, rgba(255, 255, 255, 0.014));
}

.background-theme-preview[data-preview-style="wallstreet"] .background-theme-preview__starfield {
  opacity: 0;
}

.background-theme-preview[data-preview-style="wallstreet"] .background-theme-preview__noise {
  opacity: 0.14;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 18%, transparent 84%, rgba(255, 255, 255, 0.024)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(57, 217, 138, 0.05), transparent 22%, transparent 78%, rgba(255, 107, 116, 0.05));
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="wallstreet"] .background-theme-preview__noise::before {
  background-image: var(--wallstreet-quote-board);
  background-repeat: repeat;
  background-size: 500px 250px;
  background-position: center 28px;
  opacity: 0.42;
}

.background-theme-preview[data-preview-style="wallstreet"] .background-theme-preview__noise::after {
  background-image: var(--wallstreet-mini-chart);
  background-repeat: repeat;
  background-size: 620px 260px;
  background-position: -96px 52px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="marketwall"] {
  background:
    radial-gradient(980px 420px at 50% -14%, rgba(255, 255, 255, 0.075), transparent 58%),
    radial-gradient(560px 240px at 16% 12%, rgba(74, 196, 129, 0.05), transparent 58%),
    radial-gradient(560px 240px at 84% 12%, rgba(224, 96, 107, 0.045), transparent 58%),
    linear-gradient(180deg, #171d23 0%, #20272e 42%, #171d23 100%);
}

.background-theme-preview[data-preview-style="marketwall"]::before {
  background-image:
    linear-gradient(rgba(188, 198, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 198, 208, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(188, 198, 208, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 198, 208, 0.022) 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 24px 24px, 24px 24px;
  opacity: 0.3;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.background-theme-preview[data-preview-style="marketwall"]::after {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%, transparent 82%, rgba(255, 255, 255, 0.014));
}

.background-theme-preview[data-preview-style="marketwall"] .background-theme-preview__starfield {
  opacity: 0;
}

.background-theme-preview[data-preview-style="marketwall"] .background-theme-preview__market-wall {
  opacity: 1;
}

.background-theme-preview[data-preview-style="marketwall"] .background-theme-preview__noise {
  opacity: 0.12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.024)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.02));
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="marketwall"] .background-theme-preview__noise::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(74, 196, 129, 0.06), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(224, 96, 107, 0.05), transparent 18%);
  opacity: 0.46;
}

.background-theme-preview[data-preview-style="marketwall"] .background-theme-preview__noise::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  filter: blur(90px);
  opacity: 0.08;
}

.background-theme-preview[data-preview-style="orderflow"] {
  background:
    radial-gradient(980px 460px at 50% -16%, rgba(255, 255, 255, 0.026), transparent 56%),
    radial-gradient(620px 280px at 18% 18%, rgba(74, 196, 129, 0.024), transparent 58%),
    radial-gradient(620px 280px at 82% 14%, rgba(224, 96, 107, 0.022), transparent 56%),
    linear-gradient(180deg, #06090d 0%, #0a0f13 42%, #05080b 100%);
}

.background-theme-preview[data-preview-style="orderflow"]::before {
  background-image:
    linear-gradient(rgba(180, 190, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 190, 200, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(180, 190, 200, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 190, 200, 0.018) 1px, transparent 1px);
  background-size: 124px 124px, 124px 124px, 22px 22px, 22px 22px;
  opacity: 0.2;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.background-theme-preview[data-preview-style="orderflow"]::after {
  background:
    linear-gradient(148deg, transparent 0%, transparent 43%, rgba(224, 96, 107, 0.02) 43.35%, transparent 43.7%, transparent 100%),
    linear-gradient(32deg, transparent 0%, transparent 61%, rgba(74, 196, 129, 0.016) 61.3%, transparent 61.6%, transparent 100%),
    linear-gradient(116deg, transparent 0%, transparent 46%, rgba(172, 182, 192, 0.026) 50%, transparent 54%, transparent 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(74, 196, 129, 0.03), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(224, 96, 107, 0.028), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.008), transparent 20%, transparent 84%, rgba(255, 255, 255, 0.005));
}

.background-theme-preview[data-preview-style="orderflow"] .background-theme-preview__starfield {
  opacity: 0;
}

.background-theme-preview[data-preview-style="orderflow"] .background-theme-preview__market-wall {
  opacity: 1;
}

.background-theme-preview[data-preview-style="orderflow"] .background-theme-preview__noise {
  opacity: 0.055;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.005) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.01));
  mix-blend-mode: screen;
}

.background-theme-preview[data-preview-style="orderflow"] .background-theme-preview__noise::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 24%),
    radial-gradient(circle at 20% 18%, rgba(74, 196, 129, 0.024), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(224, 96, 107, 0.024), transparent 18%);
  opacity: 0.24;
}

.background-theme-preview[data-preview-style="orderflow"] .background-theme-preview__noise::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.028) 50%, transparent 100%);
  filter: blur(90px);
  opacity: 0.035;
}

.background-theme-preview[data-preview-style="orderflow"] .hero-points span {
  padding: 6px 12px;
  color: rgba(246, 249, 252, 0.96);
  background: rgba(14, 20, 27, 0.82);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 999px;
}

@media (max-width: 680px) {
  .background-theme-modal-content {
    max-width: 100%;
  }

  .background-theme-preview {
    min-height: 460px;
  }

  .background-theme-preview__viewport {
    padding: 16px;
  }

  .background-theme-preview__sizer {
    min-height: 340px;
  }

  .background-theme-preview__frame {
    width: 620px;
  }

  .background-theme-options,
  .modal-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .background-theme-preview__frame .stats-circles,
  .background-theme-preview__frame #stats {
    gap: 10px;
    padding: 0 14px;
  }

  .background-theme-preview__frame .stat-pill {
    min-width: 108px;
    padding: 9px 10px;
  }

  .background-theme-preview[data-preview-style="institutional"]::before {
    background-size: 92px 92px, 92px 92px, 100% 100%;
  }

  .background-theme-preview[data-preview-style="wallstreet"]::before {
    background-size: 88px 88px, 88px 88px, 20px 20px, 20px 20px;
  }

  .background-theme-preview[data-preview-style="marketwall"]::before {
    background-size: 88px 88px, 88px 88px, 20px 20px, 20px 20px;
  }

  .background-theme-preview[data-preview-style="orderflow"]::before {
    background-size: 88px 88px, 88px 88px, 20px 20px, 20px 20px;
  }
}

.date-input {
  cursor: pointer;
}

.date-picker {
  position: absolute;
  z-index: 14000;
  background: #0f1116;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  padding: 10px;
  width: 260px;
}

.date-picker.hidden {
  display: none;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.date-picker-title {
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f5;
}

.date-picker-nav {
  display: inline-flex;
  gap: 6px;
}

.date-picker-nav button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  color: #f5c400;
  cursor: pointer;
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-day {
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #e6e6e6;
  cursor: pointer;
  font-size: 12px;
}

.date-picker-day:hover {
  border-color: rgba(245, 196, 0, 0.6);
  color: #f5c400;
}

.date-picker-day.is-today {
  border-color: rgba(255, 255, 255, 0.35);
}

.date-picker-day.is-selected {
  background: rgba(245, 196, 0, 0.18);
  border-color: rgba(245, 196, 0, 0.8);
  color: #f5c400;
  font-weight: 600;
}

.date-picker-day.is-empty {
  cursor: default;
  background: transparent;
  border-color: transparent;
}

@media (max-width: 768px) {
  #settingsModal {
    padding: 10px;
  }

  #settingsPanel {
    margin: 0 auto;
    max-height: calc(100dvh - 20px);
  }

  .settings-modal-close {
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 24px;
  }
}

.subscription-modal-content {
  max-width: 460px;
  text-align: left;
}

.subscription-status-row {
  display: flex;
  justify-content: flex-start;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.subscription-badge.is-active {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.14);
  color: #bbf7d0;
}

.subscription-badge.is-warning {
  border-color: rgba(245, 196, 0, 0.45);
  background: rgba(245, 196, 0, 0.14);
  color: #fde68a;
}

.subscription-badge.is-expired {
  border-color: rgba(231, 76, 60, 0.45);
  background: rgba(231, 76, 60, 0.14);
  color: #fecaca;
}

.subscription-grid {
  display: grid;
  gap: 8px;
  background: #141720;
  border-radius: 12px;
  padding: 12px;
}

.subscription-grid p {
  margin: 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
}

.subscription-grid span {
  opacity: 0.8;
}

.subscription-grid strong {
  font-weight: 700;
}

.switch{
  position:relative;
  display:inline-block;
  width:44px;
  height:24px;
}
.switch input{opacity:0;width:0;height:0}
.slider{
  position:absolute;
  cursor:pointer;
  top:0;left:0;right:0;bottom:0;
  background:rgba(255,255,255,0.08);
  border-radius:24px;
  transition:all .2s ease;
}
.slider:before{
  position:absolute;
  content:"";
  height:18px;width:18px;
  left:3px;top:3px;
  background:#fff;
  border-radius:50%;
  transition:all .2s ease;
}
.switch input:checked + .slider{
  background:rgba(255,209,102,0.35);
}
.switch input:checked + .slider:before{
  transform:translateX(20px);
  background:#ffd166;
}

.swing-monitoring-block {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.02));
}

.swing-monitoring-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.swing-monitoring-head h4 {
  margin: 0;
  font-size: 16px;
}

.swing-monitoring-state p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.swing-monitoring-link {
  width: auto;
  padding: 10px 12px;
}

.swing-monitoring-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.swing-monitor-modal-content {
  text-align: left;
}

.swing-monitoring-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  display: grid;
  gap: 6px;
}

.floating-chat-badge{
  position:fixed;
  right:16px;
  bottom:16px;
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  background:radial-gradient(circle at 30% 20%, #fff3c4 0%, #ffd166 35%, #ffb703 100%);
  color:#1b1b1b;
  font-weight:700;
  box-shadow:0 12px 30px rgba(0,0,0,0.4);
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:50;
  letter-spacing:0.5px;
}
.floating-chat-badge.active{display:flex;}

.floating-mt5-badge{
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 0, 0.4);
  background: rgba(21, 24, 31, 0.92);
  color: #ffd27d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 51;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  display: inline-flex;
  align-items: center;
  transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
}

.floating-mt5-badge.is-hybrid{
  border-color: rgba(74, 222, 128, 0.55);
  color: #9af3b0;
}

.floating-mt5-badge.stacked-with-chat{
  bottom: 86px;
}

.disciply-bottom-nav{
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(calc(100% - 18px), 460px);
  padding: 4px 12px calc(7px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  border-radius: 28px 28px 0 0;
  border-top: 1px solid rgba(245, 196, 0, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(18, 18, 20, 0.96) 0%, rgba(5, 5, 5, 0.98) 100%);
  box-shadow:
    0 -10px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 12000;
  transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
}

.disciply-bottom-nav.hidden{
  display: none;
}

.disciply-bottom-nav__item{
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #7f8791;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px 4px 4px;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.disciply-bottom-nav__item:not(.disciply-bottom-nav__item--account){
  transform: translateY(-3px);
}

.disciply-bottom-nav__item:hover,
.disciply-bottom-nav__item:focus-visible{
  color: #f5f7fa;
  outline: none;
}

.disciply-bottom-nav__item.is-active{
  color: #f5c400;
}

.disciply-bottom-nav__icon,
.disciply-bottom-nav__account-icon{
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disciply-bottom-nav__icon svg,
.disciply-bottom-nav__account-icon svg{
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.disciply-bottom-nav__account-image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.disciply-bottom-nav__account-image-wrap{
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.disciply-bottom-nav__icon svg rect,
.disciply-bottom-nav__icon svg circle,
.disciply-bottom-nav__account-icon svg rect,
.disciply-bottom-nav__account-icon svg circle{
  fill: none;
}

.disciply-bottom-nav__label{
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: currentColor;
  white-space: nowrap;
}

.disciply-bottom-nav__item--account{
  flex: 0 0 68px;
  transform: translateY(-10px);
  padding-top: 0;
  padding-bottom: 2px;
}

.disciply-bottom-nav__account-bubble{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 244, 194, 0.95) 0%, rgba(245, 196, 0, 0.98) 38%, rgba(183, 126, 0, 1) 100%);
  border: 1px solid rgba(255, 219, 92, 0.75);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  color: #111111;
}

.disciply-bottom-nav__account-bubble.is-connected{
  background:
    radial-gradient(circle at 30% 30%, rgba(215, 255, 229, 0.95) 0%, rgba(34, 197, 94, 0.98) 42%, rgba(18, 133, 63, 1) 100%);
  border-color: rgba(134, 239, 172, 0.78);
  color: rgba(241, 255, 248, 0.96);
}

.disciply-bottom-nav__account-bubble.is-connected .disciply-bottom-nav__account-icon{
  width: 30px;
  height: 30px;
}

.disciply-bottom-nav__account-bubble.is-connected .disciply-bottom-nav__account-image{
  transform: scale(1.18);
  transform-origin: center;
}

.disciply-bottom-nav__item--account .disciply-bottom-nav__label{
  color: #d6dce5;
}

.disciply-bottom-nav__item--account.is-connected .disciply-bottom-nav__label{
  color: #c8f7d6;
}

.disciply-tools-modal{
  position: fixed;
  inset: 0;
  z-index: 13010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 14px calc(102px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top, rgba(245, 196, 0, 0.08), transparent 34%),
    rgba(3, 4, 7, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.disciply-tools-modal.hidden{
  display: none;
}

.disciply-tools-modal__panel{
  width: min(760px, 100%);
  max-height: min(72vh, 720px);
  overflow-y: auto;
  border-radius: 28px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(245, 196, 0, 0.15);
  background:
    radial-gradient(circle at top left, rgba(245, 196, 0, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(18, 19, 22, 0.99) 0%, rgba(8, 8, 9, 0.99) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  position: relative;
}

.disciply-tools-modal__panel::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.35), transparent);
  pointer-events: none;
}

.disciply-tools-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.disciply-tools-modal__eyebrow{
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c400;
}

.disciply-tools-modal__header h3{
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.disciply-tools-modal__subtitle{
  margin: 8px 0 0;
  color: #a8b2c1;
  font-size: 14px;
  line-height: 1.4;
  max-width: 42ch;
}

.disciply-tools-modal__close{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.disciply-tools-modal__close:hover,
.disciply-tools-modal__close:focus-visible{
  transform: rotate(90deg);
  border-color: rgba(245, 196, 0, 0.28);
  background: rgba(245, 196, 0, 0.08);
  outline: none;
}

.disciply-tools-modal__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.disciply-tools-card{
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  padding: 15px 15px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #eef2f7;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.disciply-tools-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%, transparent 62%, rgba(245, 196, 0, 0.03));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.disciply-tools-card:hover,
.disciply-tools-card:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(245, 196, 0, 0.28);
  background: linear-gradient(145deg, rgba(245, 196, 0, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.disciply-tools-card:hover::before,
.disciply-tools-card:focus-visible::before{
  opacity: 1;
}

.disciply-tools-card__icon{
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 196, 0, 0.1);
  color: #f5c400;
  box-shadow: inset 0 0 0 1px rgba(245, 196, 0, 0.08);
}

.disciply-tools-card[data-tool-accent="green"] .disciply-tools-card__icon{
  background: rgba(34, 197, 94, 0.12);
  color: #7fe39e;
}

.disciply-tools-card[data-tool-accent="blue"] .disciply-tools-card__icon{
  background: rgba(59, 130, 246, 0.12);
  color: #85b8ff;
}

.disciply-tools-card[data-tool-accent="amber"] .disciply-tools-card__icon{
  background: rgba(245, 158, 11, 0.12);
  color: #ffcc73;
}

.disciply-tools-card[data-tool-accent="violet"] .disciply-tools-card__icon{
  background: rgba(167, 139, 250, 0.13);
  color: #c7b3ff;
}

.disciply-tools-card[data-tool-accent="red"] .disciply-tools-card__icon{
  background: rgba(239, 68, 68, 0.12);
  color: #ff9b94;
}

.disciply-tools-card[data-tool-accent="teal"] .disciply-tools-card__icon{
  background: rgba(20, 184, 166, 0.12);
  color: #7ce2d8;
}

.disciply-tools-card[data-tool-accent="orange"] .disciply-tools-card__icon{
  background: rgba(249, 115, 22, 0.12);
  color: #ffb36f;
}

.disciply-tools-card__icon svg{
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.disciply-tools-card__copy{
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.disciply-tools-card__copy strong{
  font-size: 14px;
  line-height: 1.25;
  color: #f8fafc;
}

.disciply-tools-card__copy small{
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #91a0b3;
}

.disciply-tools-card__arrow{
  flex: 0 0 auto;
  color: #8d98a8;
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 180ms ease, color 180ms ease;
}

.disciply-tools-card:hover .disciply-tools-card__arrow,
.disciply-tools-card:focus-visible .disciply-tools-card__arrow{
  color: #f5c400;
  transform: translateX(2px);
}

body.disciply-tools-modal-open{
  overflow: hidden;
}

.analysis-modal{
  position: fixed;
  inset: 0;
  z-index: 13020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(14px, env(safe-area-inset-top, 0px))
    14px
    calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top, rgba(245, 196, 0, 0.1), transparent 34%),
    rgba(2, 4, 7, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.analysis-modal.hidden{
  display: none;
}

.analysis-modal__panel{
  width: min(1040px, 100%);
  max-height: min(88vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 196, 0, 0.16);
  background:
    radial-gradient(circle at top left, rgba(245, 196, 0, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(16, 18, 25, 0.995) 0%, rgba(7, 9, 14, 0.995) 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.analysis-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-modal__title-wrap{
  min-width: 0;
}

.analysis-modal__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c400;
}

.analysis-modal__title-wrap h3{
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.analysis-modal__subtitle{
  margin: 10px 0 0;
  max-width: 54ch;
  color: #aeb7c6;
  font-size: 14px;
  line-height: 1.45;
}

.analysis-modal__close{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.analysis-modal__close:hover,
.analysis-modal__close:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.3);
  background: rgba(245, 196, 0, 0.1);
  outline: none;
}

.analysis-modal__body{
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 196, 0, 0.72) rgba(255, 255, 255, 0.08);
}

.analysis-modal .analysis-wrapper{
  max-width: none;
  margin: 0;
  padding: 0;
}

.analysis-modal .discipline-score-premium{
  margin: 0;
}

.analysis-modal .pre-entry-analysis-section{
  margin-top: 0;
}

body.analysis-modal-open{
  overflow: hidden;
  overscroll-behavior: none;
}

body.discipline-score-modal-open{
  overflow: hidden;
  overscroll-behavior: none;
}

@media (min-width: 768px){
  .disciply-bottom-nav{
    display: none !important;
  }
}

@media (max-width: 767px){
  body.disciply-bottom-nav-mounted #app{
    padding-bottom: max(104px, calc(90px + env(safe-area-inset-bottom, 0px)));
  }

  body.disciply-bottom-nav-mounted .floating-mt5-badge{
    display: none !important;
  }

  .disciply-tools-modal{
    padding: 18px 12px calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .disciply-tools-modal__panel{
    border-radius: 24px;
    padding: 18px 14px 14px;
  }

  .disciply-tools-modal__header h3{
    font-size: 22px;
  }

  .disciply-tools-modal__grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .disciply-tools-card{
    padding: 14px 13px;
    gap: 11px;
  }

  .disciply-tools-card__copy strong{
    font-size: 13px;
  }

  .analysis-modal{
    align-items: flex-end;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .analysis-modal__panel{
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .analysis-modal__header{
    gap: 12px;
    padding: 16px 14px 12px;
  }

  .analysis-modal__title-wrap h3{
    font-size: 1.42rem;
  }

  .analysis-modal__subtitle{
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.4;
  }

  .analysis-modal__close{
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .analysis-modal__body{
    padding: 0 12px 12px;
  }
}

.trade-badge.mt5-review{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 170, 0, 0.14);
  border-color: rgba(255, 170, 0, 0.45);
  color: #ffcc72;
  box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.08);
}

.trade-badge.mt5-review svg{
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-badge.bot-mode{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(87, 165, 255, 0.16);
  border-color: rgba(87, 165, 255, 0.45);
  color: #9cd0ff;
  box-shadow: inset 0 0 0 1px rgba(87, 165, 255, 0.08);
}

.trade-badge.bot-mode svg{
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-badge.mt5-group{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(87, 165, 255, 0.15);
  border-color: rgba(87, 165, 255, 0.42);
  color: #9cd0ff;
  box-shadow: inset 0 0 0 1px rgba(87, 165, 255, 0.08);
}

.trade-badge.mt5-group.is-action{
  appearance: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.trade-badge.mt5-group svg{
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-badge-count{
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.trade-badge-lot{
  padding-left: 6px;
  border-left: 1px solid rgba(156, 208, 255, 0.28);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.trade.is-group-mode{
  cursor: default;
  gap: 12px;
  padding-left: 10px;
}

.trade.is-group-pick{
  cursor: pointer;
}

.trade.is-group-pick .trade-content{
  opacity: 0.96;
}

.trade.is-group-anchor{
  border-left-color: rgba(87, 165, 255, 0.85);
  box-shadow: 0 8px 18px rgba(87, 165, 255, 0.12);
}

.trade.is-group-selected{
  outline: 1px solid rgba(87, 165, 255, 0.4);
  box-shadow: 0 10px 20px rgba(87, 165, 255, 0.12);
}

.trade-side-select{
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(87, 165, 255, 0.38);
  background: rgba(87, 165, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(87, 165, 255, 0.06);
}

.trade-side-select span{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(173, 216, 255, 0.24);
}

.trade-side-select.is-ready{
  border-color: rgba(140, 208, 255, 0.62);
  background: rgba(87, 165, 255, 0.16);
  box-shadow: 0 8px 16px rgba(61, 138, 255, 0.12);
}

.trade-side-select.is-ready span{
  background: rgba(140, 208, 255, 0.75);
  border-color: rgba(190, 229, 255, 0.45);
}

.trade-side-select.is-selected{
  background: linear-gradient(180deg, rgba(102, 187, 255, 0.95), rgba(61, 138, 255, 0.95));
  border-color: rgba(140, 208, 255, 0.92);
  box-shadow: 0 10px 18px rgba(61, 138, 255, 0.24);
}

.trade-side-select.is-selected span{
  width: 8px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-right: 2px solid #08111f;
  border-bottom: 2px solid #08111f;
  transform: rotate(45deg);
  margin-top: -2px;
}

.trade-side-select.is-anchor{
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  background: rgba(87, 165, 255, 0.16);
  color: #9cd0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.trade-side-select.is-empty{
  opacity: 0;
  pointer-events: none;
}

.mt5-group-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(87, 165, 255, 0.25);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.96), rgba(9, 18, 31, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mt5-group-toolbar__copy{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt5-group-toolbar__copy strong{
  font-size: 13px;
  color: #cfe6ff;
}

.mt5-group-toolbar__copy span{
  font-size: 12px;
  color: rgba(212, 228, 255, 0.78);
}

.mt5-group-toolbar__actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mt5-group-toolbar__count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(87, 165, 255, 0.14);
  color: #9cd0ff;
  border: 1px solid rgba(87, 165, 255, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.mt5-group-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(87, 165, 255, 0.3);
  background: rgba(87, 165, 255, 0.1);
  color: #c8e5ff;
  font-size: 12px;
}

.mt5-review-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 0, 0.35);
  background: rgba(255, 170, 0, 0.1);
  color: #ffdca3;
  font-size: 12px;
}

@media (max-width: 680px){
  .floating-mt5-badge{
    right: 10px;
    bottom: 10px;
    min-height: 40px;
    font-size: 11px;
    padding: 0 10px;
  }
  .floating-mt5-badge.stacked-with-chat{
    bottom: 78px;
  }
  .mt5-refresh-pill{
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.8rem;
  }
  .mt5-sync-center{
    padding: 13px;
    gap: 10px;
  }
  .mt5-sync-center__stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mt5-sync-center__stat:last-child{
    grid-column: 1 / -1;
  }
  .mt5-group-toolbar{
    flex-direction: column;
    align-items: stretch;
  }
  .mt5-group-toolbar__actions{
    justify-content: stretch;
  }
  .mt5-group-toolbar__actions .btn{
    width: 100%;
  }
  .trade-list-filters{
    padding: 12px;
  }
  .trade-list-filter-field{
    flex-basis: 100%;
  }
  .trade-list-filters__reset{
    width: 100%;
    min-width: 0;
  }
}

@media(max-width:540px){
  .trades-toolbar{
    gap: 8px;
  }
  .operations-market-entry{
    min-height: 78px;
    grid-template-columns: minmax(54px, 0.72fr) minmax(150px, 2.45fr) minmax(54px, 0.72fr);
  }
  .operations-market-entry__side svg{
    width: 40px;
    height: 40px;
  }
  .operations-market-entry__content{
    padding-inline: 5px;
  }
  .operations-market-entry__title{
    font-size: 0.77rem;
  }
  .operations-market-entry__action{
    font-size: 0.73rem;
  }
  .operations-market-entry__description{
    font-size: 0.64rem;
  }
  .mt5-refresh-pill{
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }
  .mt5-sync-center{
    padding: 12px;
    border-radius: 16px;
  }
  .mt5-sync-center__headline{
    gap: 8px;
  }
  .mt5-sync-center__title{
    font-size: 0.92rem;
  }
  .mt5-sync-center__stat{
    padding: 9px 10px;
  }
  .mt5-sync-center__stat-value{
    font-size: 0.84rem;
  }
  .mt5-sync-center__summary{
    font-size: 0.82rem;
  }
  .mt5-sync-center__flag{
    min-height: 28px;
    font-size: 0.75rem;
  }
  .trade-filter-chip{
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}

@media(max-width:360px){
  .operations-market-entry{
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    border-radius: 13px;
  }
  .operations-market-entry__side svg{
    width: 34px;
    height: 34px;
  }
  .operations-market-entry__title{
    font-size: 0.73rem;
  }
  .operations-market-entry__action{
    font-size: 0.69rem;
  }
  .operations-market-entry__description{
    font-size: 0.6rem;
  }
  .operations-secondary-actions{
    gap: 6px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .operations-secondary-actions .btn,
  .operations-secondary-actions .mt5-refresh-pill{
    min-height: 40px;
    padding-inline: 4px;
    font-size: 0.64rem;
  }
  .operations-secondary-actions .btn-group-trades{
    gap: 3px;
  }
  .operations-secondary-actions__group-icon{
    width: 11px;
    height: 11px;
  }
}

@media (prefers-reduced-motion: reduce){
  .operations-market-entry,
  .operations-secondary-actions .btn,
  .operations-secondary-actions .mt5-refresh-pill{
    transition: none;
  }
}

.floating-chat-badge::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(255,209,102,0.4);
  box-shadow:0 0 20px rgba(255,209,102,0.35);
  opacity:0;
  animation:chatPulse 2.4s infinite;
}

@keyframes chatPulse{
  0%{transform:scale(0.92);opacity:0;}
  30%{opacity:0.8;}
  70%{transform:scale(1.08);opacity:0.2;}
  100%{transform:scale(1.12);opacity:0;}
}


.disclaimer-text {
  opacity: 0.7;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.card-title {
  text-align: center;
}

#openCalcBtn {
   background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #000;
  border: none;
  box-shadow:
    0 4px 10px rgba(245, 196, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);

  /* 👇 QUESTO è il punto chiave per il testo */
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  text-align: center;

  cursor: pointer;
}



.discipline-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.discipline-box {
  max-width: 520px;
  background: #111;
  color: #fff;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.discipline-box h2 {
  color: #ff4d4d;
  margin-bottom: 16px;
}

.discipline-box p {
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 15px;
}

.discipline-box button {
  margin-top: 18px;
  padding: 10px 22px;
  border: none;
  background: #ff4d4d;
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}


/* ================= CONTAINER DASHBOARD ================= */
.control-console {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.risk-control-card,
.coach-card {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0b0d10 0%, #08090d 100%);
  border: 1px solid rgba(255, 214, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 214, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.risk-control-header,
.coach-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.risk-control-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #dcb237;
}

.risk-control-title h3,
.coach-head-main h3 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.1;
  color: #fff;
}

.risk-control-title p,
.coach-head-main p {
  margin: 0;
  color: #95a0ad;
  font-size: 14px;
}

.risk-status-badge,
.coach-status-badge {
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.risk-donut-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.risk-donut-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 12px;
  background: rgba(3, 5, 9, 0.72);
  text-align: center;
}

.metric-title {
  display: block;
  font-size: 13px;
  color: #9aa3b1;
  margin-bottom: 10px;
}

.risk-donut {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #090b0f 58%, transparent 59%),
    conic-gradient(var(--tone, #36d282) calc(var(--progress, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: grid;
  place-items: center;
}

.risk-donut strong {
  color: #fff;
  font-size: 20px;
}

.risk-limit-card {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 10, 0.75);
  padding: 12px;
}

.risk-limit-head,
.risk-limit-scale {
  display: flex;
  justify-content: space-between;
  color: #9aa3b1;
  font-size: 13px;
}

.risk-limit-head strong {
  color: #fff;
}

.risk-limit-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 6px;
  background: rgba(255, 255, 255, 0.08);
}

.risk-limit-fill {
  display: block;
  height: 100%;
  width: calc(var(--limit-progress, 0) * 1%);
  background: linear-gradient(90deg, #ffd000, #f1b600);
}

.risk-limit-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: min(calc(var(--limit-marker, 100) * 1%), 100%);
  background: rgba(255, 214, 0, 0.75);
}

.risk-period-tabs {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.risk-tab {
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #afb8c6;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 10px;
}

.risk-tab.is-active {
  color: #ffd000;
  border-color: rgba(255, 214, 0, 0.4);
  background: rgba(255, 214, 0, 0.08);
}

.risk-insight-card {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 0, 0.2);
  background: rgba(255, 214, 0, 0.05);
  padding: 12px;
}

.risk-insight-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #ffd86a;
}

.risk-insight-card p {
  margin: 0;
  color: #f4f6f9;
  line-height: 1.4;
}

.coach-head-main {
  display: flex;
  gap: 10px;
}

.coach-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 0, 0.2);
  background: radial-gradient(circle at 40% 30%, rgba(255, 214, 0, 0.28), rgba(255, 214, 0, 0.08));
  display: grid;
  place-items: center;
  font-size: 28px;
  overflow: hidden;
  flex: 0 0 54px;
}

.coach-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coach-main-message {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(61, 214, 140, 0.28);
  background: rgba(14, 30, 18, 0.42);
  color: #f7fafc;
  font-size: 15px;
  line-height: 1.35;
}

.coach-kpi-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coach-kpi {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 10, 0.75);
  padding: 10px;
}

.coach-kpi span {
  font-size: 13px;
  color: #9aa3b1;
}

.coach-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: #fff;
}

.phase-two-overview {
  margin-top: 14px;
}

.phase-two-overview__bar {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 0, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 0, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.96) 0%, rgba(7, 9, 13, 0.96) 100%);
  box-shadow: 0 0 18px rgba(255, 214, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.phase-two-overview__copy {
  min-width: 0;
}

.phase-two-overview__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d7b04d;
}

.phase-two-overview__copy h3 {
  margin: 6px 0 4px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.08;
}

.phase-two-overview__copy p {
  margin: 0;
  color: #95a0ad;
  font-size: 13px;
  line-height: 1.4;
  max-width: 68ch;
}

.phase-two-overview__toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 0, 0.3);
  background: rgba(255, 214, 0, 0.08);
  color: #ffe18d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.phase-two-overview__toggle:hover,
.phase-two-overview__toggle:focus-visible {
  border-color: rgba(255, 214, 0, 0.45);
  background: rgba(255, 214, 0, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.phase-two-home {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.phase-two-home[hidden] {
  display: none !important;
}

.phase-two-card {
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 208, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.96) 0%, rgba(8, 10, 14, 0.96) 100%);
  border: 1px solid rgba(255, 214, 0, 0.16);
  box-shadow: 0 0 24px rgba(255, 214, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.phase-two-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.phase-two-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d7b04d;
}

.phase-two-card h3 {
  margin: 6px 0 4px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.08;
}

.phase-two-card__subtitle {
  margin: 0;
  color: #95a0ad;
  font-size: 13px;
  line-height: 1.42;
}

.phase-two-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d3dae4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.phase-two-card__badge.is-green {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.11);
  color: #6ce69a;
}

.phase-two-card__badge.is-yellow {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.1);
  color: #f4d24f;
}

.phase-two-card__badge.is-orange {
  border-color: rgba(251, 146, 60, 0.34);
  background: rgba(251, 146, 60, 0.1);
  color: #ffb36c;
}

.phase-two-card__badge.is-red {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #ff908b;
}

.phase-two-card__badge.is-neutral {
  border-color: rgba(148, 163, 184, 0.28);
  color: #d3dae4;
}

.phase-two-card__grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.phase-two-card__metric {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.phase-two-card__metric span {
  display: block;
  color: #9aa3b1;
  font-size: 12px;
  line-height: 1.25;
}

.phase-two-card__metric strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.28;
  word-break: break-word;
}

.phase-two-card__insight {
  margin: 9px 0 0;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 0, 0.14);
  background: rgba(255, 214, 0, 0.05);
  color: #f4f6f9;
  font-size: 13px;
  line-height: 1.48;
}

.phase-two-card__subsection {
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.phase-two-card__subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.phase-two-card__subhead span {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-two-card__subhead small {
  color: #95a0ad;
  font-size: 11px;
  line-height: 1.3;
}

.phase-two-card__grid--halves,
.phase-two-card__grid--triple {
  margin-top: 8px;
}

.phase-two-card__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase-two-card__foot {
  margin: 9px 1px 0;
  color: #9aa3b1;
  font-size: 12px;
  line-height: 1.45;
}

.phase-two-pill-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.phase-two-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #dde4ee;
  font-size: 12px;
  line-height: 1;
}

.phase-two-pill strong {
  color: #ffffff;
  font-size: 12px;
}

.phase-two-pill.is-green {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.09);
}

.phase-two-pill.is-yellow {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.08);
}

.phase-two-pill.is-orange {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.08);
}

.phase-two-pill.is-red {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
}

.phase-two-card__actions {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-two-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f4f6f9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.phase-two-card__link--accent {
  border-color: rgba(255, 214, 0, 0.34);
  background: rgba(255, 214, 0, 0.08);
  color: #ffd86a;
}

.phase-two-card__link:hover,
.phase-two-card__link:focus-visible {
  border-color: rgba(255, 214, 0, 0.38);
  background: rgba(255, 214, 0, 0.09);
  outline: none;
}

.coach-action-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.coach-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: rgba(4, 6, 10, 0.65);
  color: #f5f7fb;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.coach-action-row:first-child {
  border-top: 0;
}

.coach-buttons {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coach-btn-primary {
  background: #ffd000;
  color: #121212;
  border: 1px solid #ffd000;
  font-weight: 700;
}

.coach-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 214, 0, 0.42);
  color: #fff3c6;
}

.coach-briefing-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.11), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 214, 0, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.98) 0%, rgba(7, 9, 13, 0.98) 100%);
  border-color: rgba(255, 214, 0, 0.24);
  box-shadow:
    0 0 26px rgba(255, 214, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.coach-briefing-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 214, 0, 0) 0%, rgba(255, 214, 0, 0.55) 22%, rgba(255, 214, 0, 0.55) 78%, rgba(255, 214, 0, 0) 100%);
  opacity: 0.78;
}

.disciply-briefing-card.is-pressure,
.coach-briefing-card[data-tone="danger"],
.coach-briefing-card[data-tone="warning"] {
  border-color: rgba(255, 214, 0, 0.22);
  box-shadow:
    -14px 0 30px rgba(255, 99, 99, 0.08),
    0 0 26px rgba(255, 214, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.disciply-briefing-card.is-pressure::before,
.coach-briefing-card[data-tone="danger"]::before,
.coach-briefing-card[data-tone="warning"]::before {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0) 0%, rgba(255, 107, 107, 0.52) 24%, rgba(255, 214, 0, 0.48) 100%);
}

.disciply-briefing-card.is-positive,
.coach-briefing-card[data-tone="positive"] {
  border-color: rgba(122, 219, 144, 0.2);
  box-shadow:
    0 0 24px rgba(106, 214, 132, 0.05),
    0 0 20px rgba(255, 214, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.disciply-briefing-card.is-positive::before,
.coach-briefing-card[data-tone="positive"]::before {
  background: linear-gradient(180deg, rgba(106, 214, 132, 0) 0%, rgba(106, 214, 132, 0.5) 28%, rgba(255, 214, 0, 0.42) 100%);
}

.disciply-briefing-card.is-neutral::before,
.coach-briefing-card[data-tone="neutral"]::before {
  opacity: 0.62;
}

.disciply-briefing-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #d7b04d;
  text-transform: uppercase;
}

.disciply-briefing-main {
  margin: 12px 0 0;
  max-width: 22ch;
  width: 100%;
  min-width: 0;
  color: #f7f9fd;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.disciply-briefing-highlight,
.coach-briefing-highlight {
  color: #ffd75d;
  font-weight: 700;
}

.disciply-briefing-meta {
  margin: 14px 0 0;
  color: rgba(201, 209, 220, 0.68);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.disciply-briefing-meta strong {
  color: #f2cb5b;
  font-weight: 700;
}

.coach-briefing-message {
  color: #d7dee8;
  font-size: 14px;
  line-height: 1.58;
}

@media (max-width: 640px) {
  .coach-briefing-card {
    padding: 16px 16px 15px;
  }

  .coach-briefing-card::before {
    top: 16px;
    bottom: 16px;
  }

  .disciply-briefing-main {
    margin-top: 11px;
    font-size: 16px;
    line-height: 1.46;
    max-width: none;
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
  }

  .disciply-briefing-meta {
    margin-top: 12px;
    font-size: 12px;
  }
}

#downloadReport {
  width: fit-content;
  min-width: 180px;
  display: block;
  margin: 18px auto 0;
  padding-left: 22px;
  padding-right: 22px;
}

/* ================= BOTTONI ================= */
.btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #ffd700;
  color: #000;
  border: none;
}

.btn.primary:hover {
  opacity: 0.85;
}

.btn.ghost {
  background: transparent;
  color: #ffd700;
  border: 1px solid #333;
}

.btn.ghost:hover {
  background: rgba(255, 215, 0, 0.08);
}

#logoutBottom {
  color: #ef4444;
  border-color: #ef4444;
}

#logoutBottom:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.tone-safe {
  --tone: #35d083;
  color: #8ff0ba;
  border-color: rgba(53, 208, 131, 0.45);
  background: rgba(8, 38, 24, 0.5);
}

.tone-warning {
  --tone: #ffb833;
  color: #ffcf7c;
  border-color: rgba(255, 184, 51, 0.45);
  background: rgba(57, 36, 5, 0.55);
}

.tone-danger {
  --tone: #ff6666;
  color: #ffb0b0;
  border-color: rgba(255, 102, 102, 0.5);
  background: rgba(62, 14, 14, 0.5);
}

.tone-neutral {
  --tone: #ffd000;
  color: #ffe58f;
  border-color: rgba(255, 214, 0, 0.32);
  background: rgba(52, 43, 5, 0.45);
}

/* ================= REPORT PREVIEW ================= */
.report-preview {
  margin-top: 22px;
  padding: 22px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
}

.report-preview h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.report-columns h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.positive {
  color: #00d084;
}

.negative {
  color: #ff5f5f;
}

.report-footer {
  margin-top: 18px;
  text-align: right;
}

/* ================= LISTE ================= */
.report-columns ul {
  padding-left: 18px;
  font-size: 13px;
  color: #ccc;
}

/* ================= SUGGERIMENTI ================= */
.suggestion-box {
  margin-top: 18px;
  padding: 22px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
}

.suggestion-actions {
  margin-top: 16px;
  text-align: right;
}

/* Stati colore */
.status-loss {
  background: rgba(255, 80, 80, 0.15);
  color: #ff5f5f;
  border-color: rgba(255, 80, 80, 0.4);
}

.status-profit {
  background: rgba(0, 208, 132, 0.15);
  color: #00d084;
  border-color: rgba(0, 208, 132, 0.4);
}

.status-neutral {
  background: rgba(180, 180, 180, 0.15);
  color: #bbb;
  border-color: rgba(180, 180, 180, 0.4);
}

.panel-separator {
  margin: 28px 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 215, 0, 0.15),
    transparent
  );
}

@media (max-width: 640px) {
  .control-console {
    margin-top: 16px;
    gap: 10px;
  }

  .phase-two-overview__bar {
    padding: 12px;
    border-radius: 18px;
  }

  .risk-control-card,
  .coach-card,
  .phase-two-card {
    padding: 12px;
    border-radius: 18px;
  }

  .phase-two-overview__copy h3,
  .phase-two-card h3 {
    font-size: 18px;
  }

  .phase-two-card__grid {
    gap: 7px;
  }

  .phase-two-card__grid--triple {
    grid-template-columns: 1fr;
  }

  .phase-two-card__subsection {
    padding: 9px;
    border-radius: 14px;
  }

  .risk-control-label {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .risk-control-title h3,
  .coach-head-main h3 {
    font-size: 18px;
    margin: 2px 0;
  }

  .risk-control-title p,
  .coach-head-main p {
    font-size: 12px;
  }

  .risk-status-badge,
  .coach-status-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .risk-donut-grid {
    gap: 8px;
  }

  .risk-donut-card {
    padding: 11px 10px;
    border-radius: 14px;
  }

  .metric-title {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .risk-donut {
    width: 74px;
    height: 74px;
    background:
      radial-gradient(circle at center, #090b0f 61%, transparent 62%),
      conic-gradient(var(--tone, #36d282) calc(var(--progress, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
  }

  .risk-donut strong {
    font-size: 18px;
  }

  .risk-limit-card {
    padding: 10px;
  }

  .risk-limit-head,
  .risk-limit-scale {
    font-size: 12px;
  }

  .risk-limit-bar {
    height: 10px;
    margin: 6px 0 5px;
  }

  .risk-period-tabs {
    margin-top: 8px;
    padding: 3px;
    gap: 4px;
  }

  .risk-tab {
    font-size: 13px;
    padding: 8px 9px;
  }

  .risk-insight-card {
    padding: 10px;
  }

  .risk-insight-card h4 {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .risk-insight-card p {
    font-size: 12px;
  }

  .coach-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-basis: 46px;
  }

  .coach-main-message {
    font-size: 14px;
    padding: 10px;
    margin-top: 8px;
  }

  .coach-kpi-grid {
    gap: 8px;
  }

  .coach-kpi {
    border-radius: 12px;
    padding: 9px;
  }

  .coach-kpi span {
    font-size: 12px;
  }

  .coach-kpi strong {
    font-size: 16px;
  }

  .coach-action-row {
    padding: 8px 10px;
    font-size: 14px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .coach-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .phase-two-overview__bar,
  .phase-two-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .phase-two-overview__toggle,
  .phase-two-card__badge {
    white-space: normal;
  }

  .phase-two-overview__toggle {
    width: 100%;
  }

  .phase-two-card__actions {
    flex-direction: column;
  }

  .phase-two-card__link {
    width: 100%;
  }
}

/* ================= PRE GRAPH SECTION ================= */
.pre-graph-section {
  margin: 50px auto 30px;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.pre-graph-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 8px;
}

.pre-graph-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Box pillole */
.pill-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Singola pillola */
.pill {
  padding: 18px 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-4px);
  border-color: #ffd70055;
}

.pill-title {
  display: block;
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.pill p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
}

/* CTA finale */
.pre-graph-cta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #1f1f1f;
  color: #ffd700;
  font-size: 14px;
}

.pre-graph-readmore__toggle {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pre-graph-readmore__toggle::after {
  content: ">";
  font-size: 12px;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.pre-graph-fade-preview {
  margin-top: 16px;
  position: relative;
  max-height: 132px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.pre-graph-fade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0),
    rgba(11, 11, 11, 0.72) 58%,
    rgba(11, 11, 11, 0.97)
  );
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pre-graph-readmore__content {
  margin-top: 0;
}

.pre-graph-fade-preview.is-expanded {
  max-height: 1200px;
}

.pre-graph-fade-preview.is-expanded .pre-graph-fade-overlay {
  opacity: 0;
}

.pre-graph-readmore__toggle[aria-expanded="true"]::after {
  transform: rotate(-90deg);
}


/* ================= TRADER PROFILE ================= */
.trader-profile-section {
  margin: 50px auto;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.trader-profile-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 8px;
}

.profile-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

/* GRID */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* CARD */
.profile-card {
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  text-align: left;
}

.profile-card.full {
  grid-column: span 2;
}

.profile-label {
  display: block;
  color: #ffd700;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
  font-size: 13px;
}

.profile-card textarea {
  min-height: 80px;
  resize: vertical;
}

/* BUTTON */
.save-profile-btn {
  margin-top: 26px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #ffd700, #e6c200);
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.save-profile-btn:hover {
  opacity: 0.9;
}

/* INFO */
.profile-info {
  margin-top: 18px;
  color: #999;
  font-size: 13px;
}

.trader-profile-section {
  margin: 40px auto;
  padding: 28px;
  max-width: 1000px;
  background: linear-gradient(180deg,#0e0e0e,#0b0b0b);
  border: 1px solid #222;
  border-radius: 14px;
  color: #ddd;
}

.trader-profile-section h2 { color: #ffd700; margin-bottom: 6px; }
.profile-subtitle { color: #aaa; margin-bottom: 16px; }

.insight-box {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
}

.insight-list { margin: 8px 0 16px 18px; color: #ccc; }

.insights-controls {
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.save-profile-btn { padding:10px 18px; border-radius:26px; border:none; cursor:pointer; background: linear-gradient(90deg,#ffd700,#e6c200); color:#000; font-weight:600;}
.save-profile-btn.alt { background: transparent; color:#ffd700; border:1px solid #ffd700; }

.ai-text-output { margin-top:12px; color:#cfcfcf; font-size:14px; background:#0b0b0b; padding:12px; border-radius:8px; border:1px solid #1b1b1b; min-height:40px; }


/* base section */
/* ================= TRADER PROFILE AUTO ================= */

.trader-profile-section {
  margin: 50px auto;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.trader-profile-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 6px;
}

.profile-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  color: #ffd700;
  margin: 28px 0 12px;
  font-size: 16px;
}

/* GRID */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* CARD */
.profile-card {
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  text-align: left;
}

.profile-label {
  color: #ffd700;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-value {
  color: #eee;
  font-size: 15px;
  font-weight: 500;
}

/* STATUS */
.good { border-left: 4px solid #2ecc71; }
.warn { border-left: 4px solid #f39c12; }
.bad  { border-left: 4px solid #e74c3c; }

/* valore automatico (sostituisce input/select) */
.profile-value {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
  font-size: 13px;
  min-height: 38px;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
}

#bestDay.profile-value,
#worstDay.profile-value {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.profile-day-date {
  color: #d9dee7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-day-amount {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-left: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}

.performance-intelligence-shell {
  margin-top: 28px;
}

.performance-intelligence-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(560px 260px at 100% -10%, rgba(212, 175, 55, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.96), rgba(10, 12, 16, 0.97));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
  text-align: left;
}

.performance-intelligence-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0));
}

.pi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.pi-head-main h3 {
  margin: 0;
  font-size: 24px;
  color: #f5f7fb;
}

.pi-eyebrow {
  margin: 0 0 6px;
  color: #f0d27a;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pi-subtitle {
  margin: 8px 0 0;
  max-width: 640px;
  color: #aeb5c1;
  font-size: 14px;
  line-height: 1.6;
}

.pi-head-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pi-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d6dbe4;
  font-size: 12px;
  white-space: nowrap;
}

.pi-chip-gold {
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.09);
  color: #f5de97;
}

.pi-status {
  margin-bottom: 18px;
  color: #8f98a6;
  font-size: 13px;
}

.pi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pi-kpi {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.pi-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.2);
}

.pi-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.pi-kpi-label {
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pi-kpi-context {
  color: #f2d98b;
  font-size: 12px;
  font-weight: 600;
}

.pi-kpi-value {
  display: block;
  color: #f7f8fa;
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.pi-kpi-meta {
  margin: 0;
  color: #99a2af;
  font-size: 12px;
  line-height: 1.5;
}

.pi-tone-positive .pi-kpi-value,
.pi-tone-positive .pi-insight-title {
  color: #6cf0a7;
}

.pi-tone-warn .pi-kpi-value,
.pi-tone-warn .pi-insight-title {
  color: #ff8e82;
}

.pi-tone-neutral .pi-insight-title {
  color: #f2d98b;
}

.pi-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-top: 18px;
}

.pi-main-column,
.pi-side-column {
  min-width: 0;
}

.pi-section-head {
  margin-bottom: 12px;
}

.pi-section-head h4 {
  margin: 0;
  color: #f3f4f6;
  font-size: 17px;
}

.pi-section-head p {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.55;
}

.pi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
}

.pi-summary-card {
  min-width: 0;
}

.pi-summary-card .profile-value {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
}

.pi-summary-meta {
  display: block;
  margin-top: 9px;
  color: #9aa3af;
  font-size: 12px;
  line-height: 1.45;
}

.pi-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pi-board-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.pi-board-head h4 {
  margin: 0 0 10px;
  color: #edf2f7;
  font-size: 15px;
}

.pi-board-list {
  display: grid;
  gap: 10px;
}

.pi-board-row {
  min-width: 0;
}

.pi-board-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.pi-board-row-label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.pi-board-row-value {
  color: #f2d98b;
  font-size: 13px;
}

.pi-board-row-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pi-board-row-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.95));
}

.pi-board-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: #8d96a3;
  font-size: 11px;
}

.pi-board-empty {
  margin: 0;
  color: #9aa3af;
  font-size: 13px;
  line-height: 1.6;
}

.pi-insights-list {
  display: grid;
  gap: 12px;
}

.pi-insight {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 15, 0.7);
}

.pi-insight-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pi-insight-text {
  margin: 0;
  color: #eef2f7;
  font-size: 14px;
  line-height: 1.65;
}

.pi-insight-evidence {
  display: block;
  margin-top: 10px;
  color: #8e98a5;
  font-size: 12px;
}

.pi-callout {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}

.pi-callout-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #f2d98b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pi-callout p {
  margin: 0;
  color: #f5f7fb;
  font-size: 14px;
  line-height: 1.65;
}

.pi-footer-note {
  margin: 15px 0 0;
  color: #8e98a5;
  font-size: 12px;
  line-height: 1.6;
}

.pi-empty {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 2px 4px;
}

.pi-empty-orb {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 235, 171, 0.46), rgba(212, 175, 55, 0.12) 45%, rgba(212, 175, 55, 0) 72%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.08), 0 0 20px rgba(212, 175, 55, 0.08);
}

.pi-empty-title {
  margin: 0 0 8px;
  color: #f4f5f7;
  font-size: 18px;
  font-weight: 600;
}

.pi-empty-text,
.pi-empty-hint {
  margin: 0;
  color: #9ba4b0;
  font-size: 14px;
  line-height: 1.65;
}

.pi-empty-hint {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .pi-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .performance-intelligence-panel {
    padding: 18px;
  }

  .pi-head {
    flex-direction: column;
  }

  .pi-head-chips {
    justify-content: flex-start;
  }

  .pi-summary-grid,
  .pi-boards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #bestDay.profile-value,
  #worstDay.profile-value {
    padding: 12px;
    gap: 10px;
  }

  .profile-day-date {
    font-size: 12px;
  }

  .profile-day-amount {
    font-size: 15px;
  }

  .performance-intelligence-shell {
    margin-top: 24px;
  }

  .pi-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pi-empty {
    grid-template-columns: 1fr;
  }

  .pi-head-main h3 {
    font-size: 22px;
  }
}

.mindset-wrapper {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.mindset-box {
  max-width: 800px;
  text-align: center;
  border-radius: 20px;
  display: flex;              /* 👈 CHIAVE */
  flex-direction: column;     /* 👈 CHIAVE */
  align-items: center;
}

.mindset-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.mindset-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.9;
}

.mindset-btn {
  display: block;
  padding: 14px 28px;
  background: #000;
  color: #FFD700;
  border: 2px solid #FFD700;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.mindset-btn:hover {
  background: #FFD700;
  color: #000;
}

/* 🔥 QUESTA È LA CHIAVE */
.mindset-btn + .mindset-btn {
  margin-top: 16px;
}








/* WRAPPER */
.calendar-wrapper {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 40px auto;
}

/* CARD */
.calendar {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 17, 21, 0.98), rgba(11, 12, 16, 0.98));
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,0.45));
  overflow: hidden;
}

.calendar-topbar {
  align-items: flex-start;
  gap: 12px;
}

.calendar-topbar__copy {
  flex: 1;
  min-width: 0;
}

.calendar-topbar__subtitle {
  margin: 6px 0 0;
  color: var(--text-muted, #9ca3af);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-topbar__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.calendar-topbar__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #9ca3af);
}

.calendar-topbar__value {
  font-size: clamp(18px, 3.6vw, 24px);
  font-weight: 700;
  color: var(--gold, #d4af37);
}

.calendar-topbar__value.is-positive {
  color: #5ae091;
}

.calendar-topbar__value.is-negative {
  color: #ff7e7e;
}

.calendar-topbar__value.is-neutral {
  color: var(--gold, #d4af37);
}

/* HEADER */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-header h2 {
  flex: 1;
  margin: 0;
  color: var(--gold, #ffd700);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-header button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  color: var(--gold, #ffd700);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.calendar-header button:hover,
.calendar-header button:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft, #cfd5df);
  font-size: 11px;
}

.calendar-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.calendar-legend__item.is-profit {
  color: #4fda84;
}

.calendar-legend__item.is-loss {
  color: #ff7474;
}

.calendar-legend__item.is-neutral {
  color: #a8b0bd;
}

/* WEEKDAYS */
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  min-width: 0;
}

.calendar-weekdays div {
  font-size: 11px;
  color: var(--text-muted, #777);
  margin-bottom: 2px;
  text-align: center;
}

/* DAYS */
.calendar-days .inactive {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  aspect-ratio: 1 / 1;
  padding: 9px 8px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(11, 11, 11, 0.9);
  color: var(--text-main, #fff);
  text-align: left;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.22, 0.82, 0.24, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  animation: calendar-day-in 220ms cubic-bezier(0.22, 0.82, 0.24, 1) both;
  animation-delay: var(--calendar-enter-delay, 0ms);
}

.calendar-day:hover,
.calendar-day:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.calendar-day__number {
  font-size: 13px;
  font-weight: 700;
  color: #f5f7fa;
}

.calendar-day__amount {
  align-self: flex-end;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  color: #f5f7fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* STATES */
.calendar-day.is-profit[data-intensity="soft"] {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.18), rgba(11, 11, 11, 0.96));
  border-color: rgba(46, 204, 113, 0.32);
}

.calendar-day.is-profit[data-intensity="medium"] {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.28), rgba(11, 11, 11, 0.96));
  border-color: rgba(46, 204, 113, 0.44);
}

.calendar-day.is-profit[data-intensity="strong"] {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.38), rgba(11, 11, 11, 0.96));
  border-color: rgba(66, 224, 133, 0.68);
  box-shadow: inset 0 1px 0 rgba(116, 255, 171, 0.12);
}

.calendar-day.is-loss[data-intensity="soft"] {
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.16), rgba(11, 11, 11, 0.96));
  border-color: rgba(231, 76, 60, 0.28);
}

.calendar-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}
.hidden {
  display: none !important;
}

.calendar-day.is-loss[data-intensity="medium"] {
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.24), rgba(11, 11, 11, 0.96));
  border-color: rgba(231, 76, 60, 0.42);
}

.calendar-day.is-loss[data-intensity="strong"] {
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.34), rgba(11, 11, 11, 0.96));
  border-color: rgba(255, 116, 116, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 173, 173, 0.09);
}

.calendar-day.is-neutral {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(11, 11, 11, 0.96));
  border-color: rgba(255, 255, 255, 0.06);
}

.calendar-day.today {
  border-color: rgba(212, 175, 55, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.08);
}

.calendar-day.today .calendar-day__number {
  color: var(--gold, #ffd700);
}

@keyframes calendar-day-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .calendar-wrapper {
    width: 100%;
    margin: 28px auto;
  }

  .calendar {
    padding: 12px;
    border-radius: 16px;
  }

  .calendar-topbar {
    flex-wrap: wrap;
  }

  .calendar-topbar__meta {
    order: 3;
    width: 100%;
    align-items: flex-start;
  }

  .calendar-header h2 {
    font-size: 13px;
  }

  .calendar-header button {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .calendar-legend {
    gap: 5px;
    margin-bottom: 10px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 4px;
  }

  .calendar-weekdays div {
    font-size: 10px;
    margin-bottom: 0;
  }

  .calendar-day {
    min-height: 54px;
    padding: 6px 5px 5px;
    border-radius: 10px;
  }

  .calendar-day__number {
    font-size: 11px;
  }

  .calendar-day__amount {
    font-size: 9.5px;
    letter-spacing: -0.01em;
  }

  .calendar-legend {
    gap: 5px;
  }

  .calendar-legend__item {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .calendar-topbar__subtitle {
    font-size: 12px;
  }

  .calendar-topbar__value {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .calendar {
    padding: 10px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 3px;
  }

  .calendar-day {
    min-height: 48px;
    padding: 5px 4px 4px;
    border-radius: 9px;
  }

  .calendar-day__number {
    font-size: 10px;
  }

  .calendar-day__amount {
    font-size: 8.5px;
  }
}


.trader-profile-section {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.trader-profile-section.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.add-profile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

 /* wrapper compatto quando la tendina è chiusa */
.add-profile-wrapper.compact {
  margin-bottom: 4px;
  transition: margin-bottom 0.25s ease;
}


/* BUTTON - AGGIUNGI PROFILO */
.add-profile-btn {
  margin-top: 26px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #ffd700, #e6c200);
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: 600;
  cursor: pointer;

  /* centratura */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.add-profile-btn:hover {
  opacity: 0.9;
}

#toggleProfileBtn {
  margin-bottom: 4px;
}

#traderProfileSection {
  margin-top: 8px;
}
/* MOBILE */
@media (max-width: 768px) {

  /* wrapper compatto SOLO da chiuso */
  .add-profile-wrapper.compact {
    margin-bottom: 2px; /* super compatto */
  }

  /* opzionale: bottone leggermente più compatto su mobile */
  .add-profile-btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  #toggleProfileBtn {
    margin-bottom: 4px;
  }

  #traderProfileSection {
    margin-top: 6px;
  }

}




.export-mode button {
  display: none !important;
}
/* blocca animazioni durante export */
.export-mode * {
  transition: none !important;
  animation: none !important;
}

/* garantisce larghezza corretta */
.export-section {
  width: 100%;
  box-sizing: border-box;
}


/* ===== ANALIZZIAMO (profilo) ===== */
.analysis-grid {
  display: grid;
  gap: 12px;
}

.analysis-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.analysis-q {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-grid {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.trend-item {
  flex: 1;
  text-align: center;
}

.trend-title {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
}

.trend-select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  color: #fff;
}

.analysis-decision {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

#analysisSuggestion {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 10px;
}

/* mobile minor tweaks */
@media (max-width: 600px) {
  .trend-grid {
    flex-direction: column;
  }
}


.analysis-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
}

.analysis-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.analysis-row label {
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}


.analysis-section {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.analysis-section.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.analysis-section:not(.collapsed) {
  max-height: 1200px; /* abbastanza per tutto */
  opacity: 1;
}



/* ===== ANALIZZIAMO – TESTI ===== */

.analysis-wrapper {
  max-width: 1040px;
  margin: 40px auto;
   padding: 0 16px; /* respiro su mobile */
}

#toggleAnalysisBtn {
  margin-top: 0;
  margin-bottom: 14px;
}

#analysisContentWrap {
  margin-top: 0;
}

.analysis-flow-card {
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.92), rgba(10, 12, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.analysis-flow-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.analysis-flow-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9aa4b2;
}

.analysis-flow-head h3 {
  margin: 0;
  font-size: 18px;
  color: #e7edf7;
}

.analysis-flow-note {
  margin: 2px 0 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.45;
  color: #9ca3af;
}

.analysis-flow-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.analysis-flow-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
}

.analysis-flow-kpi span {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.analysis-flow-kpi strong {
  font-size: 18px;
  color: #f3f4f6;
}

.analysis-flow-chart-wrap {
  min-height: 260px;
  background: rgba(8, 10, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
}

.analysis-flow-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}

.capital-control-section {
  width: min(1000px, calc(100% - 24px));
  margin: 0 auto 18px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(226, 180, 62, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(31, 60, 110, 0.2), transparent 30%),
    radial-gradient(circle at bottom left, rgba(8, 25, 48, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(7, 10, 16, 0.98));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 223, 130, 0.05);
  position: relative;
  overflow: hidden;
}

.capital-control-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 217, 102, 0.04), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(255, 207, 94, 0.08), transparent 12%);
}

.capital-control-header,
.capital-control-kpis,
.capital-control-pressure,
.capital-control-risk-impact,
.capital-control-action {
  position: relative;
  z-index: 1;
}

.capital-control-header {
  margin-bottom: 18px;
}

.capital-control-eyebrow {
  margin: 0 0 10px;
  color: #e2b43e;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.capital-control-title {
  margin: 0;
  color: #f4f5f7;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.capital-control-subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: rgba(221, 225, 232, 0.74);
  font-size: clamp(16px, 3.8vw, 18px);
  line-height: 1.45;
}

.capital-control-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.capital-control-kpi,
.capital-control-pressure,
.capital-control-risk-impact,
.capital-control-action {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.96), rgba(11, 15, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.capital-control-kpi {
  padding: 18px;
  min-width: 0;
}

.capital-control-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.capital-control-kpi-head span:first-child {
  color: rgba(228, 232, 238, 0.76);
  font-size: clamp(15px, 3.5vw, 17px);
  line-height: 1.2;
}

.capital-control-kpi strong {
  display: block;
  color: #fbfbfd;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.capital-control-kpi-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.capital-control-kpi-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capital-control-kpi-operating .capital-control-kpi-icon svg,
.capital-control-kpi-operating strong {
  stroke: #4f89ff;
}

.capital-control-kpi-operating strong {
  color: #f6f8ff;
}

.capital-control-kpi-withdrawals .capital-control-kpi-icon svg {
  stroke: #f3b625;
}

.capital-control-kpi-gross .capital-control-kpi-icon svg {
  stroke: #4de0a3;
}

.capital-control-pressure {
  padding: clamp(18px, 3vw, 24px);
  margin-bottom: 18px;
}

.capital-control-pressure-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.capital-control-pressure-header h4,
.capital-control-risk-copy h4,
.capital-control-action-content h4 {
  margin: 0 0 12px;
  color: #f4f5f7;
  font-size: clamp(18px, 4.8vw, 26px);
  line-height: 1.12;
}

.capital-control-pressure-text,
.capital-control-risk-copy p {
  margin: 0;
  color: rgba(228, 232, 238, 0.88);
  font-size: clamp(16px, 3.9vw, 18px);
  line-height: 1.45;
}

.capital-control-pressure-text strong,
.capital-control-pressure-text b,
.capital-control-risk-drift strong,
.capital-control-action-list strong {
  color: #f3a432;
}

.capital-control-pressure-badge {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.capital-control-pressure-badge.is-low {
  color: #57d98a;
  background: rgba(57, 132, 89, 0.12);
}

.capital-control-pressure-badge.is-medium {
  color: #e0b447;
  background: rgba(140, 102, 22, 0.14);
}

.capital-control-pressure-badge.is-high {
  color: #f29e3d;
  background: rgba(133, 72, 18, 0.16);
}

.capital-control-pressure-bar-wrap {
  position: relative;
}

.capital-control-pressure-bar {
  --capital-control-threshold: 40;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(42px, 8.5vw, 54px);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.capital-control-pressure-threshold-marker {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: calc((100 - var(--capital-control-threshold)) * 1%);
  width: 0;
  border-left: 2px dashed rgba(255, 233, 169, 0.78);
  opacity: 0.85;
  z-index: 2;
}

.capital-control-pressure-bar-segment {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fbfbfd;
  font-size: clamp(14px, 3.3vw, 16px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  position: relative;
  z-index: 1;
}

.capital-control-pressure-bar-segment span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capital-control-pressure-bar-segment.is-operating {
  background: linear-gradient(90deg, #4e83e7, #5273c9);
}

.capital-control-pressure-bar-segment.is-withdrawals {
  background: linear-gradient(90deg, #c9731f, #e1982e);
}

.capital-control-threshold-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.capital-control-threshold,
.capital-control-data-hint {
  color: rgba(207, 212, 219, 0.8);
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.35;
}

.capital-control-data-hint {
  margin: 0;
  text-align: right;
}

.capital-control-risk-impact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 24px);
  margin-bottom: 18px;
}

.capital-control-risk-impact-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 183, 46, 0.08);
  border: 1px solid rgba(245, 183, 46, 0.14);
}

.capital-control-risk-impact-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #f5b72e;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capital-control-risk-copy {
  min-width: 0;
}

.capital-control-risk-drift {
  grid-column: 2;
  justify-self: end;
  min-width: min(100%, 210px);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.capital-control-risk-drift span {
  display: block;
  margin-bottom: 10px;
  color: rgba(228, 232, 238, 0.74);
  font-size: clamp(14px, 3.4vw, 16px);
  line-height: 1.25;
}

.capital-control-risk-drift strong {
  display: block;
  color: #f3a432;
  font-size: clamp(28px, 6.5vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.capital-control-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(226, 180, 62, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 223, 130, 0.05),
    0 0 0 1px rgba(226, 180, 62, 0.08);
}

.capital-control-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 183, 46, 0.09);
  border: 1px solid rgba(245, 183, 46, 0.16);
}

.capital-control-action-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #f5c53a;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capital-control-action-content {
  min-width: 0;
}

.capital-control-action-content h4 {
  color: #f3c53b;
}

.capital-control-action-tools {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-width: 460px;
}

.capital-control-action-note {
  margin: 0;
  color: rgba(224, 228, 236, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.capital-control-add-btn {
  width: fit-content;
  min-width: 220px;
}

.capital-control-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.capital-control-inline-form .btn {
  width: auto;
  min-width: 140px;
  padding: 12px 16px;
}

.capital-control-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.capital-control-action-list li {
  position: relative;
  padding-left: 40px;
  color: rgba(243, 245, 248, 0.94);
  font-size: clamp(17px, 3.9vw, 18px);
  line-height: 1.38;
}

.capital-control-action-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 28%, transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.capital-control-action-arrow {
  align-self: center;
  color: rgba(243, 245, 248, 0.76);
  font-size: clamp(34px, 6vw, 42px);
  line-height: 1;
}

.withdrawals-card {
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  width: min(1000px, calc(100% - 32px));
  margin: 14px auto 12px;
}

.withdrawals-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.withdrawals-title-wrap {
  justify-self: start;
}

.withdrawals-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #aaa;
}

.withdrawals-head h3 {
  margin: 0;
  font-size: 18px;
  color: #ffd700;
}

.withdrawals-capital-wrap {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.withdrawals-prelevati-wrap {
  justify-self: center;
  align-items: center;
  text-align: center;
}

.premium-back-login {
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #FFD700;
  background: rgba(0, 0, 0, 0.45);
  color: #FFD700;
  font-weight: 700;
  cursor: pointer;
}

.premium-back-login:hover {
  background: rgba(0, 0, 0, 0.58);
}

.withdrawals-capital-wrap-right {
  justify-self: end;
}

.withdrawals-capital-wrap span {
  font-size: 12px;
  color: #aaa;
}

#withdrawCapitalValue {
  font-size: 20px;
  color: #ffd700;
}

#withdrawTotalValue {
  font-size: 20px;
  color: #ffd700;
}

.withdrawals-chart-wrap {
  position: relative;
  min-height: 170px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}

.withdrawals-empty-note {
  margin-top: 10px;
  color: #999;
  font-size: 13px;
}

.withdrawals-actions {
  margin-top: 10px;
}

.withdrawal-inline-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.withdrawal-inline-form .btn {
  width: auto;
  min-width: 140px;
  padding: 12px 16px;
}

.hybrid-profile-stats {
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  width: min(1000px, calc(100% - 32px));
  margin: 14px auto 12px;
}

.hybrid-profile-stats__head h3 {
  margin: 0 0 12px;
  color: #f5c400;
  font-size: 20px;
  font-weight: 700;
}

.hybrid-profile-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 7, 11, 0.7);
}

.hybrid-profile-stats__note {
  margin: 12px 2px 0;
  font-size: 12px;
  color: rgba(156, 208, 255, 0.92);
  letter-spacing: 0.01em;
}

.hybrid-profile-metric {
  --tone: #f5c400;
  padding: 14px 8px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hybrid-profile-metric:last-child {
  border-right: none;
}

.hybrid-profile-metric:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hybrid-profile-metric:focus-visible {
  outline: 2px solid #f5c400;
  outline-offset: -2px;
}

.hybrid-profile-metric.is-selected {
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.14), rgba(245, 196, 0, 0.04));
  box-shadow: inset 0 0 0 1px rgba(245, 196, 0, 0.45);
}

.hybrid-profile-metric h4 {
  margin: 0 0 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #f3f4f6;
}

.hybrid-profile-metric__donut {
  --score: 0;
  --tone: #f5c400;
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--score) * 1%), #262b34 0);
  display: grid;
  place-items: center;
  position: relative;
}

.hybrid-profile-metric__donut::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #07090d;
}

.hybrid-profile-metric__donut strong {
  position: relative;
  z-index: 1;
  font-size: 30px;
  line-height: 1;
  color: #f9fafb;
}

.hybrid-profile-metric p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tone, #f5c400);
}

.profile-metric-modal {
  position: fixed;
  inset: 0;
  z-index: 4500;
  background: rgba(2, 4, 9, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

body.profile-metric-modal-open {
  overflow: hidden;
}

.profile-metric-modal.hidden {
  display: none;
}

.profile-metric-modal__dialog {
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  border-radius: 26px;
  border: 1px solid rgba(245, 196, 0, 0.28);
  background: radial-gradient(circle at top, rgba(245, 196, 0, 0.13), rgba(9, 11, 17, 0.98) 35%), #090b11;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  padding: 22px 18px 18px;
  position: relative;
  color: #f8fafc;
}

.profile-metric-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 24, 36, 0.88);
  color: #f3f4f6;
  font-size: 20px;
}

.profile-metric-modal__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 2px solid #f5c400;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #f5c400;
  box-shadow: 0 0 0 5px rgba(245, 196, 0, 0.12);
}

.profile-metric-modal h3 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1.15;
}

.profile-metric-modal__status {
  width: fit-content;
  margin: 12px auto 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 0, 0.35);
  font-weight: 700;
  background: rgba(245, 196, 0, 0.12);
  color: #f5c400;
}

.profile-metric-modal__status[data-tone="green"] {
  color: #39d353;
  border-color: rgba(57, 211, 83, 0.4);
  background: rgba(57, 211, 83, 0.12);
}

.profile-metric-modal__status[data-tone="orange"] {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.12);
}

.profile-metric-modal__status[data-tone="red"] {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
}

.profile-metric-modal__explanation {
  margin: 0 0 16px;
  text-align: center;
  color: #e5e7eb;
  font-size: 21px;
  line-height: 1.45;
}

.profile-metric-modal__section h4 {
  margin: 0 0 8px;
  color: #f5c400;
  font-size: 26px;
}

.profile-metric-modal__section + .profile-metric-modal__section {
  margin-top: 14px;
}

.profile-metric-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-metric-modal__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}

.profile-metric-modal__list li::before {
  content: "⚠️";
  flex: 0 0 auto;
}

.profile-metric-modal__list--improve li::before {
  content: "🛡️";
}

.profile-metric-modal__ack {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffd42d, #f5c400);
  color: #0b0c10;
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .hybrid-profile-stats {
    width: min(1180px, calc(100% - 48px));
    margin: 18px auto 14px;
    padding: 18px;
  }

  .hybrid-profile-stats__head h3 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .hybrid-profile-metric {
    padding: 18px 14px 16px;
  }

  .hybrid-profile-metric h4 {
    min-height: 48px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .hybrid-profile-metric__donut {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .hybrid-profile-metric__donut strong {
    font-size: 34px;
  }

  .hybrid-profile-metric p {
    font-size: 17px;
  }

  .control-console {
    width: min(1180px, calc(100% - 48px));
    margin: 24px auto 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
    align-items: start;
  }

  .risk-control-card,
  .coach-card,
  .phase-two-card {
    padding: 14px;
  }

  .phase-two-overview {
    width: min(980px, calc(100% - 48px));
    margin: 14px auto 0;
  }

  .phase-two-overview__bar {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .phase-two-overview__copy h3 {
    font-size: 18px;
  }

  .phase-two-overview__copy p {
    font-size: 12px;
  }

  .phase-two-home {
    margin: 10px auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
  }

  .phase-two-card {
    padding: 12px;
    border-radius: 18px;
  }

  .phase-two-card h3 {
    font-size: 17px;
  }

  .phase-two-card__subtitle,
  .phase-two-card__insight {
    font-size: 12px;
  }

  .phase-two-card__metric strong {
    font-size: 14px;
  }

  .phase-two-card__link {
    min-height: 34px;
    font-size: 12px;
  }

  .risk-control-title h3,
  .coach-head-main h3 {
    font-size: 22px;
  }

  .risk-donut {
    width: 84px;
    height: 84px;
  }

  .risk-donut strong {
    font-size: 18px;
  }

  .coach-main-message {
    font-size: 14px;
    line-height: 1.4;
  }

  .coach-kpi strong {
    font-size: 17px;
  }

  .coach-action-row {
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .withdrawals-card {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 12px;
    border-radius: 12px;
  }

  .analysis-flow-head {
    flex-direction: column;
  }

  .analysis-flow-note {
    max-width: none;
  }

  .analysis-flow-kpis {
    grid-template-columns: 1fr;
  }

  .capital-control-section {
    width: calc(100% - 18px);
    padding: 14px 12px;
    border-radius: 22px;
  }

  .capital-control-header {
    margin-bottom: 12px;
  }

  .capital-control-eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .capital-control-title {
    font-size: clamp(24px, 7.2vw, 30px);
    line-height: 1.08;
  }

  .capital-control-subtitle {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .capital-control-kpis {
    gap: 8px;
    margin-bottom: 12px;
  }

  .capital-control-kpi {
    padding: 13px 12px;
    border-radius: 18px;
  }

  .capital-control-kpi-head {
    margin-bottom: 10px;
    gap: 8px;
  }

  .capital-control-kpi-head span:first-child {
    font-size: 13px;
  }

  .capital-control-kpi strong {
    font-size: 22px;
  }

  .capital-control-kpi-icon {
    width: 22px;
    height: 22px;
  }

  .capital-control-pressure,
  .capital-control-risk-impact,
  .capital-control-action {
    padding: 14px 12px;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .capital-control-pressure-header h4,
  .capital-control-risk-copy h4,
  .capital-control-action-content h4 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .capital-control-pressure-text,
  .capital-control-risk-copy p {
    font-size: 14px;
    line-height: 1.35;
  }

  .capital-control-pressure-header,
  .capital-control-threshold-row {
    flex-direction: column;
    gap: 8px;
  }

  .capital-control-pressure-badge {
    align-self: flex-start;
    padding: 8px 14px;
    font-size: 13px;
  }

  .capital-control-pressure-header {
    margin-bottom: 12px;
  }

  .capital-control-pressure-bar {
    min-height: 38px;
  }

  .capital-control-pressure-bar-segment {
    padding: 0 8px;
    font-size: 12px;
  }

  .capital-control-threshold,
  .capital-control-data-hint {
    font-size: 12px;
    line-height: 1.3;
  }

  .capital-control-data-hint {
    text-align: left;
  }

  .capital-control-risk-impact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .capital-control-risk-impact-icon,
  .capital-control-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .capital-control-risk-impact-icon svg,
  .capital-control-action-icon svg {
    width: 24px;
    height: 24px;
  }

  .capital-control-risk-drift {
    grid-column: auto;
    justify-self: stretch;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .capital-control-risk-drift span {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .capital-control-risk-drift strong {
    font-size: 24px;
  }

  .capital-control-action {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .capital-control-action-tools {
    max-width: none;
  }

  .capital-control-add-btn {
    width: 100%;
    min-width: 0;
  }

  .capital-control-inline-form {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .capital-control-inline-form .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .capital-control-action-list {
    gap: 10px;
  }

  .capital-control-action-list li {
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.32;
  }

  .capital-control-action-list li::before {
    width: 20px;
    height: 20px;
  }

  .capital-control-action-arrow {
    display: none;
  }

  .withdrawals-head {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .withdrawals-title-wrap {
    grid-column: 1 / -1;
  }

  .withdrawals-capital-wrap {
    align-items: flex-start;
    justify-self: start;
    min-width: 0;
  }

  .withdrawals-prelevati-wrap {
    align-items: flex-start;
    text-align: left;
  }

  .withdrawals-head h3 {
    font-size: 16px;
  }

  .withdrawals-eyebrow {
    font-size: 11px;
    margin-bottom: 4px;
  }

  #withdrawCapitalValue,
  #withdrawTotalValue {
    font-size: 18px;
  }

  .withdrawals-chart-wrap {
    min-height: 145px;
    padding: 6px;
  }

  .withdrawals-actions .btn {
    width: 100%;
  }

  .withdrawal-inline-form {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .withdrawal-inline-form .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .hybrid-profile-stats {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 12px;
    border-radius: 12px;
  }

  .hybrid-profile-stats__head h3 {
    font-size: 17px;
  }

  .hybrid-profile-metric {
    padding: 10px 6px;
  }

  .hybrid-profile-metric h4 {
    font-size: 12px;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .hybrid-profile-metric__donut {
    width: 68px;
    height: 68px;
  }

  .hybrid-profile-metric__donut::before {
    inset: 10px;
  }

  .hybrid-profile-metric__donut strong {
    font-size: 22px;
  }

  .hybrid-profile-metric p {
    font-size: 11px;
  }

  .profile-metric-modal {
    padding: 12px;
  }

  .profile-metric-modal__dialog {
    border-radius: 18px;
    padding: 14px 12px 12px;
  }

  .profile-metric-modal h3 {
    font-size: 21px;
  }

  .profile-metric-modal__status {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 13px;
  }

  .profile-metric-modal__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    font-size: 22px;
  }

  .profile-metric-modal__close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .profile-metric-modal__explanation {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .profile-metric-modal__section h4 {
    font-size: 20px;
  }

  .profile-metric-modal__list li {
    font-size: 14px;
    padding: 8px 0;
  }

  .profile-metric-modal__ack {
    font-size: 18px;
    padding: 12px;
  }
}

.trader-dna-widget-top {
  width: 100%;
  margin: 0 0 6px;
}

.dna-challenge-widget-top {
  width: 100%;
  padding: 7px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700, #e6c200);
  color: #0e0f12;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.dna-challenge-widget-top.is-violated {
  background: linear-gradient(135deg, #ff4d4f, #d9363e);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 79, 0.3);
}

.dna-challenge-widget-top.is-dismissible {
  cursor: pointer;
}

.dna-challenge-widget__top {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  min-height: 18px;
  text-align: center;
}

.dna-challenge-widget__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  grid-column: 2;
  text-align: center;
}

.dna-challenge-widget__timer {
  grid-column: 3;
  justify-self: end;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #0e0f12;
}

.dna-challenge-widget-top.is-violated .dna-challenge-widget__timer {
  color: #fff;
}

.dna-challenge-widget__summary {
  margin: 2px 0 0;
  color: #1b1b1b;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.dna-challenge-widget-top.is-violated .dna-challenge-widget__summary {
  color: #fff;
}

.analysis-intro,
.analysis-outro {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px;
}

.analysis-title {
  text-align: center;
  color: #FFD700;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.analysis-intro p,
.analysis-outro p {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.analysis-emphasis {
  color: #fff;
  font-weight: 500;
}

.analysis-note {
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}


#partialsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partial-row {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.muted-text {
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

.muted-text-inline {
  font-size: 12px;
  opacity: 0.72;
}

.session-live-badge {
  margin-top: 8px;
  margin-bottom: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  font-size: 12px;
  color: #ffe08a;
}



.daily-performance {
  margin-top: 10px;
}

.profile-card .delta {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.75;
}

.profile-card .delta.positive {
  color: #4caf50;
}

.profile-card .delta.negative {
  color: #f44336;
}

.profile-card .delta.muted {
  color: #9ca3af;
}

.profile-card.full {
  grid-column: span 2;
}

.profile-value.positive {
  color: #4caf50;
}

.profile-value.negative {
  color: #f44336;
}


/* 🔥 NASCONDE I SOTTO-RISULTATI GIORNALIERI */
.daily-performance .delta {
  display: none;
}



/* =========================
   DELETE ACCOUNT – COMPACT
========================= */
#deleteAccount {
  width: fit-content !important;   /* 🔥 override totale */
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;

  background: #e74c3c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

#deleteAccount:hover {
  background: #d63b2b;
}


.operational-consistency-section.consistency-card {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.operational-consistency-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 6vw, 38px) clamp(18px, 4.8vw, 34px);
  border-radius: 26px;
  border: 1px solid rgba(255, 214, 0, 0.18);
  background:
    radial-gradient(circle at top, rgba(255, 214, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #11151d 0%, #0b0d10 62%, #090b0f 100%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.operational-consistency-header {
  text-align: center;
}

.operational-consistency-title {
  margin: 0;
  color: #ffd23a;
  font-size: clamp(28px, 5.2vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.operational-consistency-subtitle {
  margin: 10px auto 0;
  max-width: 640px;
  color: rgba(219, 223, 231, 0.8);
  font-size: clamp(14px, 3.4vw, 17px);
  line-height: 1.48;
}

.operational-consistency-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.operational-consistency-kpi {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.8vw, 14px);
  min-height: 82px;
  padding: 14px clamp(12px, 3vw, 18px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.operational-consistency-kpi[data-tone="positive"] {
  border-color: rgba(107, 227, 125, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(107, 227, 125, 0.04));
}

.operational-consistency-kpi[data-tone="negative"] {
  border-color: rgba(255, 128, 128, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 128, 128, 0.04));
}

.operational-consistency-kpi[data-tone="neutral"] {
  border-color: rgba(255, 255, 255, 0.1);
}

.operational-consistency-kpi-icon {
  flex: 0 0 clamp(38px, 9vw, 48px);
  width: clamp(38px, 9vw, 48px);
  height: clamp(38px, 9vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 10, 0.36);
  color: rgba(219, 223, 231, 0.82);
}

.operational-consistency-kpi--periods .operational-consistency-kpi-icon {
  color: #ffd23a;
  border-color: rgba(255, 214, 0, 0.14);
  background: rgba(255, 214, 0, 0.04);
}

.operational-consistency-kpi[data-tone="positive"] .operational-consistency-kpi-icon {
  color: #7be37d;
  border-color: rgba(107, 227, 125, 0.18);
}

.operational-consistency-kpi[data-tone="negative"] .operational-consistency-kpi-icon {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.16);
}

.operational-consistency-kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operational-consistency-kpi-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.operational-consistency-kpi-label {
  display: block;
  color: rgba(190, 196, 207, 0.72);
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.1;
}

.operational-consistency-kpi-value {
  display: block;
  margin-top: 6px;
  color: #eef1f6;
  font-size: clamp(19px, 4.2vw, 27px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.operational-consistency-kpi-meta {
  display: block;
  margin-top: 7px;
  color: rgba(184, 191, 202, 0.84);
  font-size: clamp(11px, 2.7vw, 13px);
  line-height: 1.2;
}

.operational-consistency-kpi-meta[data-tone="positive"] {
  color: #7be37d;
}

.operational-consistency-kpi-meta[data-tone="negative"] {
  color: #ff8a8a;
}

.operational-consistency-kpi-value--gold,
.operational-consistency-kpi-value[data-tone="gold"] {
  color: #ffd23a;
}

.operational-consistency-kpi-value[data-tone="positive"] {
  color: #7be37d;
}

.operational-consistency-kpi-value[data-tone="negative"] {
  color: #ff8a8a;
}

.operational-consistency-kpi-value[data-tone="neutral"] {
  color: #d4d9e2;
}

.operational-consistency-chart-shell {
  margin-top: 20px;
}

.operational-consistency-chart-frame {
  position: relative;
  padding: clamp(14px, 3vw, 18px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.94), rgba(9, 11, 15, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.operational-consistency-chart {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(10px, 2.8vw, 18px);
  align-items: stretch;
  min-height: clamp(300px, 58vw, 420px);
}

.operational-consistency-y-axis {
  position: relative;
  min-height: 100%;
}

.operational-consistency-y-tick {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  color: rgba(184, 191, 202, 0.76);
  font-size: clamp(11px, 2.8vw, 14px);
  line-height: 1;
  white-space: nowrap;
}

.operational-consistency-plot {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding-top: 6px;
}

.operational-consistency-grid,
.operational-consistency-zero-line {
  position: absolute;
  inset: 6px 0 48px 0;
  pointer-events: none;
}

.operational-consistency-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.operational-consistency-zero-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--oc-zero-line, 0%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.operational-consistency-bars {
  --oc-columns: 5;
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--oc-columns), minmax(0, 1fr));
  gap: clamp(10px, 3vw, 24px);
}

.operational-consistency-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.operational-consistency-bar-stack {
  position: relative;
  min-height: 0;
}

.operational-consistency-bar {
  position: absolute;
  left: 50%;
  bottom: var(--oc-bar-bottom, 0%);
  width: min(72px, 76%);
  height: var(--oc-bar-height, 0%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform: translateX(-50%);
  border-radius: 16px 16px 6px 6px;
  border: 1px solid rgba(255, 214, 0, 0.24);
  background: linear-gradient(180deg, #ffd84c 0%, #ffcb1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.operational-consistency-bar.is-highlighted {
  border-color: rgba(255, 221, 87, 0.42);
  background: linear-gradient(180deg, #ffd84c 0%, #ffcc18 100%);
}

.operational-consistency-bar.is-preview {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(181, 186, 196, 0.36), rgba(133, 140, 151, 0.3));
  box-shadow: none;
}

.operational-consistency-bar.is-negative {
  top: var(--oc-bar-top, auto);
  bottom: auto;
  align-items: flex-end;
  border-radius: 6px 6px 16px 16px;
}

.operational-consistency-bar-value {
  margin-top: 8px;
  max-width: calc(100% - 8px);
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.18);
  color: rgba(22, 27, 35, 0.88);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(9px, 2vw, 11px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operational-consistency-bar.is-negative .operational-consistency-bar-value {
  margin-top: 0;
  margin-bottom: 8px;
}

.operational-consistency-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.operational-consistency-label-main {
  color: rgba(229, 233, 240, 0.9);
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.05;
}

.operational-consistency-label-value {
  color: #eef1f6;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(11px, 2.8vw, 14px);
  line-height: 1.1;
  font-weight: 700;
}

.operational-consistency-label-value.is-positive {
  color: #7be37d;
}

.operational-consistency-label-value.is-negative {
  color: #ff8a8a;
}

.operational-consistency-label-value.is-preview {
  color: rgba(174, 181, 193, 0.66);
}

.operational-consistency-label-sub {
  color: rgba(174, 181, 193, 0.82);
  font-size: clamp(10px, 2.4vw, 13px);
  line-height: 1.05;
}

.operational-consistency-label-sub.is-real {
  color: rgba(255, 214, 0, 0.9);
}

.operational-consistency-label-sub.is-preview {
  color: rgba(174, 181, 193, 0.66);
}

.operational-consistency-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  padding-right: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(191, 196, 206, 0.82);
  font-size: clamp(12px, 2.9vw, 14px);
  line-height: 1.45;
}

.operational-consistency-note-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: rgba(210, 216, 226, 0.84);
}

.operational-consistency-note-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operational-consistency-tabs {
  margin: 18px auto 0;
  width: min(100%, 560px);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 12, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.operational-consistency-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  background: transparent;
  color: rgba(224, 228, 235, 0.88);
  font-size: clamp(15px, 3.5vw, 19px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.operational-consistency-tab:hover {
  color: #fff0b3;
}

.operational-consistency-tab--active,
.operational-consistency-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #ffd84f 0%, #ffcc1b 100%);
  color: #18150b;
}

.operational-consistency-empty-state {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  width: min(100%, 420px);
  margin: auto;
  padding: 20px 18px;
  border: 1px dashed rgba(255, 214, 0, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.05), rgba(255, 255, 255, 0.02));
  color: rgba(235, 239, 245, 0.88);
  text-align: center;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .operational-consistency-card {
    padding: 34px 30px 28px;
  }

  .operational-consistency-kpis {
    gap: 16px;
    margin-top: 26px;
  }

  .operational-consistency-chart {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .operational-consistency-card {
    padding: 16px 12px 14px;
    border-radius: 22px;
  }

  .operational-consistency-title {
    font-size: 24px;
  }

  .operational-consistency-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.38;
  }

  .operational-consistency-kpis {
    margin-top: 12px;
    gap: 6px;
  }

  .operational-consistency-kpi {
    min-height: 68px;
    padding: 8px 7px;
    gap: 6px;
  }

  .operational-consistency-kpi-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 8px;
  }

  .operational-consistency-kpi-icon svg {
    width: 12px;
    height: 12px;
  }

  .operational-consistency-kpi-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .operational-consistency-kpi-label {
    font-size: 8px;
    line-height: 1.05;
  }

  .operational-consistency-kpi-value {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .operational-consistency-kpi-meta {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.1;
  }

  .operational-consistency-chart-frame {
    padding: 8px 7px 8px;
    border-radius: 18px;
  }

  .operational-consistency-chart {
    position: relative;
    display: block;
    height: 224px;
    min-height: 224px;
    padding-left: 30px;
  }

  .operational-consistency-y-axis {
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 38px;
    width: 26px;
  }

  .operational-consistency-y-tick {
    right: auto;
    left: 0;
    font-size: 9px;
  }

  .operational-consistency-plot {
    height: 100%;
    min-height: 100%;
  }

  .operational-consistency-grid,
  .operational-consistency-zero-line {
    inset: 4px 2px 38px 0;
  }

  .operational-consistency-bars {
    height: 100%;
    gap: 6px;
    align-items: stretch;
  }

  .operational-consistency-column {
    gap: 7px;
    min-height: 100%;
  }

  .operational-consistency-label-main,
  .operational-consistency-label-value,
  .operational-consistency-label-sub {
    font-size: 9px;
    line-height: 1.05;
  }

  .operational-consistency-label-main {
    white-space: nowrap;
  }

  .operational-consistency-bar-value {
    display: none;
  }

  .operational-consistency-note {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 10px;
    gap: 6px;
  }

  .operational-consistency-note-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .operational-consistency-note-icon svg {
    width: 16px;
    height: 16px;
  }

  .operational-consistency-tabs {
    margin-top: 12px;
    padding: 3px;
  }

  .operational-consistency-tab {
    min-width: 0;
    padding: 9px 4px;
    font-size: 11px;
  }

  .operational-consistency-empty-state {
    width: 100%;
    padding: 16px 12px;
    font-size: 12px;
  }
}

#authBar.disciply-prelogin.card {
  position: relative;
  max-width: min(1180px, calc(100% - 24px));
  margin: clamp(16px, 4vw, 36px) auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#authBar.disciply-prelogin .disciply-prelogin-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(12px, 2vw, 24px);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 197, 66, 0.16), transparent 18rem),
    radial-gradient(circle at 94% 16%, rgba(255, 255, 255, 0.06), transparent 20rem),
    linear-gradient(180deg, rgba(6, 7, 10, 0.98), rgba(8, 10, 13, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

#authBar.disciply-prelogin .disciply-prelogin-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
}

#authBar.disciply-prelogin .disciply-prelogin-orb--gold {
  width: 240px;
  height: 240px;
  left: -100px;
  top: 14%;
  background: rgba(245, 197, 66, 0.12);
}

#authBar.disciply-prelogin .disciply-prelogin-orb--soft {
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: 6%;
  background: rgba(255, 255, 255, 0.04);
}

#authBar.disciply-prelogin .disciply-prelogin-layout {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
}

#authBar.disciply-prelogin .disciply-prelogin-card,
#authBar.disciply-prelogin .disciply-prelogin-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    rgba(12, 14, 17, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

#authBar.disciply-prelogin .disciply-prelogin-card {
  border-radius: 30px;
  padding: clamp(14px, 2vw, 18px);
}

#authBar.disciply-prelogin .disciply-prelogin-card::before,
#authBar.disciply-prelogin .disciply-prelogin-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.34), transparent 42%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

#authBar.disciply-prelogin .disciply-prelogin-top,
#authBar.disciply-prelogin .disciply-prelogin-brand,
#authBar.disciply-prelogin .disciply-prelogin-badge,
#authBar.disciply-prelogin .disciply-prelogin-terminal,
#authBar.disciply-prelogin .disciply-prelogin-terminal-left,
#authBar.disciply-prelogin .disciply-prelogin-benefit-strip article,
#authBar.disciply-prelogin .disciply-prelogin-preview-alert {
  display: flex;
  align-items: center;
}

#authBar.disciply-prelogin .disciply-prelogin-top {
  justify-content: space-between;
  gap: 12px;
}

#authBar.disciply-prelogin .disciply-prelogin-brand {
  gap: 9px;
  min-width: 0;
  color: #f7f7f2;
  text-decoration: none;
}

#authBar.disciply-prelogin .disciply-prelogin-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

#authBar.disciply-prelogin .disciply-prelogin-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(245, 197, 66, 0.18));
}

#authBar.disciply-prelogin .disciply-prelogin-brand-copy {
  display: grid;
  line-height: 1.05;
}

#authBar.disciply-prelogin .disciply-prelogin-brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

#authBar.disciply-prelogin .disciply-prelogin-brand-copy small {
  margin-top: 3px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 10px;
  font-weight: 700;
}

#authBar.disciply-prelogin .disciply-prelogin-ghost-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #ffd86b;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

#authBar.disciply-prelogin .disciply-prelogin-hero {
  padding: 22px 0 14px;
}

#authBar.disciply-prelogin .disciply-prelogin-badge {
  width: fit-content;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 66, 0.18);
  background: rgba(245, 197, 66, 0.08);
  color: #ffd86b;
  font-size: 9.8px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#authBar.disciply-prelogin .disciply-prelogin-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49d17d;
  box-shadow: 0 0 16px rgba(73, 209, 125, 0.82);
}

#authBar.disciply-prelogin .disciply-prelogin-title {
  margin: 12px 0 0;
  color: #f7f7f2;
  font-size: clamp(31px, 4vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

#authBar.disciply-prelogin .disciply-prelogin-title span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #fff, #ffd86b 50%, #a98211);
  -webkit-background-clip: text;
  background-clip: text;
}

#authBar.disciply-prelogin .disciply-prelogin-subtitle {
  margin: 11px 0 0;
  max-width: 330px;
  color: #bdbdb6;
  font-size: 12.6px;
  line-height: 1.44;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal {
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.075), transparent 52%),
    rgba(255, 255, 255, 0.04);
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-left {
  gap: 9px;
  min-width: 0;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 197, 66, 0.11);
  border: 1px solid rgba(245, 197, 66, 0.17);
  color: #ffd86b;
  flex: 0 0 auto;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-left strong {
  display: block;
  color: #f7f7f2;
  font-size: 12.5px;
  line-height: 1.1;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-left small {
  display: block;
  margin-top: 3px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 10.3px;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-score {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#f5c542 78%, rgba(255, 255, 255, 0.09) 0);
  position: relative;
  flex: 0 0 auto;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-score::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #0c0d0e;
}

#authBar.disciply-prelogin .disciply-prelogin-terminal-score span {
  position: relative;
  z-index: 1;
  color: #f7f7f2;
  font-size: 13px;
  font-weight: 950;
}

#authBar.disciply-prelogin .disciply-prelogin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

#authBar.disciply-prelogin .disciply-prelogin-tab {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(211, 214, 206, 0.76);
  font-size: 12px;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#authBar.disciply-prelogin .disciply-prelogin-tab.is-active,
#authBar.disciply-prelogin .disciply-prelogin-tab[aria-selected="true"] {
  color: #070707;
  background: linear-gradient(135deg, #f5c542, #ffd86b);
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.18);
}

#authBar.disciply-prelogin .register-top-bar {
  margin-top: 14px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #f5c542, #ffd86b);
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.22);
}

#authBar.disciply-prelogin .disciply-prelogin-trial-banner {
  margin-top: 12px;
}

#authBar.disciply-prelogin .disciply-prelogin-panels {
  margin-top: 14px;
}

#authBar.disciply-prelogin .disciply-prelogin-status {
  min-height: 16px;
  margin: 0 2px 12px;
  color: rgba(211, 214, 206, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

#authBar.disciply-prelogin .disciply-prelogin-panel {
  animation: panelIn 0.22s ease both;
}

#authBar.disciply-prelogin .disciply-prelogin-form-head {
  margin-bottom: 12px;
}

#authBar.disciply-prelogin .disciply-prelogin-form-head h2 {
  margin: 0;
  color: #f7f7f2;
  font-size: 19px;
  letter-spacing: -0.035em;
}

#authBar.disciply-prelogin .disciply-prelogin-form-head p {
  margin: 5px 0 0;
  color: rgba(211, 214, 206, 0.72);
  font-size: 11.6px;
  line-height: 1.35;
}

#authBar.disciply-prelogin .disciply-prelogin-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

#authBar.disciply-prelogin .disciply-prelogin-field > span {
  color: #d8d8d0;
  font-size: 11px;
  font-weight: 850;
}

#authBar.disciply-prelogin .disciply-prelogin-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.043);
  color: #f7f7f2;
  padding: 0 12px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#authBar.disciply-prelogin .disciply-prelogin-field input::placeholder {
  color: #686965;
}

#authBar.disciply-prelogin .disciply-prelogin-field input:focus,
#authBar.disciply-prelogin .disciply-prelogin-field input:focus-visible {
  outline: none;
  border-color: rgba(245, 197, 66, 0.38);
  background: rgba(245, 197, 66, 0.055);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.08);
}

#authBar.disciply-prelogin .disciply-prelogin-password-wrap input {
  padding-right: 52px;
}

#authBar.disciply-prelogin .disciply-prelogin-primary {
  width: 100%;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5c542, #ffd86b);
  color: #070707;
  box-shadow: 0 14px 34px rgba(245, 197, 66, 0.18);
  font-size: 13px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#authBar.disciply-prelogin .disciply-prelogin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(245, 197, 66, 0.27);
}

#authBar.disciply-prelogin .disciply-prelogin-link-btn {
  width: auto;
  justify-self: center;
  margin-top: 10px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#authBar.disciply-prelogin .disciply-prelogin-link-btn:hover,
#authBar.disciply-prelogin .disciply-prelogin-inline-button:hover {
  color: #f5c400;
}

#authBar.disciply-prelogin .disciply-prelogin-inline-switch {
  margin: 12px 2px 0;
  color: rgba(211, 214, 206, 0.72);
  font-size: 11.2px;
  line-height: 1.35;
  text-align: center;
}

#authBar.disciply-prelogin .disciply-prelogin-inline-button {
  border: 0;
  background: transparent;
  color: #ffd86b;
  font-size: inherit;
  font-weight: 850;
  padding: 0;
}

#authBar.disciply-prelogin .disciply-prelogin-register-grid {
  margin-top: 0;
}

#authBar.disciply-prelogin .prelogin-social-auth {
  margin-top: 14px;
}

#authBar.disciply-prelogin .prelogin-social-auth--login {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#authBar.disciply-prelogin .prelogin-social-auth__label {
  color: rgba(255, 255, 255, 0.74);
}

#authBar.disciply-prelogin .prelogin-social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#authBar.disciply-prelogin .prelogin-social-button {
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.095);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

#authBar.disciply-prelogin .prelogin-social-button:hover {
  border-color: rgba(245, 197, 66, 0.24);
  background: rgba(245, 197, 66, 0.065);
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-strip article {
  gap: 7px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffd86b;
  background: rgba(245, 197, 66, 0.095);
  flex: 0 0 auto;
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-strip strong {
  display: block;
  color: #f7f7f2;
  font-size: 10.6px;
  line-height: 1.05;
}

#authBar.disciply-prelogin .disciply-prelogin-benefit-strip small {
  display: block;
  margin-top: 3px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 9.2px;
  line-height: 1.1;
}

#authBar.disciply-prelogin .disciply-prelogin-footer {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  text-align: center;
}

#authBar.disciply-prelogin .disciply-prelogin-footer p {
  margin: 0;
  max-width: 340px;
  color: rgba(146, 149, 142, 0.82);
  font-size: 9.8px;
  line-height: 1.38;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-card {
  border-radius: 34px;
  padding: clamp(20px, 2.4vw, 26px);
  background:
    radial-gradient(circle at top right, rgba(245, 197, 66, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(14, 15, 16, 0.72);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.18);
  filter: blur(24px);
  pointer-events: none;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 209, 125, 0.22);
  background: rgba(73, 209, 125, 0.1);
  color: #a7f2bf;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49d17d;
  box-shadow: 0 0 18px rgba(73, 209, 125, 0.78);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-head h2 {
  margin: 18px 0 0;
  color: #f7f7f2;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-head p {
  max-width: 500px;
  margin: 16px 0 0;
  color: #c4c4bd;
  font-size: 15px;
  line-height: 1.58;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-path {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-path article,
#authBar.disciply-prelogin .disciply-prelogin-preview-kpis article,
#authBar.disciply-prelogin .disciply-prelogin-preview-proof article {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.043);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-path article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
}

#authBar.disciply-prelogin .disciply-prelogin-path-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.18);
  color: #ffd86b;
  font-size: 12px;
  font-weight: 950;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-path strong {
  display: block;
  color: #f7f7f2;
  font-size: 15px;
  letter-spacing: -0.02em;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-path small {
  display: block;
  margin-top: 4px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-dashboard {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(245, 197, 66, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.085), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.11), transparent 64%);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score .ring-bg,
#authBar.disciply-prelogin .disciply-prelogin-preview-score .ring-fg {
  fill: none;
  stroke-width: 10;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score .ring-bg {
  stroke: rgba(255, 255, 255, 0.09);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score .ring-fg {
  stroke: #f5c542;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 69;
  filter: drop-shadow(0 0 12px rgba(245, 197, 66, 0.34));
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score div {
  position: relative;
  z-index: 1;
  text-align: center;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score strong {
  display: block;
  color: #f7f7f2;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-score span {
  display: block;
  max-width: 92px;
  margin-top: 4px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 850;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-kpis {
  display: grid;
  gap: 8px;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-kpis article {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-kpis span {
  display: block;
  color: rgba(211, 214, 206, 0.72);
  font-size: 10.5px;
  font-weight: 850;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-kpis strong {
  display: block;
  margin-top: 4px;
  color: #f2f2ea;
  font-size: 13px;
  line-height: 1.18;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-proof article {
  padding: 12px;
  border-radius: 16px;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-proof strong {
  display: block;
  color: #ffd86b;
  font-size: 13px;
  line-height: 1.1;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-proof span {
  display: block;
  margin-top: 5px;
  color: rgba(211, 214, 206, 0.72);
  font-size: 11px;
  line-height: 1.2;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-alert {
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: 18px;
  background: rgba(245, 197, 66, 0.08);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-alert > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #f5c542;
  box-shadow: 0 0 18px rgba(245, 197, 66, 0.46);
}

#authBar.disciply-prelogin .disciply-prelogin-preview-alert p {
  margin: 0;
  color: #efe3bc;
  font-size: 13px;
  line-height: 1.45;
}

#authBar.disciply-prelogin .disciply-prelogin-preview-alert strong {
  color: #ffd86b;
}

@media (max-width: 980px) {
  #authBar.disciply-prelogin .disciply-prelogin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #authBar.disciply-prelogin .disciply-prelogin-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  #authBar.disciply-prelogin.card {
    max-width: calc(100% - 12px);
    margin: 8px auto 16px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-shell {
    border-radius: 22px;
    padding: 8px;
    box-shadow: none;
  }

  #authBar.disciply-prelogin .disciply-prelogin-card {
    border-radius: 18px;
    padding: 12px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-brand-mark {
    width: 31px;
    height: 31px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-brand-copy strong {
    font-size: 12.5px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-brand-copy small {
    display: none;
  }

  #authBar.disciply-prelogin .disciply-prelogin-ghost-link {
    min-height: 29px;
    padding: 0 9px;
    font-size: 10px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-hero {
    padding: 15px 0 10px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-badge {
    font-size: 8.8px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-title {
    margin-top: 9px;
    font-size: clamp(27px, 8.8vw, 34px);
  }

  #authBar.disciply-prelogin .disciply-prelogin-subtitle {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.38;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal {
    padding: 8px;
    border-radius: 13px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-icon svg {
    width: 15px;
    height: 15px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-left strong {
    font-size: 11.5px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-left small {
    font-size: 9.5px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-score {
    width: 34px;
    height: 34px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal-score span {
    font-size: 12px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-tabs {
    margin-top: 10px;
    padding: 3px;
    border-radius: 12px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-tab {
    min-height: 32px;
    border-radius: 9px;
    font-size: 11.2px;
  }

  #authBar.disciply-prelogin .register-top-bar {
    padding: 8px 6px;
    font-size: clamp(9.5px, 2.7vw, 11.5px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    white-space: nowrap;
  }

  #authBar.disciply-prelogin .disciply-prelogin-form-head {
    margin-bottom: 8px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-form-head h2 {
    font-size: 17px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-form-head p,
  #authBar.disciply-prelogin .disciply-prelogin-status {
    font-size: 10.6px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-field {
    margin-top: 8px;
    gap: 5px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-field > span {
    font-size: 10.3px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-field input {
    min-height: 38px;
    border-radius: 11px;
    font-size: 12px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-primary {
    min-height: 39px;
    margin-top: 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-inline-switch,
  #authBar.disciply-prelogin .disciply-prelogin-link-btn {
    font-size: 10.5px;
  }

  #authBar.disciply-prelogin .prelogin-social-button {
    min-height: 36px;
    border-radius: 10px;
    font-size: 11px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-strip {
    gap: 6px;
    margin-top: 11px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-strip article {
    min-height: 43px;
    padding: 7px;
    border-radius: 11px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-icon {
    width: 23px;
    height: 23px;
    border-radius: 8px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-strip strong {
    font-size: 9.7px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-strip small {
    font-size: 8.6px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-footer {
    margin-top: 10px;
    padding-top: 2px;
  }
}

@media (max-width: 370px) {
  #authBar.disciply-prelogin .disciply-prelogin-shell {
    padding: 6px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-card {
    padding: 10px;
    border-radius: 16px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-title {
    font-size: 25px;
  }

  #authBar.disciply-prelogin .disciply-prelogin-terminal {
    display: none;
  }

  #authBar.disciply-prelogin .disciply-prelogin-benefit-strip {
    grid-template-columns: 1fr;
  }
}

.register-top-bar {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;

  text-align: center;
  font-size: 13px;
  font-weight: 500;

  color: #0e0f12;
  background: linear-gradient(135deg, #FFD700, #e6c200);
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.register-top-bar strong {
  font-weight: 700;
}

#loginBox {
  display: grid;
  gap: 10px;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  width: 100%;
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f5c400;
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgba(245, 196, 0, 0.65);
  outline-offset: 2px;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#registerBox {
  display: grid;
  gap: 10px;
}

.auth-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-register-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

#forgotPassword.auth-link-btn {
  width: auto;
  justify-self: center;
  margin-top: 8px;
  padding: 2px 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#forgotPassword.auth-link-btn:hover {
  color: #f5c400;
}
.fast-register-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.fast-register-hint strong {
  color: #FFD700;
  font-weight: 600;
}

.prelogin-social-auth {
  margin-top: 14px;
}

.prelogin-social-auth--login {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prelogin-social-auth__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.prelogin-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prelogin-social-grid--login {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prelogin-social-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(160, 176, 200, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.prelogin-social-button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 197, 66, 0.26);
  background: rgba(245, 197, 66, 0.075);
}

.prelogin-social-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.prelogin-social-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.prelogin-social-button__text {
  line-height: 1;
}

.prelogin-social-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.prelogin-social-status.is-warning {
  color: #f4d88f;
}

.prelogin-social-status.is-success {
  color: #a7f2bf;
}

@media (max-width: 640px) {
  .auth-register-grid {
    grid-template-columns: 1fr;
  }

  .prelogin-social-auth--login {
    margin-top: 4px;
    padding-top: 8px;
  }

  .prelogin-social-button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 13px;
    font-size: 12px;
  }

  .prelogin-social-button svg {
    width: 14px;
    height: 14px;
  }
}


.hero-cta {
  padding: 16px;
  text-align: center;
  background: #0F1116;
  color: #FFF;
  margin-bottom: 20px;
}

.hero-problem {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD700;
}

.hero-benefit {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hero-urgency {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #FF5F57;
}

.fast-register-bar {
  font-size: 14px;
  margin: 12px 0;
  color: #FFF;
  background: #333;
  padding: 8px;
  border-radius: 8px;
}

.hero-testimonial {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.btn-primary {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  background: #FFD700;
  color: #0E0F12;
  border-radius: 8px;
}




/* ===============================
   IMPATTO DECISIONALE – SEZIONE
================================ */

.decision-impact-card {
  max-width: 900px;
  margin: 48px auto;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.92), rgba(14, 17, 23, 0.94));
  border: 1px solid rgba(160, 176, 200, 0.2);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.decision-impact-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.decision-impact-title .hl {
  color: #9fb4d1;
}

.decision-impact-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* GRAFICO */
.impact-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(160, 176, 200, 0.18);
  border-radius: 14px;
  padding: 12px 10px 10px;
  margin: 18px auto 20px;
  max-width: 95%;
}

.impact-chart svg {
  width: 100%;
  height: 210px;
}

.impact-chart path {
  fill: none;
  stroke: #7f95b3;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* STATISTICHE */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.impact-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(160, 176, 200, 0.22);
  border-radius: 12px;
  padding: 12px 10px;
}

.impact-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.impact-value {
  font-size: 20px;
  font-weight: 700;
}

.impact-value.positive {
  color: #4CAF50;
}

.impact-value.discipline {
  color: #5b8def;
}

.impact-value.negative {
  color: #F44336;
}

/* DISCLAIMER */
.impact-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .decision-impact-card {
    margin: 26px auto;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .decision-impact-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .decision-impact-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  .impact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .impact-chart svg {
    height: 150px;
  }

  .impact-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .impact-value {
    font-size: 16px;
  }
}
/* ===== MULTI-LINE CHART ===== */

.impact-chart svg {
  width: 100%;
}

/* base */
.line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* linee */
.line.impulsive {
  stroke: #F44336;
  opacity: 0.9;
}

.line.discipline {
  stroke: #5b8def;
}

.line.awareness {
  stroke: #4CAF50;
  opacity: 0.9;
}

/* legenda */
.impact-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
}

.legend-item::before {
  content: "";
  width: 12px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.legend-item.impulsive::before {
  background: #F44336;
}

.legend-item.discipline::before {
  background: #5b8def;
}

.legend-item.awareness::before {
  background: #4CAF50;
}



/* ===== HOW IT WORKS – PRE LOGIN ===== */
.how-it-works {
  max-width: 820px;
  margin: 50px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.how-title {
  font-size: 20px;
  font-weight: 600;
  color: #f5c400;
  margin-bottom: 10px;
}

.how-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
}

.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: 12px;
  padding: 14px 16px;
}

.step-number {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5c400;
  color: #111;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.how-step p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.how-cta {
  margin-top: 20px;
}

.cta-text {
  font-size: 16px;
  color: #f5c400;
  margin-bottom: 14px;
}

.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}


/* ===== FILTER SECTION ===== */
.filter-section {
  max-width: 760px;
  margin: 60px auto 70px;
  padding: 0 20px;
  text-align: center;
}

.filter-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.filter-text.muted {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}

.filter-text.highlight {
  color: #f5c400;
  font-weight: 500;
}

.filter-text.final {
  font-size: 17px;
  font-weight: 600;
  color: #f5c400;
  margin-top: 18px;
}

/* ===== SERIOUS TRADER CTA ===== */
.serious-btn {
  margin-top: 24px;
  max-width: 320px;
}

/* =========================
   TOAST NOTIFICATIONS
========================= */
.toast-area {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10050;
  max-width: min(92vw, 360px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #c9a600;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.2s ease;
}

.toast--success { border-left-color: #2ecc71; }
.toast--error { border-left-color: #e74c3c; }
.toast--warn { border-left-color: #f5c400; }
.toast--info { border-left-color: #c9a600; }

.toast__message {
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
  flex: 1;
}

.toast__close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.toast__close:hover {
  color: #fff;
}

.toast--hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .toast-area {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 12px;
    max-width: 92vw;
  }
}

/* =========================
   COACH DISCLIPLY
========================= */

.coach-evidence {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.58;
  color: #aeb8c7;
}

.coach-evidence .evidence-line {
  padding: 2px 0;
}

.coach-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-custom {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.coach-legend {
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.coach-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.coach-template label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.coach-template textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  resize: vertical;
}

.coach-template textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.coach-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  padding: 16px;
}

.coach-modal.hidden {
  display: none;
}

.coach-modal-box {
  width: min(560px, 92vw);
  background: linear-gradient(140deg, #111319 0%, #171c26 55%, #10141d 100%);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.coach-modal-box h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.coach-modal-header {
  margin-bottom: 12px;
}

.coach-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 206, 84, 0.15);
  border: 1px solid rgba(255, 206, 84, 0.35);
  color: #ffd66b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.coach-modal-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.coach-modal-message {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
}

.coach-popup-evidence {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 22, 0.7);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

.coach-popup-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.notifications-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  z-index: 10001;
  padding: 16px;
}

.notifications-modal.hidden {
  display: none;
}

.notifications-modal-box {
  width: min(460px, 92vw);
  background: linear-gradient(140deg, #111319 0%, #171c26 55%, #10141d 100%);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.notifications-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.notifications-modal-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #fff;
}

.notifications-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.notifications-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

/* =========================
   HAMBURGER MENU
========================= */
.language-badge {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 12130;
  transform: translateZ(0);
  will-change: transform;
}

.language-badge-btn {
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.92);
  color: #f5c400;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.language-badge-btn:hover {
  border-color: rgba(245, 196, 0, 0.75);
}

.language-badge-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
  display: inline-block;
}

.language-option-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

.flag-it {
  background-image: linear-gradient(90deg, #009246 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ce2b37 66.66%);
}

.flag-us {
  background:
    linear-gradient(#3c3b6e, #3c3b6e) left top / 42% 54% no-repeat,
    repeating-linear-gradient(
      180deg,
      #b22234 0% 7.69%,
      #ffffff 7.69% 15.38%
    );
}

.flag-es {
  background-image: linear-gradient(180deg, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%);
}

.flag-fr {
  background-image: linear-gradient(90deg, #0055a4 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ef4135 66.66%);
}

.settings-language-actions {
  flex-wrap: wrap;
}

.settings-language-actions .settings-lang-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
}

.language-menu {
  display: none;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(245, 196, 0, 0.4);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.98);
  min-width: 148px;
}

.language-menu.open {
  display: grid;
  gap: 4px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f3f4f6;
  text-align: left;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.language-option:hover,
.language-option.is-active {
  border-color: rgba(245, 196, 0, 0.5);
  color: #f5c400;
  background: rgba(245, 196, 0, 0.08);
}

.hamburger-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.92);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 12130;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hamburger-btn > span:not(.sentinel-unread-badge) {
  width: 22px;
  height: 2px;
  background: #f5c400;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-profile-btn {
  position: fixed;
  top: 14px;
  left: 70px;
  height: 48px;
  min-width: 86px;
  padding: 0 14px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.92);
  color: #f5c400;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 12130;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu-alerts-btn {
  position: fixed;
  top: 14px;
  left: 164px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.92);
  color: #f5c400;
  font-size: 20px;
  z-index: 12130;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu-theme-btn {
  position: fixed;
  top: 14px;
  left: 220px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.92);
  color: #f5c400;
  z-index: 12130;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  overflow: hidden;
}

.menu-theme-btn__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-theme-btn__icon svg {
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-theme-btn__icon--sun {
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

.menu-theme-btn__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.menu-theme-btn[data-theme-mode="light"] .menu-theme-btn__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.menu-theme-btn[data-theme-mode="light"] .menu-theme-btn__icon--moon {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

.menu-alerts-btn .menu-alerts-icon,
.menu-alerts-btn .menu-alerts-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-alerts-btn .menu-alerts-icon-svg {
  stroke: #f5c400;
  fill: transparent;
}

.menu-alerts-btn.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-alerts-btn:hover {
  border-color: rgba(245, 196, 0, 0.75);
}

.menu-theme-btn.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-theme-btn:hover {
  border-color: rgba(245, 196, 0, 0.75);
}

.menu-bot-btn {
  color: #9cd0ff;
  border-color: rgba(87, 165, 255, 0.42);
}

.menu-bot-btn:hover {
  border-color: rgba(87, 165, 255, 0.78);
}

.menu-bot-btn .menu-theme-btn__icon svg {
  stroke: currentColor;
}

.menu-bot-btn.is-active {
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.96), rgba(10, 18, 31, 0.94));
  box-shadow: 0 10px 22px rgba(33, 104, 196, 0.2);
}

.menu-alerts-btn.has-unread::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c400;
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.2);
}

.menu-profile-btn.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-profile-btn:hover {
  border-color: rgba(245, 196, 0, 0.75);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 12110;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 84vw);
  height: var(--disciply-menu-viewport-height, 100dvh);
  max-height: var(--disciply-menu-viewport-height, 100dvh);
  background: linear-gradient(180deg, #11141c 0%, #0d1016 100%);
  border-right: 1px solid rgba(245, 196, 0, 0.35);
  padding: var(--disciply-menu-top-padding, calc(84px + env(safe-area-inset-top, 0px))) 20px var(--disciply-menu-bottom-padding, calc(28px + env(safe-area-inset-bottom, 0px)));
  display: none;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding-top: var(--disciply-menu-top-padding, calc(84px + env(safe-area-inset-top, 0px)));
  scroll-padding-bottom: var(--disciply-menu-bottom-padding, calc(28px + env(safe-area-inset-bottom, 0px)));
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transform: translateX(-110%);
  transition: transform 0.3s ease;
  z-index: 12120;
}

.mobile-menu .menu-link:last-child {
  margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .menu-link {
  text-decoration: none;
  color: #f3f4f6;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.mobile-menu .menu-link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu .menu-link--with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-link-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5c400;
  color: #131722;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-link-badge--dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: #f5c400;
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.2);
}

.menu-link-badge--pulse {
  animation: swingBadgePulse 1.5s ease-in-out infinite;
}

@keyframes swingBadgePulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.3; }
  40% { transform: translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 0.3; }
}

.mobile-menu .menu-link--news {
  position: relative;
  padding-right: 30px;
}

.mobile-menu .menu-link--with-dot {
  position: relative;
  padding-right: 30px;
}

.mobile-menu .menu-link--news .menu-link-badge--dot,
.mobile-menu .menu-link--with-dot .menu-link-badge--dot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu .menu-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.menu-link-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.menu-link-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-menu .menu-link:hover {
  border-color: rgba(245, 196, 0, 0.6);
  color: #f5c400;
  transform: translateX(4px);
}

.mobile-menu .menu-link--gold {
  color: #f6d676;
  border-color: rgba(245, 196, 0, 0.45);
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.14), rgba(212, 175, 55, 0.06));
}

.mobile-menu .menu-link--gold:hover {
  color: #ffd85a;
  border-color: rgba(245, 196, 0, 0.8);
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.22), rgba(212, 175, 55, 0.1));
}

.mobile-menu .menu-link--contact {
  color: #f7e7ba;
  border-color: rgba(245, 196, 0, 0.42);
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.16), rgba(12, 16, 24, 0.9));
  box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.08), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.mobile-menu .menu-link--contact .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(245, 196, 0, 0.28));
}

.mobile-menu .menu-link--contact:hover {
  color: #fff4d0;
  border-color: rgba(245, 196, 0, 0.74);
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.22), rgba(12, 16, 24, 0.96));
}

.mobile-menu .menu-link--affiliate {
  color: #161616;
  border-color: #f5c400;
  background: #f5c400;
}

.mobile-menu .menu-link--affiliate:hover {
  color: #101010;
  border-color: #ffd84a;
  background: #ffd84a;
}

.mobile-menu .menu-link--stocks {
  color: #05070b;
  border-color: rgba(223, 228, 235, 0.95);
  background: linear-gradient(180deg, rgba(230, 234, 239, 0.98), rgba(212, 218, 226, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
  font-weight: 800;
}

.mobile-menu .menu-link--stocks .menu-link-icon-svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}

.mobile-menu .menu-link--stocks:hover {
  color: #000000;
  border-color: rgba(235, 239, 244, 0.98);
  background: linear-gradient(180deg, rgba(236, 239, 243, 0.98), rgba(219, 224, 231, 0.98));
  transform: translateX(4px) scale(1.01);
}

.mobile-menu .menu-link--sponsor {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(30, 64, 175, 0.16));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 10px 22px rgba(37, 99, 235, 0.16);
  animation: sponsor-blue-breathe 8s ease-in-out infinite;
}

.mobile-menu .menu-link--sponsor .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.42));
}

.mobile-menu .menu-link--sponsor:hover {
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.9);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.38), rgba(30, 64, 175, 0.22));
}

.mobile-menu .menu-link--news {
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(127, 29, 29, 0.18));
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16), 0 10px 22px rgba(220, 38, 38, 0.15);
  animation: news-red-breathe 8s ease-in-out infinite;
}

.mobile-menu .menu-link--news .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(252, 165, 165, 0.42));
}

.mobile-menu .menu-link--news:hover {
  color: #fff1f2;
  border-color: rgba(252, 165, 165, 0.9);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.36), rgba(127, 29, 29, 0.24));
}

.mobile-menu .menu-link--community {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.68);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.18));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 10px 22px rgba(37, 99, 235, 0.16);
}

.mobile-menu .menu-link--community .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.46));
}

.mobile-menu .menu-link--community:hover {
  color: #eff6ff;
  border-color: rgba(147, 197, 253, 0.96);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.42), rgba(14, 165, 233, 0.24));
}

.mobile-menu .menu-link--market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #1b1200;
  border-color: rgba(255, 212, 92, 0.82);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 231, 160, 0.98), rgba(255, 196, 64, 0.95) 48%, rgba(199, 129, 25, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 244, 199, 0.26),
    0 12px 26px rgba(137, 84, 4, 0.18);
  font-weight: 800;
}

.menu-link-market__icon {
  width: 20px;
  height: 20px;
}

.menu-link-market__icon .menu-link-icon-svg {
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.18));
}

.menu-link-market__label {
  flex: 1 1 auto;
  min-width: 0;
  color: #1c1200;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-link-market__badge {
  min-width: 46px;
  background: rgba(17, 12, 3, 0.88);
  color: #fff0b2;
  box-shadow: 0 6px 14px rgba(17, 12, 3, 0.14);
}

.mobile-menu .menu-link--market:hover {
  color: #120d00;
  border-color: rgba(255, 241, 187, 0.98);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(135deg, rgba(255, 238, 183, 0.99), rgba(255, 205, 83, 0.98) 48%, rgba(214, 140, 31, 0.98));
  transform: translateX(4px);
  box-shadow:
    0 0 0 1px rgba(255, 248, 217, 0.38),
    0 14px 28px rgba(154, 94, 4, 0.22);
}

.mobile-menu .menu-link--institute {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.3), rgba(21, 128, 61, 0.16));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 10px 22px rgba(22, 163, 74, 0.16);
  animation: institute-green-breathe 8s ease-in-out infinite;
}

.mobile-menu .menu-link--institute .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
}

.mobile-menu .menu-link--institute:hover {
  color: #f0fdf4;
  border-color: rgba(74, 222, 128, 0.9);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.38), rgba(21, 128, 61, 0.22));
}

.mobile-menu .menu-link--broker {
  color: #ffd6d6;
  border-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(135deg, #0c0c0f 0%, #200000 40%, #2c0101 100%);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 0 22px rgba(255, 45, 45, 0.08);
  animation: broker-red-breathe 6.5s ease-in-out infinite;
}

.mobile-menu .menu-link--broker .menu-link-icon-svg {
  filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.45));
}

.mobile-menu .menu-link--broker:hover {
  color: #fff6f6;
  border-color: rgba(252, 165, 165, 0.95);
  background: linear-gradient(135deg, #1f0000 0%, #300101 50%, #1a0000 100%);
  box-shadow: 0 0 0 1px rgba(252, 165, 165, 0.75), 0 14px 28px rgba(255, 0, 0, 0.28);
}

@keyframes broker-red-breathe {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22), 0 10px 22px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(255, 45, 45, 0.05);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(252, 165, 165, 0.45), 0 14px 28px rgba(255, 60, 60, 0.34), inset 0 0 28px rgba(255, 45, 45, 0.12);
  }
}

.mobile-menu .menu-link--danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(127, 29, 29, 0.14));
}

.mobile-menu .menu-link--danger:hover {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.85);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(127, 29, 29, 0.2));
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.settings-modal-active {
  overflow: hidden;
  overscroll-behavior: none;
}

body.menu-open .disciply-bottom-nav,
body.menu-profile-open .disciply-bottom-nav,
body.menu-alerts-open .disciply-bottom-nav,
body.analysis-modal-open .disciply-bottom-nav,
body.discipline-score-modal-open .disciply-bottom-nav,
body.disciply-tools-modal-open .disciply-bottom-nav,
body.settings-modal-active .disciply-bottom-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 18px));
}

body.menu-open .floating-mt5-badge,
body.menu-profile-open .floating-mt5-badge,
body.menu-alerts-open .floating-mt5-badge,
body.analysis-modal-open .floating-mt5-badge,
body.discipline-score-modal-open .floating-mt5-badge,
body.disciply-tools-modal-open .floating-mt5-badge,
body.settings-modal-active .floating-mt5-badge {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
}

@keyframes sponsor-blue-breathe {
  0% {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14), 0 8px 18px rgba(37, 99, 235, 0.13);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 12px 28px rgba(37, 99, 235, 0.26);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14), 0 8px 18px rgba(37, 99, 235, 0.13);
  }
}

@keyframes news-red-breathe {
  0% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.14), 0 8px 18px rgba(220, 38, 38, 0.13);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(252, 165, 165, 0.34), 0 12px 28px rgba(220, 38, 38, 0.24);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.14), 0 8px 18px rgba(220, 38, 38, 0.13);
  }
}

@keyframes institute-green-breathe {
  0% {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.14), 0 8px 18px rgba(22, 163, 74, 0.13);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35), 0 12px 28px rgba(22, 163, 74, 0.24);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.14), 0 8px 18px rgba(22, 163, 74, 0.13);
  }
}

body.menu-auth-enabled .hamburger-btn {
  display: flex;
}

body.menu-auth-enabled .mobile-menu {
  display: flex;
}

body.menu-auth-enabled .menu-backdrop {
  display: block;
}

body.menu-auth-enabled .menu-profile-btn {
  display: inline-flex;
}

body.menu-auth-enabled .menu-alerts-btn {
  display: inline-flex;
}

body.menu-auth-enabled .menu-theme-btn {
  display: inline-flex;
}

.menu-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 20px 14px;
}

.menu-profile-modal.hidden {
  display: none;
}

.menu-profile-box {
  width: min(640px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(140deg, #111319 0%, #171c26 55%, #10141d 100%);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 209, 102, 0.75) rgba(255, 255, 255, 0.08);
}

.menu-alerts-panel {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  height: 100dvh;
  padding: 20px 14px;
}

.menu-alerts-panel.hidden {
  display: none;
}

.menu-alerts-box {
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: linear-gradient(145deg, #10131b 0%, #151b26 100%);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.menu-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-alerts-header h3 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.menu-alerts-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.menu-alerts-section-title {
  margin: 0 0 8px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-alerts-list {
  margin: 0;
  padding: 0;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}

.menu-alerts-list li + li {
  margin-top: 8px;
}

#blogAlertsList li {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.blog-alert-link {
  display: block;
  text-decoration: none;
  color: #e5e7eb;
  line-height: 1.45;
  padding: 10px 28px 10px 12px;
  position: relative;
  border-radius: 12px;
}

.blog-alert-link:hover {
  color: #fff;
}

.blog-alert-link::before {
  content: "⟶";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #e5e7eb;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.blog-alert-title {
  display: block;
  overflow: hidden;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.28;
  max-height: 2.56em;
}

.blog-alert-preview {
  display: block;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
  max-height: 2.7em;
}

.blog-alert-link.is-unread::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c400;
}

.reminder-item {
  list-style: none;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.reminder-head {
  font-size: 12px;
  color: #f5c400;
  font-weight: 700;
  margin-bottom: 6px;
}

.reminder-question {
  font-size: 14px;
  color: #f3f4f6;
  margin-bottom: 10px;
}

.reminder-actions {
  display: flex;
  gap: 8px;
}

.reminder-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reminder-btn.active {
  border-color: rgba(245, 196, 0, 0.75);
  color: #f5c400;
  background: rgba(245, 196, 0, 0.14);
}

.menu-profile-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.menu-profile-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.menu-profile-box::-webkit-scrollbar-thumb {
  background: rgba(255, 209, 102, 0.75);
  border-radius: 999px;
}

.menu-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-profile-header h3 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.menu-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-profile-grid .profile-card {
  margin: 0;
}

.menu-profile-grid .profile-value {
  font-size: 14px;
}

.menu-profile-form {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.menu-profile-box .modal-actions {
  margin-top: 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.menu-profile-form label {
  color: #ffd700;
  font-size: 13px;
}

.menu-profile-form .settings-input {
  width: 100%;
}

.menu-profile-target-label {
  color: #bff7d6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menu-profile-target-input {
  border: 2px solid #7be3ac;
  background: rgba(123, 227, 172, 0.16);
  color: #eafff3;
  font-size: 16px;
  font-weight: 700;
}

.menu-profile-target-input:focus {
  border-color: #9ff0c4;
  box-shadow: 0 0 0 3px rgba(123, 227, 172, 0.3);
  outline: none;
}

.menu-roadmap-section {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.menu-roadmap-title {
  margin: 0 0 10px;
  color: #ffd700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-roadmap-grid {
  display: grid;
  gap: 10px;
}

.menu-roadmap-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(12, 14, 18, 0.9);
}

.menu-roadmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.menu-roadmap-head h4 {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.menu-roadmap-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.menu-roadmap-subtitle {
  margin: 6px 0 8px;
  color: #b8c0d0;
  font-size: 12px;
}

.menu-roadmap-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.menu-roadmap-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.menu-roadmap-metric {
  margin: 8px 0 0;
  color: #d3d9e6;
  font-size: 12px;
}

.menu-roadmap-badge.is-good {
  color: #14361e;
  background: #56e08a;
  border-color: #56e08a;
}

.menu-roadmap-badge.is-warn {
  color: #3f2f00;
  background: #ffd166;
  border-color: #ffd166;
}

.menu-roadmap-badge.is-bad {
  color: #3f1218;
  background: #ff8a8a;
  border-color: #ff8a8a;
}

.menu-roadmap-bar.is-good {
  background: linear-gradient(90deg, #38d39f, #5ce1a8);
}

.menu-roadmap-bar.is-warn {
  background: linear-gradient(90deg, #f7b84b, #ffd166);
}

.menu-roadmap-bar.is-bad {
  background: linear-gradient(90deg, #ff5a67, #ff8a8a);
}

@media (max-width: 680px) {
  .language-badge {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 10px;
  }

  .language-badge-btn {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .menu-profile-btn {
    left: 66px;
    min-width: 80px;
    padding: 0 12px;
    font-size: 13px;
  }

  .menu-alerts-btn {
    left: 152px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 11px;
  }

  .menu-theme-btn {
    left: 202px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .menu-profile-box {
    padding: 16px;
    max-height: 88vh;
  }

  .menu-alerts-box {
    padding: 12px;
    width: calc(100% - 6px);
    margin: 0;
    max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .menu-alerts-section {
    padding: 10px;
  }

  .blog-alert-link {
    padding: 10px 24px 10px 10px;
  }

  .blog-alert-link::before {
    right: 8px;
    font-size: 20px;
  }

  .menu-profile-grid {
    grid-template-columns: 1fr;
  }

  .menu-alerts-panel {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(66px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

.performance-intelligence-shell {
  margin-top: 24px;
  animation: pi-fade-in 0.7s ease;
}

.performance-intelligence-panel {
  --pi-bg: #0b0b0f;
  --pi-border: rgba(255, 255, 255, 0.09);
  --pi-border-glow: rgba(244, 207, 122, 0.3);
  --pi-surface: rgba(255, 255, 255, 0.04);
  --pi-gold: #f2cb6a;
  --pi-text-main: #f5f7fb;
  --pi-text-soft: #8f98a8;
  --pi-text-strong: #f3f8ff;
  --pi-danger: #ff5f63;
  --pi-success: #56df9a;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--pi-border);
  padding: clamp(16px, 1.8vw, 24px);
  background:
    radial-gradient(740px 320px at 85% -18%, rgba(242, 203, 106, 0.14), transparent 58%),
    linear-gradient(175deg, rgba(19, 21, 28, 0.92), rgba(10, 12, 16, 0.95));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  text-align: left;
}

.performance-intelligence-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  opacity: 0.5;
  animation: pi-sheen 6s ease-in-out infinite;
}

.performance-intelligence-panel .pi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.performance-intelligence-panel .pi-head-main {
  min-width: 0;
}

.performance-intelligence-panel .pi-head-main h3 {
  margin: 0;
  color: var(--pi-text-main);
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

.performance-intelligence-panel .pi-eyebrow {
  margin: 0 0 6px;
  color: var(--pi-gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.performance-intelligence-panel .pi-subtitle {
  margin: 6px 0 0;
  color: var(--pi-text-soft);
  max-width: 860px;
  font-size: 14px;
  line-height: 1.55;
}

.performance-intelligence-panel .pi-head-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.performance-intelligence-panel .pi-chip {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--pi-surface);
  color: #dae1ec;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  gap: 6px;
  white-space: nowrap;
}

.performance-intelligence-panel .pi-chip-gold {
  color: var(--pi-text-main);
  border-color: var(--pi-border-glow);
  background: rgba(242, 203, 106, 0.14);
}

.performance-intelligence-panel .pi-status {
  margin: 2px 0 14px;
  color: var(--pi-text-soft);
  font-size: 13px;
}

.performance-intelligence-panel .pi-kpi-grid,
.performance-intelligence-panel .pi-summary-grid,
.performance-intelligence-panel .pi-boards-grid {
  position: relative;
  z-index: 1;
}

.performance-intelligence-panel .pi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.performance-intelligence-panel .pi-kpi,
.performance-intelligence-panel .pi-summary-card,
.performance-intelligence-panel .pi-chart-card,
.performance-intelligence-panel .pi-board-card,
.performance-intelligence-panel .pi-ai-item,
.performance-intelligence-panel .pi-ai-card {
  position: relative;
  z-index: 1;
}

.performance-intelligence-panel .pi-kpi {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.performance-intelligence-panel .pi-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 203, 106, 0.28);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3), 0 0 20px rgba(242, 203, 106, 0.12);
}

.performance-intelligence-panel .pi-kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.performance-intelligence-panel .pi-kpi-label {
  color: #9ea4b0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.performance-intelligence-panel .pi-kpi-context {
  color: #f1cf74;
  font-size: 11px;
  font-weight: 600;
}

.performance-intelligence-panel .pi-kpi-value {
  margin: 0 0 6px;
  color: var(--pi-text-main);
  font-size: 30px;
  line-height: 1;
  display: block;
  letter-spacing: 0.01em;
}

.performance-intelligence-panel .pi-kpi-meta {
  margin: 0;
  color: #98a0ad;
  font-size: 12px;
  line-height: 1.5;
}

.performance-intelligence-panel .pi-kpi-chart-shell {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 7px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
}

.performance-intelligence-panel .pi-kpi-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.performance-intelligence-panel .pi-tone-danger .pi-kpi-value,
.performance-intelligence-panel .pi-tone-danger .pi-summary-value {
  color: var(--pi-danger);
}

.performance-intelligence-panel .pi-tone-positive .pi-kpi-value,
.performance-intelligence-panel .pi-tone-positive .pi-summary-value,
.performance-intelligence-panel .pi-tone-positive .pi-board-row-fill {
  color: var(--pi-success);
}

.performance-intelligence-panel .pi-tone-neutral .pi-kpi-value,
.performance-intelligence-panel .pi-tone-neutral .pi-summary-value {
  color: var(--pi-text-main);
}

.performance-intelligence-panel .pi-tone-warn .pi-kpi-value,
.performance-intelligence-panel .pi-tone-warning .pi-kpi-value,
.performance-intelligence-panel .pi-tone-warn .pi-summary-value {
  color: var(--pi-danger);
}

.performance-intelligence-panel .pi-visual-grid {
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.performance-intelligence-panel .pi-chart-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px;
  background: rgba(255, 255, 255, 0.028);
}

.performance-intelligence-panel .pi-chart-head {
  margin-bottom: 6px;
}

.performance-intelligence-panel .pi-chart-tag {
  color: var(--pi-gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.performance-intelligence-panel .pi-chart-head h4 {
  margin: 6px 0 0;
  color: var(--pi-text-main);
  font-size: 17px;
}

.performance-intelligence-panel .pi-chart-card > p {
  margin: 8px 0 8px;
  color: var(--pi-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.performance-intelligence-panel .pi-chart-body {
  height: 210px;
  position: relative;
}

.performance-intelligence-panel .pi-chart-body canvas {
  width: 100% !important;
  height: 100% !important;
}

.performance-intelligence-panel .pi-ai-card {
  position: relative;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.performance-intelligence-panel .pi-ai-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.performance-intelligence-panel .pi-ai-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b1f26;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #f2cb6a, #e39d2d);
}

.performance-intelligence-panel .pi-ai-header h4 {
  margin: 0;
  color: var(--pi-text-main);
  font-size: 17px;
}

.performance-intelligence-panel .pi-ai-header p {
  margin: 4px 0 0;
  color: var(--pi-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.performance-intelligence-panel .pi-ai-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.performance-intelligence-panel .pi-ai-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.performance-intelligence-panel .pi-ai-item-title {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--pi-gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.performance-intelligence-panel .pi-ai-item-text {
  margin: 0;
  color: #eff2f6;
  font-size: 13px;
  line-height: 1.45;
}

.performance-intelligence-panel .pi-ai-item-evidence {
  display: block;
  margin-top: 6px;
  color: #94a0b0;
  font-size: 12px;
}

.performance-intelligence-panel .pi-ai-tone-danger .pi-ai-item-title,
.performance-intelligence-panel .pi-ai-tone-danger .pi-ai-item-evidence,
.performance-intelligence-panel .pi-ai-tone-danger .pi-ai-item {
  color: var(--pi-danger);
}

.performance-intelligence-panel .pi-ai-tone-positive .pi-ai-item-title,
.performance-intelligence-panel .pi-ai-tone-positive .pi-ai-item-evidence {
  color: var(--pi-success);
}

.performance-intelligence-panel .pi-ai-callout {
  margin: 12px 0 0;
  border-radius: 12px;
  border: 1px solid rgba(242, 203, 106, 0.24);
  background: rgba(242, 203, 106, 0.06);
  color: #f5f4ee;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.performance-intelligence-panel .pi-breakdown-stage {
  margin-top: 14px;
}

.performance-intelligence-panel .pi-section-head {
  margin-bottom: 10px;
}

.performance-intelligence-panel .pi-section-head h4 {
  margin: 0;
  color: var(--pi-text-main);
  font-size: 18px;
}

.performance-intelligence-panel .pi-section-head p {
  margin: 6px 0 0;
  color: var(--pi-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.performance-intelligence-panel .pi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
}

.performance-intelligence-panel .pi-summary-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.performance-intelligence-panel .pi-summary-label {
  color: #a4acb9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.performance-intelligence-panel .pi-summary-value {
  margin-top: 4px;
  color: var(--pi-text-strong);
  font-size: 22px;
  line-height: 1.1;
}

.performance-intelligence-panel .pi-summary-meta {
  margin-top: 7px;
  color: #93a0ad;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.performance-intelligence-panel .pi-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 12px;
}

.performance-intelligence-panel .pi-board-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.performance-intelligence-panel .pi-board-head h4 {
  margin: 0 0 8px;
  color: #eef1f7;
  font-size: 16px;
}

.performance-intelligence-panel .pi-board-list {
  display: grid;
  gap: 10px;
}

.performance-intelligence-panel .pi-board-row {
  min-width: 0;
}

.performance-intelligence-panel .pi-board-row-top {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.performance-intelligence-panel .pi-board-row-label {
  color: #eaedf2;
  font-size: 13px;
  font-weight: 600;
}

.performance-intelligence-panel .pi-board-row-value {
  color: #f4d07a;
  font-size: 13px;
}

.performance-intelligence-panel .pi-board-row-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.performance-intelligence-panel .pi-board-row-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 203, 106, 0.24), rgba(242, 203, 106, 0.86));
}

.performance-intelligence-panel .pi-board-row-fill.pi-tone-danger {
  background: linear-gradient(90deg, rgba(255, 95, 99, 0.35), rgba(255, 95, 99, 0.9));
}

.performance-intelligence-panel .pi-board-row-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #95a1b0;
  font-size: 11px;
}

.performance-intelligence-panel .pi-board-empty {
  margin: 0;
  color: #95a1b0;
  font-size: 12px;
}

.performance-intelligence-panel .pi-footer-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 12px;
  color: #919cac;
  line-height: 1.55;
}

.performance-intelligence-panel .pi-empty {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.performance-intelligence-panel .pi-empty-orb {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(242, 203, 106, 0.22);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 235, 171, 0.46), rgba(242, 203, 106, 0.11) 45%, rgba(242, 203, 106, 0) 72%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 18px rgba(242, 203, 106, 0.08), 0 0 20px rgba(242, 203, 106, 0.1);
}

.performance-intelligence-panel .pi-empty-title {
  margin: 0 0 6px;
  color: #f3f5f8;
  font-size: 17px;
}

.performance-intelligence-panel .pi-empty-text,
.performance-intelligence-panel .pi-empty-hint {
  margin: 0;
  color: #97a2b0;
  font-size: 13px;
  line-height: 1.6;
}

.performance-intelligence-panel .pi-empty-hint {
  margin-top: 5px;
  font-size: 12px;
}

@keyframes pi-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pi-sheen {
  0% {
    transform: translateX(-6px);
    opacity: 0.3;
  }
  50% {
    transform: translateX(6px);
    opacity: 0.06;
  }
  100% {
    transform: translateX(-6px);
    opacity: 0.3;
  }
}

@media (max-width: 1040px) {
  .performance-intelligence-panel .pi-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .performance-intelligence-panel {
    padding: 16px;
  }

  .performance-intelligence-panel .pi-head {
    flex-direction: column;
  }

  .performance-intelligence-panel .pi-head h3 {
    font-size: 28px;
  }

  .performance-intelligence-panel .pi-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  }

  .performance-intelligence-panel .pi-summary-grid,
  .performance-intelligence-panel .pi-boards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .performance-intelligence-shell {
    margin-top: 24px;
  }

  .performance-intelligence-panel .pi-head h3 {
    font-size: 24px;
  }

  .performance-intelligence-panel .pi-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .performance-intelligence-panel .pi-summary-grid {
    grid-template-columns: 1fr;
  }

  .performance-intelligence-panel .pi-kpi {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .performance-intelligence-panel .pi-kpi-top {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .performance-intelligence-panel .pi-kpi-context {
    align-self: flex-start;
  }

  .performance-intelligence-panel .pi-kpi-value {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
  }

  .performance-intelligence-panel .pi-kpi-meta {
    font-size: 11px;
    line-height: 1.4;
  }

  .performance-intelligence-panel .pi-kpi-chart-shell {
    margin-top: 8px;
    height: 44px;
  }

  .performance-intelligence-panel .pi-empty {
    grid-template-columns: 1fr;
  }

  .performance-intelligence-panel .pi-empty-orb {
    width: 54px;
    height: 54px;
  }
}

.performance-intelligence-shell {
  margin-top: 30px;
}

.performance-intelligence-panel,
.pi-chart-card,
.pi-ai-card,
.pi-kpi,
.pi-board-card,
.pi-insight,
.pi-callout {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(11, 15, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.performance-intelligence-panel {
  --glass-deep: rgba(11, 15, 24, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-main: #f4f8ff;
  --text-soft: #9da9bd;
  --text-dim: #72809a;
  --cyan: #f5c400;
  --blue: #ffd75a;
  --purple: #ffb300;
  --success: #81f0d5;
  --warning: #ffb86b;
  --danger: #ff5f73;
  --danger-soft: #ffb0ba;
  --danger-glow: rgba(255, 95, 115, 0.18);
  --shadow-card: 0 16px 30px rgba(0, 0, 0, 0.18);
  --ease-soft: cubic-bezier(0.22, 0.82, 0.24, 1);
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  animation: surface-enter 0.78s var(--ease-soft) both;
}

.performance-intelligence-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 179, 0, 0.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(245, 196, 0, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 28%);
}

.performance-intelligence-panel::after {
  content: "";
  position: absolute;
  top: -24%;
  left: -18%;
  width: 220px;
  height: 160%;
  transform: rotate(18deg) translateX(-240px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  animation: panel-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.pi-head,
.pi-kpi-grid,
.pi-visual-grid,
.pi-breakdown-stage,
.pi-board-stage,
.pi-footer-note {
  position: relative;
  z-index: 1;
}

.pi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.pi-head-main {
  max-width: 700px;
}

.pi-head-main h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.pi-eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pi-subtitle {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.pi-head-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 320px;
}

.pi-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f0e5c4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pi-chip-gold {
  background: rgba(255, 179, 0, 0.14);
  color: #f8e8b5;
  border-color: rgba(245, 196, 0, 0.18);
}

.pi-status {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.pi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pi-kpi {
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft), background 0.28s var(--ease-soft);
  animation: surface-enter 0.66s var(--ease-soft) both;
}

.pi-kpi:hover,
.pi-chart-card:hover,
.pi-ai-card:hover,
.pi-board-card:hover,
.pi-summary-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 196, 0, 0.18);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(245, 196, 0, 0.08) inset;
}

.pi-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.pi-kpi-label {
  color: #b4c2d8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-kpi-context {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3e7c8;
  font-size: 11px;
  font-weight: 700;
}

.pi-kpi-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.5vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pi-kpi-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.pi-kpi-chart-shell {
  position: relative;
  margin-top: 14px;
  height: 64px;
  padding-top: 8px;
  overflow: hidden;
  border-radius: 14px;
}

.pi-kpi-chart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.pi-kpi-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pi-mini-chart {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pi-tone-positive .pi-kpi-value,
.pi-tone-positive .pi-summary-value,
.pi-tone-positive .pi-board-row-value,
.pi-tone-positive .pi-chart-metric-value {
  color: var(--success);
}

.pi-tone-warn .pi-kpi-context {
  color: var(--danger);
  background: rgba(255, 95, 115, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 95, 115, 0.14) inset;
}

.pi-tone-warn .pi-kpi-value,
.pi-tone-warn .pi-summary-value,
.pi-tone-warn .pi-board-row-value,
.pi-tone-warn .pi-chart-metric-value {
  color: var(--danger);
}

.pi-tone-neutral .pi-kpi-value {
  color: #f0e6cf;
}

.pi-tone-neutral .pi-summary-value,
.pi-tone-neutral .pi-board-row-value,
.pi-tone-neutral .pi-chart-metric-value {
  color: var(--text-main);
}

.pi-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
  margin-top: 24px;
}

.pi-chart-card,
.pi-ai-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  transition: transform 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
  animation: surface-enter 0.74s var(--ease-soft) both;
}

.pi-chart-card--wide {
  grid-column: 1 / -1;
}

.pi-chart-card::before,
.pi-ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 32%);
}

.pi-chart-head,
.pi-ai-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pi-chart-kicker,
.pi-ai-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pi-chart-head h4,
.pi-ai-head h4,
.pi-section-head h4,
.pi-board-head h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.pi-chart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pi-chart-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f0e5c4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pi-chart-body {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  height: 220px;
}

.pi-chart-body--tall {
  height: 270px;
}

.pi-chart-body--compact {
  height: 230px;
}

.pi-chart-body canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.performance-intelligence-panel .pi-ai-card {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 20px;
  border-radius: 24px;
  transition: transform 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
  animation: surface-enter 0.74s var(--ease-soft) both;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    var(--glass-deep);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.performance-intelligence-panel .pi-ai-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.performance-intelligence-panel .pi-ai-head h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.performance-intelligence-panel .pi-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.18), rgba(255, 179, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5c400;
}

.performance-intelligence-panel .pi-ai-icon svg {
  width: 60px;
  height: 60px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 0 12px rgba(245, 196, 0, 0.22));
}

.performance-intelligence-panel .pi-ai-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.performance-intelligence-panel .pi-ai-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.performance-intelligence-panel .pi-ai-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.performance-intelligence-panel .pi-ai-item.is-danger {
  border-color: rgba(255, 95, 115, 0.18);
  background: linear-gradient(180deg, rgba(255, 95, 115, 0.1), rgba(255, 95, 115, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 95, 115, 0.04);
}

.performance-intelligence-panel .pi-ai-item-title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-intelligence-panel .pi-ai-item p {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.72;
}

.performance-intelligence-panel .pi-ai-item small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.performance-intelligence-panel .pi-ai-item.is-danger .pi-ai-item-title,
.performance-intelligence-panel .pi-ai-item.is-danger small {
  color: var(--danger);
}

.performance-intelligence-panel .pi-ai-callout {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 196, 0, 0.18);
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.14), rgba(255, 179, 0, 0.08));
}

.performance-intelligence-panel .pi-ai-callout-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #f8e8b5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-intelligence-panel .pi-ai-callout p {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.72;
}

.pi-chart-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pi-chart-metric {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pi-chart-metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-chart-metric-value {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.pi-ai-card {
  display: grid;
  gap: 16px;
}

.pi-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.18), rgba(255, 179, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5c400;
}

.pi-ai-icon svg {
  width: 60px;
  height: 60px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 0 12px rgba(245, 196, 0, 0.22));
}

.pi-ai-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.pi-ai-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.pi-ai-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.pi-ai-item.is-danger {
  border-color: rgba(255, 95, 115, 0.18);
  background: linear-gradient(180deg, rgba(255, 95, 115, 0.1), rgba(255, 95, 115, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 95, 115, 0.04);
}

.pi-ai-item-title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-ai-item p {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.72;
}

.pi-ai-item small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.pi-ai-item.is-danger .pi-ai-item-title,
.pi-ai-item.is-danger small {
  color: var(--danger);
}

.pi-ai-callout {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 196, 0, 0.18);
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.14), rgba(255, 179, 0, 0.08));
}

.pi-ai-callout-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #f8e8b5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-ai-callout p {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.72;
}

.pi-breakdown-stage,
.pi-board-stage {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.pi-section-head {
  margin-bottom: 14px;
}

.pi-section-head h4 {
  margin-bottom: 6px;
}

.pi-section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.pi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.pi-summary-card {
  transition: transform 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.pi-summary-card .profile-value {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.pi-summary-meta {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.pi-boards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pi-board-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
  animation: surface-enter 0.76s var(--ease-soft) both;
}

.pi-board-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--purple));
  opacity: 0.95;
}

.pi-board-head {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.pi-board-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.pi-board-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.pi-board-row-label {
  color: #f2e8cf;
  font-size: 13px;
  font-weight: 700;
}

.pi-board-row-value {
  color: #eadfbf;
  font-size: 13px;
  font-weight: 700;
}

.pi-board-row-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.pi-board-row-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  animation: metric-bar 1.05s var(--ease-soft) 0.35s forwards;
}

.pi-board-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pi-board-row-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 11px;
}

.pi-footer-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 196, 0, 0);
  }
}

@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-sheen {
  0%, 100% {
    transform: rotate(18deg) translateX(-240px);
    opacity: 0;
  }
  18% {
    opacity: 0.4;
  }
  38% {
    transform: rotate(18deg) translateX(1240px);
    opacity: 0;
  }
}

@keyframes metric-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1040px) {
  .pi-boards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .pi-visual-grid {
    grid-template-columns: 1fr;
  }

  .pi-chart-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .pi-head {
    flex-direction: column;
  }

  .pi-head-chips {
    justify-content: flex-start;
    max-width: none;
  }

  .pi-chart-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .trader-profile-section {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .performance-intelligence-panel,
  .pi-chart-card,
  .pi-ai-card,
  .pi-board-card {
    padding: 18px;
    border-radius: 20px;
  }

  .profile-grid,
  .pi-summary-grid {
    grid-template-columns: 1fr;
  }

  .pi-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pi-kpi {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .profile-card.full {
    grid-column: auto;
  }

  .pi-chart-body {
    height: 210px;
  }

  .pi-chart-body--tall {
    height: 250px;
  }

  .pi-chart-body--compact {
    height: 220px;
  }
}

/* =========================
   PREMIUM PERFORMANCE DASHBOARDS
========================= */
:root {
  --dash-bg: #05070a;
  --dash-panel: rgba(12, 15, 20, 0.92);
  --dash-panel-soft: rgba(18, 22, 29, 0.78);
  --dash-card: rgba(14, 18, 24, 0.74);
  --dash-border: rgba(255, 255, 255, 0.12);
  --dash-border-soft: rgba(255, 255, 255, 0.08);
  --dash-text: #f4f6fb;
  --dash-muted: #a4abb7;
  --dash-dim: #737b88;
  --dash-green: #39df7a;
  --dash-green-soft: rgba(57, 223, 122, 0.13);
  --dash-red: #ff4f56;
  --dash-gold: #ffd400;
  --dash-gold-soft: rgba(255, 212, 0, 0.13);
  --dash-blue: #4b8cff;
  --dash-purple: #9b5cff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dash-icon-box {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--dash-gold);
  background: rgba(255, 212, 0, 0.06);
  border: 1px solid rgba(255, 212, 0, 0.18);
  box-shadow: inset 0 0 24px rgba(255, 212, 0, 0.05);
}

.dash-icon-box svg,
.dashboard-date-pill svg,
.profile-edit-btn svg,
.operative-range-btn svg,
.daily-metric-icon svg,
.subcard-title svg,
.identity-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-icon-box--flat {
  width: 54px;
  height: 54px;
  border: 0;
  color: var(--dash-gold);
  background: transparent;
  box-shadow: none;
}

#toggleProfileBtn.add-profile-btn {
  display: none;
}

.daily-dashboard-section,
#profiloSection.trader-profile-dashboard,
.operative-performance-card,
.size-coach-section,
.performance-intelligence-shell,
.swing-performance-panel,
.profile-analysis-panel {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

#dailyPerformanceSection {
  margin-top: 26px;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}

#operativePerformancePanel.operative-performance-card {
  margin-top: 24px;
}

.daily-dashboard-card,
#profiloSection.trader-profile-dashboard,
.operative-performance-card,
.performance-intelligence-panel.pi-dashboard-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--dash-border);
  background:
    radial-gradient(760px 260px at 15% 12%, rgba(255, 255, 255, 0.045), transparent 58%),
    radial-gradient(680px 280px at 82% 4%, rgba(57, 223, 122, 0.05), transparent 58%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.96), rgba(6, 8, 12, 0.97));
  color: var(--dash-text);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.daily-dashboard-card {
  padding: 30px;
}

.daily-dashboard-head,
.profile-dashboard-head,
.operative-head,
.pi-dashboard-panel .pi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.daily-dashboard-title,
.profile-dashboard-title,
.operative-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.daily-dashboard-title h3,
.profile-dashboard-title h2,
.operative-title h3 {
  margin: 0;
  color: var(--dash-text);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 800;
}

.dashboard-date-pill,
.operative-range-btn,
.profile-edit-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--dash-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--dash-text);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-date-pill svg,
.operative-range-btn svg,
.profile-edit-btn svg {
  width: 22px;
  height: 22px;
}

.dashboard-date-arrow {
  font-size: 30px;
  line-height: 1;
  color: var(--dash-text);
}

.daily-metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  padding: 34px 28px;
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  background:
    radial-gradient(360px 160px at 16% 24%, rgba(255, 255, 255, 0.045), transparent 70%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.72), rgba(7, 9, 13, 0.86));
}

.daily-metric-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 24px;
  text-align: center;
  border-right: 1px solid var(--dash-border);
}

.daily-metric-card:last-of-type {
  border-right: 0;
}

.daily-metric-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dfe3eb;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.03);
}

.daily-metric-icon.is-positive {
  color: var(--dash-green);
  border-color: rgba(57, 223, 122, 0.23);
  background: rgba(57, 223, 122, 0.08);
  box-shadow: 0 0 26px rgba(57, 223, 122, 0.08), inset 0 0 26px rgba(57, 223, 122, 0.05);
}

.daily-metric-label {
  color: #c0c5ce;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.daily-metric-value {
  display: block;
  color: var(--dash-text);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  white-space: nowrap;
}

.daily-metric-value.positive,
.positive {
  color: var(--dash-green) !important;
}

.negative {
  color: var(--dash-red) !important;
}

.daily-status-pill,
.metric-pill,
.round-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  border: 1px solid rgba(57, 223, 122, 0.1);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.daily-status-pill.is-muted {
  color: var(--dash-text);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.06);
}

.daily-status-pill.is-negative,
.metric-pill.is-negative {
  color: var(--dash-red);
  background: rgba(255, 79, 86, 0.12);
  border-color: rgba(255, 79, 86, 0.15);
}

.daily-insight-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 28px;
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.028);
}

.daily-insight-icon {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dash-gold);
  background: rgba(255, 212, 0, 0.12);
}

.daily-insight-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.daily-insight-copy strong {
  display: block;
  color: var(--dash-gold);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.daily-insight-copy p {
  margin: 0;
  color: var(--dash-text);
  font-size: 22px;
  line-height: 1.4;
}

.daily-detail-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 0, 0.25);
  background: rgba(255, 212, 0, 0.035);
  color: var(--dash-gold);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

#profiloSection.trader-profile-dashboard {
  max-width: none;
  margin-top: 22px;
  margin-bottom: 26px;
  padding: 28px;
  text-align: left;
}

.profile-edit-btn {
  color: var(--dash-gold);
  cursor: pointer;
}

.profile-edit-btn:hover,
.daily-detail-btn:hover,
.operative-range-btn:hover {
  border-color: rgba(255, 212, 0, 0.42);
  background: rgba(255, 212, 0, 0.08);
}

.profile-subcard,
.discipline-level-row {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  background:
    radial-gradient(420px 160px at 8% 16%, rgba(255, 255, 255, 0.04), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.discipline-score-premium {
  --discipline-premium-border: rgba(255, 214, 0, 0.18);
  --discipline-premium-gold: #ffca2f;
  --discipline-premium-bg: linear-gradient(180deg, rgba(12, 16, 22, 0.98), rgba(9, 12, 18, 0.98));
  --discipline-premium-card: rgba(255, 255, 255, 0.025);
  --discipline-premium-card-border: rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 980px);
  padding: clamp(14px, 2.6vw, 22px);
  border-radius: 22px;
  border: 1px solid var(--discipline-premium-border);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 205, 66, 0.08), transparent 42%),
    radial-gradient(90% 90% at 50% 100%, rgba(30, 48, 80, 0.12), transparent 55%),
    var(--discipline-premium-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 214, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 196, 0, 0.08);
}

.discipline-score-premium__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.discipline-score-premium__eyebrow {
  margin: 0 0 6px;
  color: var(--discipline-premium-gold);
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.discipline-score-premium__title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 3.4vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.discipline-score-premium__subtitle {
  margin: 7px 0 0;
  max-width: 620px;
  color: #b6beca;
  font-size: clamp(0.88rem, 1.7vw, 1.08rem);
  line-height: 1.34;
}

.discipline-score-premium__info {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
}

.discipline-score-premium__info svg,
.discipline-score-premium__subcard-icon svg,
.discipline-score-premium__top-driver-icon svg,
.discipline-score-premium__position-summary-icon svg,
.discipline-score-premium__improvement-icon svg,
.discipline-score-premium__footer-note svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discipline-score-premium__hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(12px, 2.8vw, 18px) 0 4px;
}

.discipline-score-premium__main-ring {
  --score: 0;
  width: clamp(160px, 26vw, 230px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--discipline-premium-gold) calc(var(--score) * 1%), rgba(255, 255, 255, 0.09) 0);
  box-shadow:
    0 0 26px rgba(255, 201, 47, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.discipline-score-premium__main-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.03), transparent 48%),
    #0b0f15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.discipline-score-premium__main-ring-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.discipline-score-premium__main-ring-core strong {
  color: #ffffff;
  font-size: clamp(2.9rem, 8.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.discipline-score-premium__main-ring-core span {
  margin-top: 2px;
  color: #9ca3af;
  font-size: clamp(0.9rem, 2.7vw, 1.35rem);
  font-weight: 700;
}

.discipline-score-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, 0.38);
  background: rgba(19, 22, 28, 0.9);
  color: var(--discipline-premium-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.08);
  font-size: clamp(0.9rem, 1.6vw, 1.02rem);
  font-weight: 700;
}

.discipline-score-premium__badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.discipline-score-premium__subscores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.discipline-score-premium__subcard,
.discipline-score-premium__top-driver,
.discipline-score-premium__position,
.discipline-score-premium__improvements {
  border-radius: 16px;
  border: 1px solid var(--discipline-premium-card-border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.03), transparent 48%),
    var(--discipline-premium-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.discipline-score-premium__subcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
}

.discipline-score-premium__subcard-icon,
.discipline-score-premium__improvement-icon,
.discipline-score-premium__position-summary-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.discipline-score-premium__subcard-icon--performance,
.discipline-score-premium__improvement-icon--orange {
  color: #ff8a24;
}

.discipline-score-premium__subcard-icon--risk,
.discipline-score-premium__improvement-icon--green {
  color: #69db47;
}

.discipline-score-premium__subcard-icon--behavior,
.discipline-score-premium__subcard-icon--consistency,
.discipline-score-premium__improvement-icon--gold,
.discipline-score-premium__position-summary-icon {
  color: var(--discipline-premium-gold);
}

.discipline-score-premium__subcard-copy h4 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  line-height: 1.2;
}

.discipline-score-premium__mini-ring {
  --score: 0;
  --tone: #f5c400;
  width: 68px;
  height: 68px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--score) * 1%), rgba(255, 255, 255, 0.09) 0);
}

.discipline-score-premium__mini-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #131922;
}

.discipline-score-premium__mini-ring-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.discipline-score-premium__mini-ring-core strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 3.8vw, 1.75rem);
  line-height: 1;
}

.discipline-score-premium__mini-ring-core span {
  color: #c5cad3;
  font-size: clamp(0.64rem, 1.8vw, 0.82rem);
  font-weight: 700;
}

.discipline-score-premium__top-driver {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-color: rgba(255, 196, 0, 0.16);
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(255, 203, 70, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 196, 0, 0.04),
    0 0 18px rgba(255, 196, 0, 0.05);
}

.discipline-score-premium__top-driver-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--discipline-premium-gold);
  border: 1px solid rgba(255, 196, 0, 0.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 206, 84, 0.28), transparent 26%),
    rgba(255, 196, 0, 0.05);
}

.discipline-score-premium__top-driver-label {
  margin: 0 0 4px;
  color: var(--discipline-premium-gold);
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.discipline-score-premium__top-driver-copy h4,
.discipline-score-premium__position h4,
.discipline-score-premium__improvements h4 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.1;
}

.discipline-score-premium__top-driver-copy p {
  margin: 4px 0 0;
  color: #c9d0d9;
  font-size: clamp(0.88rem, 1.45vw, 1rem);
  line-height: 1.32;
}

.discipline-score-premium__chevron {
  color: rgba(255, 255, 255, 0.72);
  font-size: 34px;
  line-height: 1;
}

.discipline-score-premium__position,
.discipline-score-premium__improvements {
  margin-top: 10px;
  padding: 14px;
}

.discipline-score-premium__position-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #d4d8df;
  font-size: clamp(0.82rem, 1.35vw, 0.96rem);
}

.discipline-score-premium__position-bar {
  --progress: 50%;
  position: relative;
  height: 10px;
  margin: 14px 8px 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: visible;
}

.discipline-score-premium__position-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(174, 145, 74, 0.55), #ffca2f 78%);
}

.discipline-score-premium__position-marker {
  position: absolute;
  top: 13px;
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
  color: #d5dae2;
}

.discipline-score-premium__position-marker::before,
.discipline-score-premium__position-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff;
}

.discipline-score-premium__position-marker::before {
  top: -18px;
  width: 6px;
  height: 6px;
  opacity: 0.95;
}

.discipline-score-premium__position-marker::after {
  top: -8px;
  width: 4px;
  height: 4px;
  opacity: 0.75;
}

.discipline-score-premium__position-marker span,
.discipline-score-premium__position-marker strong {
  display: block;
}

.discipline-score-premium__position-marker span {
  font-size: clamp(0.74rem, 1.25vw, 0.86rem);
}

.discipline-score-premium__position-marker strong {
  margin-top: 2px;
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  font-weight: 500;
}

.discipline-score-premium__position-you {
  position: absolute;
  top: -39px;
  transform: translateX(-50%);
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--discipline-premium-gold);
  color: #231700;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 196, 0, 0.22);
}

.discipline-score-premium__position-you::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--discipline-premium-gold);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.discipline-score-premium__position-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discipline-score-premium__position-summary-copy strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
}

.discipline-score-premium__position-summary-copy p {
  margin: 4px 0 0;
  color: #cfd5de;
  font-size: clamp(0.82rem, 1.35vw, 0.95rem);
  line-height: 1.3;
}

.discipline-score-premium__improvements-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discipline-score-premium__improvement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.discipline-score-premium__improvement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  min-height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.discipline-score-premium__improvement-card p {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  line-height: 1.28;
}

.discipline-score-premium__footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #aeb6c2;
  font-size: clamp(0.8rem, 1.25vw, 0.92rem);
  line-height: 1.3;
}

.discipline-score-premium__footer-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (min-width: 761px) {
  .discipline-score-premium {
    width: min(100%, 980px);
  }

  .discipline-score-premium__top-driver {
    padding: 15px 16px;
  }

  .discipline-score-premium__improvement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .discipline-score-premium {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .discipline-score-premium__header {
    gap: 10px;
  }

  .discipline-score-premium__info {
    width: 34px;
    height: 34px;
  }

  .discipline-score-premium__subscores {
    gap: 8px;
  }

  .discipline-score-premium__subcard {
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: stretch;
    align-items: center;
    min-height: 0;
    gap: 6px;
    padding: 9px 8px 10px;
  }

  .discipline-score-premium__subcard-icon {
    order: 1;
    width: 30px;
    height: 30px;
    grid-column: 1;
    grid-row: 1;
  }

  .discipline-score-premium__subcard-copy {
    order: 3;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .discipline-score-premium__subcard-copy h4 {
    font-size: 0.82rem;
    line-height: 1.14;
    text-align: left;
  }

  .discipline-score-premium__mini-ring {
    order: 2;
    justify-self: end;
    width: 54px;
    height: 54px;
    margin-top: 0;
    margin-bottom: 1px;
    grid-column: 2;
    grid-row: 1;
  }

  .discipline-score-premium__mini-ring::before {
    inset: 7px;
  }

  .discipline-score-premium__mini-ring-core strong {
    font-size: 1.15rem;
  }

  .discipline-score-premium__mini-ring-core span {
    font-size: 0.56rem;
  }

  .discipline-score-premium__top-driver {
    gap: 8px;
    padding: 12px;
  }

  .discipline-score-premium__top-driver-icon {
    width: 48px;
    height: 48px;
  }

  .discipline-score-premium__position,
  .discipline-score-premium__improvements {
    padding: 12px;
  }

  .discipline-score-premium__position-bar {
    margin: 12px 4px 50px;
  }

  .discipline-score-premium__position-marker span,
  .discipline-score-premium__position-marker strong {
    font-size: 0.72rem;
  }

  .discipline-score-premium__position-summary {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .discipline-score-premium__hero {
    padding-top: 10px;
  }

  .discipline-score-premium__main-ring {
    width: min(148px, 48vw);
  }

  .discipline-score-premium__main-ring::before {
    inset: 11px;
  }

  .discipline-score-premium__subcard-icon,
  .discipline-score-premium__improvement-icon,
  .discipline-score-premium__position-summary-icon {
    width: 34px;
    height: 34px;
  }

  .discipline-score-premium__subcard {
    gap: 5px;
    padding: 8px 7px 9px;
  }

  .discipline-score-premium__subcard-icon {
    width: 28px;
    height: 28px;
  }

  .discipline-score-premium__subcard-copy h4 {
    font-size: 0.76rem;
    text-align: left;
  }

  .discipline-score-premium__mini-ring {
    width: 50px;
    height: 50px;
  }

  .discipline-score-premium__mini-ring::before {
    inset: 6px;
  }

  .discipline-score-premium__mini-ring-core strong {
    font-size: 1.02rem;
  }

  .discipline-score-premium__mini-ring-core span {
    font-size: 0.52rem;
  }

  .discipline-score-premium__position-bar {
    margin-bottom: 46px;
  }

  .discipline-score-premium__position-marker {
    max-width: 72px;
  }

  .discipline-score-premium__position-summary-copy strong {
    font-size: 0.9rem;
  }

  .discipline-score-premium__position-summary-copy p {
    font-size: 0.78rem;
  }

  .discipline-score-premium__chevron {
    font-size: 26px;
  }
}

.subcard-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--dash-gold);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.subcard-title span {
  display: inline-flex;
  color: var(--dash-gold);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.identity-item,
.behavior-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.identity-item {
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid var(--dash-border-soft);
}

.identity-item:last-child,
.behavior-item:last-child {
  border-right: 0;
}

.identity-icon {
  color: #aeb5c2;
}

.identity-label,
.behavior-item span {
  color: #d8dbe2;
  font-size: 20px;
  line-height: 1.25;
}

#profiloSection .profile-value {
  width: auto;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dash-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

#profiloSection .profile-value,
#operativePerformancePanel .operative-metric strong,
#operativePerformancePanel .metric-pill,
#operativePerformancePanel .day-card-result,
#operativePerformancePanel .day-card-result strong,
#operativePerformancePanel .day-card-result span {
  min-width: 0;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

#profiloSection .profile-value.is-green {
  color: var(--dash-green);
}

#capitalVal.profile-value--stacked {
  display: grid;
  justify-items: center;
  gap: 3px;
  line-height: 1.05;
}

#capitalVal.profile-value--stacked .profile-value-major {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#capitalVal.profile-value--stacked .profile-value-currency {
  display: block;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.value-chip-gold,
.value-chip-muted {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.value-chip-gold {
  color: var(--dash-gold) !important;
  border: 1px solid rgba(255, 212, 0, 0.45) !important;
  background: rgba(255, 212, 0, 0.035) !important;
}

.value-chip-muted {
  color: #d8dbe2 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.behavior-item {
  gap: 16px;
  padding: 0 22px;
  border-right: 1px solid var(--dash-border-soft);
}

.behavior-item strong {
  color: var(--dash-text);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.behavior-item strong.is-gold {
  color: var(--dash-gold);
}

.discipline-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
}

.discipline-level-row > div:first-child span {
  display: block;
  color: #d6d9e1;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.discipline-level-row > div:first-child strong {
  color: var(--dash-green);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.discipline-ring-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.discipline-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #11161d 57%, transparent 58%),
    conic-gradient(var(--dash-green) calc(var(--score, 0) * 1%), rgba(255, 255, 255, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.discipline-ring span {
  color: var(--dash-green);
  font-size: 22px;
  font-weight: 800;
}

.discipline-arrow {
  padding-left: 28px;
  border-left: 1px solid var(--dash-border-soft);
  color: #c6cad2;
  font-size: 44px;
  line-height: 1;
}

.operative-performance-card {
  padding: 20px;
  margin-top: 26px;
  margin-bottom: 24px;
}

.operative-head {
  padding: 0 12px 18px;
}

.operative-metrics-shell {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  padding: 24px 0;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.operative-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
  border-right: 1px solid var(--dash-border-soft);
}

.operative-metric:last-child {
  border-right: 0;
}

.operative-metric span {
  color: #aeb4bf;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}

.operative-metric strong {
  color: var(--dash-text);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operative-value-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  grid-area: value;
}

.operative-value-row strong {
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.operative-value-row .round-indicator {
  flex: 0 0 auto;
}

.operative-metric.is-main strong {
  color: var(--dash-green);
  font-size: 52px;
}

.metric-pill {
  align-self: flex-start;
  min-height: 30px;
  border-radius: 999px;
  font-size: 15px;
}

.round-indicator {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
}

.round-indicator.is-muted {
  color: #8a919e;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.operative-chart-card {
  margin-top: 12px;
  padding: 18px 20px 22px;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.operative-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.operative-chart-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #b7bdc8;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 800;
}

.info-dot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #9ea6b3;
  font-size: 12px;
  text-transform: lowercase;
}

.operative-tabs {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--dash-border-soft);
  background: rgba(255, 255, 255, 0.025);
}

.operative-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b7bdc8;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.operative-tabs button.is-active {
  color: var(--dash-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.1);
}

.operative-canvas-wrap {
  position: relative;
  height: 220px;
  margin: 2px 0 18px;
  min-width: 0;
  overflow: hidden;
}

#operativePerformanceChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.operative-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.operative-day-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(57, 223, 122, 0.34);
  background:
    radial-gradient(220px 100px at 0% 50%, rgba(57, 223, 122, 0.08), transparent 72%),
    rgba(255, 255, 255, 0.025);
}

.operative-day-card.is-worst {
  border-color: rgba(255, 212, 0, 0.38);
  background:
    radial-gradient(220px 100px at 0% 50%, rgba(255, 212, 0, 0.06), transparent 72%),
    rgba(255, 255, 255, 0.025);
}

.day-card-kicker {
  display: block;
  color: var(--dash-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.operative-day-card.is-worst .day-card-kicker {
  color: #ffdf55;
}

.operative-day-card strong {
  display: block;
  color: var(--dash-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.operative-day-card p {
  margin: 12px 0 0;
  color: #aeb4bf;
  font-size: 15px;
  line-height: 1.4;
}

.day-card-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.day-card-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-card-result strong {
  color: var(--dash-green);
  font-size: 30px;
}

.day-card-result span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  font-size: 14px;
  font-weight: 800;
}

.operative-risk-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--dash-border-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #d8dce4;
}

.operative-risk-note span {
  color: var(--dash-gold);
  font-size: 22px;
}

.operative-risk-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.performance-intelligence-shell {
  margin-top: 24px;
  margin-bottom: 26px;
}

.performance-intelligence-panel.pi-dashboard-panel {
  padding: 28px;
  border-radius: 24px;
}

.pi-dashboard-panel::before,
.pi-dashboard-panel::after {
  display: none !important;
}

.pi-dashboard-panel .pi-head-main h3 {
  margin: 8px 0 0;
  color: var(--dash-text);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.pi-dashboard-panel .pi-eyebrow {
  margin: 0;
  color: var(--dash-gold);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}

.pi-dashboard-panel .pi-subtitle {
  margin: 14px 0 0;
  color: #b2b8c4;
  font-size: 16px;
  line-height: 1.55;
  max-width: 760px;
}

.pi-data-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--dash-border);
  color: #d8dde6;
  background: rgba(255, 255, 255, 0.035);
  font-size: 15px;
  white-space: nowrap;
}

.pi-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.022);
}

.pi-tab {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid var(--dash-border-soft);
  background: transparent;
  color: #e4e7ee;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.pi-tab:last-child {
  border-right: 0;
}

.pi-tab.is-active {
  color: var(--dash-gold);
  background:
    radial-gradient(160px 60px at 50% 100%, rgba(255, 212, 0, 0.15), transparent 72%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.18);
}

.pi-tab-panel {
  display: none;
  margin-top: 18px;
}

.pi-tab-panel.is-active {
  display: block;
}

.pi-compact-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pi-compact-kpi {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background:
    radial-gradient(180px 90px at 0% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    rgba(255, 255, 255, 0.024);
}

.pi-compact-kpi-icon {
  color: var(--dash-green);
  font-size: 28px;
  line-height: 1;
}

.pi-compact-kpi-icon.is-purple {
  color: var(--dash-purple);
}

.pi-compact-kpi-icon.is-red {
  color: var(--dash-red);
}

.pi-compact-kpi-icon.is-gold {
  color: var(--dash-gold);
}

.pi-compact-kpi-icon.is-blue {
  color: var(--dash-blue);
}

.pi-compact-kpi span:not(.pi-compact-kpi-icon) {
  color: #b9bfca;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 800;
}

.pi-compact-kpi strong {
  color: var(--dash-text);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.pi-compact-kpi strong.is-green {
  color: var(--dash-green);
}

.pi-compact-kpi strong.is-red {
  color: var(--dash-red);
}

.pi-compact-kpi strong.is-gold {
  color: var(--dash-gold);
}

.pi-compact-kpi small {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  font-size: 14px;
  font-weight: 800;
}

.pi-compact-kpi small.is-red {
  color: var(--dash-red);
  background: rgba(255, 79, 86, 0.12);
}

.pi-compact-kpi small.is-gold {
  color: var(--dash-gold);
  background: var(--dash-gold-soft);
}

.pi-compact-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: rgba(255, 255, 255, 0.026);
  color: #d9dde6;
  font-size: 17px;
  line-height: 1.45;
}

.pi-compact-note span {
  color: var(--dash-gold);
  font-size: 24px;
}

.pi-compact-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pi-dashboard-panel .pi-board-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: rgba(255, 255, 255, 0.024);
  box-shadow: none;
}

.pi-dashboard-panel .pi-board-card::before {
  display: none;
}

.pi-dashboard-panel .pi-board-head h4 {
  color: var(--dash-text);
  font-size: 18px;
  line-height: 1.2;
}

.pi-dashboard-panel .pi-board-row-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.pi-dashboard-panel .pi-board-row-bar span,
.pi-dashboard-panel .pi-board-row-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(57, 223, 122, 0.32), rgba(57, 223, 122, 0.9));
}

.pi-setup-health-card {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 212, 0, 0.16);
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(255, 212, 0, 0.08), transparent 72%),
    rgba(255, 255, 255, 0.026);
}

.pi-setup-health-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pi-setup-health-eyebrow {
  margin: 0 0 6px;
  color: var(--dash-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pi-setup-health-top h4 {
  margin: 0;
  color: var(--dash-text);
  font-size: 22px;
  line-height: 1.1;
}

.pi-setup-health-top p:not(.pi-setup-health-eyebrow) {
  margin: 8px 0 0;
  color: #d9dde6;
  font-size: 14px;
  line-height: 1.5;
}

.pi-setup-health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d3dae4;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pi-setup-health-badge.is-strong {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.11);
  color: #6ce69a;
}

.pi-setup-health-badge.is-unstable {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.1);
  color: #f4d24f;
}

.pi-setup-health-badge.is-pause {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #ff908b;
}

.pi-setup-health-badge.is-minimum {
  border-color: rgba(148, 163, 184, 0.28);
  color: #d3dae4;
}

.pi-setup-health-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pi-setup-health-metric {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.pi-setup-health-metric span {
  display: block;
  color: #9aa3b1;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pi-setup-health-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--dash-text);
  font-size: 15px;
  line-height: 1.35;
}

.pi-setup-health-rule {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 0, 0.14);
  background: rgba(255, 212, 0, 0.05);
}

.pi-setup-health-rule strong {
  display: block;
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-setup-health-rule p {
  margin: 6px 0 0;
  color: #f4f6f9;
  font-size: 14px;
  line-height: 1.5;
}

.pi-setup-health-foot {
  margin: 10px 0 0;
  color: #9aa3b1;
  font-size: 12px;
  line-height: 1.45;
}

.swing-performance-panel,
.profile-analysis-panel {
  margin-top: 24px;
}

.swing-performance-section {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 214, 0, 0.14);
  background:
    radial-gradient(680px 300px at 50% -6%, rgba(255, 214, 0, 0.09), transparent 56%),
    linear-gradient(180deg, #0b0d10, #08090d);
  padding: clamp(16px, 4vw, 28px);
  color: #f5f5f5;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.swing-performance-header {
  text-align: center;
}

.swing-performance-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.swing-performance-section .section-title {
  margin: 0;
}

.swing-performance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.swing-performance-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.swing-performance-status-badge.is-warning {
  color: #ffd95a;
  border-color: rgba(255, 214, 0, 0.38);
  background: rgba(255, 214, 0, 0.08);
}

.swing-performance-status-badge.is-success {
  color: #58d68d;
  border-color: rgba(88, 214, 141, 0.44);
  background: rgba(88, 214, 141, 0.11);
}

.swing-performance-subtitle {
  margin: 8px auto 0;
  max-width: 680px;
  color: #9ca3af;
  font-size: clamp(12px, 2.2vw, 15px);
  line-height: 1.4;
}

.swing-kpi-grid {
  margin-top: clamp(10px, 2.6vw, 16px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 10px);
}

.swing-kpi-card {
  min-height: 76px;
  border-radius: 14px;
  padding: clamp(10px, 2.2vw, 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 214, 0, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.swing-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.18);
}

.swing-kpi-label {
  display: block;
  color: #ffd75d;
  font-size: clamp(11px, 1.8vw, 13px);
}

.swing-kpi-value {
  display: block;
  margin-top: 2px;
  font-size: clamp(22px, 4.2vw, 28px);
  line-height: 1;
  font-weight: 800;
  color: #f5f5f5;
}

.swing-kpi-value.is-positive {
  color: #58d68d;
}

.swing-kpi-value.is-warning {
  color: #ffd75d;
}

.swing-ratio-card,
.swing-profile-insight,
.swing-trade-card {
  margin-top: clamp(12px, 3.2vw, 18px);
  border: 1px solid rgba(255, 214, 0, 0.14);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 22px;
  padding: clamp(14px, 3vw, 18px);
}

.swing-ratio-card h4,
.swing-profile-insight h4 {
  margin: 0;
  color: #ffd75d;
  font-size: clamp(20px, 4.7vw, 35px);
}

.swing-ratio-layout {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
}

.swing-ratio-donut {
  width: clamp(150px, 28vw, 260px);
  height: clamp(150px, 28vw, 260px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
}

.swing-ratio-donut-ring {
  --ratio: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    conic-gradient(#ffd000 calc(var(--ratio) * 1%), rgba(255, 255, 255, 0.18) 0);
  padding: 14px;
}

.swing-ratio-donut svg,
.swing-ratio-donut canvas {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

.swing-ratio-donut-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  background: #090b0f;
  text-align: center;
}

.swing-ratio-donut-core strong {
  color: #ffd000;
  font-size: clamp(28px, 6vw, 34px);
  line-height: 1;
}

.swing-ratio-donut-core span {
  color: #ffd000;
  font-size: clamp(16px, 3.3vw, 18px);
  font-weight: 700;
}

.swing-ratio-donut-core small {
  color: #aab0bc;
  font-size: clamp(13px, 2.5vw, 14px);
}

.swing-ratio-content {
  min-width: 0;
  flex: 1;
}

.swing-ratio-summary {
  margin: 0;
  color: #f5f5f5;
  font-weight: 700;
  font-size: clamp(18px, 3.6vw, 30px);
}

.swing-ratio-bar {
  margin-top: 10px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.swing-ratio-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  min-width: 8px;
  background: linear-gradient(90deg, #ffd000, #ffe07c);
}

.swing-ratio-insight {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: clamp(15px, 2.8vw, 18px);
}

.swing-ratio-insight::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #4ddb84;
}

.swing-profile-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.swing-profile-insight-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 0, 0.35);
  background: rgba(255, 214, 0, 0.05);
  color: #ffd75d;
  font-size: 26px;
}

.swing-profile-insight-content h4 {
  line-height: 1.2;
}

.swing-profile-insight-content p {
  margin: 6px 0 0;
  color: #c5cad3;
  font-size: clamp(14px, 2.8vw, 18px);
  line-height: 1.5;
}

.swing-profile-insight-info {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 0, 0.35);
  color: #ffd75d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.swing-bestworst-grid {
  margin-top: clamp(12px, 3.2vw, 18px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 2.8vw, 14px);
}

.swing-trade-card {
  margin-top: 0;
  border-radius: 18px;
}

.swing-trade-card-label {
  display: block;
  color: #ffd75d;
  font-size: clamp(13px, 2.6vw, 16px);
}

.swing-trade-card-result {
  display: block;
  margin-top: 5px;
  font-size: clamp(26px, 5.2vw, 34px);
  line-height: 1;
  color: #f5f5f5;
}

.swing-trade-card-result.is-positive {
  color: #58d68d;
}

.swing-trade-card-result.is-negative {
  color: #ff6666;
}

.swing-trade-card-asset,
.swing-trade-card-meta {
  margin: 6px 0 0;
  color: #d3d8e0;
  font-size: clamp(14px, 2.7vw, 16px);
}

.swing-trade-card-meta {
  color: #9ca3af;
}

.size-coach-section {
  margin-top: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 214, 0, 0.14);
  background:
    radial-gradient(680px 280px at 50% -8%, rgba(255, 214, 0, 0.06), transparent 58%),
    linear-gradient(180deg, #0b0d10, #08090d);
  padding: clamp(12px, 3.6vw, 22px);
  color: #f5f5f5;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.size-coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.size-coach-title-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

.size-coach-title-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd000;
  background: rgba(255, 214, 0, 0.05);
  font-size: 18px;
}

.size-coach-header .section-title {
  margin: 0;
  line-height: 1.1;
}

.size-coach-header p {
  margin: 0;
  color: #a7afb9;
  font-size: clamp(13px, 2.5vw, 16px);
}

.size-coach-header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-coach-header-info {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #aeb5c0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.size-coach-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(79, 220, 130, 0.35);
  background: rgba(24, 72, 44, 0.4);
  color: #ffd75d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.size-coach-status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.size-coach-status-badge.is-success {
  color: #58d68d;
  border-color: rgba(88, 214, 141, 0.45);
  background: rgba(88, 214, 141, 0.12);
}

.size-coach-status-badge.is-warning {
  color: #ffbb54;
  border-color: rgba(255, 187, 84, 0.4);
  background: rgba(255, 187, 84, 0.1);
}

.size-coach-status-badge.is-danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.11);
}

.size-coach-main-card {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 110px;
  gap: 16px;
  border: 1px solid rgba(255, 214, 0, 0.28);
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.72);
  padding: clamp(14px, 3.4vw, 20px);
}

.size-coach-main-left {
  padding-right: 16px;
  border-right: 1px solid rgba(255, 214, 0, 0.12);
}

.size-coach-main-label {
  color: #d7dde8;
  font-size: clamp(13px, 2.8vw, 15px);
}

.size-coach-suggested-lot {
  display: block;
  margin-top: 8px;
  font-size: clamp(52px, 12vw, 76px);
  line-height: 1;
  color: #ffd000;
  font-weight: 800;
}

.size-coach-suggested-lot small {
  font-size: 0.56em;
  color: #d8dde8;
  font-weight: 600;
}

.size-coach-risk-line {
  margin: 2px 0 0;
  color: #51d37d;
  font-weight: 700;
  font-size: clamp(17px, 3.8vw, 24px);
}

.size-coach-confidence {
  margin: 10px 0 0;
  color: #d9dde6;
  font-size: clamp(16px, 3.5vw, 18px);
}

.size-coach-confidence-bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.size-coach-confidence-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d36f, #7ef7a7);
}

.size-coach-main-target {
  width: 92px;
  height: 92px;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 0, 0.16);
  background: radial-gradient(circle at 30% 30%, rgba(255, 214, 0, 0.2), rgba(255, 214, 0, 0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd75d;
  font-size: 40px;
}

.size-coach-reason {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.015);
  color: #d8dde8;
  line-height: 1.45;
}

.size-coach-kpi-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.size-coach-kpi-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.size-coach-kpi-title {
  color: #aeb5c0;
  font-size: 13px;
}

.size-coach-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: #f6f8ff;
  font-size: clamp(22px, 5.4vw, 32px);
  line-height: 1.1;
}

.size-coach-kpi-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.size-coach-kpi-track span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(162, 176, 195, 0.8), rgba(255, 255, 255, 0.6));
}

.size-coach-buckets {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

.size-coach-buckets-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.size-coach-buckets-head h4 {
  margin: 0;
  color: #f4f7ff;
  font-size: 31px;
}

.size-coach-buckets-table {
  display: grid;
}

.size-coach-bucket-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.size-coach-bucket-card:last-child {
  border-bottom: 0;
}

.size-coach-bucket-main,
.size-coach-bucket-cell {
  min-width: 0;
}

.size-coach-bucket-result strong {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.size-coach-bucket-main strong,
.size-coach-bucket-cell strong {
  display: block;
  font-size: clamp(18px, 4.3vw, 34px);
}

.size-coach-bucket-main span,
.size-coach-bucket-cell span {
  font-size: 12px;
  color: #98a3b5;
}

.size-coach-bucket-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.size-coach-alerts {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.012);
  padding: 14px;
}

.size-coach-alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.size-coach-alerts-head h4 {
  margin: 0;
  font-size: 30px;
}

.size-coach-alerts-head span {
  color: #ffd75d;
  font-weight: 700;
}

.size-coach-alerts-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.size-coach-alert-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.01);
}

.size-coach-alert-card h4 {
  margin: 0;
  color: #f2f6ff;
  font-size: clamp(20px, 3.8vw, 26px);
}

.size-coach-alert-card p {
  margin: 7px 0 0;
  color: #cfd6e2;
}

.size-coach-alert-tag {
  margin-top: 8px;
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid currentColor;
}

.size-coach-alert-tag.is-warning {
  color: #ffae46;
}

.size-coach-alert-tag.is-danger {
  color: #ff6f6f;
}

.size-coach-alert-tag.is-success {
  color: #4ad17a;
}

.size-coach-disclaimer {
  margin: 12px 0 0;
  color: #9fb0cf;
  background: rgba(90, 127, 255, 0.07);
  border: 1px solid rgba(90, 127, 255, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
}

.size-coach-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.size-coach-action-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 0, 0.4);
  background: transparent;
  color: #ffd75d;
  font-weight: 700;
}

.size-coach-action-btn.is-primary {
  background: #ffd000;
  color: #121212;
}

@media (min-width: 940px) {
  .size-coach-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .size-coach-alerts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .swing-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .swing-bestworst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 379px) {
  .swing-ratio-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .swing-ratio-donut {
    margin: 0 auto;
  }

  .size-coach-actions {
    grid-template-columns: 1fr;
  }

  .size-coach-bucket-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1040px) {
  .daily-metrics-panel,
  .operative-metrics-shell,
  .pi-compact-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-metric-card,
  .operative-metric {
    border-right: 0;
    padding: 22px;
  }

  .daily-metric-card:nth-child(odd),
  .operative-metric:nth-child(odd) {
    border-right: 1px solid var(--dash-border-soft);
  }

  .operative-metric.is-main {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
    padding-bottom: 24px;
  }

  .identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }

  .identity-item:nth-child(3n) {
    border-right: 0;
  }

  .behavior-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .behavior-item:nth-child(3n) {
    border-right: 0;
  }

  .pi-setup-health-top {
    flex-direction: column;
  }

  .pi-setup-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pi-compact-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  #profiloSection.trader-profile-dashboard .identity-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 0;
  }

  #profiloSection.trader-profile-dashboard .behavior-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 0;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .behavior-item,
  #profiloSection.trader-profile-dashboard .behavior-item:nth-child(3n) {
    border-right: 1px solid var(--dash-border-soft);
  }

  #profiloSection.trader-profile-dashboard .identity-item:last-child,
  #profiloSection.trader-profile-dashboard .behavior-item:last-child {
    border-right: 0;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .behavior-item {
    padding-left: 10px;
    padding-right: 10px;
  }

  #profiloSection.trader-profile-dashboard .identity-label,
  #profiloSection.trader-profile-dashboard .behavior-item span {
    font-size: 16px;
  }

  #profiloSection.trader-profile-dashboard .profile-value {
    font-size: 18px;
  }

  #profiloSection.trader-profile-dashboard .behavior-item strong {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .size-coach-section {
    border-radius: 20px;
    padding: 12px;
  }

  .size-coach-header {
    gap: 8px;
    align-items: flex-start;
  }

  .size-coach-title-wrap {
    column-gap: 8px;
  }

  .size-coach-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 15px;
  }

  .size-coach-header .section-title {
    font-size: 24px;
  }

  .size-coach-header p {
    font-size: 12px;
  }

  .size-coach-header-status {
    gap: 6px;
    margin-left: auto;
  }

  .size-coach-header-info {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .size-coach-status-badge {
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .size-coach-status-badge::before {
    width: 7px;
    height: 7px;
  }

  .daily-dashboard-section,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card,
  .size-coach-section,
  .performance-intelligence-shell,
  .swing-performance-panel,
  .profile-analysis-panel {
    width: min(100% - 20px, 1120px);
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card,
  .performance-intelligence-panel.pi-dashboard-panel {
    border-radius: 20px;
  }

  .size-coach-main-card {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 16px;
    padding: 12px;
  }

  .size-coach-main-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 214, 0, 0.12);
    padding-right: 0;
    padding-bottom: 10px;
  }

  .size-coach-main-label {
    font-size: 12px;
  }

  .size-coach-suggested-lot {
    margin-top: 6px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .size-coach-risk-line {
    font-size: clamp(18px, 6vw, 24px);
  }

  .size-coach-confidence {
    margin-top: 6px;
    font-size: 14px;
  }

  .size-coach-confidence-bar {
    margin-top: 8px;
    height: 8px;
  }

  .size-coach-reason {
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px;
    font-size: 13px;
  }

  .size-coach-kpi-grid {
    gap: 8px;
  }

  .size-coach-kpi-card {
    border-radius: 12px;
    padding: 10px;
  }

  .size-coach-kpi-title {
    font-size: 12px;
  }

  .size-coach-kpi-card strong {
    margin-top: 4px;
    font-size: clamp(20px, 6vw, 26px);
  }

  .size-coach-kpi-track {
    margin-top: 8px;
    height: 7px;
  }

  .size-coach-buckets {
    margin-top: 10px;
    border-radius: 14px;
  }

  .size-coach-buckets-head {
    padding: 10px 12px 8px;
  }

  .size-coach-buckets-head h4 {
    font-size: 18px;
    line-height: 1.2;
  }

  .size-coach-buckets-table {
    font-size: 11px;
  }

  .size-coach-bucket-card {
    padding: 7px 10px;
    gap: 4px;
    grid-template-columns: minmax(0, 1.2fr) repeat(5, minmax(0, 0.8fr));
  }

  .size-coach-bucket-main strong,
  .size-coach-bucket-cell strong {
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.1;
  }

  .size-coach-bucket-main span,
  .size-coach-bucket-cell span {
    font-size: 10px;
    line-height: 1.2;
  }

  .size-coach-bucket-dot {
    width: 8px;
    height: 8px;
    margin-right: 4px;
  }

  .size-coach-alerts {
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px;
  }

  .size-coach-alerts-head h4 {
    font-size: 24px;
  }

  .size-coach-alerts-grid {
    margin-top: 8px;
    gap: 8px;
  }

  .size-coach-alert-card {
    border-radius: 12px;
    padding: 10px;
  }

  .size-coach-alert-card h4 {
    font-size: clamp(16px, 5.2vw, 22px);
  }

  .size-coach-alert-card p {
    margin-top: 6px;
    font-size: 13px;
  }

  .size-coach-alert-tag {
    margin-top: 6px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .size-coach-disclaimer {
    margin-top: 10px;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .size-coach-main-target {
    display: none;
  }

  .size-coach-actions {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .size-coach-action-btn {
    min-height: 40px;
    font-size: 13px;
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .performance-intelligence-panel.pi-dashboard-panel {
    padding: 18px;
  }

  .daily-dashboard-head,
  .profile-dashboard-head,
  .operative-head,
  .pi-dashboard-panel .pi-head,
  .operative-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-dashboard-title h3,
  .profile-dashboard-title h2,
  .operative-title h3,
  .pi-dashboard-panel .pi-head-main h3 {
    font-size: 25px;
  }

  .dashboard-date-pill,
  .profile-edit-btn,
  .operative-range-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  .daily-metrics-panel,
  .operative-metrics-shell,
  .operative-day-grid,
  .pi-tabs,
  .pi-compact-kpi-grid {
    grid-template-columns: 1fr;
  }

  .daily-metric-card,
  .daily-metric-card:nth-child(odd),
  .operative-metric,
  .operative-metric:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
  }

  .daily-metric-card:last-of-type,
  .operative-metric:last-child {
    border-bottom: 0;
  }

  .daily-metric-value {
    font-size: 38px;
  }

  .daily-metric-label,
  .daily-insight-copy p {
    font-size: 18px;
  }

  .daily-insight-row {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .identity-grid,
  .behavior-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-item,
  .identity-item:nth-child(3n),
  .behavior-item,
  .behavior-item:nth-child(3n) {
    border-right: 0;
  }

  .identity-item:nth-child(odd),
  .behavior-item:nth-child(odd) {
    border-right: 1px solid var(--dash-border-soft);
  }

  .discipline-level-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .discipline-ring-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .operative-tabs {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 520px) {
  .size-coach-bucket-card {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "main main main main trades trades"
      "result result result result result result"
      "winrate winrate pfactor pfactor confirmations confirmations";
    padding: 10px 12px;
    gap: 8px;
    align-items: stretch;
  }

  .size-coach-bucket-main,
  .size-coach-bucket-trades,
  .size-coach-bucket-result,
  .size-coach-bucket-winrate,
  .size-coach-bucket-pf,
  .size-coach-bucket-confirmations {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .size-coach-bucket-main {
    grid-area: main;
    justify-content: center;
  }

  .size-coach-bucket-trades {
    grid-area: trades;
    text-align: right;
    align-items: flex-end;
    justify-content: center;
  }

  .size-coach-bucket-result {
    grid-area: result;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .size-coach-bucket-winrate,
  .size-coach-bucket-pf,
  .size-coach-bucket-confirmations {
    padding: 8px 8px 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    align-items: center;
  }

  .size-coach-bucket-winrate {
    grid-area: winrate;
  }

  .size-coach-bucket-pf {
    grid-area: pfactor;
  }

  .size-coach-bucket-confirmations {
    grid-area: confirmations;
  }

  .size-coach-bucket-main strong,
  .size-coach-bucket-cell strong {
    font-size: clamp(12px, 3.5vw, 14px);
  }

  .size-coach-bucket-main span,
  .size-coach-bucket-cell span {
    font-size: 9px;
  }

  .size-coach-bucket-result strong {
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1;
  }

  .daily-dashboard-title,
  .profile-dashboard-title,
  .operative-title {
    width: 100%;
  }

  .dash-icon-box {
    width: 48px;
    height: 48px;
  }

  .daily-metrics-panel,
  .profile-subcard,
  .discipline-level-row,
  .operative-chart-card {
    padding: 16px;
  }

  .identity-grid,
  .behavior-grid {
    grid-template-columns: 1fr;
  }

  .identity-item,
  .identity-item:nth-child(odd),
  .behavior-item,
  .behavior-item:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
    padding: 0 0 18px;
  }

  .identity-item:last-child,
  .behavior-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .operative-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile density pass: keep the premium look without creating very tall stacks. */
@media (max-width: 760px) {
  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card,
  .performance-intelligence-panel.pi-dashboard-panel {
    padding: 14px;
  }

  .daily-dashboard-head,
  .profile-dashboard-head,
  .operative-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .daily-dashboard-title h3,
  .profile-dashboard-title h2,
  .operative-title h3,
  .pi-dashboard-panel .pi-head-main h3 {
    font-size: 21px;
  }

  .dash-icon-box,
  .dash-icon-box--flat {
    width: 40px;
    height: 40px;
  }

  .dash-icon-box svg,
  .profile-edit-btn svg,
  .operative-range-btn svg,
  .dashboard-date-pill svg {
    width: 19px;
    height: 19px;
  }

  .dashboard-date-pill,
  .profile-edit-btn,
  .operative-range-btn {
    width: auto;
    min-height: 36px;
    padding: 0 11px;
    gap: 7px;
    font-size: 12px;
  }

  .profile-edit-btn span,
  .operative-range-btn span:first-of-type {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .daily-metrics-panel {
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 10px;
    gap: 0;
  }

  .daily-metric-card,
  .daily-metric-card:nth-child(odd),
  .daily-metric-card:last-of-type {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon label value"
      "icon badge value";
    align-items: center;
    justify-items: start;
    padding: 9px 10px;
    gap: 3px 10px;
    text-align: left;
    border-bottom: 1px solid var(--dash-border-soft);
    border-right: 0;
  }

  .daily-metric-card:nth-child(odd) {
    border-right: 0;
  }

  .daily-metric-card:nth-child(n + 3) {
    border-bottom: 1px solid var(--dash-border-soft);
  }

  .daily-metric-card:last-of-type {
    border-bottom: 0;
  }

  .daily-metric-icon {
    grid-area: icon;
    width: 34px;
    height: 34px;
  }

  .daily-metric-icon svg {
    width: 17px;
    height: 17px;
  }

  .daily-metric-label {
    grid-area: label;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
  }

  .daily-metric-value {
    grid-area: value;
    justify-self: end;
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  .daily-status-pill {
    grid-area: badge;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 10px;
  }

  .daily-insight-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 12px;
    padding: 12px;
    gap: 10px;
    text-align: left;
    justify-items: stretch;
  }

  .daily-insight-icon {
    width: 44px;
    height: 44px;
  }

  .daily-insight-icon svg {
    width: 22px;
    height: 22px;
  }

  .daily-insight-copy strong {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .daily-insight-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .daily-detail-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 13px;
  }

  .profile-subcard,
  .discipline-level-row {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .subcard-title {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .identity-item,
  .identity-item:nth-child(odd),
  .identity-item:nth-child(3n) {
    min-height: 50px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
    text-align: left;
  }

  .identity-item:nth-child(odd) {
    border-right: 0;
  }

  .identity-item:last-child {
    border-bottom: 0;
  }

  .identity-icon svg {
    width: 19px;
    height: 19px;
  }

  .identity-label {
    font-size: 12px;
  }

  #profiloSection .profile-value {
    max-width: 150px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .value-chip-gold,
  .value-chip-muted {
    min-height: 26px !important;
    max-width: 100%;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  .behavior-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .behavior-item,
  .behavior-item:nth-child(odd),
  .behavior-item:nth-child(3n) {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
    text-align: left;
  }

  .behavior-item:last-child {
    border-bottom: 0;
  }

  .behavior-item span {
    font-size: 11px;
    line-height: 1.2;
  }

  .behavior-item strong {
    font-size: 18px;
  }

  .discipline-level-row {
    flex-direction: row;
    align-items: center;
  }

  .discipline-level-row > div:first-child span {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .discipline-level-row > div:first-child strong {
    font-size: 22px;
  }

  .discipline-ring {
    width: 66px;
    height: 66px;
  }

  .discipline-ring span {
    font-size: 15px;
  }

  .discipline-arrow {
    padding-left: 12px;
    font-size: 30px;
  }

  .operative-head {
    padding: 0 2px 12px;
  }

  .operative-metrics-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .operative-metric,
  .operative-metric:nth-child(odd),
  .operative-metric.is-main {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label value"
      "pill value";
    align-items: center;
    padding: 9px 12px;
    gap: 3px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border-soft);
  }

  .operative-metric:nth-child(even) {
    border-left: 0;
  }

  .operative-metric:last-child {
    border-bottom: 0;
  }

  .operative-metric span {
    grid-area: label;
    font-size: 10px;
  }

  .operative-metric strong,
  .operative-metric.is-main strong {
    grid-area: value;
    justify-self: end;
    font-size: clamp(1.18rem, 5.8vw, 1.55rem);
  }

  .operative-value-row {
    justify-self: end;
    gap: 6px;
  }

  .operative-value-row strong,
  .operative-value-row .round-indicator {
    grid-area: auto;
    justify-self: auto;
  }

  .metric-pill {
    grid-area: pill;
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .round-indicator {
    grid-area: pill;
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .operative-chart-card {
    margin-top: 10px;
    padding: 12px;
  }

  .operative-chart-head {
    gap: 10px;
  }

  .operative-chart-head h4 {
    font-size: 12px;
  }

  .operative-tabs {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
  }

  .operative-tabs button {
    min-height: 28px;
    font-size: 11px;
  }

  .operative-canvas-wrap {
    height: 150px;
    margin-bottom: 10px;
  }

  .operative-day-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .operative-day-card {
    padding: 12px;
    gap: 8px;
  }

  .day-card-kicker {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .operative-day-card strong {
    font-size: 14px;
  }

  .operative-day-card p {
    margin-top: 6px;
    font-size: 12px;
  }

  .day-card-result strong {
    font-size: 20px;
  }

  .day-card-result span {
    min-height: 24px;
    font-size: 11px;
  }

  .operative-risk-note {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 9px;
  }

  .operative-risk-note p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .pi-dashboard-panel .pi-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .pi-dashboard-panel .pi-eyebrow {
    font-size: 10px;
  }

  .pi-dashboard-panel .pi-subtitle {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .pi-data-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .pi-tabs {
    margin-top: 14px;
  }

  .pi-tab {
    min-height: 42px;
    gap: 5px;
    font-size: 11px;
  }

  .pi-tab-panel {
    margin-top: 12px;
  }

  .pi-compact-kpi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pi-compact-kpi {
    min-height: 58px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon label value"
      "icon badge value";
    align-items: center;
    padding: 8px 10px;
    gap: 2px 8px;
  }

  .pi-compact-kpi-icon {
    grid-area: icon;
    font-size: 17px;
  }

  .pi-compact-kpi span:not(.pi-compact-kpi-icon) {
    grid-area: label;
    font-size: 10px;
  }

  .pi-compact-kpi strong {
    grid-area: value;
    justify-self: end;
    font-size: 20px;
  }

  .pi-compact-kpi small {
    grid-area: badge;
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .pi-compact-note {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .pi-dashboard-panel .pi-board-card,
  .pi-summary-card {
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .daily-dashboard-title h3,
  .profile-dashboard-title h2,
  .operative-title h3,
  .pi-dashboard-panel .pi-head-main h3 {
    font-size: 18px;
  }

  .dashboard-date-pill {
    padding: 0 8px;
  }

  .dashboard-date-pill span:not(.dashboard-date-arrow) {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-edit-btn span {
    display: none;
  }

  .daily-metric-card {
    min-height: 66px;
  }

  .daily-metric-value {
    font-size: clamp(1.1rem, 5.8vw, 1.45rem);
  }

  .behavior-grid {
    grid-template-columns: 1fr;
  }

  .behavior-item:nth-child(3n) {
    border-right: 0;
  }

  .behavior-item:nth-child(even),
  .behavior-item:last-child {
    border-right: 0;
  }

  .pi-data-pill {
    display: none;
  }
}

/* Final mobile dashboard overrides: keep the four dashboard sections compact and side-by-side like the references. */
@media (max-width: 768px) {
  #dailyPerformanceSection,
  #profiloSection.trader-profile-dashboard,
  #operativePerformancePanel,
  #performanceIntelligenceSection {
    width: min(100% - 18px, 1120px);
  }

  #dailyPerformanceSection .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  #operativePerformancePanel.operative-performance-card,
  #performanceIntelligenceSection .pi-dashboard-panel {
    padding: 14px;
    border-radius: 22px;
  }

  #dailyPerformanceSection .daily-dashboard-head,
  #profiloSection.trader-profile-dashboard .profile-dashboard-head,
  #operativePerformancePanel .operative-head,
  #performanceIntelligenceSection .pi-dashboard-panel .pi-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #dailyPerformanceSection .daily-dashboard-title,
  #profiloSection.trader-profile-dashboard .profile-dashboard-title,
  #operativePerformancePanel .operative-title {
    width: auto;
    gap: 8px;
  }

  #dailyPerformanceSection .dash-icon-box,
  #profiloSection.trader-profile-dashboard .dash-icon-box,
  #operativePerformancePanel .dash-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  #dailyPerformanceSection .dash-icon-box svg,
  #profiloSection.trader-profile-dashboard .dash-icon-box svg,
  #operativePerformancePanel .dash-icon-box svg {
    width: 21px;
    height: 21px;
  }

  #dailyPerformanceSection .daily-dashboard-title h3,
  #profiloSection.trader-profile-dashboard .profile-dashboard-title h2,
  #operativePerformancePanel .operative-title h3,
  #performanceIntelligenceSection .pi-dashboard-panel .pi-head-main h3 {
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
    line-height: 1.08;
  }

  #dailyPerformanceSection .dashboard-date-pill,
  #profiloSection.trader-profile-dashboard .profile-edit-btn,
  #operativePerformancePanel .operative-range-btn {
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 11px;
    gap: 7px;
    font-size: 12px;
  }

  #dailyPerformanceSection .dashboard-date-pill svg,
  #profiloSection.trader-profile-dashboard .profile-edit-btn svg,
  #operativePerformancePanel .operative-range-btn svg {
    width: 18px;
    height: 18px;
  }

#dailyPerformanceSection .daily-metrics-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    padding: 18px 8px;
    gap: 0;
  }

  #dailyPerformanceSection .delta {
    display: none;
  }

  #dailyPerformanceSection .daily-metric-card,
  #dailyPerformanceSection .daily-metric-card:nth-child(odd),
  #dailyPerformanceSection .daily-metric-card:nth-child(n + 3),
  #dailyPerformanceSection .daily-metric-card:last-of-type {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 7px;
    border-right: 1px solid var(--dash-border-soft);
    border-bottom: 0;
    text-align: center;
  }

  #dailyPerformanceSection .daily-metric-card:last-of-type {
    border-right: 0;
  }

  #dailyPerformanceSection .daily-metric-icon {
    width: 48px;
    height: 48px;
  }

  #dailyPerformanceSection .daily-metric-icon svg {
    width: 22px;
    height: 22px;
  }

  #dailyPerformanceSection .daily-metric-label {
    font-size: clamp(0.58rem, 2.6vw, 0.82rem);
    line-height: 1.15;
    min-height: 27px;
  }

  #dailyPerformanceSection .daily-metric-value {
    font-size: clamp(1.25rem, 5.8vw, 2rem);
    line-height: 1;
    justify-self: auto;
  }

  #dailyPerformanceSection .daily-status-pill {
    min-height: 25px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 9px;
    font-size: clamp(0.58rem, 2.5vw, 0.78rem);
    white-space: nowrap;
  }

  #dailyPerformanceSection .daily-insight-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 14px;
    padding: 12px;
    gap: 10px;
    text-align: left;
    justify-items: stretch;
  }

  #dailyPerformanceSection .daily-insight-icon {
    width: 46px;
    height: 46px;
  }

  #dailyPerformanceSection .daily-insight-icon svg {
    width: 23px;
    height: 23px;
  }

  #dailyPerformanceSection .daily-insight-copy strong {
    margin-bottom: 3px;
    font-size: 14px;
  }

  #dailyPerformanceSection .daily-insight-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  #dailyPerformanceSection .daily-detail-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 13px;
  }

  #profiloSection.trader-profile-dashboard .profile-subcard,
  #profiloSection.trader-profile-dashboard .discipline-level-row {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  #profiloSection.trader-profile-dashboard .identity-subcard {
    padding: 12px;
  }

  #profiloSection.trader-profile-dashboard .subcard-title {
    margin-bottom: 14px;
    font-size: 15px;
  }

  #profiloSection.trader-profile-dashboard .identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .identity-item:last-child {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 214, 0, 0.14);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
      rgba(7, 10, 16, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 18px rgba(0, 0, 0, 0.18);
    text-align: center;
  }

  #profiloSection.trader-profile-dashboard .identity-item:nth-child(2n),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(n + 5),
  #profiloSection.trader-profile-dashboard .identity-item:last-child {
    border-right: 1px solid rgba(255, 214, 0, 0.14);
    border-bottom: 1px solid rgba(255, 214, 0, 0.14);
  }

  #profiloSection.trader-profile-dashboard .identity-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255, 220, 118, 0.92);
    background: rgba(255, 214, 0, 0.08);
    border: 1px solid rgba(255, 214, 0, 0.14);
  }

  #profiloSection.trader-profile-dashboard .identity-icon svg {
    width: 15px;
    height: 15px;
  }

  #profiloSection.trader-profile-dashboard .identity-label {
    font-size: clamp(0.56rem, 2vw, 0.68rem);
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(216, 219, 226, 0.72);
}

#profiloSection.trader-profile-dashboard .identity-item .profile-value {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.76rem, 2.45vw, 0.94rem);
  line-height: 1.14;
    text-align: center;
    white-space: normal;
  overflow-wrap: anywhere;
}

#profiloSection.trader-profile-dashboard #capitalVal.profile-value--stacked {
  gap: 2px;
}

#profiloSection.trader-profile-dashboard #capitalVal.profile-value--stacked .profile-value-major {
  max-width: 100%;
  font-size: clamp(0.82rem, 2.8vw, 1rem);
}

#profiloSection.trader-profile-dashboard #capitalVal.profile-value--stacked .profile-value-currency {
  font-size: clamp(0.54rem, 1.8vw, 0.68rem);
}

#profiloSection.trader-profile-dashboard .identity-item #styleVal {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#profiloSection.trader-profile-dashboard .identity-item .value-chip-gold,
#profiloSection.trader-profile-dashboard .identity-item .value-chip-muted {
  min-height: 0;
  max-width: 100%;
  padding: 4px 8px !important;
  font-size: clamp(0.56rem, 2.1vw, 0.68rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: normal !important;
  text-align: center;
  border-radius: 12px !important;
}

  #profiloSection.trader-profile-dashboard .behavior-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 0;
  }

  #profiloSection.trader-profile-dashboard .behavior-item,
  #profiloSection.trader-profile-dashboard .behavior-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .behavior-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .behavior-item:last-child {
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 6px;
    border-right: 1px solid var(--dash-border-soft);
    border-bottom: 0;
    text-align: center;
  }

  #profiloSection.trader-profile-dashboard .behavior-item:last-child {
    border-right: 0;
  }

  #profiloSection.trader-profile-dashboard .behavior-item span {
    font-size: clamp(0.62rem, 2.7vw, 0.82rem);
    line-height: 1.22;
  }

  #profiloSection.trader-profile-dashboard .behavior-item strong {
    font-size: clamp(1rem, 4.8vw, 1.55rem);
    line-height: 1;
  }

  #profiloSection.trader-profile-dashboard .discipline-level-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
  }

  #profiloSection.trader-profile-dashboard .discipline-level-row > div:first-child span {
    margin-bottom: 6px;
    font-size: 14px;
  }

  #profiloSection.trader-profile-dashboard .discipline-level-row > div:first-child strong {
    font-size: 24px;
  }

  #profiloSection.trader-profile-dashboard .discipline-ring-wrap {
    width: auto;
    flex: 0 0 auto;
    gap: 14px;
  }

  #profiloSection.trader-profile-dashboard .discipline-ring {
    width: 68px;
    height: 68px;
  }

  #profiloSection.trader-profile-dashboard .discipline-ring span {
    font-size: 15px;
  }

  #profiloSection.trader-profile-dashboard .discipline-arrow {
    padding-left: 12px;
    font-size: 30px;
  }

  #operativePerformancePanel .operative-metrics-shell {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    padding: 16px 0;
    gap: 0;
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border-right: 1px solid var(--dash-border-soft);
    border-bottom: 0;
    border-left: 0;
  }

  #operativePerformancePanel .operative-metric:last-child {
    border-right: 0;
  }

  #operativePerformancePanel .operative-metric span {
    font-size: clamp(0.56rem, 2.2vw, 0.72rem);
    line-height: 1.18;
  }

  #operativePerformancePanel .operative-metric strong,
  #operativePerformancePanel .operative-metric.is-main strong {
    justify-self: auto;
    font-size: clamp(0.98rem, 4.2vw, 1.8rem);
    line-height: 1;
  }

  #operativePerformancePanel .operative-value-row {
    gap: 6px;
  }

  #operativePerformancePanel .operative-value-row strong,
  #operativePerformancePanel .operative-value-row .round-indicator {
    width: auto;
  }

  #operativePerformancePanel .operative-metric.is-main strong {
    font-size: clamp(1.25rem, 5.4vw, 2.25rem);
  }

  #operativePerformancePanel .metric-pill {
    min-height: 23px;
    padding: 0 8px;
    font-size: clamp(0.55rem, 2.2vw, 0.72rem);
    white-space: nowrap;
  }

  #operativePerformancePanel .round-indicator {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  #operativePerformancePanel .operative-chart-card {
    margin-top: 10px;
    padding: 12px;
  }

  #operativePerformancePanel .operative-chart-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  #operativePerformancePanel .operative-chart-head h4 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
  }

  #operativePerformancePanel .operative-tabs {
    width: min(100%, 300px);
    flex: 0 0 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #operativePerformancePanel .operative-tabs button {
    min-height: 28px;
    padding: 0 6px;
    font-size: 10px;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 230px;
    margin: 8px 0 12px;
  }

  #operativePerformancePanel .operative-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #operativePerformancePanel .operative-day-card {
    padding: 12px;
    gap: 8px;
  }

  #operativePerformancePanel .day-card-kicker {
    margin-bottom: 7px;
    font-size: 10px;
  }

  #operativePerformancePanel .operative-day-card strong {
    font-size: 13px;
  }

  #operativePerformancePanel .operative-day-card p {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
  }

  #operativePerformancePanel .day-card-result strong {
    font-size: 18px;
  }

  #operativePerformancePanel .day-card-result span {
    min-height: 22px;
    font-size: 10px;
  }

  #operativePerformancePanel .operative-risk-note {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 9px;
  }

  #operativePerformancePanel .operative-risk-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-head {
    flex-direction: row;
    align-items: flex-start;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-eyebrow {
    font-size: 10px;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-subtitle {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
  }

  #performanceIntelligenceSection .pi-data-pill {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 11px;
  }

  #performanceIntelligenceSection .pi-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
  }

  #performanceIntelligenceSection .pi-tab {
    min-height: 42px;
    gap: 6px;
    font-size: clamp(0.62rem, 2.5vw, 0.78rem);
  }

  #performanceIntelligenceSection .pi-tab-panel {
    margin-top: 12px;
  }

  #performanceIntelligenceSection .pi-compact-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  #performanceIntelligenceSection .pi-compact-kpi {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    gap: 7px;
  }

  #performanceIntelligenceSection .pi-compact-kpi-icon {
    font-size: 19px;
  }

  #performanceIntelligenceSection .pi-compact-kpi span:not(.pi-compact-kpi-icon) {
    font-size: clamp(0.55rem, 2.1vw, 0.7rem);
    line-height: 1.15;
  }

  #performanceIntelligenceSection .pi-compact-kpi strong {
    font-size: clamp(1.05rem, 4.6vw, 1.65rem);
    line-height: 1;
  }

  #performanceIntelligenceSection .pi-compact-kpi small {
    min-height: 23px;
    max-width: 100%;
    padding: 0 7px;
    font-size: clamp(0.52rem, 2.1vw, 0.68rem);
    white-space: nowrap;
  }

  #performanceIntelligenceSection .pi-compact-note {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 9px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #dailyPerformanceSection .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  #operativePerformancePanel.operative-performance-card,
  #performanceIntelligenceSection .pi-dashboard-panel {
    padding: 12px;
  }

  #dailyPerformanceSection .daily-dashboard-title h3,
  #profiloSection.trader-profile-dashboard .profile-dashboard-title h2,
  #operativePerformancePanel .operative-title h3,
  #performanceIntelligenceSection .pi-dashboard-panel .pi-head-main h3 {
    font-size: clamp(0.98rem, 4.4vw, 1.2rem);
  }

  #dailyPerformanceSection .dash-icon-box,
  #profiloSection.trader-profile-dashboard .dash-icon-box,
  #operativePerformancePanel .dash-icon-box {
    width: 36px;
    height: 36px;
  }

  #dailyPerformanceSection .dashboard-date-pill,
  #profiloSection.trader-profile-dashboard .profile-edit-btn,
  #operativePerformancePanel .operative-range-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }

  #dailyPerformanceSection .daily-metrics-panel {
    padding: 14px 6px;
  }

  #dailyPerformanceSection .daily-metric-card,
  #dailyPerformanceSection .daily-metric-card:nth-child(odd),
  #dailyPerformanceSection .daily-metric-card:nth-child(n + 3),
  #dailyPerformanceSection .daily-metric-card:last-of-type {
    min-height: 132px;
    padding: 0 4px;
    gap: 7px;
  }

  #dailyPerformanceSection .daily-metric-icon {
    width: 42px;
    height: 42px;
  }

  #dailyPerformanceSection .daily-metric-value {
    font-size: clamp(1.05rem, 5vw, 1.55rem);
  }

  #dailyPerformanceSection .daily-status-pill {
    padding: 0 6px;
    font-size: 9px;
  }

  #profiloSection.trader-profile-dashboard .profile-edit-btn span {
    max-width: 84px;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .identity-item:last-child {
    min-height: 96px;
    padding: 0 3px;
    gap: 6px;
  }

  #profiloSection.trader-profile-dashboard .behavior-item,
  #profiloSection.trader-profile-dashboard .behavior-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .behavior-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .behavior-item:last-child {
    min-height: 78px;
    padding: 0 4px;
    gap: 8px;
  }

  #operativePerformancePanel .operative-metrics-shell {
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
    padding: 12px 0;
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-height: 88px;
    padding: 0 6px;
    gap: 7px;
  }

  #operativePerformancePanel .operative-chart-head {
    flex-direction: column;
    align-items: stretch;
  }

  #operativePerformancePanel .operative-tabs {
    width: 100%;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 220px;
  }

  #performanceIntelligenceSection .pi-data-pill {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #performanceIntelligenceSection .pi-compact-kpi {
    min-height: 122px;
    padding: 8px;
  }
}

.next-trade-plan-section {
  width: min(1120px, calc(100% - 16px));
  margin: 10px auto 10px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 0, 0.22);
  background: linear-gradient(165deg, #07090d 0%, #0a0d12 62%, #090b10 100%);
  box-shadow: 0 0 0 1px rgba(255, 214, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.next-trade-plan-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.next-trade-plan-title-wrap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.next-trade-plan-icon { width: 30px; height: 30px; color: #f6ca42; flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(255, 208, 0, 0.22)); }
.next-trade-plan-icon svg,
.next-trade-plan-item-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.next-trade-plan-title { margin: 0; color: #ffd000; font-size: clamp(1.08rem, 4.8vw, 1.85rem); line-height: 1.08; font-weight: 800; letter-spacing: 0.01em; }
.next-trade-plan-subtitle { margin: 4px 0 0; color: #9ca3af; font-size: clamp(0.74rem, 2.5vw, 0.98rem); line-height: 1.28; }

.next-trade-plan-badge { display: inline-flex; align-items: center; align-self: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.next-trade-plan-badge i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.next-trade-plan-badge.is-green { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.next-trade-plan-badge.is-yellow { background: rgba(250, 204, 21, 0.1); color: #facc15; border-color: rgba(250, 204, 21, 0.4); }
.next-trade-plan-badge.is-orange { background: rgba(251, 146, 60, 0.1); color: #fb923c; border-color: rgba(251, 146, 60, 0.45); }
.next-trade-plan-badge.is-red { background: rgba(239, 68, 68, 0.11); color: #f87171; border-color: rgba(248, 113, 113, 0.5); }

.next-trade-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.next-trade-plan-item { min-width: 0; display: grid; grid-template-columns: 28px 1fr; gap: 2px 9px; align-items: center; padding: 9px 10px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.022); }
.next-trade-plan-item-highlight { border-color: rgba(255, 214, 0, 0.42); background: linear-gradient(165deg, rgba(255, 214, 0, 0.035), rgba(255, 255, 255, 0.02)); }
.next-trade-plan-item-icon { width: 28px; height: 28px; grid-row: span 2; color: #f4c84b; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.next-trade-plan-item-label { color: #a3aab6; font-size: 0.76rem; line-height: 1.2; }
.next-trade-plan-item-value { margin: 1px 0 0; color: #f5f5f5; font-size: clamp(0.96rem, 3.3vw, 1.08rem); line-height: 1.22; font-weight: 760; word-break: break-word; }
.next-trade-plan-item-highlight .next-trade-plan-item-value { color: #ffd000; }

.next-trade-plan-stop { margin-top: 8px; display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; padding: 10px 11px; border-radius: 16px; border: 1px solid rgba(255, 190, 51, 0.55); background: linear-gradient(94deg, rgba(255, 184, 43, 0.09), rgba(255, 170, 0, 0.03)); }
.next-trade-plan-stop .next-trade-plan-item-icon { width: 30px; height: 30px; }
.next-trade-plan-stop .next-trade-plan-item-value { color: #ffd000; font-size: clamp(1rem, 3.4vw, 1.2rem); }
.next-trade-plan-note { margin: 9px 1px 0; color: #9ca3af; font-size: 0.81rem; line-height: 1.38; display: grid; grid-template-columns: 20px 1fr; gap: 7px; align-items: start; }
.next-trade-plan-note span:last-child { min-width: 0; overflow-wrap: normal; word-break: normal; }

@media (min-width: 761px) {
  .hybrid-profile-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hybrid-profile-metric {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hybrid-profile-metric:nth-child(2n) {
    border-right: 0;
  }

  .hybrid-profile-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  #traderProfileSection.trader-profile-section {
    margin: 28px auto;
    padding: 22px;
    max-width: 960px;
    border-radius: 14px;
  }

  #traderProfileSection.trader-profile-section h2 {
    font-size: 21px;
  }

  #traderProfileSection .profile-subtitle {
    margin-bottom: 18px;
    font-size: 13px;
  }

  #traderProfileSection .profile-grid {
    gap: 14px;
  }

  #traderProfileSection .profile-card {
    padding: 13px;
  }

  #traderProfileSection .profile-label,
  #traderProfileSection .profile-card input,
  #traderProfileSection .profile-card select,
  #traderProfileSection .profile-card textarea,
  #traderProfileSection .profile-info {
    font-size: 12px;
  }

  #traderProfileSection .profile-card textarea {
    min-height: 68px;
  }

  #traderProfileSection .save-profile-btn {
    margin-top: 18px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card,
  .performance-intelligence-panel.pi-dashboard-panel,
  .size-coach-section,
  .swing-performance-section,
  .next-trade-plan-section {
    border-radius: 22px;
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .performance-intelligence-panel.pi-dashboard-panel {
    padding: 22px;
  }

  .operative-performance-card,
  .size-coach-section,
  .swing-performance-section,
  .next-trade-plan-section {
    padding: 18px;
  }

  .dash-icon-box {
    width: 48px;
    height: 48px;
  }

  .dash-icon-box--flat {
    width: 44px;
    height: 44px;
  }

  .dash-icon-box svg,
  .dashboard-date-pill svg,
  .profile-edit-btn svg,
  .operative-range-btn svg,
  .daily-metric-icon svg,
  .subcard-title svg,
  .identity-icon svg {
    width: 22px;
    height: 22px;
  }

  .daily-dashboard-title h3,
  .profile-dashboard-title h2,
  .operative-title h3 {
    font-size: 24px;
  }

  .dashboard-date-pill,
  .operative-range-btn,
  .profile-edit-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .daily-metrics-panel {
    margin-top: 24px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .daily-metric-card {
    gap: 10px;
    padding: 0 16px;
  }

  .daily-metric-icon {
    width: 58px;
    height: 58px;
  }

  .daily-metric-label {
    font-size: 16px;
  }

  .daily-metric-value {
    font-size: 34px;
  }

  .daily-status-pill,
  .metric-pill,
  .round-indicator {
    min-height: 30px;
    padding: 0 12px;
    font-size: 14px;
  }

  .daily-insight-row {
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
  }

  .daily-insight-icon {
    width: 64px;
    height: 64px;
  }

  .daily-insight-icon svg {
    width: 30px;
    height: 30px;
  }

  .daily-insight-copy strong {
    font-size: 18px;
  }

  .daily-insight-copy p,
  .daily-detail-btn {
    font-size: 15px;
  }

  .daily-detail-btn {
    min-height: 46px;
    padding: 0 18px;
  }

  .profile-subcard,
  .discipline-level-row {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
  }

  .subcard-title {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .identity-item {
    gap: 8px;
    padding: 0 10px;
  }

  .identity-label,
  .behavior-item span {
    font-size: 15px;
  }

  #profiloSection .profile-value {
    font-size: 17px;
  }

  .value-chip-gold,
  .value-chip-muted {
    min-height: 34px !important;
    padding: 0 12px !important;
  }

  .behavior-item {
    gap: 12px;
    padding: 0 12px;
  }

  .behavior-item strong {
    font-size: 24px;
  }

  .discipline-level-row {
    padding: 18px 22px;
  }

  .discipline-level-row > div:first-child span {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .discipline-level-row > div:first-child strong {
    font-size: 28px;
  }

  .discipline-ring {
    width: 82px;
    height: 82px;
  }

  .discipline-ring span {
    font-size: 18px;
  }

  .discipline-arrow {
    padding-left: 18px;
    font-size: 36px;
  }

  .operative-head {
    padding: 0 6px 14px;
  }

  .operative-metrics-shell {
    padding: 18px 0;
    border-radius: 16px;
  }

  .operative-metric {
    gap: 9px;
    padding: 0 18px;
  }

  .operative-metric strong {
    font-size: 26px;
  }

  .operative-metric.is-main strong {
    font-size: 40px;
  }

  .operative-chart-card {
    padding: 16px 18px 18px;
    border-radius: 16px;
  }

  .operative-chart-head h4,
  .operative-tabs button,
  .day-card-kicker,
  .day-card-result span {
    font-size: 12px;
  }

  .operative-canvas-wrap {
    height: 190px;
  }

  .operative-day-grid {
    gap: 14px;
  }

  .operative-day-card {
    padding: 18px;
  }

  .operative-day-card strong {
    font-size: 16px;
  }

  .operative-day-card p {
    margin-top: 8px;
    font-size: 13px;
  }

  .day-card-result strong {
    font-size: 24px;
  }

  .operative-risk-note {
    margin-top: 14px;
    padding: 14px 16px;
  }

  .operative-risk-note span {
    font-size: 18px;
  }

  .operative-risk-note p {
    font-size: 14px;
  }

  .pi-dashboard-panel .pi-head-main h3 {
    font-size: 24px;
  }

  .pi-dashboard-panel .pi-subtitle {
    margin-top: 10px;
    font-size: 14px;
  }

  .pi-data-pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .pi-tabs {
    margin-top: 18px;
    border-radius: 14px;
  }

  .pi-tab {
    min-height: 50px;
    font-size: 13px;
  }

  .pi-tab-panel {
    margin-top: 14px;
  }

  .pi-setup-health-card {
    padding: 14px;
    border-radius: 14px;
  }

  .pi-setup-health-top h4 {
    font-size: 19px;
  }

  .pi-setup-health-top p:not(.pi-setup-health-eyebrow),
  .pi-setup-health-rule p {
    font-size: 13px;
  }

  .pi-setup-health-grid {
    gap: 8px;
  }

  .pi-setup-health-metric {
    padding: 10px;
  }

  .pi-compact-kpi-grid,
  .pi-compact-board-grid {
    gap: 10px;
  }

  .pi-compact-kpi {
    min-height: 132px;
    padding: 14px;
    border-radius: 12px;
  }

  .pi-compact-kpi-icon {
    font-size: 22px;
  }

  .pi-compact-kpi span:not(.pi-compact-kpi-icon) {
    font-size: 11px;
  }

  .pi-compact-kpi strong {
    font-size: 26px;
  }

  .pi-compact-kpi small {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pi-compact-note {
    gap: 10px;
    margin-top: 10px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .pi-compact-note span {
    font-size: 18px;
  }

  .pi-dashboard-panel .pi-board-card {
    padding: 14px;
  }

  .pi-dashboard-panel .pi-board-head h4 {
    font-size: 15px;
  }

  .swing-performance-subtitle,
  .swing-ratio-insight,
  .swing-profile-insight-content p {
    font-size: 14px;
  }

  .swing-kpi-grid {
    gap: 8px;
  }

  .swing-kpi-card {
    min-height: 68px;
    padding: 9px 10px;
    gap: 8px;
  }

  .swing-kpi-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .swing-kpi-label {
    font-size: 11px;
  }

  .swing-kpi-value {
    font-size: 22px;
  }

  .swing-ratio-card h4,
  .swing-profile-insight h4 {
    font-size: 24px;
  }

  .swing-ratio-summary {
    font-size: 22px;
  }

  .size-coach-header .section-title,
  .next-trade-plan-title {
    font-size: 24px;
  }

  .size-coach-header p,
  .size-coach-reason,
  .size-coach-alert-card p,
  .size-coach-disclaimer,
  .next-trade-plan-subtitle,
  .next-trade-plan-note {
    font-size: 13px;
  }

  .size-coach-main-card {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .size-coach-suggested-lot {
    font-size: 52px;
  }

  .size-coach-risk-line {
    font-size: 18px;
  }

  .size-coach-confidence {
    font-size: 15px;
  }

  .size-coach-main-target {
    width: 78px;
    height: 78px;
    font-size: 30px;
  }

  .size-coach-kpi-grid {
    gap: 8px;
  }

  .size-coach-kpi-card {
    padding: 10px;
    border-radius: 14px;
  }

  .size-coach-kpi-card strong,
  .size-coach-buckets-head h4,
  .size-coach-alerts-head h4 {
    font-size: 22px;
  }

  .size-coach-bucket-card {
    padding: 8px 12px;
  }

  .size-coach-bucket-main strong,
  .size-coach-bucket-cell strong {
    font-size: 16px;
  }

  .size-coach-bucket-main span,
  .size-coach-bucket-cell span,
  .size-coach-kpi-title,
  .size-coach-alert-tag,
  .size-coach-action-btn,
  .next-trade-plan-item-label {
    font-size: 11px;
  }

  .size-coach-alerts,
  .size-coach-buckets {
    border-radius: 16px;
  }

  .size-coach-alert-card {
    padding: 12px;
    border-radius: 14px;
  }

  .size-coach-alert-card h4 {
    font-size: 18px;
  }

  .size-coach-actions {
    gap: 8px;
  }

  .size-coach-action-btn {
    min-height: 40px;
  }

  .next-trade-plan-header {
    margin-bottom: 8px;
  }

  .next-trade-plan-badge {
    font-size: 11px;
  }

  .next-trade-plan-grid {
    gap: 8px;
  }

  .next-trade-plan-item {
    min-height: 74px;
    padding: 8px 9px;
    border-radius: 13px;
  }

  .next-trade-plan-item-value,
  .next-trade-plan-stop .next-trade-plan-item-value {
    font-size: 15px;
  }

  .next-trade-plan-stop {
    padding: 9px 10px;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .next-trade-plan-section { padding: 11px; border-radius: 22px; }
  .next-trade-plan-header { align-items: flex-start; }
  .next-trade-plan-badge { font-size: 0.72rem; padding: 5px 9px; }
  .next-trade-plan-grid { gap: 7px; }
  .next-trade-plan-item { padding: 8px 9px; border-radius: 14px; }
  .next-trade-plan-item-value { font-size: clamp(0.9rem, 3.35vw, 1.04rem); }
}
@media (min-width: 900px) {
  .next-trade-plan-section { width: min(1120px, calc(100% - 24px)); padding: 14px; }
  .next-trade-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .next-trade-plan-item { min-height: 84px; }
  .next-trade-plan-stop { grid-column: 1 / -1; }
}

#performanceIntelligenceSection .performance-pulse-card,
#performanceIntelligenceSection .session-heatmap-card,
#performanceIntelligenceSection .trajectory-overview-card {
  margin-top: 14px;
  background: linear-gradient(165deg, #08090d, #0b0d10);
  border: 1px solid rgba(255, 214, 0, 0.14);
  border-radius: 24px;
  padding: clamp(12px, 2.4vw, 20px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

#performanceIntelligenceSection .daily-edge-card {
  margin-top: 14px;
  background: linear-gradient(165deg, #090b10, #0d1117);
  border: 1px solid rgba(255, 214, 0, 0.14);
  border-radius: 24px;
  padding: clamp(12px, 2.4vw, 20px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

#performanceIntelligenceSection .daily-edge-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

#performanceIntelligenceSection .daily-edge-header h3 {
  margin: 2px 0 0;
  color: #f5f5f5;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
}

#performanceIntelligenceSection .daily-edge-header p {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  max-width: 62ch;
}

#performanceIntelligenceSection .daily-edge-eyebrow {
  margin: 0;
  color: #ffd86f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

#performanceIntelligenceSection .daily-edge-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#performanceIntelligenceSection .daily-edge-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 208, 0, 0.24);
  background: rgba(255, 208, 0, 0.08);
  color: #ffe091;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

#performanceIntelligenceSection .daily-edge-badge.is-soft {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d8df;
}

#performanceIntelligenceSection .daily-edge-kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 14px;
}

#performanceIntelligenceSection .daily-edge-kpi {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

#performanceIntelligenceSection .daily-edge-kpi.is-positive {
  border-color: rgba(47, 216, 121, 0.28);
}

#performanceIntelligenceSection .daily-edge-kpi.is-warning {
  border-color: rgba(255, 208, 0, 0.28);
}

#performanceIntelligenceSection .daily-edge-kpi.is-negative {
  border-color: rgba(255, 79, 94, 0.3);
}

#performanceIntelligenceSection .daily-edge-kpi-label {
  display: block;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
}

#performanceIntelligenceSection .daily-edge-kpi-value {
  display: block;
  margin-top: 8px;
  color: #f5f5f5;
  font-size: clamp(1.05rem, 2.8vw, 1.7rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

#performanceIntelligenceSection .daily-edge-kpi.is-positive .daily-edge-kpi-value {
  color: #53df8f;
}

#performanceIntelligenceSection .daily-edge-kpi.is-warning .daily-edge-kpi-value {
  color: #ffd86f;
}

#performanceIntelligenceSection .daily-edge-kpi.is-negative .daily-edge-kpi-value {
  color: #ff7a86;
}

#performanceIntelligenceSection .daily-edge-kpi-meta {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#performanceIntelligenceSection .daily-edge-buckets {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

#performanceIntelligenceSection .daily-edge-buckets-head h4 {
  margin: 0;
  color: #f5f5f5;
  font-size: 0.98rem;
}

#performanceIntelligenceSection .daily-edge-buckets-head p {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 0.82rem;
}

#performanceIntelligenceSection .daily-edge-bucket-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

#performanceIntelligenceSection .daily-edge-bucket {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.72);
  padding: 10px 11px;
}

#performanceIntelligenceSection .daily-edge-bucket.is-positive {
  border-color: rgba(47, 216, 121, 0.22);
}

#performanceIntelligenceSection .daily-edge-bucket.is-warning {
  border-color: rgba(255, 208, 0, 0.22);
}

#performanceIntelligenceSection .daily-edge-bucket.is-negative {
  border-color: rgba(255, 79, 94, 0.24);
}

#performanceIntelligenceSection .daily-edge-bucket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#performanceIntelligenceSection .daily-edge-bucket-top strong {
  color: #f5f5f5;
  font-size: 0.9rem;
}

#performanceIntelligenceSection .daily-edge-bucket-top span {
  color: #c8ced8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#performanceIntelligenceSection .daily-edge-bucket-bar {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

#performanceIntelligenceSection .daily-edge-bucket-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ee086, #ffd86f, #ff6c7a);
}

#performanceIntelligenceSection .daily-edge-bucket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 0.78rem;
}

#performanceIntelligenceSection .daily-edge-disclaimer {
  margin: 12px 0 0;
  color: #8f98a8;
  font-size: 0.78rem;
  line-height: 1.5;
}

#performanceIntelligenceSection .daily-edge-placeholder {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

#performanceIntelligenceSection .daily-edge-placeholder strong {
  color: #f5f5f5;
  display: block;
  font-size: 0.95rem;
}

#performanceIntelligenceSection .daily-edge-placeholder p,
#performanceIntelligenceSection .daily-edge-placeholder span {
  display: block;
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 0.82rem;
  line-height: 1.5;
}

#performanceIntelligenceSection .performance-pulse-header,
#performanceIntelligenceSection .session-heatmap-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
#performanceIntelligenceSection .trajectory-overview-actions,
#performanceIntelligenceSection .performance-pulse-actions,
#performanceIntelligenceSection .pi-period-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#performanceIntelligenceSection .trajectory-overview-actions,
#performanceIntelligenceSection .performance-pulse-actions {
  justify-content: flex-end;
}
#performanceIntelligenceSection .performance-intelligence-expand {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  flex: 0 0 auto;
}
#performanceIntelligenceSection .performance-pulse-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
#performanceIntelligenceSection .section-icon-chip {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,208,0,.23);
  background: radial-gradient(circle at 35% 25%, rgba(255,208,0,.2), rgba(255,208,0,.05));
  color: #ffd000; font-size: 1.2rem; flex: 0 0 auto;
}
#performanceIntelligenceSection .section-icon-chip.is-heatmap { color: #ffe45e; }

#performanceIntelligenceSection .performance-pulse-header h3,
#performanceIntelligenceSection .session-heatmap-header h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.8rem); color: #f5f5f5; }
#performanceIntelligenceSection .performance-pulse-header p,
#performanceIntelligenceSection .session-heatmap-header p { margin: 2px 0 0; color: #9ca3af; font-size: clamp(0.78rem, 1.6vw, 0.95rem); }

#performanceIntelligenceSection .pi-period-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e131b;
  border-radius: 999px;
  padding: 9px 12px;
  color: #f4f4f5;
  font-size: 0.82rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#performanceIntelligenceSection .performance-pulse-chart { margin-top: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.025); padding: 12px; position: relative; overflow: hidden; }
#performanceIntelligenceSection .performance-pulse-chart svg { width: 100%; height: auto; max-height: 280px; display: block; }
#performanceIntelligenceSection .performance-pulse-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; font-size: 0.84rem; color: #c9ced8; }
#performanceIntelligenceSection .performance-pulse-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
#performanceIntelligenceSection .performance-pulse-legend .is-positive { background: #2fd879; }
#performanceIntelligenceSection .performance-pulse-legend .is-neutral { background: #ffd000; }
#performanceIntelligenceSection .performance-pulse-legend .is-negative { background: #ff4f5e; }
#performanceIntelligenceSection .pulse-current-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-30%); border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: .88rem; }
#performanceIntelligenceSection .pulse-current-badge.is-positive { color: #0f2919; background: #47d982; }
#performanceIntelligenceSection .pulse-current-badge.is-negative { color: #fff; background: #f14d59; }
#performanceIntelligenceSection .pulse-current-badge.is-warning { color: #1f1f10; background: #ffd000; }
#performanceIntelligenceSection .pulse-chart-shell { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: stretch; }
#performanceIntelligenceSection .pulse-y-axis { display: grid; grid-template-rows: repeat(7, 1fr); color: #7c879a; font-size: .74rem; line-height: 1; padding: 5px 0 10px; }
#performanceIntelligenceSection .pulse-y-axis span { display: flex; align-items: center; }
#performanceIntelligenceSection .pulse-grid-lines line { stroke: rgba(255,255,255,.09); stroke-dasharray: 5 5; }
#performanceIntelligenceSection .pulse-segment { fill: none; stroke-width: 4; stroke-linecap: round; }
#performanceIntelligenceSection .pulse-segment.is-positive { stroke: #2fdb7d; }
#performanceIntelligenceSection .pulse-segment.is-neutral { stroke: #ffd000; }
#performanceIntelligenceSection .pulse-segment.is-negative { stroke: #ff4f5e; }
#performanceIntelligenceSection .pulse-last-dot { fill: #2fdb7d; stroke: rgba(0,0,0,.55); stroke-width: 2; }
#performanceIntelligenceSection .pulse-x-axis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 6px; color: #7f8aa0; font-size: .76rem; }
#performanceIntelligenceSection .pulse-x-axis span { text-align: center; }
#performanceIntelligenceSection .performance-pulse-grid { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
#performanceIntelligenceSection .pulse-metric-card { background: rgba(12, 16, 24, 0.82); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 12px; min-width: 0; }
#performanceIntelligenceSection .pulse-metric-head { display: flex; align-items: center; gap: 7px; }
#performanceIntelligenceSection .pulse-metric-icon { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); }
#performanceIntelligenceSection .pulse-metric-card h4 { margin: 0; font-size: .84rem; color: #9ca3af; }
#performanceIntelligenceSection .pulse-metric-card strong { margin-top: 6px; display: block; color: #f5f5f5; font-size: clamp(1rem, 2.2vw, 1.9rem); line-height: 1.1; }
#performanceIntelligenceSection .pulse-metric-card small { display: inline-flex; margin-top: 6px; border-radius: 999px; padding: 3px 8px; font-size: .8rem; background: rgba(255,255,255,0.08); color: #d6d6d8; }
#performanceIntelligenceSection .pulse-metric-card p { margin: 6px 0 0; color: #9ca3af; font-size: .82rem; overflow-wrap: anywhere; }
#performanceIntelligenceSection .pulse-metric-card.is-positive { border-color: rgba(67, 222, 124, .35); }
#performanceIntelligenceSection .pulse-metric-card.is-warning { border-color: rgba(255, 208, 0, .35); }
#performanceIntelligenceSection .pulse-metric-card.is-negative { border-color: rgba(255, 79, 94, .35); }
#performanceIntelligenceSection .pulse-metric-card.is-purple { border-color: rgba(167, 91, 255, .35); }
#performanceIntelligenceSection .pulse-metric-card.is-blue { border-color: rgba(75, 151, 255, .35); }

#performanceIntelligenceSection .session-heatmap-tabs { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#performanceIntelligenceSection .session-heatmap-tabs button { border: 1px solid rgba(255,255,255,0.14); background: #10131a; color: #d2d5dd; border-radius: 12px; padding: 7px 12px; font-size: .86rem; font-weight: 700; }
#performanceIntelligenceSection .session-heatmap-tabs button.is-active { border-color: rgba(255, 208, 0, .62); color: #ffd000; box-shadow: 0 0 0 1px rgba(255,208,0,.2) inset; }
#performanceIntelligenceSection .session-heatmap-legend { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #b8bec9; font-size: .8rem; }
#performanceIntelligenceSection .session-heatmap-legend em { width: 120px; height: 7px; border-radius: 99px; background: linear-gradient(90deg, #ff4f5e, #ff9e2c, #ffd000, #25d06c); }

#performanceIntelligenceSection .session-heatmap-scroll { overflow-x: auto; margin-top: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
#performanceIntelligenceSection .session-heatmap-table { width: 100%; min-width: 740px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; background: rgba(255,255,255,0.02); }
#performanceIntelligenceSection .session-heatmap-table th { color: #adb4c0; font-weight: 600; font-size: clamp(0.68rem,1.5vw,0.82rem); text-align: center; padding: 6px 4px; }
#performanceIntelligenceSection .session-row-label { position: sticky; left: 0; z-index: 2; text-align: left !important; min-width: 150px; background: #0c1018; padding-left: 10px !important; }
#performanceIntelligenceSection .session-row-label small { display: block; color: #8f98a8; font-size: 0.72rem; font-weight: 500; }
#performanceIntelligenceSection .heatmap-cell { text-align: center; font-size: clamp(0.7rem,1.6vw,0.88rem); border-radius: 8px; padding: 9px 6px; color: #f5f5f5; }
#performanceIntelligenceSection .heatmap-cell.is-positive { background: rgba(45, 201, 106, 0.75); color: #02160b; }
#performanceIntelligenceSection .heatmap-cell.is-neutral { background: rgba(255, 208, 0, 0.72); color: #1e1801; }
#performanceIntelligenceSection .heatmap-cell.is-warning { background: rgba(255, 152, 58, 0.72); color: #201004; }
#performanceIntelligenceSection .heatmap-cell.is-negative { background: rgba(243, 79, 97, 0.76); color: #fff; }
#performanceIntelligenceSection .heatmap-cell.is-empty { background: rgba(118, 125, 142, 0.2); color: #8490a6; }

#performanceIntelligenceSection .session-insight-grid { margin-top: 12px; display: grid; gap: 10px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
#performanceIntelligenceSection .session-insight-card { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.02); padding: 12px; }
#performanceIntelligenceSection .session-insight-card h4 { margin: 0; font-size: .83rem; color: #a8afbe; }
#performanceIntelligenceSection .session-insight-card strong { display: block; color: #57b0ff; font-size: clamp(1rem,2vw,1.35rem); margin-top: 4px; line-height: 1.15; }
#performanceIntelligenceSection .session-insight-card p { margin: 5px 0 0; color: #9ca3af; font-size: .82rem; }
#performanceIntelligenceSection .session-insight-card.is-purple strong { color: #b17aff; }
#performanceIntelligenceSection .session-heatmap-empty { margin: 10px 0 0; color: #9ca3af; font-size: .82rem; }

#performanceIntelligenceSection .trajectory-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

#performanceIntelligenceSection .trajectory-overview-title-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

#performanceIntelligenceSection .trajectory-icon-chip {
  color: #ffdf76;
  background: radial-gradient(circle at 35% 25%, rgba(255, 208, 0, 0.24), rgba(94, 55, 10, 0.18));
}

#performanceIntelligenceSection .trajectory-overview-title-wrap h3 {
  margin: 2px 0 0;
  color: #f5f5f5;
  font-size: clamp(1.18rem, 2vw, 1.9rem);
}

#performanceIntelligenceSection .trajectory-overview-title-wrap p {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: clamp(0.8rem, 1.55vw, 0.96rem);
  max-width: 62ch;
}

#performanceIntelligenceSection .trajectory-overview-eyebrow {
  margin: 0;
  color: #ffd86f;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

#performanceIntelligenceSection .trajectory-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#performanceIntelligenceSection .trajectory-badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 208, 0, 0.26);
  background: rgba(255, 208, 0, 0.08);
  color: #ffe091;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

#performanceIntelligenceSection .trajectory-badge.is-soft {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d8df;
}

#performanceIntelligenceSection .trajectory-overview-hero {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  align-items: stretch;
}

#performanceIntelligenceSection .trajectory-overview-copy,
#performanceIntelligenceSection .trajectory-overview-score {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  padding: 14px;
  min-width: 0;
}

#performanceIntelligenceSection .trajectory-overview-hero--positive .trajectory-overview-copy,
#performanceIntelligenceSection .trajectory-overview-hero--positive .trajectory-overview-score {
  border-color: rgba(47, 216, 121, 0.22);
}

#performanceIntelligenceSection .trajectory-overview-hero--warning .trajectory-overview-copy,
#performanceIntelligenceSection .trajectory-overview-hero--warning .trajectory-overview-score {
  border-color: rgba(255, 208, 0, 0.22);
}

#performanceIntelligenceSection .trajectory-overview-hero--negative .trajectory-overview-copy,
#performanceIntelligenceSection .trajectory-overview-hero--negative .trajectory-overview-score {
  border-color: rgba(255, 79, 94, 0.26);
}

#performanceIntelligenceSection .trajectory-overview-copy strong,
#performanceIntelligenceSection .trajectory-overview-score strong {
  display: block;
  color: #f5f5f5;
  font-size: clamp(1.14rem, 2.35vw, 1.8rem);
  line-height: 1.1;
}

#performanceIntelligenceSection .trajectory-overview-copy p {
  margin: 8px 0 0;
  color: #c5ccd7;
  font-size: 0.88rem;
  line-height: 1.56;
}

#performanceIntelligenceSection .trajectory-overview-score {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(255, 208, 0, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

#performanceIntelligenceSection .trajectory-overview-score span {
  color: #9ca3af;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

#performanceIntelligenceSection .trajectory-overview-score small {
  margin-top: 8px;
  color: #aeb6c3;
  font-size: 0.82rem;
  line-height: 1.45;
}

#performanceIntelligenceSection .trajectory-overview-chart {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.026);
  padding: 14px;
}

#performanceIntelligenceSection .trajectory-overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #d3d8e0;
  font-size: 0.82rem;
}

#performanceIntelligenceSection .trajectory-overview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#performanceIntelligenceSection .trajectory-overview-legend strong {
  color: #f5f5f5;
  font-weight: 700;
}

#performanceIntelligenceSection .trajectory-overview-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

#performanceIntelligenceSection .trajectory-overview-legend .is-edge { background: #f5c400; }
#performanceIntelligenceSection .trajectory-overview-legend .is-precision { background: #43db7d; }
#performanceIntelligenceSection .trajectory-overview-legend .is-protection { background: #5ca8ff; }

#performanceIntelligenceSection .trajectory-chart-shell {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

#performanceIntelligenceSection .trajectory-y-axis {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  color: #7c879a;
  font-size: 0.72rem;
  line-height: 1;
  padding: 5px 0 12px;
}

#performanceIntelligenceSection .trajectory-y-axis span {
  display: flex;
  align-items: center;
}

#performanceIntelligenceSection .trajectory-chart-shell svg {
  width: 100%;
  height: auto;
  max-height: 300px;
  display: block;
}

#performanceIntelligenceSection .trajectory-grid-lines line {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-dasharray: 5 6;
}

#performanceIntelligenceSection .trajectory-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#performanceIntelligenceSection .trajectory-line--edge { stroke: #f5c400; }
#performanceIntelligenceSection .trajectory-line--precision { stroke: #3fe084; }
#performanceIntelligenceSection .trajectory-line--protection { stroke: #63b2ff; }

#performanceIntelligenceSection .trajectory-dot {
  stroke: rgba(8, 9, 13, 0.85);
  stroke-width: 2;
}

#performanceIntelligenceSection .trajectory-dot--edge { fill: #f5c400; }
#performanceIntelligenceSection .trajectory-dot--precision { fill: #3fe084; }
#performanceIntelligenceSection .trajectory-dot--protection { fill: #63b2ff; }

#performanceIntelligenceSection .trajectory-x-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 8px;
  color: #7f8aa0;
  font-size: 0.74rem;
}

#performanceIntelligenceSection .trajectory-x-axis span {
  text-align: center;
}

#performanceIntelligenceSection .trajectory-kpi-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

#performanceIntelligenceSection .trajectory-kpi {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.82);
  padding: 12px;
}

#performanceIntelligenceSection .trajectory-kpi--edge { border-color: rgba(245, 196, 0, 0.24); }
#performanceIntelligenceSection .trajectory-kpi--precision { border-color: rgba(67, 222, 124, 0.24); }
#performanceIntelligenceSection .trajectory-kpi--protection { border-color: rgba(93, 168, 255, 0.24); }

#performanceIntelligenceSection .trajectory-kpi span {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
}

#performanceIntelligenceSection .trajectory-kpi strong {
  display: block;
  margin-top: 7px;
  color: #f5f5f5;
  font-size: clamp(1.04rem, 2.4vw, 1.52rem);
  line-height: 1.14;
}

#performanceIntelligenceSection .trajectory-kpi p {
  margin: 6px 0 0;
  color: #a9b1bc;
  font-size: 0.82rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

#performanceIntelligenceSection .trajectory-insight-strip {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

#performanceIntelligenceSection .trajectory-insight-strip article {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.024);
  padding: 12px;
}

#performanceIntelligenceSection .trajectory-insight-strip span {
  display: block;
  color: #9ca3af;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

#performanceIntelligenceSection .trajectory-insight-strip strong {
  display: block;
  margin-top: 7px;
  color: #f5f5f5;
  font-size: 0.98rem;
}

#performanceIntelligenceSection .trajectory-insight-strip small {
  display: block;
  margin-top: 5px;
  color: #aab3bf;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  #performanceIntelligenceSection .trajectory-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #performanceIntelligenceSection .trajectory-insight-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #performanceIntelligenceSection .daily-edge-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #performanceIntelligenceSection .performance-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #performanceIntelligenceSection .session-insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #performanceIntelligenceSection .trajectory-overview-head,
  #performanceIntelligenceSection .trajectory-overview-title-wrap,
  #performanceIntelligenceSection .performance-pulse-header,
  #performanceIntelligenceSection .daily-edge-header {
    flex-direction: column;
  }

  #performanceIntelligenceSection .trajectory-overview-actions,
  #performanceIntelligenceSection .performance-pulse-actions {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  #performanceIntelligenceSection .trajectory-overview-badges,
  #performanceIntelligenceSection .daily-edge-header-meta {
    justify-content: flex-start;
  }

  #performanceIntelligenceSection .trajectory-overview-hero {
    grid-template-columns: 1fr;
  }

  #performanceIntelligenceSection .trajectory-chart-shell {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
  }

  #performanceIntelligenceSection .trajectory-y-axis {
    font-size: 0.64rem;
  }

  #performanceIntelligenceSection .trajectory-x-axis {
    font-size: 0.68rem;
  }

  #performanceIntelligenceSection .section-icon-chip { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
  #performanceIntelligenceSection .pi-period-pill { font-size: .74rem; padding: 7px 10px; gap: 6px; }
  #performanceIntelligenceSection .pulse-chart-shell { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
  #performanceIntelligenceSection .pulse-y-axis { font-size: .65rem; }
  #performanceIntelligenceSection .pulse-x-axis { font-size: .68rem; }
}
@media (min-width: 1180px) {
  #performanceIntelligenceSection .performance-pulse-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #performanceIntelligenceSection .performance-pulse-grid .pulse-metric-card:nth-child(1),
  #performanceIntelligenceSection .performance-pulse-grid .pulse-metric-card:nth-child(2),
  #performanceIntelligenceSection .performance-pulse-grid .pulse-metric-card:nth-child(3) { grid-column: span 2; }
  #performanceIntelligenceSection .performance-pulse-grid .pulse-metric-card:nth-child(4),
  #performanceIntelligenceSection .performance-pulse-grid .pulse-metric-card:nth-child(5) { grid-column: span 3; }
}

@media (max-width: 390px) {
  #dailyPerformanceSection,
  #profiloSection.trader-profile-dashboard,
  #operativePerformancePanel,
  #performanceIntelligenceSection {
    width: min(100% - 12px, 1120px);
  }

  #dailyPerformanceSection .daily-metric-card,
  #dailyPerformanceSection .daily-metric-card:nth-child(odd),
  #dailyPerformanceSection .daily-metric-card:nth-child(n + 3),
  #dailyPerformanceSection .daily-metric-card:last-of-type {
    min-height: 118px;
  }

  #dailyPerformanceSection .daily-metric-icon {
    width: 36px;
    height: 36px;
  }

  #dailyPerformanceSection .daily-metric-icon svg {
    width: 18px;
    height: 18px;
  }

  #dailyPerformanceSection .daily-metric-label {
    font-size: 9px;
    min-height: 22px;
  }

  #dailyPerformanceSection .daily-metric-value {
    font-size: clamp(0.95rem, 4.7vw, 1.28rem);
  }

  #dailyPerformanceSection .daily-status-pill {
    min-height: 20px;
    font-size: 8px;
  }

  #profiloSection.trader-profile-dashboard .profile-dashboard-title h2,
  #dailyPerformanceSection .daily-dashboard-title h3,
  #operativePerformancePanel .operative-title h3 {
    font-size: 16px;
  }

  #profiloSection.trader-profile-dashboard .profile-edit-btn span {
    display: none;
  }

  #profiloSection.trader-profile-dashboard .identity-item .profile-value {
    font-size: 10px;
  }

  #profiloSection.trader-profile-dashboard .identity-label,
  #profiloSection.trader-profile-dashboard .behavior-item span {
    font-size: 9px;
  }

  #profiloSection.trader-profile-dashboard .behavior-item strong {
    font-size: 16px;
  }

  #operativePerformancePanel .operative-metrics-shell {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-height: 82px;
    padding: 0 4px;
  }

  #operativePerformancePanel .operative-metric span {
    font-size: 8px;
  }

  #operativePerformancePanel .operative-metric strong,
  #operativePerformancePanel .operative-metric.is-main strong {
    font-size: clamp(0.8rem, 4vw, 1.15rem);
  }

  #operativePerformancePanel .metric-pill {
    max-width: 100%;
    font-size: 8px;
  }

  #operativePerformancePanel .round-indicator {
    width: 21px;
    height: 21px;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 205px;
  }

  #operativePerformancePanel .operative-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #performanceIntelligenceSection .pi-data-pill {
    display: none;
  }

  #performanceIntelligenceSection .pi-compact-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  #operativePerformancePanel .operative-day-grid {
    grid-template-columns: 1fr;
  }
}

#dailyPerformanceSection .delta {
  display: none;
}

#profiloSection.trader-profile-dashboard #assetsVal.value-chip-gold {
  min-height: 32px !important;
  max-width: 100%;
  padding: 0 12px !important;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

#performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-top {
  align-items: center;
  gap: 6px;
}

#performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-label,
#performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-value {
  min-width: 0;
  line-height: 1.05;
}

#performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-label {
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  overflow-wrap: anywhere;
}

#performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-value {
  flex: 0 0 auto;
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
}

@media (max-width: 768px) {
  #profiloSection.trader-profile-dashboard .identity-subcard {
    padding: 12px;
  }

  #profiloSection.trader-profile-dashboard #assetsVal.value-chip-gold {
    min-height: 24px !important;
    padding: 4px 8px !important;
    font-size: clamp(0.48rem, 2.2vw, 0.66rem);
    line-height: 1.1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal !important;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-label {
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-value {
    font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-meta {
    gap: 5px;
    font-size: clamp(0.52rem, 2vw, 0.64rem);
    line-height: 1.15;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-compact-kpi small,
  #operativePerformancePanel .operative-metric .metric-pill {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.05;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-compact-kpi small {
    min-height: 28px;
    padding: 3px 4px;
  }

  #operativePerformancePanel .operative-metric .metric-pill {
    min-height: 26px;
    padding: 3px 5px;
  }

  #profiloSection.trader-profile-dashboard .identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .identity-item:last-child {
    min-height: 0;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 10px 8px;
    gap: 5px;
    border: 1px solid rgba(255, 214, 0, 0.14);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
      rgba(7, 10, 16, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 18px rgba(0, 0, 0, 0.18);
  }

  #profiloSection.trader-profile-dashboard .identity-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255, 220, 118, 0.92);
    background: rgba(255, 214, 0, 0.08);
    border: 1px solid rgba(255, 214, 0, 0.14);
  }

  #profiloSection.trader-profile-dashboard .identity-icon svg {
    width: 15px;
    height: 15px;
  }

  #profiloSection.trader-profile-dashboard .identity-label {
    font-size: clamp(0.56rem, 2vw, 0.68rem);
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(216, 219, 226, 0.72);
  }

  #profiloSection.trader-profile-dashboard .identity-item .profile-value {
    font-size: clamp(0.76rem, 2.45vw, 0.94rem);
    line-height: 1.14;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #profiloSection.trader-profile-dashboard .identity-item #styleVal {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #profiloSection.trader-profile-dashboard .identity-item .value-chip-gold,
  #profiloSection.trader-profile-dashboard .identity-item .value-chip-muted {
    min-height: 0;
    padding: 4px 8px !important;
    font-size: clamp(0.56rem, 2.1vw, 0.68rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
    white-space: normal !important;
    text-align: center;
    border-radius: 12px !important;
  }

  #operativePerformancePanel .operative-metrics-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-height: 118px;
    padding: 14px;
    gap: 10px;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  #operativePerformancePanel .operative-metric.is-main {
    grid-column: 1 / -1;
  }

  #operativePerformancePanel .operative-metric span {
    font-size: clamp(0.64rem, 2vw, 0.78rem);
    line-height: 1.2;
  }

  #operativePerformancePanel .operative-metric strong,
  #operativePerformancePanel .operative-metric.is-main strong {
    width: 100%;
    font-size: clamp(1.02rem, 3.8vw, 1.4rem);
    line-height: 1.08;
  }

  #operativePerformancePanel .operative-value-row {
    width: fit-content;
    max-width: 100%;
  }

  #operativePerformancePanel .operative-value-row strong,
  #operativePerformancePanel .operative-value-row .round-indicator {
    width: auto;
  }

  #operativePerformancePanel .operative-metric.is-main strong {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  #operativePerformancePanel .operative-metric .metric-pill {
    justify-content: flex-start;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 244px;
    margin: 10px 0 14px;
  }

  #operativePerformancePanel .operative-day-card {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  }

  #operativePerformancePanel .day-card-result strong {
    font-size: clamp(1rem, 3.2vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  #profiloSection.trader-profile-dashboard #assetsVal.value-chip-gold {
    min-height: 22px !important;
    padding: 4px 6px !important;
    font-size: clamp(0.46rem, 2.1vw, 0.58rem);
    line-height: 1.08;
    overflow: visible;
    text-overflow: clip;
    white-space: normal !important;
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-board-card--asset .pi-board-row-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #performanceIntelligenceSection .pi-dashboard-panel .pi-compact-kpi small {
    min-height: 26px;
    padding: 2px 3px;
    font-size: clamp(0.48rem, 2vw, 0.6rem);
  }

  #operativePerformancePanel .operative-metric .metric-pill {
    min-height: 24px;
    padding: 2px 4px;
    font-size: clamp(0.48rem, 2vw, 0.62rem);
  }

  #profiloSection.trader-profile-dashboard .identity-subcard {
    padding: 11px;
  }

  #profiloSection.trader-profile-dashboard .identity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #profiloSection.trader-profile-dashboard .identity-item,
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(odd),
  #profiloSection.trader-profile-dashboard .identity-item:nth-child(3n),
  #profiloSection.trader-profile-dashboard .identity-item:last-child {
    min-height: 0;
    padding: 9px 6px;
    gap: 4px;
    border: 1px solid rgba(255, 214, 0, 0.13);
    border-radius: 14px;
  }

  #profiloSection.trader-profile-dashboard .identity-icon {
    width: 26px;
    height: 26px;
  }

  #profiloSection.trader-profile-dashboard .identity-icon svg {
    width: 14px;
    height: 14px;
  }

  #profiloSection.trader-profile-dashboard .identity-label {
    font-size: clamp(0.52rem, 2vw, 0.62rem);
    line-height: 1.08;
  }

  #profiloSection.trader-profile-dashboard .identity-item .profile-value {
    font-size: clamp(0.7rem, 2.8vw, 0.84rem);
    line-height: 1.08;
  }

  #profiloSection.trader-profile-dashboard .identity-item #styleVal {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #profiloSection.trader-profile-dashboard .identity-item .value-chip-gold,
  #profiloSection.trader-profile-dashboard .identity-item .value-chip-muted {
    font-size: clamp(0.5rem, 2vw, 0.6rem);
    padding: 4px 6px !important;
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-height: 112px;
    padding: 13px 12px;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 234px;
  }
}

@media (max-width: 390px) {
  #operativePerformancePanel .operative-metrics-shell {
    grid-template-columns: 1fr;
  }

  #operativePerformancePanel .operative-metric.is-main {
    grid-column: auto;
  }

  #operativePerformancePanel .operative-metric,
  #operativePerformancePanel .operative-metric:nth-child(odd),
  #operativePerformancePanel .operative-metric:nth-child(even),
  #operativePerformancePanel .operative-metric.is-main,
  #operativePerformancePanel .operative-metric:last-child {
    min-height: 104px;
    padding: 12px;
  }

  #operativePerformancePanel .operative-canvas-wrap {
    height: 226px;
  }

  #operativePerformancePanel .operative-day-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  #operativePerformancePanel .day-card-result {
    align-items: flex-start;
  }
}

/* Pre-entry analysis section styles */
.pre-entry-analysis-section{margin-top:12px}
.pre-entry-analysis-close{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 12px;background:linear-gradient(135deg,#ffd84d,#ffc800);color:#101217;border-radius:999px;padding:14px 28px;font-weight:700;border:0;min-width:220px;font-size:1rem;box-shadow:0 16px 34px rgba(255,200,0,.18)}
.pre-entry-analysis-close-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:1.2rem;line-height:1}
.pre-entry-analysis-close-label{display:block}
.pre-entry-analysis-intro,.pre-entry-analysis-card,.pre-entry-probability-card,.pre-entry-lot-card,.pre-entry-insight,.pre-entry-secondary-card,.pre-entry-saved-list{background:linear-gradient(180deg,rgba(15,19,27,.97),rgba(8,11,17,.98));border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:18px;margin-top:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 40px rgba(0,0,0,.28)}
.pre-entry-analysis-intro{display:grid;grid-template-columns:44px 1fr 28px;gap:14px;align-items:center}
.pre-entry-analysis-intro-icon,.pre-entry-analysis-header-icon,.pre-entry-asset-search,.pre-entry-insight-icon{display:grid;place-items:center}
.pre-entry-analysis-intro-icon svg,.pre-entry-analysis-header-icon svg,.pre-entry-asset-search svg,.pre-entry-insight-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pre-entry-analysis-intro-icon{width:44px;height:44px;color:#ffcf17}
.pre-entry-analysis-intro-icon .pre-entry-analysis-intro-dot{fill:currentColor;stroke:none}
.pre-entry-analysis-intro-title{margin:0 0 6px;color:#f8fbff;font-size:clamp(1.16rem,2.3vw,1.75rem);line-height:1.12}
.pre-entry-analysis-intro-text{margin:0;color:#aeb7c6;font-size:clamp(.88rem,1.75vw,1.04rem);line-height:1.42}
.pre-entry-analysis-intro-info{border:1px solid rgba(255,255,255,.34);border-radius:50%;display:grid;place-items:center;color:#d1d6df;font-size:.78rem;font-weight:700;width:28px;height:28px}
.pre-entry-analysis-header,.pre-entry-checks h4,.pre-entry-trend h4,.pre-entry-decision h4,.pre-entry-asset label,.pre-entry-probability-card h4,.pre-entry-insight h4{color:#ffd31a;margin:0 0 14px}
.pre-entry-analysis-header{display:flex;align-items:center;gap:12px;font-size:clamp(1.28rem,2.4vw,1.8rem)}
.pre-entry-analysis-header-icon{width:30px;height:30px;color:#ffd31a;flex:0 0 auto}
.pre-entry-checks h4,.pre-entry-trend h4,.pre-entry-decision h4,.pre-entry-asset label,.pre-entry-probability-card h4,.pre-entry-insight h4{font-size:clamp(1.02rem,1.85vw,1.28rem)}
.pre-entry-analysis-grid,.pre-entry-prob-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:0}
.pre-entry-analysis-left,.pre-entry-analysis-right,.pre-entry-context-panel,.pre-entry-decision-panel{min-width:0}
.pre-entry-analysis-left,.pre-entry-analysis-right{display:grid;align-content:start;gap:22px}
.pre-entry-analysis-right,.pre-entry-decision-panel{border-left:1px solid rgba(255,255,255,.1);padding-left:18px;margin-left:18px}
.pre-entry-checks-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.pre-entry-check-chip{display:flex;align-items:center;gap:10px;min-height:74px;padding:11px 12px;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.03);color:#eef3fa;font-size:clamp(.8rem,1.55vw,.99rem);font-weight:500;line-height:1.24;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.pre-entry-check-chip span,.pre-entry-radio span,.pre-entry-bar-label span:last-child{min-width:0}
.pre-entry-check-chip input,.pre-entry-radio input{appearance:none;-webkit-appearance:none;flex:0 0 auto;margin:0}
.pre-entry-check-chip input{width:24px;height:24px;border-radius:50%;border:1px solid rgba(255,214,0,.45);background:rgba(255,214,0,.06)}
.pre-entry-check-chip input:checked{border-color:#ffd31a;background-color:#ffd31a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23091014' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l2.1 2.1L10 2.8'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:12px 12px}
.pre-entry-trend label{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:10px;margin-bottom:12px;color:#d8dfeb;font-size:clamp(.86rem,1.65vw,1rem)}
.pre-entry-select,.pre-entry-asset input{width:100%;background:#0b0f16;border:1px solid rgba(255,255,255,.12);border-radius:14px;color:#edf2fa;padding:14px 16px;font-size:clamp(.9rem,1.6vw,1rem);box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.pre-entry-select{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23939baa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5 6 8l4-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 12px}
.pre-entry-asset-input{position:relative}
.pre-entry-asset input{padding-right:52px}
.pre-entry-asset input::placeholder{color:#778294}
.pre-entry-asset-search{position:absolute;top:50%;right:14px;width:26px;height:26px;color:#9aa3b2;transform:translateY(-50%)}
.pre-entry-decision{display:grid;align-content:start}
.pre-entry-radio{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 14px;color:#d8dee9;font-size:clamp(.9rem,1.7vw,1.02rem);line-height:1.28;background:transparent;border:0}
.pre-entry-radio input{width:28px;height:28px;border-radius:50%;border:2px solid rgba(232,238,247,.62);background:transparent}
.pre-entry-radio input:checked{border-color:#ffd31a;box-shadow:inset 0 0 0 6px #ffd31a}
.pre-entry-probability-card:empty{display:none}
.pre-entry-context-panel{display:grid;align-content:start}
.pre-entry-context-ring{width:min(100%,190px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:10px auto 18px;background:conic-gradient(#ffd31a calc(var(--pct)*1%),#2d343e 0);box-shadow:0 0 0 1px rgba(255,255,255,.04)}
.pre-entry-context-ring>div{width:74%;height:74%;border-radius:50%;background:#0a0e15;display:grid;place-items:center;color:#fff;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.pre-entry-context-ring strong{display:block;font-size:clamp(2rem,4.3vw,3.7rem);line-height:1;font-weight:800}
.pre-entry-context-ring small{display:block;margin-top:6px;font-size:clamp(.7rem,1.3vw,.9rem);text-transform:uppercase;letter-spacing:.06em;color:#c0c8d4}
.pre-entry-context-note{margin:0;display:flex;align-items:flex-start;justify-content:center;gap:10px;color:#a0a9b8;font-size:clamp(.78rem,1.35vw,.96rem);line-height:1.45;text-align:left}
.pre-entry-context-note-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid rgba(255,255,255,.28);color:#d3d8e1;font-size:.78rem;flex:0 0 auto}
.pre-entry-bars{display:grid;gap:14px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.pre-entry-bar-row{display:grid;grid-template-columns:minmax(0,128px) minmax(0,1fr) auto;align-items:center;gap:10px}
.pre-entry-bar-label{display:flex;align-items:center;gap:10px;color:#e0e6ef;font-size:clamp(.84rem,1.55vw,.98rem);white-space:nowrap}
.pre-entry-bar-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:1rem;font-weight:700;color:#f5f9ff}
.pre-entry-bar-row.is-buy .pre-entry-bar-icon{background:rgba(86,213,105,.92)}
.pre-entry-bar-row.is-sell .pre-entry-bar-icon{background:rgba(239,90,84,.92)}
.pre-entry-bar-row.is-hold .pre-entry-bar-icon{background:rgba(125,132,146,.9)}
.pre-entry-bar-track{height:16px;border-radius:999px;background:#171d25;border:1px solid rgba(255,255,255,.09);padding:3px;overflow:hidden}
.pre-entry-bar-track span{display:block;height:100%;border-radius:999px}
.pre-entry-bar-value{font-size:clamp(.9rem,1.7vw,1.05rem);font-weight:700}
.pre-entry-bar-row.is-buy .pre-entry-bar-value{color:#56d569}
.pre-entry-bar-row.is-sell .pre-entry-bar-value{color:#ef5a54}
.pre-entry-bar-row.is-hold .pre-entry-bar-value{color:#c7ccd4}
.pre-entry-quality-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0 10px}
.pre-entry-quality-row h4{margin:0}
.pre-entry-quality-label{color:#6ddd75;font-size:clamp(1rem,1.7vw,1.12rem);font-weight:700}
.pre-entry-spark-wrap{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:stretch}
.pre-entry-spark-axis{display:grid;grid-template-rows:repeat(3,1fr);align-items:center;color:#98a2b3;font-size:.78rem}
.pre-entry-spark{height:88px;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:8px;background:rgba(255,255,255,.015)}
.pre-entry-spark svg{display:block;width:100%;height:100%}
.pre-entry-spark-line{stroke:rgba(255,255,255,.12);stroke-width:1;stroke-dasharray:4 4}
.pre-entry-spark-trace{fill:none;stroke:#ffd31a;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.pre-entry-spark-dot{fill:#0f131b;stroke:#ffd31a;stroke-width:2}
.pre-entry-lot-card:empty{display:none}
.pre-entry-lot-card-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.95fr);gap:0;align-items:center}
.pre-entry-lot-card-layout.is-success .pre-entry-lot-card-main{background:linear-gradient(180deg,rgba(22,41,28,.46),rgba(10,19,13,.2))}
.pre-entry-lot-card-layout.is-warning .pre-entry-lot-card-main{background:linear-gradient(180deg,rgba(45,36,9,.36),rgba(14,12,7,.16))}
.pre-entry-lot-card-layout.is-danger .pre-entry-lot-card-main{background:linear-gradient(180deg,rgba(41,20,19,.36),rgba(16,10,10,.18))}
.pre-entry-lot-card-main{padding-right:18px;border-right:1px solid rgba(255,255,255,.08)}
.pre-entry-lot-card-side{padding-left:18px}
.pre-entry-lot-card-label{display:block;color:#d7dde8;font-size:clamp(.86rem,1.45vw,1rem)}
.pre-entry-lot-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.07);color:#eef3fa;font-size:.78rem;font-weight:700;white-space:nowrap}
.pre-entry-lot-card-value{display:block;margin-top:8px;color:#ffd31a;font-size:clamp(2rem,4.8vw,3.35rem);line-height:1;font-weight:800}
.pre-entry-lot-card-value small{font-size:.42em;color:#d8dee9;font-weight:600}
.pre-entry-lot-card-risk{margin:0;color:#52d47f;font-weight:700;font-size:clamp(.98rem,1.7vw,1.16rem)}
.pre-entry-lot-meta{display:grid;gap:6px;margin-top:10px}
.pre-entry-lot-meta span{color:#d6deea;font-size:clamp(.76rem,1.35vw,.92rem);line-height:1.32}
.pre-entry-lot-note{grid-column:1 / -1;margin:12px 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);color:#9dabbc;font-size:clamp(.74rem,1.3vw,.88rem);line-height:1.35}
.pre-entry-insight{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;align-items:flex-start;color:#d6ddea}
.pre-entry-insight-icon{width:42px;height:42px;color:#ffd31a}
.pre-entry-insight-copy h4{margin:0 0 6px}
#analysisSuggestion{margin:0;padding:0;background:transparent;border:0;border-radius:0;font-size:clamp(.92rem,1.65vw,1.05rem);line-height:1.48}
.pre-entry-secondary-card,.pre-entry-saved-list{padding:12px 16px;color:#9ea8b8;font-size:clamp(.78rem,1.35vw,.92rem);line-height:1.42;background:rgba(7,9,14,.72);border-radius:16px}
.pre-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.pre-entry-actions .btn{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:18px;min-height:62px;font-size:clamp(1rem,1.8vw,1.12rem);font-weight:700}
#saveAnalysisBtn::before,#clearAnalysisBtn::before{display:block;font-size:1.12rem;line-height:1}
#saveAnalysisBtn::before{content:"○"}
#clearAnalysisBtn::before{content:"×"}
@media(max-width:759px){.pre-entry-analysis-intro,.pre-entry-analysis-card,.pre-entry-probability-card,.pre-entry-lot-card,.pre-entry-insight,.pre-entry-secondary-card,.pre-entry-saved-list{padding:13px;border-radius:21px}.pre-entry-analysis-close{min-width:0;width:fit-content;padding:11px 20px;font-size:.95rem}.pre-entry-analysis-intro{grid-template-columns:34px 1fr 22px;gap:10px}.pre-entry-analysis-intro-icon{width:34px;height:34px}.pre-entry-analysis-intro-info{width:24px;height:24px;font-size:.7rem}.pre-entry-analysis-header{font-size:1.12rem;gap:10px}.pre-entry-analysis-header-icon{width:26px;height:26px}.pre-entry-checks h4,.pre-entry-trend h4,.pre-entry-decision h4,.pre-entry-asset label,.pre-entry-probability-card h4,.pre-entry-insight h4{margin-bottom:10px;font-size:.95rem}.pre-entry-analysis-right,.pre-entry-decision-panel{padding-left:12px;margin-left:12px}.pre-entry-analysis-left,.pre-entry-analysis-right{gap:16px}.pre-entry-checks-grid{gap:8px}.pre-entry-check-chip{min-height:60px;padding:9px;font-size:.74rem}.pre-entry-trend label{grid-template-columns:48px minmax(0,1fr);gap:7px;margin-bottom:9px;font-size:.78rem}.pre-entry-select,.pre-entry-asset input{padding:10px 11px;border-radius:11px;font-size:.84rem}.pre-entry-asset input{padding-right:40px}.pre-entry-asset-search{right:10px;width:20px;height:20px}.pre-entry-radio{gap:9px;margin-bottom:10px;font-size:.84rem}.pre-entry-radio input{width:22px;height:22px}.pre-entry-context-ring{width:min(100%,158px);margin:8px auto 12px}.pre-entry-context-ring strong{font-size:1.85rem}.pre-entry-context-ring small{font-size:.68rem}.pre-entry-context-note{gap:8px;font-size:.72rem}.pre-entry-context-note-icon{width:18px;height:18px;font-size:.65rem}.pre-entry-bars{gap:12px;padding-bottom:12px}.pre-entry-bar-row{grid-template-columns:minmax(0,98px) minmax(0,1fr) auto;gap:7px}.pre-entry-bar-label{gap:7px;font-size:.76rem}.pre-entry-bar-icon{width:24px;height:24px;font-size:.82rem}.pre-entry-bar-track{height:13px;padding:2px}.pre-entry-bar-value{font-size:.82rem}.pre-entry-quality-row{margin:12px 0 8px}.pre-entry-spark-wrap{grid-template-columns:20px minmax(0,1fr);gap:7px}.pre-entry-spark-axis{font-size:.64rem}.pre-entry-spark{height:66px;padding:5px}.pre-entry-lot-card-layout{grid-template-columns:minmax(0,1fr) minmax(220px,.92fr)}.pre-entry-lot-card-main{padding-right:14px}.pre-entry-lot-card-side{padding-left:14px}.pre-entry-lot-badge{padding:5px 9px;font-size:.72rem}.pre-entry-lot-card-value{font-size:2.2rem}.pre-entry-lot-meta{gap:5px;margin-top:8px}.pre-entry-lot-meta span,.pre-entry-lot-note{font-size:.74rem}.pre-entry-secondary-card,.pre-entry-saved-list{padding:10px 12px;font-size:.72rem}.pre-entry-actions{gap:9px}.pre-entry-actions .btn{min-height:52px;font-size:.92rem;border-radius:16px}}
@media(max-width:540px){.analysis-wrapper{padding:0 10px}.pre-entry-analysis-section{margin-top:6px}.pre-entry-analysis-intro,.pre-entry-analysis-card,.pre-entry-probability-card,.pre-entry-lot-card,.pre-entry-insight,.pre-entry-secondary-card,.pre-entry-saved-list{padding:10px;border-radius:18px;margin-top:9px}.pre-entry-analysis-close{gap:8px;padding:9px 16px;font-size:.86rem;min-width:auto;box-shadow:0 10px 22px rgba(255,200,0,.14)}.pre-entry-analysis-close-icon{width:18px;height:18px;font-size:.95rem}.pre-entry-analysis-intro{grid-template-columns:28px 1fr 18px;gap:8px}.pre-entry-analysis-intro-icon{width:28px;height:28px}.pre-entry-analysis-intro-title{margin-bottom:3px;font-size:.95rem}.pre-entry-analysis-intro-text{font-size:.74rem;line-height:1.28}.pre-entry-analysis-intro-info{width:18px;height:18px;font-size:.58rem}.pre-entry-analysis-header{font-size:.95rem;gap:7px;margin-bottom:10px}.pre-entry-analysis-header-icon{width:20px;height:20px}.pre-entry-checks h4,.pre-entry-trend h4,.pre-entry-decision h4,.pre-entry-asset label,.pre-entry-probability-card h4,.pre-entry-insight h4{margin-bottom:7px;font-size:.84rem}.pre-entry-analysis-grid,.pre-entry-prob-layout{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}.pre-entry-analysis-left,.pre-entry-analysis-right{gap:12px}.pre-entry-analysis-right,.pre-entry-decision-panel{padding-left:8px;margin-left:8px}.pre-entry-checks-grid{gap:6px}.pre-entry-check-chip{min-height:48px;padding:7px 6px;font-size:.62rem;gap:6px;border-radius:11px}.pre-entry-check-chip input{width:16px;height:16px;background-size:10px 10px}.pre-entry-trend label{grid-template-columns:40px minmax(0,1fr);font-size:.67rem;gap:5px;margin-bottom:7px}.pre-entry-select,.pre-entry-asset input{font-size:.74rem;padding:8px 9px;border-radius:9px}.pre-entry-asset input{padding-right:30px}.pre-entry-asset-search{right:8px;width:16px;height:16px}.pre-entry-radio{font-size:.72rem;gap:7px;margin-bottom:8px}.pre-entry-radio input{width:18px;height:18px;border-width:1.5px}.pre-entry-radio input:checked{box-shadow:inset 0 0 0 4px #ffd31a}.pre-entry-context-ring{width:min(100%,118px);margin:6px auto 8px}.pre-entry-context-ring strong{font-size:1.28rem}.pre-entry-context-ring small{margin-top:3px;font-size:.56rem}.pre-entry-context-note{gap:5px;font-size:.61rem;line-height:1.22}.pre-entry-context-note-icon{width:14px;height:14px;font-size:.52rem}.pre-entry-bars{gap:10px;padding-bottom:10px}.pre-entry-bar-row{grid-template-columns:minmax(0,74px) minmax(0,1fr) auto;gap:5px}.pre-entry-bar-label{font-size:.61rem;gap:5px}.pre-entry-bar-icon{width:19px;height:19px;font-size:.68rem}.pre-entry-bar-track{height:10px;padding:2px}.pre-entry-bar-value{font-size:.68rem}.pre-entry-quality-row{margin:10px 0 6px}.pre-entry-quality-label{font-size:.78rem}.pre-entry-spark-wrap{grid-template-columns:15px minmax(0,1fr);gap:5px}.pre-entry-spark-axis{font-size:.5rem}.pre-entry-spark{height:50px;padding:3px;border-radius:9px}.pre-entry-lot-card-layout{grid-template-columns:1fr;gap:10px}.pre-entry-lot-card-main{padding-right:0;padding-bottom:10px;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}.pre-entry-lot-card-side{padding-left:0}.pre-entry-lot-badge{padding:4px 8px;font-size:.62rem}.pre-entry-lot-card-value{font-size:1.48rem}.pre-entry-lot-card-risk{font-size:.82rem}.pre-entry-lot-meta span{font-size:.64rem;line-height:1.2}.pre-entry-lot-note{margin-top:8px;padding-top:8px;font-size:.61rem;line-height:1.22}.pre-entry-insight{grid-template-columns:26px minmax(0,1fr);gap:7px}.pre-entry-insight-icon{width:26px;height:26px}.#analysisSuggestion{font-size:.75rem;line-height:1.28}.pre-entry-secondary-card,.pre-entry-saved-list{display:none}.pre-entry-actions{gap:8px;margin-top:10px}.pre-entry-actions .btn{min-height:44px;font-size:.8rem;border-radius:14px}.#saveAnalysisBtn::before,#clearAnalysisBtn::before{font-size:.98rem}}
@media(max-width:420px){.analysis-wrapper{padding:0 8px}.pre-entry-analysis-intro,.pre-entry-analysis-card,.pre-entry-probability-card,.pre-entry-lot-card,.pre-entry-insight{padding:9px;border-radius:16px}.pre-entry-analysis-close{padding:8px 14px;font-size:.8rem}.pre-entry-analysis-intro{grid-template-columns:24px 1fr 16px;gap:7px}.pre-entry-analysis-intro-icon{width:24px;height:24px}.pre-entry-analysis-intro-title{font-size:.88rem}.pre-entry-analysis-intro-text{font-size:.69rem}.pre-entry-analysis-grid,.pre-entry-prob-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}.pre-entry-analysis-right,.pre-entry-decision-panel{padding-left:7px;margin-left:7px}.pre-entry-checks-grid{gap:5px}.pre-entry-check-chip{min-height:44px;font-size:.58rem;padding:6px 5px}.pre-entry-trend label{grid-template-columns:36px minmax(0,1fr);font-size:.62rem}.pre-entry-select,.pre-entry-asset input{font-size:.69rem;padding:7px 8px}.pre-entry-radio{font-size:.67rem}.pre-entry-radio input{width:16px;height:16px}.pre-entry-context-ring{width:min(100%,106px)}.pre-entry-context-ring strong{font-size:1.12rem}.pre-entry-bar-row{grid-template-columns:minmax(0,68px) minmax(0,1fr) auto}.pre-entry-bar-label{font-size:.57rem}.pre-entry-bar-icon{width:17px;height:17px;font-size:.62rem}.pre-entry-bar-value{font-size:.64rem}.pre-entry-spark{height:44px}.pre-entry-lot-badge{font-size:.58rem;padding:4px 6px}.pre-entry-lot-card-value{font-size:1.26rem}.pre-entry-lot-card-risk{font-size:.74rem}.pre-entry-lot-meta span,.pre-entry-lot-note{font-size:.57rem}.pre-entry-insight{grid-template-columns:22px minmax(0,1fr);gap:6px}.pre-entry-insight-icon{width:22px;height:22px}.#analysisSuggestion{font-size:.69rem}.pre-entry-actions .btn{min-height:40px;font-size:.76rem}}
@media(min-width:960px){.pre-entry-analysis-intro,.pre-entry-analysis-card,.pre-entry-probability-card,.pre-entry-insight,.pre-entry-secondary-card,.pre-entry-saved-list{padding:22px}.pre-entry-analysis-right,.pre-entry-decision-panel{padding-left:24px;margin-left:24px}.pre-entry-analysis-header{font-size:1.72rem}.pre-entry-check-chip{min-height:78px;font-size:.98rem}.pre-entry-context-ring{width:210px}.pre-entry-spark{height:96px}}
#operativePerformancePanel .operative-range-control{position:relative}
#operativePerformancePanel .operative-range-btn{position:relative}
#operativePerformancePanel .operative-range-btn span:last-of-type{transition:transform .18s ease}
#operativePerformancePanel .operative-range-btn.is-open span:last-of-type{transform:rotate(180deg)}
#operativePerformancePanel .operative-range-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:40;display:grid;gap:10px;min-width:min(360px,92vw);padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:linear-gradient(180deg,rgba(16,20,28,.97),rgba(8,11,17,.97));box-shadow:0 22px 50px rgba(0,0,0,.38)}
#operativePerformancePanel .operative-range-menu.hidden{display:none}
#operativePerformancePanel .operative-range-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#operativePerformancePanel .operative-range-presets button,#operativePerformancePanel .operative-range-apply{min-height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.04);color:var(--dash-text);font-size:.92rem;font-weight:700}
#operativePerformancePanel .operative-range-presets button.is-active{border-color:rgba(244,197,82,.55);background:rgba(244,197,82,.14);color:#ffe7a1}
#operativePerformancePanel .operative-range-custom{display:grid;gap:10px}
#operativePerformancePanel .operative-range-custom.hidden{display:none}
#operativePerformancePanel .operative-range-custom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#operativePerformancePanel .operative-range-custom-label{display:flex;flex-direction:column;gap:5px;color:var(--gray);font-size:.78rem;font-weight:600}
#operativePerformancePanel .operative-range-custom-label input{padding:11px 12px;border-radius:12px}
#operativePerformancePanel .operative-range-apply{width:100%}
@media(max-width:640px){#operativePerformancePanel .operative-range-menu{left:0;right:auto;min-width:min(100%,320px)}#operativePerformancePanel .operative-range-presets{grid-template-columns:1fr}#operativePerformancePanel .operative-range-custom-grid{grid-template-columns:1fr}}

.decision-impact-map-section {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 26px;
}

.decision-impact-map-shell {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(760px 260px at 14% 12%, rgba(255, 255, 255, 0.045), transparent 58%),
    radial-gradient(620px 260px at 88% 8%, rgba(245, 196, 0, 0.09), transparent 56%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.96), rgba(6, 8, 12, 0.97));
  color: var(--dash-text, #f4f6fb);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.decision-impact-map-head,
.decision-impact-map-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.decision-impact-map-head > *,
.decision-impact-map-chart-head > * {
  min-width: 0;
}

.decision-impact-map-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.decision-impact-map-title h3 {
  margin: 0;
  color: var(--dash-text, #f4f6fb);
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
}

.decision-impact-map-subtitle {
  margin: 8px 0 0;
  color: var(--dash-muted, #a4abb7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}

.decision-impact-map-icon {
  flex-shrink: 0;
}

.decision-impact-map-range,
.decision-impact-map-meta,
.decision-impact-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-impact-map-chip,
.decision-impact-map-apply {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dash-text, #f4f6fb);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.decision-impact-map-chip:hover,
.decision-impact-map-apply:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.42);
  background: rgba(245, 196, 0, 0.1);
}

.decision-impact-map-chip.is-active {
  color: #ffe8a0;
  border-color: rgba(245, 196, 0, 0.48);
  background: rgba(245, 196, 0, 0.16);
}

.decision-impact-map-chip--custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.decision-impact-map-chip--custom svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-impact-map-custom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.decision-impact-map-custom.hidden,
.decision-impact-map-empty.hidden {
  display: none;
}

.decision-impact-map-custom-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dash-muted, #a4abb7);
  font-size: 12px;
  font-weight: 700;
}

.decision-impact-map-custom-label input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dash-text, #f4f6fb);
}

.decision-impact-map-layout {
  display: block;
  margin-top: 18px;
}

.decision-impact-map-chart-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(340px 150px at 12% 8%, rgba(255, 255, 255, 0.04), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.decision-impact-map-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 196, 0, 0.12);
  color: #f6d989;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-impact-map-range-label {
  margin: 10px 0 0;
  color: var(--dash-muted, #a4abb7);
  font-size: 13px;
  line-height: 1.5;
}

.decision-impact-map-meta {
  justify-content: flex-end;
}

.decision-impact-map-meta-pill,
.decision-impact-map-legend-item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dash-text, #f4f6fb);
  font-size: 11px;
  font-weight: 700;
}

.decision-impact-map-canvas-wrap {
  position: relative;
  margin-top: 16px;
  min-height: 390px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(460px 220px at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%),
    radial-gradient(280px 190px at 50% 50%, rgba(245, 196, 0, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(8, 11, 17, 0.94), rgba(10, 13, 19, 0.98));
}

#decisionImpactMapCanvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 390px;
  display: block;
}

#decisionImpactMapCanvas.hidden {
  display: none !important;
}

.decision-impact-map-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.78);
  color: var(--dash-text, #f4f6fb);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.decision-impact-map-expand:hover,
.decision-impact-map-expand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.36);
  background: rgba(245, 196, 0, 0.12);
}

.decision-impact-map-expand:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.decision-impact-map-expand svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-impact-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--dash-muted, #a4abb7);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.decision-impact-map-summary h4 {
  margin: 12px 0 8px;
  color: var(--dash-text, #f4f6fb);
  font-size: 24px;
  line-height: 1.12;
}

.decision-impact-map-summary p {
  margin: 0;
  color: var(--dash-muted, #a4abb7);
  font-size: 14px;
  line-height: 1.68;
}

.decision-impact-map-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.decision-impact-map-insight-card {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.decision-impact-map-bottom {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.decision-impact-map-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 240px);
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(245, 196, 0, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.1), rgba(255, 255, 255, 0.025));
  color: var(--dash-text, #f4f6fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.decision-impact-map-details-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.78;
  transform: rotate(45deg);
  transition: transform 200ms ease, margin 200ms ease;
}

.decision-impact-map-details-toggle:hover {
  border-color: rgba(245, 196, 0, 0.56);
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.15), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.decision-impact-map-details-toggle:focus-visible {
  outline: 2px solid rgba(245, 196, 0, 0.76);
  outline-offset: 3px;
}

.decision-impact-map-details-toggle:active {
  transform: translateY(1px);
}

.decision-impact-map-details-toggle.is-open::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.decision-impact-map-details-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.decision-impact-map-details-panel[hidden] {
  display: none;
}

.decision-impact-map-details-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}

.decision-impact-map-details-panel .decision-impact-map-bottom {
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .decision-impact-map-details-toggle,
  .decision-impact-map-details-toggle::after,
  .decision-impact-map-details-panel {
    transition-duration: 1ms;
  }
}

.decision-impact-map-axis-grid {
  margin-top: 0;
}

.decision-impact-map-axis-card {
  position: relative;
  overflow: hidden;
}

.decision-impact-map-axis-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 196, 0, 0), rgba(245, 196, 0, 0.85), rgba(245, 196, 0, 0));
  opacity: 0.68;
}

.decision-impact-map-axis-card[data-tone="high"] {
  border-color: rgba(57, 223, 122, 0.26);
}

.decision-impact-map-axis-card[data-tone="good"] {
  border-color: rgba(129, 240, 213, 0.24);
}

.decision-impact-map-axis-card[data-tone="mid"] {
  border-color: rgba(245, 196, 0, 0.24);
}

.decision-impact-map-axis-card[data-tone="low"] {
  border-color: rgba(255, 95, 115, 0.22);
}

.decision-impact-map-axis-card[data-tone="neutral"]::after {
  opacity: 0.24;
}

.decision-impact-map-insight-card span {
  display: block;
  color: var(--dash-dim, #737b88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-impact-map-insight-card strong {
  display: block;
  margin-top: 10px;
  color: var(--dash-text, #f4f6fb);
  font-size: 18px;
  line-height: 1.15;
}

.decision-impact-map-insight-card small {
  display: block;
  margin-top: 8px;
  color: var(--dash-muted, #a4abb7);
  font-size: 12px;
  line-height: 1.5;
}

.decision-impact-map-legend {
  margin-top: 16px;
}

.decision-impact-map-legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.decision-impact-map-legend-item.tone-high {
  color: #39df7a;
}

.decision-impact-map-legend-item.tone-good {
  color: #81f0d5;
}

.decision-impact-map-legend-item.tone-mid {
  color: #f5c400;
}

.decision-impact-map-legend-item.tone-low {
  color: #ff5f73;
}

.decision-impact-map-data-note {
  margin-top: 14px;
  color: var(--dash-muted, #a4abb7);
  font-size: 12px;
  line-height: 1.6;
}

.decision-impact-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#decisionImpactMapModal {
  z-index: 15020;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
}

#decisionImpactMapModal .decision-impact-map-modal__panel {
  width: min(1160px, 100%);
  height: min(760px, 100%);
}

.decision-impact-map-modal__panel {
  width: min(1160px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(245, 196, 0, 0.14);
  background:
    radial-gradient(circle at top right, rgba(79, 125, 255, 0.12), transparent 36%),
    radial-gradient(circle at 18% 0%, rgba(245, 196, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.97), rgba(7, 9, 13, 0.99));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.decision-impact-map-modal.is-portrait-mobile {
  padding: 4px;
  overflow: hidden;
}

#decisionImpactMapModal.is-portrait-mobile {
  padding:
    max(6px, env(safe-area-inset-top, 0px))
    max(6px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(6px, env(safe-area-inset-left, 0px));
}

.decision-impact-map-modal__panel.is-portrait-mobile {
  width: calc(100dvh - 8px);
  height: calc(100vw - 8px);
  max-width: none;
  max-height: none;
  padding: 8px;
  border-radius: 16px;
  gap: 4px;
  grid-template-rows: auto minmax(0, 1fr);
  transform: rotate(90deg);
  transform-origin: center center;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 10px;
  border-radius: 18px;
  gap: 8px;
  grid-template-rows: auto auto minmax(0, 1fr);
  transform: none;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__header {
  align-items: flex-start;
  gap: 10px;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__title h4 {
  font-size: 18px;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__meta {
  display: block;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__actions {
  width: 100%;
  justify-content: flex-end;
  margin-left: 0;
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__action {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__header {
  align-items: center;
  gap: 8px;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__title h4 {
  margin: 0;
  font-size: 14px;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-kicker,
.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__meta,
.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__hint {
  display: none;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__actions {
  margin-left: auto;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__action {
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 10px;
}

.decision-impact-map-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.decision-impact-map-modal__title {
  min-width: 0;
}

.decision-impact-map-modal__title h4 {
  margin: 10px 0 0;
  color: var(--dash-text, #f4f6fb);
  font-size: 26px;
  line-height: 1.08;
}

.decision-impact-map-modal__meta,
.decision-impact-map-modal__hint {
  margin: 0;
  color: var(--dash-muted, #a4abb7);
  font-size: 13px;
  line-height: 1.45;
}

.decision-impact-map-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.decision-impact-map-modal__action {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dash-text, #f4f6fb);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.decision-impact-map-modal__action:hover,
.decision-impact-map-modal__action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.36);
  background: rgba(245, 196, 0, 0.12);
}

.decision-impact-map-modal__action--close {
  font-size: 20px;
}

.decision-impact-map-modal__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(460px 220px at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.96), rgba(9, 13, 19, 0.99));
  touch-action: none;
  user-select: none;
}

.decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__viewport {
  min-height: calc(100vw - 28px);
}

#decisionImpactMapModal .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__viewport {
  min-height: 0;
}

.decision-impact-map-modal__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.2s ease;
  will-change: transform;
}

.decision-impact-map-modal__stage.is-interacting {
  transition: none;
}

#decisionImpactMapModalCanvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  display: block;
  cursor: crosshair;
}

#dashboardChartModalImage {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

#dashboardChartModalImage:not([src]),
#dashboardChartModalImage[src=""] {
  display: none;
}

body.decision-impact-map-modal-open,
body.dashboard-chart-modal-open {
  overflow: hidden;
}

body.chart-fullscreen-open {
  overflow: hidden;
}

body.chart-fullscreen-open .disciply-bottom-nav,
body.chart-fullscreen-open .hamburger-btn,
body.chart-fullscreen-open .menu-profile-btn,
body.chart-fullscreen-open .menu-alerts-btn,
body.chart-fullscreen-open .menu-theme-btn,
body.chart-fullscreen-open #menuBotModeBtn,
body.chart-fullscreen-open #mobileMenu,
body.chart-fullscreen-open #menuBackdrop,
body.chart-fullscreen-open #menuProfileModal,
body.chart-fullscreen-open #menuAlertsPanel {
  visibility: hidden !important;
  pointer-events: none !important;
}

.chart-fullscreen-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-width: 100vw;
  min-height: 100svh;
  height: 100svh;
  height: 100dvh;
  z-index: 15020;
  display: block;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(245, 196, 0, 0.12), transparent 52%),
    radial-gradient(920px 540px at 100% 0%, rgba(79, 125, 255, 0.16), transparent 48%),
    rgba(3, 7, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.chart-fullscreen-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chart-fullscreen-shell {
  width: 100%;
  height: 100%;
  min-height: calc(100svh - max(24px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(245, 196, 0, 0.14);
  background:
    radial-gradient(circle at top right, rgba(79, 125, 255, 0.14), transparent 34%),
    radial-gradient(circle at 16% 0%, rgba(245, 196, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 14, 25, 0.98), rgba(5, 8, 14, 0.99));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chart-fullscreen-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 16px;
}

.chart-fullscreen-heading {
  min-width: 0;
}

.chart-fullscreen-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 0, 0.18);
  background: rgba(245, 196, 0, 0.09);
  color: #f5c400;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-fullscreen-heading h4 {
  margin: 10px 0 0;
  color: var(--dash-text, #f4f6fb);
  font-size: 28px;
  line-height: 1.08;
}

.chart-fullscreen-heading p {
  margin: 8px 0 0;
  color: var(--dash-muted, #a4abb7);
  font-size: 14px;
  line-height: 1.5;
}

.chart-fullscreen-rangebar,
.chart-fullscreen-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-fullscreen-rangebar {
  grid-column: 1 / -1;
}

.chart-fullscreen-toolbar {
  justify-content: flex-end;
}

.chart-fullscreen-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dash-text, #f4f6fb);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.chart-fullscreen-btn:hover,
.chart-fullscreen-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, 0.36);
  background: rgba(245, 196, 0, 0.12);
}

.chart-fullscreen-btn.is-active {
  border-color: rgba(245, 196, 0, 0.42);
  background: rgba(245, 196, 0, 0.16);
  color: #fff3b8;
  box-shadow: inset 0 0 0 1px rgba(245, 196, 0, 0.12);
}

.chart-fullscreen-btn--close {
  color: #ffe0a8;
}

.chart-fullscreen-canvas-wrap {
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.98), rgba(7, 12, 19, 0.99));
  touch-action: none;
  user-select: none;
}

#chartFullscreenCanvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  display: block;
  cursor: crosshair;
}

.chart-fullscreen-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 154px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 196, 0, 0.16);
  background: rgba(4, 7, 12, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.chart-fullscreen-tooltip strong {
  color: var(--dash-text, #f4f6fb);
  font-size: 14px;
  line-height: 1.2;
}

.chart-fullscreen-tooltip span {
  color: var(--dash-muted, #a4abb7);
  font-size: 12px;
  line-height: 1.45;
}

.chart-fullscreen-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--dash-muted, #a4abb7);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 760px) {
  .chart-fullscreen-overlay {
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      max(8px, env(safe-area-inset-right, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
  }

  .chart-fullscreen-shell {
    padding: 12px;
    border-radius: 20px;
    gap: 10px;
    min-height: calc(100svh - max(16px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  }

  .chart-fullscreen-header {
    grid-template-columns: 1fr;
  }

  .chart-fullscreen-heading h4 {
    font-size: 22px;
  }

  .chart-fullscreen-heading p {
    font-size: 13px;
  }

  .chart-fullscreen-toolbar {
    justify-content: space-between;
  }

  .chart-fullscreen-rangebar,
  .chart-fullscreen-toolbar {
    gap: 6px;
  }

  .chart-fullscreen-btn {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .chart-fullscreen-canvas-wrap {
    border-radius: 18px;
  }
}

[data-theme="light"] .decision-impact-map-shell {
  border-color: rgba(145, 105, 0, 0.14);
  background:
    radial-gradient(760px 260px at 14% 12%, rgba(255, 255, 255, 0.46), transparent 58%),
    radial-gradient(620px 260px at 88% 8%, rgba(214, 168, 79, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 252, 0.98));
  color: var(--text-main, #101828);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .decision-impact-map-title h3,
[data-theme="light"] .decision-impact-map-summary h4,
[data-theme="light"] .decision-impact-map-insight-card strong,
[data-theme="light"] .decision-impact-map-meta-pill,
[data-theme="light"] .decision-impact-map-legend-item {
  color: var(--text-main, #101828);
}

[data-theme="light"] .decision-impact-map-subtitle,
[data-theme="light"] .decision-impact-map-range-label,
[data-theme="light"] .decision-impact-map-summary p,
[data-theme="light"] .decision-impact-map-insight-card small,
[data-theme="light"] .decision-impact-map-data-note,
[data-theme="light"] .decision-impact-map-custom-label {
  color: var(--text-soft, #667085);
}

[data-theme="light"] .decision-impact-map-chart-card {
  border-color: rgba(145, 105, 0, 0.12);
  background:
    radial-gradient(340px 150px at 12% 8%, rgba(214, 168, 79, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.68);
}

[data-theme="light"] .decision-impact-map-chip,
[data-theme="light"] .decision-impact-map-apply,
[data-theme="light"] .decision-impact-map-expand,
[data-theme="light"] .decision-impact-map-details-toggle,
[data-theme="light"] .decision-impact-map-custom-label input,
[data-theme="light"] .decision-impact-map-meta-pill,
[data-theme="light"] .decision-impact-map-legend-item,
[data-theme="light"] .decision-impact-map-insight-card {
  border-color: rgba(145, 105, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .decision-impact-map-details-toggle {
  color: var(--text-main, #101828);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 10px 22px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .decision-impact-map-modal__panel {
  border-color: rgba(145, 105, 0, 0.16);
  background:
    radial-gradient(circle at top right, rgba(111, 150, 255, 0.12), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(214, 168, 79, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 252, 0.99));
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .decision-impact-map-modal__title h4,
[data-theme="light"] .decision-impact-map-modal__action {
  color: var(--text-main, #101828);
}

[data-theme="light"] .decision-impact-map-modal__meta,
[data-theme="light"] .decision-impact-map-modal__hint {
  color: var(--text-soft, #667085);
}

[data-theme="light"] .decision-impact-map-modal__viewport {
  border-color: rgba(145, 105, 0, 0.1);
  background:
    radial-gradient(460px 220px at 50% 0%, rgba(255, 255, 255, 0.78), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 247, 251, 0.99));
}

[data-theme="light"] .decision-impact-map-chip.is-active {
  color: #7b5a10;
  background: rgba(214, 168, 79, 0.14);
  border-color: rgba(214, 168, 79, 0.34);
}

[data-theme="light"] .decision-impact-map-canvas-wrap {
  border-color: rgba(145, 105, 0, 0.1);
  background:
    radial-gradient(460px 220px at 50% 0%, rgba(255, 255, 255, 0.78), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.98));
}

@media (max-width: 980px) {
  .decision-impact-map-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .decision-impact-map-section {
    width: min(100%, calc(100% - 32px));
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .decision-impact-map-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .decision-impact-map-head,
  .decision-impact-map-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .decision-impact-map-title {
    gap: 8px;
    width: 100%;
  }

  .decision-impact-map-icon {
    margin-top: 1px;
  }

  .decision-impact-map-title h3 {
    font-size: 19px;
    line-height: 1.08;
  }

  .decision-impact-map-subtitle {
    margin-top: 5px;
    max-width: 30ch;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .decision-impact-map-range {
    display: grid;
    width: 100%;
    gap: 6px;
    overflow: visible;
  }

  .decision-impact-map-range {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .decision-impact-map-chip,
  .decision-impact-map-apply {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .decision-impact-map-meta {
    width: 100%;
  }

  .decision-impact-map-chip {
    border-radius: 12px;
  }

  .decision-impact-map-apply {
    min-height: 38px;
  }

  .decision-impact-map-custom {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .decision-impact-map-custom-label {
    font-size: 11px;
    gap: 5px;
  }

  .decision-impact-map-custom-label input {
    min-height: 40px;
  }

  .decision-impact-map-layout {
    margin-top: 12px;
  }

  .decision-impact-map-chart-card {
    padding: 12px;
    border-radius: 16px;
  }

  .decision-impact-map-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .decision-impact-map-meta-pill {
    justify-content: center;
    min-height: 26px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .decision-impact-map-kicker {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }

  .decision-impact-map-canvas-wrap,
  #decisionImpactMapCanvas {
    min-height: 248px;
    border-radius: 16px;
  }

  .decision-impact-map-expand {
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .decision-impact-map-expand svg {
    width: 16px;
    height: 16px;
  }

  .decision-impact-map-summary h4 {
    margin: 8px 0 4px;
    font-size: 17px;
    line-height: 1.14;
  }

  .decision-impact-map-summary p {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .decision-impact-map-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .decision-impact-map-insight-card {
    min-height: 96px;
    padding: 10px;
    border-radius: 14px;
  }

  .decision-impact-map-insight-card span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .decision-impact-map-insight-card strong {
    margin-top: 6px;
    font-size: 15px;
  }

  .decision-impact-map-insight-card small {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .decision-impact-map-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 12px;
  }

  .decision-impact-map-legend-item {
    justify-content: center;
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .decision-impact-map-data-note {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
  }

  .decision-impact-map-modal {
    padding: 8px;
  }

  .decision-impact-map-modal__panel {
    width: 100%;
    height: calc(100dvh - 16px);
    padding: 12px;
    border-radius: 18px;
    gap: 8px;
  }

  .decision-impact-map-modal__header {
    gap: 10px;
  }

  .decision-impact-map-modal__title h4 {
    margin-top: 8px;
    font-size: 18px;
  }

  .decision-impact-map-modal__meta,
  .decision-impact-map-modal__hint {
    font-size: 11px;
    line-height: 1.35;
  }

  .decision-impact-map-modal__actions {
    gap: 6px;
  }

  .decision-impact-map-modal__action {
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 16px;
  }

  .decision-impact-map-modal__viewport {
    border-radius: 16px;
  }
}

@media (max-width: 700px) {
  .decision-impact-map-shell {
    padding: 11px;
    border-radius: 17px;
  }

  .decision-impact-map-head {
    gap: 8px;
  }

  .decision-impact-map-title {
    gap: 7px;
  }

  .decision-impact-map-title h3 {
    font-size: 17px;
    line-height: 1.06;
  }

  .decision-impact-map-subtitle {
    display: none;
  }

  .decision-impact-map-range {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .decision-impact-map-range [data-impact-range="30d"],
  .decision-impact-map-range [data-impact-range="90d"] {
    display: none;
  }

  .decision-impact-map-range [data-impact-range="7d"] {
    flex: 0 0 64px;
    min-width: 64px;
  }

  .decision-impact-map-range [data-impact-range="custom"] {
    flex: 1 1 auto;
    justify-content: center;
  }

  .decision-impact-map-chip,
  .decision-impact-map-apply {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
  }

  .decision-impact-map-chip--custom {
    gap: 6px;
  }

  .decision-impact-map-chip--custom svg {
    width: 13px;
    height: 13px;
  }

  .decision-impact-map-custom {
    gap: 8px;
    margin-top: 10px;
  }

  .decision-impact-map-layout {
    margin-top: 10px;
  }

  .decision-impact-map-chart-card {
    padding: 10px;
    border-radius: 15px;
  }

  .decision-impact-map-chart-head {
    gap: 4px;
    margin-bottom: 0;
  }

  .decision-impact-map-kicker {
    display: none;
  }

  .decision-impact-map-range-label {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .decision-impact-map-meta {
    display: none;
  }

  .decision-impact-map-canvas-wrap {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .decision-impact-map-shell {
    padding: 11px;
  }

  .decision-impact-map-title h3 {
    font-size: 18px;
  }

  .decision-impact-map-subtitle {
    display: none;
  }

  .decision-impact-map-range {
    gap: 7px;
  }

  .decision-impact-map-chip,
  .decision-impact-map-apply {
    min-height: 32px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .decision-impact-map-canvas-wrap,
  #decisionImpactMapCanvas {
    min-height: 228px;
  }

  .decision-impact-map-modal__header {
    flex-direction: column;
  }

  .decision-impact-map-modal__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .decision-impact-map-modal__hint {
    display: none;
  }

  .decision-impact-map-modal__panel.is-portrait-mobile .decision-impact-map-modal__meta {
    display: none;
  }

  .decision-impact-map-summary h4 {
    font-size: 16px;
  }

  .decision-impact-map-summary p {
    display: none;
  }

  .decision-impact-map-insight-card {
    min-height: 86px;
    padding: 9px;
  }

  .decision-impact-map-insight-card strong {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .decision-impact-map-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-width: 900px) {
  .decision-impact-map-modal {
    padding: 4px;
  }

  .decision-impact-map-modal__panel {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
    padding: 10px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .bot-mode-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bot-mode-modal-content {
    width: min(100vw - 16px, 520px);
    max-height: calc(100dvh - 18px);
    padding: 12px;
    border-radius: 16px;
  }

  #botModeModal {
    padding:
      max(10px, env(safe-area-inset-top, 0px))
      10px
      calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .bot-mode-stepper__step {
    min-height: 34px;
    font-size: 11px;
  }

  .bot-mode-step {
    padding: 10px;
    border-radius: 14px;
  }

  .bot-mode-actions,
  .bot-mode-actions__primary {
    width: 100%;
  }

  .bot-mode-actions {
    flex-direction: column;
  }

  .bot-mode-actions__primary {
    justify-content: stretch;
  }

  .bot-mode-actions__primary .btn,
  .bot-mode-actions > .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .bot-mode-modal-content {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .bot-mode-stepper {
    gap: 5px;
  }

  .bot-mode-stepper__step {
    padding: 0 6px;
    font-size: 11px;
  }

  .bot-mode-summary {
    padding: 8px 10px;
    gap: 6px;
  }

  .bot-mode-step {
    margin-top: 8px;
    padding: 9px;
  }

  .bot-mode-field .settings-input,
  .bot-mode-field textarea.settings-input,
  .bot-mode-field select.settings-input,
  .bot-mode-toggle {
    min-height: 40px;
  }

  .bot-mode-actions .btn {
    min-height: 38px;
  }
}

/* =========================================================
   ENTERPRISE DESKTOP LAYER
   Scope rigoroso: nessun impatto sotto 1200px (mobile/PWA/tablet invariati).
   ========================================================= */
@media (min-width: 1200px) {
  :root {
    --desktop-shell: min(2240px, calc(100vw - 72px));
    --desktop-content: min(2080px, calc(100vw - 96px));
    --desktop-reading: min(1280px, calc(100vw - 128px));
    --desktop-gap: clamp(22px, 1.65vw, 32px);
    --desktop-section-space: clamp(30px, 2.5vw, 48px);
    --desktop-card-radius: 24px;
    --desktop-panel: linear-gradient(180deg, rgba(19, 23, 31, 0.94), rgba(8, 11, 16, 0.97));
    --desktop-panel-soft: rgba(255, 255, 255, 0.032);
    --desktop-border: rgba(255, 255, 255, 0.095);
    --desktop-border-gold: rgba(212, 175, 55, 0.22);
    --desktop-shadow: 0 24px 64px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  html {
    font-size: 16px;
  }

  body {
    letter-spacing: -0.005em;
  }

  #app,
  body > .after-login {
    width: var(--desktop-shell);
    max-width: none;
    margin-inline: auto;
  }

  #app {
    padding: 24px 0 8px;
  }

  body > .after-login {
    padding-inline: 0;
  }

  #app > :where(.card, .trades-section, .why-section, .decision-impact-map-section),
  body > .after-login > :where(section, .analysis-wrapper) {
    scroll-margin-top: 28px;
  }

  .welcome-text {
    width: var(--desktop-content);
    margin: 22px auto 18px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
  }

  .welcome-text::after {
    width: 100%;
    height: 1px;
    margin: 13px 0 0;
    background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.12) 22%, transparent 74%);
  }

  .hero {
    position: relative;
    isolation: isolate;
    width: var(--desktop-content);
    max-width: none;
    min-height: 250px;
    margin: 0 auto var(--desktop-section-space);
    padding: clamp(42px, 4vw, 64px);
    overflow: hidden;
    border: 1px solid var(--desktop-border-gold);
    border-radius: 30px;
    background:
      linear-gradient(90deg, rgba(6, 9, 14, 0.97) 0%, rgba(9, 13, 20, 0.94) 54%, rgba(13, 17, 24, 0.86) 100%),
      radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.16), transparent 32%);
    box-shadow: var(--desktop-shadow);
    text-align: left;
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent 34%, #000 100%);
  }

  .hero-title {
    max-width: 800px;
    margin: 0 0 16px;
    color: var(--text-main);
    font-size: clamp(38px, 3.15vw, 54px);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .hero-title::first-line {
    color: var(--gold);
  }

  .hero-subtitle {
    max-width: 680px;
    margin: 0 0 26px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
  }

  .hero .why-points {
    justify-content: flex-start;
    gap: 10px;
  }

  .hero .why-points span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-color: rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.055);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.015em;
  }

  #app > .card,
  .risk-control-card,
  .coach-card,
  .phase-two-overview__bar,
  .phase-two-card,
  .calendar,
  .hybrid-profile-stats,
  .withdrawals-card,
  .analysis-flow-card {
    border-color: var(--desktop-border);
    border-radius: var(--desktop-card-radius);
    background: var(--desktop-panel);
    box-shadow: var(--desktop-shadow);
  }

  #app > .card {
    width: var(--desktop-content);
    max-width: none;
    margin: 0 auto var(--desktop-section-space);
    padding: clamp(26px, 2.15vw, 36px);
    gap: 20px;
  }

  #app > .card.export-section {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr auto;
    align-items: start;
    gap: 18px var(--desktop-gap);
  }

  #app > .card.export-section .equity-chart-header,
  #app > .card.export-section .equity-chart-custom-range {
    grid-column: 1 / -1;
  }

  #app > .card.export-section .equity-chart-header {
    justify-content: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--desktop-border);
  }

  #app > .card.export-section .equity-chart-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.025em;
    text-align: left;
  }

  #app > .card.export-section .equity-chart-surface {
    grid-column: 1 / span 8;
    grid-row: 3 / span 3;
    min-height: 390px;
    padding: 18px;
    border: 1px solid var(--desktop-border);
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.055), transparent 44%),
      rgba(3, 6, 11, 0.58);
  }

  #app > .card.export-section #equityChart {
    height: 350px !important;
  }

  #app > .card.export-section .graph-info {
    grid-column: 9 / -1;
    grid-row: 3;
    max-width: none;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--desktop-border);
    border-radius: 18px;
    background: var(--desktop-panel-soft);
    text-align: left;
  }

  #app > .card.export-section .graph-info-title {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  #app > .card.export-section .graph-info-text {
    font-size: 13px;
    line-height: 1.55;
  }

  #app > .card.export-section #stats {
    grid-column: 9 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    gap: 10px;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #app > .card.export-section .stat-pill {
    min-width: 0;
    min-height: 104px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    border-color: var(--desktop-border);
    border-radius: 17px;
    background: var(--desktop-panel-soft);
  }

  #app > .card.export-section .stat-value {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 24px;
    font-weight: 720;
    letter-spacing: -0.035em;
  }

  #app > .card.export-section .stat-label {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    white-space: normal;
  }

  #app > .card.export-section .equity-chart-actions,
  #app > .card.export-section #exportCsv {
    grid-column: 9 / -1;
    width: 100%;
    margin: 0;
  }

  #app > .card.export-section .equity-chart-actions {
    grid-row: 5;
  }

  #app > .card.export-section #exportCsv {
    grid-row: 6;
  }

  #app > .card.export-section .equity-chart-customize {
    width: 100%;
  }

  .decision-impact-map-section,
  #operazioniSection,
  .why-section,
  .calendar-wrapper,
  .hybrid-profile-stats,
  .control-console,
  .phase-two-overview,
  #dailyPerformanceSection,
  #profiloSection,
  #operativePerformancePanel,
  .size-coach-section,
  .swing-performance-panel,
  .next-trade-plan-section,
  .discipline-score-premium,
  .analysis-wrapper,
  .withdrawals-card,
  .market-news-section,
  .tiktok-mode-cta-section,
  .xm-cta-section,
  .support-center-section {
    width: var(--desktop-content);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .decision-impact-map-section,
  #operazioniSection,
  .calendar-wrapper,
  .control-console,
  .phase-two-overview,
  #dailyPerformanceSection,
  #profiloSection,
  #operativePerformancePanel,
  .size-coach-section,
  .swing-performance-panel,
  .next-trade-plan-section,
  .discipline-score-premium,
  .analysis-wrapper,
  .withdrawals-card {
    margin-top: var(--desktop-section-space);
    margin-bottom: var(--desktop-section-space);
  }

  .decision-impact-map-shell {
    padding: 28px;
    border-radius: 26px;
  }

  .decision-impact-map-title h3,
  .daily-dashboard-title h3,
  .profile-dashboard-title h2,
  .operative-title h3 {
    font-size: clamp(25px, 1.8vw, 31px);
    letter-spacing: -0.035em;
  }

  .trades-section {
    padding: 28px 30px;
    border: 1px solid var(--desktop-border);
    border-radius: var(--desktop-card-radius);
    background: var(--desktop-panel);
    box-shadow: var(--desktop-shadow);
  }

  .trades-section .help-inline-row {
    justify-content: flex-start;
  }

  .trades-section .section-title,
  .trades-section .section-subtitle {
    text-align: left;
  }

  .trades-section .section-title {
    margin: 0;
    color: var(--text-main);
    font-size: 23px;
  }

  .trades-section .section-subtitle {
    margin: 8px 0 20px;
    font-size: 14px;
  }

  .trades-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .trade-card {
    min-height: 116px;
    padding: 18px;
    border-color: var(--desktop-border);
    border-radius: 18px;
    background: var(--desktop-panel-soft);
  }

  .trade-asset,
  .trade-result,
  .trade-pnl,
  .calendar-day__amount,
  .dashboard-date-pill,
  .daily-metric-value {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  }

  .why-section {
    margin-top: calc(var(--desktop-section-space) * -0.45);
    margin-bottom: var(--desktop-section-space);
    padding: 20px 28px;
    border-left: 2px solid var(--gold);
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.07), transparent 72%);
    text-align: left;
  }

  .why-section .section-title {
    color: var(--text-main);
    text-align: left;
  }

  .why-section .why-text {
    max-width: var(--desktop-reading);
    margin-bottom: 0;
    color: var(--text-soft);
  }

  .calendar-wrapper {
    padding: 0;
  }

  .calendar {
    padding: 28px;
  }

  .calendar-topbar {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--desktop-border);
  }

  .calendar .section-title {
    color: var(--text-main);
    font-size: 24px;
    text-align: left;
  }

  .calendar-day {
    min-height: 118px;
    padding: 13px 12px;
    border-radius: 16px;
  }

  .calendar-day__number {
    font-size: 14px;
  }

  .calendar-day__amount {
    font-size: 13px;
  }

  .hybrid-profile-stats {
    padding: 26px;
  }

  .hybrid-profile-stats__grid {
    border-radius: 18px;
  }

  .hybrid-profile-metric {
    padding: 26px 18px 22px;
  }

  .control-console {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: var(--desktop-gap);
  }

  .risk-control-card,
  .coach-card {
    padding: 26px;
  }

  .risk-donut-card,
  .risk-limit-card,
  .coach-kpi {
    border-color: var(--desktop-border);
    background: var(--desktop-panel-soft);
  }

  .phase-two-overview__bar {
    padding: 22px 24px;
  }

  .phase-two-overview__copy h3 {
    font-size: 22px;
  }

  .phase-two-overview__copy p {
    font-size: 13px;
  }

  .phase-two-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--desktop-gap);
  }

  .phase-two-card {
    height: 100%;
    padding: 22px;
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card,
  .performance-intelligence-panel.pi-dashboard-panel {
    border-radius: 28px;
  }

  .daily-dashboard-card,
  #profiloSection.trader-profile-dashboard,
  .operative-performance-card {
    padding: clamp(28px, 2.25vw, 38px);
  }

  .daily-metrics-panel {
    gap: 0;
    padding: 34px 24px;
  }

  .daily-metric-card {
    min-height: 210px;
    justify-content: center;
  }

  .daily-metric-value {
    font-size: clamp(38px, 3.2vw, 52px);
  }

  .discipline-score-premium__hero {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    justify-items: center;
    padding: 24px 4%;
  }

  .discipline-score-premium__subscores {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .discipline-score-premium__improvement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .analysis-flow-card,
  .capital-control-section {
    width: 100%;
    max-width: none;
  }

  .analysis-flow-card {
    padding: 26px;
  }

  .withdrawals-card {
    padding: 26px;
  }

  .withdrawals-chart-wrap {
    min-height: 280px;
    padding: 16px;
    border-radius: 18px;
  }

  .xm-cta-card,
  .support-center-card {
    max-width: none;
  }

  .xm-cta-card {
    padding: 34px 38px;
  }

  .btn,
  button,
  a {
    transition-duration: 180ms;
  }

  @media (hover: hover) and (pointer: fine) {
    #app > .card,
    .trades-section,
    .calendar,
    .risk-control-card,
    .coach-card,
    .phase-two-card,
    .daily-dashboard-card,
    #profiloSection.trader-profile-dashboard,
    .operative-performance-card,
    .withdrawals-card {
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    #app > .card:hover,
    .trades-section:hover,
    .calendar:hover,
    .risk-control-card:hover,
    .coach-card:hover,
    .phase-two-card:hover,
    .daily-dashboard-card:hover,
    #profiloSection.trader-profile-dashboard:hover,
    .operative-performance-card:hover,
    .withdrawals-card:hover {
      border-color: rgba(212, 175, 55, 0.2);
      box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    }

    .trade-card:hover,
    .stat-pill:hover,
    .calendar-day:hover {
      transform: translateY(-2px);
      border-color: rgba(212, 175, 55, 0.28);
    }
  }
}
