body {
  margin: 0;
}

button {
  cursor: pointer;
}

#riskon-specs .zerolinelayer,
#riskoff-specs .zerolinelayer {
  display: none !important;
}

.container {
  background: #e9f5fe;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  justify-content: center;
  max-width: 1224px;
  width: 100%;
  margin: 0 auto;
}

.container__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  margin: 0 auto;
  box-sizing: border-box;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: Caveat;
}

.wrapper {
  box-sizing: border-box;
  padding: 48px;
  width: 100%;
  background: #e9f5fe;
  border-radius: 48px;
}

.content {
  display: none; /* Hide all content divs by default */
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  width: 100%;
  flex-direction: column;
  gap: 48px;
  position: relative;
}

.content::after {
  content: "© 2025 The Risk Protocol";
  position: absolute;
  bottom: 0;
  right: 0;
  color: #969696;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.content-gauge {
  padding-bottom: 50px;
}

/* Responsive text scaling */
@media (max-width: 1024px) {
  .content {
    font-size: 20px;
  }
}

/* =========================================
    CUSTOM SELECT
    ========================================== */
.custom-select-wrapper {
  position: relative;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: fit-content;
  margin: auto;
}
.subtitle {
  color: #1a1b1f;
  font-family: Caveat;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  width: 100%;
  text-align: center;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  border-radius: 20px;
}
.custom-select-trigger strong {
  font-weight: bold;
  background: linear-gradient(to right, #6cc2dd, #7561b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid #222222 !important;
  margin: 0 6px;
}

/* Arrow icon for the select */
.custom-select-trigger:not(.unselect)::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: rotate(45deg);
  margin-left: 4px;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 999999;
  padding: 10px;
  display: none;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}
.custom-options.visible {
  display: flex; /* Show dropdown */
}

.custom-option strong {
  pointer-events: none;
}

.custom-option:not(.tab-label) {
  padding: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  background: linear-gradient(
    to right,
    rgba(108, 194, 221, 0.1),
    rgba(117, 97, 184, 0.1)
  );
  margin-bottom: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.custom-option:not(.tab-label) strong {
  font-weight: bold;
  background: linear-gradient(to right, #6cc2dd, #7561b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.custom-option:not(.tab-label):hover {
  background-color: #f0f0f0;
}

#token-selector-historical,
#token-selector-current {
  display: none;
}

/* Responsive custom-select-trigger on smaller screens */
@media (max-width: 1024px) {
  .custom-select-wrapper {
    width: 100%;
  }
  .custom-select-trigger {
    align-items: flex-start;
    font-size: 20px;
    line-height: 20px;
    padding: 0;
  }
  .custom-select-trigger::after {
    margin-top: 6px; /* Adjust arrow vertical alignment */
  }
}

.plot-container,
.chart__container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 40px;
  width: 100%;
}
.line-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 30px;
  margin-bottom: 30px;
  max-width: calc(100% - 180px);
}
.line-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-wrap: nowrap;
  color: #222;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.line-controls input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: black;
}

.chart-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 30px;
  text-wrap: nowrap;
  color: #222;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.chart-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.chart-history {
  margin-left: 30px;
  display: flex;
  gap: 14px;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.chart-metrics .metric-option,
.chart-history .metric-option {
  display: flex;
  align-items: center;
}

.chart-metrics input[type="radio"],
.chart-history input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: white;
  position: relative;
  cursor: pointer;
  margin: 0 10px 0 0;
}

.chart-metrics input[type="radio"]:checked,
.chart-history input[type="radio"]:checked {
  background-color: black;
  border-color: black;
}

.chart-metrics input[type="radio"]:checked::before,
.chart-history input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
}

#tableDiv,
#historical-ntv,
#current-ntv,
#plotly-chart-dominance,
#plotly-chart-returns,
#plotly-chart-growth,
#riskoff-specs,
#riskon-specs {
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
}

#over-plot,
#forecast-plot,
#spread-plot,
#rolling-plot,
#chart {
  width: 100%;
  height: 466px;
  display: flex;
  align-items: center;
}

.plot {
  width: 100%;
}

.plot-table {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.gauge-container {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
}

#tableDiv,
#historical-ntv,
#over-plot,
#spread-plot,
#rolling-plot,
#forecast-plot,
#current-ntv,
#riskoff-specs,
#riskon-specs,
#plotly-chart-dominance,
#plotly-chart-returns,
#chart,
#plotly-chart-growth {
  * {
    background: none !important;
  }

  .bg {
    fill: none !important;
  }

  .rangeslider-bg {
    fill: #e9f5fe !important;
  }
}

#default:has(.current.active) .rangeselector {
  display: none;
}

.content-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.content-share-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background-color: #ffffff;
  border: 1px solid #222;
  top: 0;
  right: 0;
  width: 157px;
  border-radius: 54px;
  font-weight: bold;
}

.content-title {
  color: #1a1b1f;
  text-align: center;
  font-family: Roboto, sans-serif;
  position: relative;
  font-size: 24px;
  line-height: 150%;
  font-weight: 500;
  margin: 0 auto;
}

.tabbar {
  max-width: 230px !important;
  max-height: 40px;
}

.tabbar-title {
  margin: 16px auto;
  margin-top: 0;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.content-title .tooltip {
  right: -20px;
  top: 0;
}

.content-tabs {
  width: 100%;
  max-width: 412px;
  height: 56px;
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
}

.content-tabs button {
  outline: none;
  border: none;
  background: none;
  width: 100%;
  height: 100%;
  color: #1a1b1f;
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  position: relative;
  text-wrap: nowrap;
}

.hidden {
  display: none !important;
}

.tail-risk {
  max-width: 420px !important;
  max-height: 40px;
}

.content-tabs button.active {
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
}

/* Plotly-style timeframe selector */
.plotly-timeframe-selector {
  position: absolute;
  top: 140px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #d3d3d3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plotly-timeframe-selector button {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  border-radius: 3px;
  min-width: 32px;
  text-align: center;
  font-family: "Open Sans", verdana, arial, sans-serif;
  transition: background-color 0.2s ease;
}

.plotly-timeframe-selector button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.plotly-timeframe-selector button.active {
  background: #1f77b4;
  color: white;
}

.specs.content::after,
.risk.content::after {
  display: none;
}

.summary__container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.summary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.summary-small {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 16px;
  height: fit-content;
  max-width: 240px;
  width: 100%;
}

.summary-small span {
  background: linear-gradient(
    90deg,
    #34a2c5 0.05%,
    #34a2c5 23.98%,
    #7561b8 50%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Roboto;
  font-size: 14px;
  line-height: 133.4%;
  text-align: left;
}

.summary-large {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 16px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-large strong {
  background: linear-gradient(
    91deg,
    #34a2c5 0.46%,
    #34a2c5 5.18%,
    #7561b8 10.32%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Roboto;
  font-size: 14px;
  line-height: 133.4%;
  text-align: left;
}

.summary-large ul {
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 133.4%;
  text-align: left;
  margin: 0;
  padding-left: 24px;
}

.specs-tab .plot {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  .annotation {
    transform: translate(78px, 52px) !important;
  }
}

.risk__container > h2 {
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  position: relative;
  width: fit-content;
  margin: 0 auto 16px auto;
  position: relative;
}

.risk__container > h2 .tooltip {
  right: -16px;
  top: -6px;
}

.gauge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gauge {
  width: 270px;
  height: 300px;
  position: relative;
  transform: scale(1.1);
}

.gauge h2 {
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 150%;
  position: relative;
  width: fit-content;
  margin: 0 auto 10px auto;
}

.gauge > svg {
  background: #f5f5f5;
  border-radius: 50%;
}

.gauge-info {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #000;
  font-size: 8px;
  font-weight: 500;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 5px;
}

.tooltip-box {
  position: fixed;
  min-width: 220px;
  max-width: 300px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(10, 10, 23, 0.15);
  color: #1a1b1f;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  line-height: 150%;
  text-align: left;
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 99999; /* поверх усіх елементів */
  pointer-events: none;
}

.gauge .gauge__value-container {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  font-family: Roboto;
  font-size: 24px;
  font-weight: 800;
  line-height: 34px;
  text-align: center;
  color: #ffffff;
  user-select: none;
}

.gauge-value__wrapper {
  position: relative;
  top: 10px;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gauge__value-container .bg {
  position: absolute;
  left: 0;
  right: 0;
}

.gauge .gauge-key {
  transform-origin: center;
  transition: transform 0.6s ease;
}

.gauge .gauge-bar1 {
  transition: stroke-dashoffset 0.3s ease;
  stroke-dasharray: 570;
  stroke-dashoffset: 570;
}

.gauge .gauge-bar2 {
  transition: stroke-dashoffset 0.3s ease;
  transition-delay: 0.25s;
  stroke-dasharray: 660;
  stroke-dashoffset: 660;
}

.gauge .gauge-bar3 {
  transition: stroke-dashoffset 0.3s ease;
  transition-delay: 0.47s;
  stroke-dasharray: 370;
  stroke-dashoffset: 370;
}

.risk-unknown {
  background-color: #6c757d;
}
.risk-very-low {
  background-color: #7865b3;
}
.risk-low {
  background-color: #73c5df;
}
.risk-medium {
  background-color: #9fbef2;
}
.risk-high {
  background-color: #cdc1e4;
}
.risk-very-high {
  background-color: #faa99e;
}

.gauge .level {
  padding: 0;
  text-wrap: nowrap;
  max-width: 80px;
  margin: 0 auto;
  font-family: Roboto;
  font-weight: 500;
  font-size: 14px;
  border-radius: 50px;
}

.period-selector {
  display: flex;
  flex-direction: row;
  width: fit-content;
  margin: 0 auto 48px auto;
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  height: 56px;
}

.period-btn {
  border-radius: 30px;
  backdrop-filter: blur(35px);
  background: none;
  border: none;
  outline: none;
  width: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.period-btn.active {
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
}

@media (max-width: 650px) {
  .gauge-container {
    flex-direction: column;
    align-items: center;
  }
}

.dominance__container,
.returns__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.returns__container .settings {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.dominance__container > h2 {
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.period__returns h2 {
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  position: relative;
  width: fit-content;
  margin: 10px auto 0 auto;
}

.dominance__container > h2 > button {
  position: absolute;
  background: none;
  outline: none;
  padding: 0;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  right: -15px;
  color: #000;
  font-family: Roboto;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  border-radius: 41.25px;
  border: 1px solid #000;
}

span.tooltip {
  position: absolute;
  background: none;
  outline: none;
  padding: 0;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 15px;
  right: 30px;
  color: #000;
  font-family: Roboto;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  border-radius: 41.25px;
  border: 1px solid #000;
}

.dominance-tooltip {
  display: none;
}

.dominance-tooltip.active {
  position: absolute;
  width: 256px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 4px 12px 0px rgba(10, 10, 23, 0.15);
  right: -110%;
  bottom: 120%;
  display: block;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-align: left;
}
.tooltip__content {
  display: none;
}

.tooltip__content.active {
  position: absolute;
  width: 256px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 4px 12px 0px rgba(10, 10, 23, 0.15);
  right: -100%;
  bottom: 120%;
  display: block;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-align: left;
}

.chart__dropdowns {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  gap: 5px;
  z-index: 10;
}

.chart__dropdowns .dropdown-btn {
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
  padding: 5px 12px;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  padding: 11px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dropdowns-wrapper {
  position: relative;
  display: flex;
  gap: 5px;
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  height: 56px;
  box-sizing: border-box;
  width: fit-content;
  margin: 0 auto;
  z-index: 9;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  z-index: 9999;
  color: #000;
}

.dropdown.active {
  display: flex;
  padding: 5px 12px;
  margin-top: 4px;
  border-radius: 20px;
  border: 1px solid #fff;
  background: #e9f5fe;
  backdrop-filter: blur(35px);
  gap: 5px;
  max-height: 250px;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dropdown__item {
  font-family: Roboto;
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
  padding: 5px 24px;
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.dropdown__item:hover {
  background: rgba(211, 227, 235, 0.8);
}

.dominance__dropdowns,
.returns__dropdowns,
.forecast__dropdowns {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  gap: 5px;
  z-index: 99999;
}

.returns__dropdown-container {
  margin: 0 auto;
  width: 412px;
}

.returns__dropdown-container .returns__dropdowns {
  margin: 0;
}

.dominance__dropdowns button,
.returns__dropdowns button,
.forecast__dropdowns button {
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
  padding: 5px 12px;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.dominance__dropdowns .dropdown,
.returns__dropdowns .dropdown,
.forecast__dropdowns .dropdown {
  display: none;
  z-index: 9999;
}

.dominance__dropdowns .dropdown.active,
.returns__dropdowns .dropdown.active {
  display: flex;
  position: absolute;
  top: 100%;
  flex-direction: column;
  left: 0;
  padding: 5px 12px;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  border-radius: 20px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  padding: 5px;
  gap: 5px;
  width: 70px;

  .dropdown__item {
    border-radius: 30px;
    border: 1px solid #d3e3eb;
    background: rgba(211, 227, 235, 0.5);
    backdrop-filter: blur(35px);
    padding: 5px 12px;
    cursor: pointer;
  }
}

.returns__dropdowns .dropdown.active,
.forecast__dropdowns .dropdown.active {
  display: flex;
  position: absolute;
  top: 100%;
  flex-direction: column;
  left: 0;
  padding: 5px 12px;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  border-radius: 20px;
  border: 1px solid #d3e3eb;
  background: #e9f5fe;
  padding: 5px;
  gap: 5px;
  width: 70px;
}

.forecast__dropdowns .dropdown.active .dropdown__item {
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: #d3e3eb;
  padding: 5px 12px;
  cursor: pointer;
}

.dominance__dropdowns .dropdown.quartal.active,
.returns__dropdowns .dropdown.quartal.active {
  left: 46%;
}

#forecast-plot,
#plotly-chart-dominance,
#plotly-chart-returns {
  position: relative;
  z-index: 1;
}

#forecast-plot .plotly,
#plotly-chart-dominance .plotly {
  z-index: auto !important;
}

.dominance:has(.dropdown.active) #plotly-chart-dominance *,
.dominance:has(.dropdown.active) #plotly-chart-dominance,
.returns:has(.dropdown.active) #plotly-chart-returns *,
.returns:has(.dropdown.active) #plotly-chart-returns {
  pointer-events: none !important;
  z-index: -1 !important;
}

.forecast:has(.dropdown.active) #forecast-plot *,
.forecast:has(.dropdown.active) #forecast-plot {
  pointer-events: none !important;
  z-index: 0 !important;
}

.forecast:has(.dropdown.active) #forecast-plot .traces,
.dominance:has(.dropdown.active) #plotly-chart-dominance .traces,
.returns:has(.dropdown.active) #plotly-chart-returns .traces {
  display: none !important;
}

#period {
  display: flex;
}
#growth,
#heatmap {
  display: none;
}

#period,
#growth,
#heatmap {
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.growth__selectors {
  border-radius: 41px;
  border: 1px solid #fff;
  background: linear-gradient(
    181deg,
    rgba(255, 255, 255, 0.5) 1.15%,
    rgba(255, 255, 255, 0) 98.91%
  );
  backdrop-filter: blur(35px);
  max-width: 314px;
  width: 100%;
  padding: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.date-picker__dash {
  width: 8px;
  height: 1px;
  background: #969696;
}

.date-picker__container {
  border-radius: 30px;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
  display: flex;
  flex-direction: row;
  gap: 3px;
  width: 143px;
}

.date-picker__container .date-picker__input {
  border: none;
  background: none;
  outline: none;
  font-family: Roboto;
  font-size: 14px;
  padding-left: 24px;
  padding: 5px 36px;
  cursor: pointer;
}

.date-picker__container img {
  position: absolute;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.date-picker__icon {
  left: 12px;
}

.date-picker__arrow {
  right: 12px;
}

#heatmap {
  padding-bottom: 84px;
  padding-top: 48px;
}

#heatmap .description {
  color: #969696;
  text-align: center;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  padding-top: 8px;
}

#heatmap .legend {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  padding-bottom: 16px;
}

#cells1 .cell-text-holder {
  transform: translate(50px, 27px);
}

#header.column-block .cell-text-holder {
  transform: translate(50px, 16px);
}

#heatmap .legend__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 12px;
  line-height: 150%;
}

#heatmap .legend__item span:first-child {
  width: 24px;
  height: 12px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.6);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 8px solid #ddd;
  border-top-color: #96e5f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.period-tabs .tooltip {
  right: 8px;
  top: 6px;
}

.selector-rect {
  fill: #e9f5fe !important;
}

.hovertext rect {
  fill: rgba(211, 227, 235, 0.7) !important;
  backdrop-filter: blur(2.3499999046325684px);
  filter: blur(2);
}

.hovertext text {
  fill: #1a1b1f !important;
}

#heatmap-table {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #fff;
}

#heatmap-table table {
  border-collapse: collapse;
}

#heatmap-table table tr,
#heatmap-table table td {
  border: 2px solid #fff;
}

#heatmap-table table td,
#heatmap-table table th {
  width: 102px;
}

#heatmap-table table th {
  height: 45px;
}

#heatmap-table tr:not(:first-child) {
  background: #fff;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  height: 69px;
}

#heatmap-table tr:first-child > th {
  background: #fff;
  color: #1a1b1f;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

#heatmap-table .btc {
  background-color: #ef8e19;
}

#heatmap-table .eth {
  background-color: #627eea;
}

#heatmap-table .risk-on {
  background-color: #6cc2dd;
}

#heatmap-table .risk-off {
  background-color: #f5a196;
}

.get-widget-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background-color: #1a1b1f;
  color: #fff;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-wrap: nowrap;
  cursor: pointer;
  max-width: 160px;
}

.get-widget-btn .tooltip-widget {
  display: inline;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 100%;
  padding: 2px;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.get-widget-btn:active {
  transform: scale(0.97);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: Roboto, sans-serif;
  margin-bottom: 40px;
  border-radius: 25px;
  overflow: hidden;
}

.comparison-table th {
  font-weight: 600;
}

thead tr {
  background: #fff;
  height: 45px;
  color: var(--Main-Dark, #222);
}

th,
td {
  border: 1px solid #eeeeee;
  text-align: center;
  vertical-align: middle;
  padding: 8px;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  line-height: 150%;
}

th {
  border-top: none;
  border-left: none;
  font-weight: 600;
}

tbody td:first-child {
  font-style: italic;
  font-weight: 400 !important;
}

.th-content {
  vertical-align: middle;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 600;
  position: relative;
  text-wrap: nowrap;
}

.th-content .tooltip-wrapper {
  position: relative;
}

.th-content .tooltip-wrapper .tooltip {
  top: -5px;
  right: -15px;
}

tbody {
  background-color: white;
}

tbody td {
  border: 1px solid #fff;
  background: linear-gradient(
    109deg,
    rgba(219, 232, 242, 0.5) 37.07%,
    rgba(237, 247, 255, 0) 68.09%
  );
  padding: 24px 16px;
}

tbody td:first-child {
  background: #fff;
  font-weight: bold;
  border-bottom: 1px solid #eeeeee;
}

.positive {
  color: #72ba8e;
}
.negative {
  color: #f5a196;
}
.neutral {
  color: #6cc2dd;
}

.with-tooltip {
  position: relative;
  cursor: help;
}

.with-tooltip:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
}

@media (max-width: 1024px) {
  .content {
    flex-direction: column;
  }

  .content-title-wrapper {
    width: 100%;
    margin-bottom: 12px;
  }

  #gauges-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  table {
    font-size: 13px;
  }
  th,
  td {
    padding: 10px 6px;
    font-size: 13px;
  }
  .th-content {
    gap: 8px;
    font-size: 13px;
  }

  tbody td {
    padding: 4px;
  }

  .content-share-btn {
    padding: 8px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .wrapper {
    padding: 16px 24px;
  }

  .content-share-btn {
    width: auto;
    padding: 2px 4px;
    right: -10px;
    top: -50px;
  }

  #gauges-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .line-controls {
    flex-direction: column;
  }
}

/* WIDGET */
.gw-modal {
  border: 0;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
}

.centeredBlock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.scalle-wrapper {
  display: inline-block;
  transform-origin: top left;
}

.gw-modal__flex {
  min-height: 600px;
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.gw-modal__left {
  background: #fafafa;
  overflow: hidden;
  padding: 8px;
  border-radius: 32px;
  display: flex;
  align-items: self-start;
  justify-content: start;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  border: 1px solid var(--bg-lines, #c8c9ca);
  transition: width 0.3s ease-in-out, height 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
  color: #222;
  position: relative;
  height: fit-content;
}

.gw-modal__left .loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #96e5f0;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
  z-index: 9999;
}

@keyframes loading-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.gw-modal__left .assetsImg {
  flex: 1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  border-radius: 24px;
}

.openFull {
  position: absolute;
  right: 24px;
  top: 24px;
  color: #222222;
  z-index: 1;
}

.gw-modal__right {
  position: fixed;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  flex-shrink: 0;
  max-width: 300px;
  min-height: 600px;
}
.gw-header h2 {
  margin: 0;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
  width: 95%;
  margin: 0 auto;
}
.gw-header p {
  margin: 8px 0 0 0;
  color: #222;
  text-align: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.gw-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gw-div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gw-label {
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.gw-toggle {
  font-family: Montserrat;
  border-radius: 41px;
  border: 1px solid #fff;
  background: #f6f6f6;
  backdrop-filter: blur(35px);
  padding: 5px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
}
.gw-toggle button {
  border: 0;
  width: 100%;
  font-family: Montserrat;
  background: transparent;
  padding: 11px 32px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.gw-toggle button.is-active {
  border-radius: 30px;
  font-family: Montserrat;
  border: 1px solid #d3e3eb;
  background: rgba(211, 227, 235, 0.5);
  backdrop-filter: blur(35px);
}

.gw-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.gw-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn {
  border-radius: 100px;
  border: 1px solid #222;
  cursor: pointer;
  display: flex;
  height: 48px;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex: 1 0 0;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  max-width: 200px;
}
.btn-primary {
  background: #222;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: #222;
}

.gw-docs {
  color: #222;
  text-align: right;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 6%;
  text-underline-offset: 12%;
  text-underline-position: from-font;
}

.gw-close {
  position: absolute;
  top: 28px;
  right: 28px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

.custom-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-fields-row {
  display: flex;
  gap: 8px;
}

.custom-fields input[type="number"] {
  width: 100%;
  padding: 10px 48px 10px 24px;
  border-radius: 100px;
  border: 1px solid #222;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  outline: none;
  box-sizing: border-box;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.input-wrapper .unit {
  position: absolute;
  right: 24px;
  pointer-events: none;
  color: #222;
  text-align: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.checkbox {
  display: flex;
  align-items: center;
}

.custom-fields .checkbox input {
  margin-right: 8px;
  accent-color: #636366;
  border: 4px solid #636366;
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .gw-modal__flex {
    flex-direction: column;
    align-items: center;
  }
}

.gw-dropdown {
  position: relative;
  width: 100%;
  font-family: Montserrat, sans-serif;
}

.gw-dropdown__selected {
  padding: 14px 20px;
  border-radius: 20px;
  border: 1px solid #222;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gw-dropdown__selected::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg fill='%23222' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat center;
  background-size: contain;
}

.gw-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #222;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  background: #fff;
  position: absolute;
  width: 100%;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-sizing: border-box;
  overflow: hidden;
}

.gw-dropdown.open .gw-dropdown__list {
  display: flex;
  border-top: none;
}

.gw-dropdown.open .gw-dropdown__selected {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.gw-dropdown__list li {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gw-dropdown__list li:hover {
  background: rgba(211, 227, 235, 0.4);
}

.gw-dropdown__list li.active {
  background: rgba(211, 227, 235, 0.4);
}

.gw-embed {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  min-height: 600px;
}

.gw-embed .gw-header h2 {
  color: var(--Main-Dark, #222);
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  margin: 0 0 4px;
  text-align: center;
}

.gw-embed .gw-header p {
  margin: 0;
  color: #222;
  text-align: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.gw-embed .gw-code {
  background: #282c34;
  color: wheat;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.gw-embed .gw-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.gw-modal__flex__content {
  flex: 0;
  padding: 24px 16px 16px;
  width: 100%;
  box-sizing: border-box;
}

.badge {
  display: flex;
  max-height: 36px;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 30px;
  background: #e9f5fe;
  backdrop-filter: blur(35px);
}

.gradient-text {
  width: 29px;
  height: 24px;
  text-align: right;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 23.265px;
  background: linear-gradient(
    90deg,
    #7561b8 0%,
    #34a2c5 37.4%,
    #34a2c5 58.9%,
    #7561b8 99.9%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gw-modal__left h2 {
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  margin: 24px 0 12px;
}

.gw-modal__left .value {
  color: var(--BTC, #fbb13c);
  font-family: Inter;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px;
  margin: 0;
}
.gw-modal__left .value span {
  font-size: 32px;
}

.chart-wrapper {
  padding: 16px;
  background: transparent;
  position: relative;
  background: #e9f5fe;
  border-radius: 24px;
  box-sizing: border-box;
  position: relative;
  transition: background-color 0.3s ease-in-out;
  width: 100%;
  height: 100%;
}

.gw-modal__left .chart-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
}

.gw-modal__left .chart-logo {
  position: absolute;
  left: 24px;
  top: 24px;
}

.gw-modal__left .chart-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  gap: 8px;
}

.gw-modal__left .chart-info-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.gw-modal__left .chart-info h3 {
  text-align: right;
  font-family: Roboto;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  margin: 0;
}

.gw-modal__left .chart-info p {
  margin: 0;
  text-align: right;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.gw-modal__left .chart-info p span {
  text-align: right;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.gw-modal__left .chart-info span {
  font-size: 18px;
  font-family: Roboto;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.otherBlock {
  width: 100%;
  height: 100%;
  position: relative;
}

.scale-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  height: 100%;
  width: 100%;
  transition: width 0.5s ease, height 0.5s ease, transform 0.5s ease;
}

#charts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  * {
    background: none !important;
  }

  .bg {
    fill: none !important;
  }

  .rangeslider-bg {
    fill: #e9f5fe !important;
  }
}

.chart__container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 650px) {
  .chart-logo {
    top: 100px;
  }
}
