/* Financial value dashboard — CosaFin-inspired wealth intelligence canvas. */
#financial-charts { scroll-margin-top: 112px; }

#financial-charts.value-chart-delivery,
#financial-charts.value-chart-delivery.is-active {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  grid-template-rows: 48px minmax(0, 1fr);
  gap: 0;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 164, 190, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(83, 104, 135, .2), transparent 26%),
    linear-gradient(145deg, #090e15 0%, #080d14 72%, #05090e 100%);
  box-shadow: 0 42px 96px rgba(9, 14, 21, .24), inset 0 1px rgba(255,255,255,.055);
}

#financial-charts.value-chart-delivery::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(166, 190, 215, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 190, 215, .024) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  content: "";
  pointer-events: none;
}

#financial-charts .results-delivery-index {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-self: stretch;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid rgba(142, 164, 190, .13);
  color: #78889b;
  font-size: 8px;
  font-weight: 560;
  letter-spacing: .2em;
  writing-mode: horizontal-tb;
  transform: none;
}

#financial-charts .results-delivery-index::before {
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: #9ebfe0;
  box-shadow: 0 0 0 4px rgba(158, 191, 224, .08), 0 0 18px rgba(158, 191, 224, .54);
  content: "";
}

#financial-charts .value-chart-theatre {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 54px 104px minmax(0, 1fr) 44px;
  min-width: 0;
  min-height: 671px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#financial-charts .value-chart-theatre::before,
#financial-charts .value-chart-theatre::after { display: none; }

#financial-charts .value-theatre-head {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(142, 164, 190, .1);
  color: #7b8a9c;
  font-size: 8px;
  font-weight: 560;
  letter-spacing: .18em;
}

#financial-charts .value-theatre-head em {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9baabb;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .08em;
}

#financial-charts .value-theatre-head em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9c8e7;
  box-shadow: 0 0 15px rgba(169, 200, 231, .5);
}

#financial-charts .value-rail {
  position: relative;
  inset: auto;
  z-index: 5;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 12px 18px 10px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

#financial-charts .value-rail button {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  min-width: 0;
  padding: 11px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(147, 167, 191, .1);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #6f7d8f;
  text-align: left;
  cursor: pointer;
  transition: border-color .28s ease, background .28s ease, transform .28s ease, box-shadow .28s ease;
}

#financial-charts .value-rail button::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #9cbde0, #c8d7e7);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: left;
  transition: opacity .3s ease, transform .4s cubic-bezier(.16,.84,.24,1);
}

#financial-charts .value-rail button::after { display: none; }
#financial-charts .value-rail button:hover {
  border-color: rgba(156, 188, 221, .2);
  background: rgba(91, 113, 141, .065);
  transform: translateY(-2px);
}
#financial-charts .value-rail button.is-active {
  border-color: rgba(158, 191, 224, .36);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 191, 224, .19), transparent 54%),
    linear-gradient(145deg, rgba(70, 92, 120, .26), rgba(20, 32, 48, .25));
  color: #a9cae8;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 13px 25px rgba(0, 0, 0, .16);
}
#financial-charts .value-rail button.is-active::before { opacity: 1; transform: scaleX(1); }
#financial-charts .value-rail button:focus-visible { outline: 2px solid #abc9e7; outline-offset: 2px; }

#financial-charts .value-rail button span,
#financial-charts .value-rail button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#financial-charts .value-rail button span {
  margin: 0 0 8px;
  color: #6d7c8e;
  font-size: 7px;
  letter-spacing: .13em;
}
#financial-charts .value-rail button strong {
  align-self: end;
  margin: 0 0 3px;
  color: #a9b5c4;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 520;
  letter-spacing: -.04em;
  white-space: nowrap;
}
#financial-charts .value-rail button small { color: #6b7a8b; font-size: 8px; }
#financial-charts .value-rail button.is-active span { color: #8caeca; }
#financial-charts .value-rail button.is-active strong { color: #f0f4f8; }
#financial-charts .value-rail button.is-active small { color: #9db7ce; }

#financial-charts .value-chart-stage {
  position: relative;
  inset: auto;
  z-index: 3;
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr);
  gap: 16px;
  height: auto;
  min-height: 0;
  margin: 8px 18px 12px;
  padding: 26px 28px 18px;
  overflow: hidden;
  border: 1px solid rgba(147, 167, 191, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 2%, rgba(76, 103, 137, .18), transparent 34%),
    linear-gradient(145deg, rgba(17, 26, 38, .88), rgba(8, 14, 22, .84));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 22px 45px rgba(0, 0, 0, .19);
}

#financial-charts .value-chart-stage::before {
  position: absolute;
  top: 88px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(145, 177, 210, .095);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(145, 177, 210, .026), 0 0 0 72px rgba(145, 177, 210, .012);
  content: "";
  pointer-events: none;
}

#financial-charts .value-chart-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

#financial-charts .value-chart-summary small {
  display: block;
  margin-bottom: 10px;
  color: #8596a9;
  font-size: 9px;
  font-weight: 540;
  letter-spacing: .1em;
}

#financial-charts .value-chart-summary strong {
  display: block;
  color: #f0f4f8;
  font-size: clamp(58px, 5.3vw, 82px);
  font-weight: 410;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: .94;
  white-space: nowrap;
  text-shadow: 0 10px 34px rgba(0,0,0,.28);
}

#financial-charts .value-chart-context {
  display: grid;
  gap: 5px;
  min-width: 122px;
  padding: 12px 14px;
  border: 1px solid rgba(137, 160, 187, .13);
  border-radius: 11px;
  background: rgba(5, 10, 16, .3);
  text-align: left;
  white-space: nowrap;
}
#financial-charts .value-chart-context p,
#financial-charts .value-chart-context span { margin: 0; font-size: 9px; }
#financial-charts .value-chart-context p { color: #bdc8d4; }
#financial-charts .value-chart-context span { color: #78889b; }

#financial-charts .value-chart-plot {
  position: relative;
  z-index: 2;
  min-height: 250px;
  padding: 0 4px;
}
#financial-charts .value-chart-plot svg { width: 100%; height: 100%; overflow: visible; }
#financial-charts .value-chart-plot svg text { fill: #dce5ef; font-size: 13px; }
#financial-charts .value-chart-plot .chart-axis { fill: #617184; font-size: 10px; }
#financial-charts .value-chart-plot .chart-label { fill: #93a3b5; font-size: 11px; }
#financial-charts .value-chart-plot .chart-value { fill: #f0f4f8; font-size: 17px; font-weight: 560; }
#financial-charts .value-chart-plot .chart-callout { fill: #d7e3ef; font-size: 19px; font-weight: 570; }
#financial-charts .chart-grid { stroke: #9fb8d2; stroke-opacity: .1; }
#financial-charts .chart-connector { stroke: #8fa9c2; stroke-opacity: .32; stroke-dasharray: 3 5; }
#financial-charts .chart-focus-line { stroke: #a5c5e5; }
#financial-charts .chart-track { fill: #202b39; }
#financial-charts .chart-mark { filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .22)); }

#financial-charts .value-chart-foot {
  position: relative;
  inset: auto;
  z-index: 3;
  grid-column: 1;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0;
  padding: 0 20px;
  border-top: 1px solid rgba(142, 164, 190, .1);
  color: #68778a;
  font-size: 8px;
}
#financial-charts .value-chart-foot > span:first-child { flex-shrink: 0; letter-spacing: .14em; }
#financial-charts .value-chart-foot b { color: #abb8c7; font-weight: 560; }
#financial-charts .value-chart-foot > span:last-child { text-align: right; }

#financial-charts .value-detail {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-width: 0;
  min-height: 671px;
  margin: 14px 14px 14px 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(145, 168, 194, .15);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 10%, rgba(121, 156, 192, .2), transparent 27%),
    linear-gradient(155deg, rgba(18, 29, 43, .92), rgba(8, 15, 24, .94));
  color: #eff4f9;
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 22px 45px rgba(0,0,0,.18);
}

#financial-charts .value-detail::before {
  position: absolute;
  top: 78px;
  right: -84px;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 179, 212, .18), rgba(145, 179, 212, .035) 42%, transparent 70%);
  content: "";
  pointer-events: none;
}

#financial-charts .value-detail::after { display: none; }

#financial-charts .value-detail > header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(145, 168, 194, .14);
}
#financial-charts .value-detail > header span { color: #a5c7e6; font-size: 8px; font-weight: 560; letter-spacing: .15em; }
#financial-charts .value-detail > header em { color: #75869a; font-size: 8px; font-style: normal; }

#financial-charts .value-detail > strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 280px;
  margin: 58px 0 18px;
  color: #eff4f9;
  font-size: clamp(27px, 2vw, 34px);
  font-weight: 470;
  letter-spacing: -.05em;
  line-height: 1.25;
}

#financial-charts .value-detail > p {
  position: relative;
  z-index: 2;
  min-height: 0;
  margin: 0;
  color: #92a2b4;
  font-size: 12px;
  line-height: 1.82;
}

#financial-charts .value-detail > div {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 34px;
  padding: 17px;
  border: 1px solid rgba(145, 168, 194, .14);
  border-radius: 14px;
  background: rgba(5, 10, 16, .3);
}
#financial-charts .value-detail > div small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #95b4d1;
  font-size: 8px;
  font-weight: 560;
  letter-spacing: .13em;
}
#financial-charts .value-detail > div small::before { width: 18px; height: 2px; background: #9fc0df; content: ""; }
#financial-charts .value-detail > div span { display: block; color: #9dabb9; font-size: 11px; line-height: 1.75; }

#financial-charts .value-detail > footer {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #718397;
  font-size: 8px;
  letter-spacing: .08em;
}
#financial-charts .value-detail > footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5c5e5;
  box-shadow: 0 0 0 4px rgba(165, 197, 229, .08), 0 0 14px rgba(165, 197, 229, .34);
}
#financial-charts.is-switching .value-detail { opacity: 1; filter: none; transform: none; }

@media (max-width: 1200px) {
  #financial-charts.value-chart-delivery,
  #financial-charts.value-chart-delivery.is-active { grid-template-columns: minmax(0, 1fr) 308px; }
  #financial-charts .value-rail { gap: 5px; padding-inline: 14px; }
  #financial-charts .value-rail button { padding-inline: 8px; }
  #financial-charts .value-chart-stage { margin-inline: 14px; padding-inline: 22px; }
  #financial-charts .value-chart-summary strong { font-size: 62px; }
  #financial-charts .value-detail { margin-right: 10px; padding: 19px; }
  #financial-charts .value-detail > strong { font-size: 28px; }
}

@media (max-width: 850px) {
  #financial-charts.value-chart-delivery,
  #financial-charts.value-chart-delivery.is-active { grid-template-columns: 1fr; min-height: 0; }
  #financial-charts .value-detail { grid-column: 1; grid-row: 3; min-height: 390px; margin: 0 12px 12px; }
  #financial-charts .value-rail { display: flex; overflow-x: auto; scrollbar-width: none; }
  #financial-charts .value-rail button { min-width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  #financial-charts .value-rail button { transition: none; }
}
