/* Product dashboard: shared colour tokens stay in style.css. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header nav {
  gap: 16px;
}

.workspace-section {
  padding-bottom: 70px !important;
}

.workspace-section .section-top > p {
  max-width: 340px;
}

.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #90d95750;
  border-radius: 18px;
  background: #0d140f;
  box-shadow:
    0 35px 100px #0009,
    0 0 80px #9de15a0c;
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 0 7% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1ffab, transparent);
  box-shadow: 0 0 22px #a4e56b;
  animation: border-breathe 4s ease-in-out infinite;
  z-index: 2;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px 10px;
  border-right: 1px solid #283726;
  background: linear-gradient(170deg, #1a2716, #0b120d 65%);
}

.dashboard-monogram {
  margin: 0 auto 20px;
  font:
    800 34px Manrope,
    sans-serif;
  letter-spacing: -4px;
  color: var(--green);
  text-shadow: 0 0 28px #a4e56b50;
}

.dashboard-monogram span {
  color: #f0f8e9;
}

.dashboard-tab,
.dashboard-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 13px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a2b19b;
  font-size: 9px;
}

.dashboard-tab > span:first-child,
.dashboard-support > span:first-child {
  font-size: 22px;
  line-height: 1.2;
}

.dashboard-tab.selected,
.dashboard-tab:hover,
.dashboard-support:hover {
  border-color: #a4e56b35;
  background: #a4e56b0d;
  color: var(--green);
  box-shadow: inset 0 0 20px #a4e56b04;
}

.sidebar-caption {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #71806a;
}

.dashboard-main {
  min-width: 0;
  padding: 27px;
  background: radial-gradient(ellipse at 70% 0, #8fd94b08, transparent 65%);
}

.dashboard-toolbar,
.dashboard-toolbar-actions,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-kicker {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #9aac90;
}

.dashboard-toolbar h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 500;
}

.dashboard-toolbar h3 > span {
  color: var(--green);
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #a4e56b30;
  border-radius: 5px;
  color: var(--green);
  background: #a4e56b09;
  font-size: 7px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.demo-pill i,
.dashboard-bottom i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px #a4e56b80;
}

.dashboard-refresh {
  width: 30px;
  height: 30px;
  border: 1px solid #34472c;
  border-radius: 7px;
  background: #172113;
  color: var(--green);
  font-size: 20px;
}

.dashboard-index-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0 20px;
  padding: 13px 0;
  border-block: 1px solid #2b3825;
}

.index-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  font-size: 9px;
  border-right: 1px solid #2b3825;
}

.index-chip:last-child {
  border-right: 0;
}

.index-chip > span {
  color: #a1b097;
  font-size: 8px;
}

.index-chip > strong {
  font-weight: 500;
}

.index-chip > small {
  color: var(--green);
  background: #a4e56b0c;
  padding: 1px 5px;
  font-size: 8px;
}

.dashboard-panel[hidden] {
  display: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-stat {
  display: flex;
  align-items: start;
  gap: 11px;
  padding: 18px 12px;
  border: 1px solid #30402a;
  border-radius: 9px;
  background: linear-gradient(140deg, #1b2817, #121c10);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.dashboard-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #0005;
}

.stat-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 31px;
  height: 34px;
  border: 1px solid #a4e56b35;
  border-radius: 7px;
  color: var(--green);
  background: #a4e56b13;
  font-size: 20px;
}

.stat-icon.purple {
  color: #cfb4ff;
  background: #a986ff16;
  border-color: #a986ff35;
}
.stat-icon.mint {
  color: #86e6bc;
  background: #86e6bc12;
  border-color: #86e6bc35;
}
.stat-icon.gold {
  color: #e8cc89;
  background: #e8cc8912;
  border-color: #e8cc8935;
}

.dashboard-stat small,
.dashboard-stat strong,
.dashboard-stat div > span {
  display: block;
}

.dashboard-stat small {
  font-size: 9px;
  color: #a0ae97;
}

.dashboard-stat strong {
  margin: 4px 0;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.dashboard-stat strong small {
  display: inline;
  font:
    9px "DM Sans",
    sans-serif;
}

.dashboard-stat div > span {
  font-size: 7px;
  color: #8a9a80;
}

.dashboard-analysis {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(180px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-chart-card,
.allocation-card,
.dashboard-table-card,
.broker-preview-card {
  padding: 20px;
  border: 1px solid #2d3d27;
  border-radius: 10px;
  background: #111b12;
  min-width: 0;
}

.dashboard-shell h4 {
  margin: 8px 0;
  color: #e0ead8;
  font-size: 12px;
  font-weight: 500;
}

.timeframes {
  display: flex;
  gap: 3px;
}

.timeframes button {
  border: 0;
  background: transparent;
  color: #a2b297;
  padding: 5px 7px;
  font-size: 8px;
  border-radius: 3px;
}

.timeframes button.selected {
  background: #a4e56b19;
  color: var(--green);
}

.candlestick-chart {
  display: block;
  width: 100%;
  overflow: visible;
  margin-top: 14px;
}

.candle-grid {
  stroke: #30422b;
  stroke-width: 0.7;
  stroke-dasharray: 3 5;
}
.candle.bullish {
  fill: #a4e56b;
  color: #a4e56b;
}
.candle.bearish {
  fill: #ee8e88;
  color: #ee8e88;
}
.candle-wick {
  stroke: currentColor;
  stroke-width: 1.4;
}
.candle-volume {
  opacity: 0.17;
}
.candle {
  transform-origin: center 240px;
  animation: candle-enter 0.8s both;
  animation-delay: var(--candle-delay);
}
.moving-average {
  fill: none;
  stroke: #e6ce92;
  stroke-width: 1.3;
  opacity: 0.75;
  stroke-dasharray: 1200;
  animation: average-draw 2.8s ease both;
}
.current-price-line {
  stroke: #a4e56b;
  stroke-width: 0.8;
  stroke-dasharray: 5 5;
  opacity: 0.5;
  animation: price-flow 12s linear infinite;
}
.price-beacon {
  fill: #d6ffb1;
  filter: drop-shadow(0 0 5px #a4e56b);
  animation: pulse 2s infinite;
}
.chart-demo-label {
  fill: #91a588;
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
}
.hero .chart .candlestick-chart > path:last-child {
  animation: none;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding-top: 13px;
  font-size: 7px;
  color: #97a68f;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--green);
}
.chart-legend i.red {
  background: #ee8e88;
}
.chart-legend i.line {
  width: 12px;
  height: 1px;
  background: #e6ce92;
}
.chart-legend span:last-child {
  margin-left: auto;
}

.strategy-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 22px auto;
  border-radius: 50%;
  background: conic-gradient(#a4e56b 0 66%, #1d2a18 66% 67%, #d8bd80 67% 99%, #1d2a18 99%);
  box-shadow: 0 0 30px #a4e56b0c;
  transform: perspective(700px) rotateX(10deg);
}

.strategy-donut::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: inherit;
  background: #111b12;
  box-shadow: inset 0 2px 12px #0008;
}

.strategy-donut > div {
  position: relative;
  text-align: center;
}
.strategy-donut strong {
  display: block;
  font:
    500 30px Manrope,
    sans-serif;
}
.strategy-donut span {
  font-size: 7px;
  color: #a1b197;
  letter-spacing: 1px;
}
.donut-key {
  display: grid;
  gap: 8px;
}
.donut-key > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: #b2beaa;
}
.donut-key i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.donut-key > span:last-child i {
  background: #d8bd80;
}
.donut-key b {
  margin-left: auto;
  font-weight: 400;
}
.allocation-card > p {
  font-size: 7px;
  margin-top: 16px;
}
.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #536e3e #111b12;
}
.dashboard-shell table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 9px;
}
.dashboard-shell th {
  font-weight: 400;
  color: #899e7f;
  font-size: 8px;
}
.dashboard-shell td,
.dashboard-shell th {
  padding: 14px 12px;
  border-bottom: 1px solid #293a24;
}
.dashboard-shell td:first-child,
.dashboard-shell th:first-child {
  padding-left: 0;
}
.dashboard-shell td {
  color: #c5d0be;
}
.dashboard-shell tr:last-child td {
  border-bottom: 0;
}
.strategy-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  box-shadow: 0 0 8px #a4e56b50;
}
.dashboard-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #a4e56b12;
  color: var(--green);
  font-size: 8px;
}
.dashboard-badge.amber {
  color: #e9c783;
  background: #e9c78312;
}
.dashboard-shell .negative {
  color: #ee8e88;
}
.dashboard-shell .positive {
  color: var(--green);
}
.signal-table {
  min-width: 720px;
}
.signal-disclosure {
  font-size: 10px;
  padding: 14px;
  background: #e9c78309;
  border: 1px solid #e9c78325;
  border-radius: 5px;
  color: #c7ba9a;
}
.dashboard-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 7px;
  color: #8fa181;
}
.dashboard-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.broker-preview-card {
  max-width: 550px;
  margin: 20px auto;
  padding: 35px;
}
.broker-preview-card .dashboard-kicker {
  margin-top: 20px;
}
.broker-preview-card h4 {
  font-size: 24px;
  margin: 15px 0;
}
.broker-preview-card p {
  font-size: 12px;
}
.broker-preview-card label {
  display: block;
  color: #c3d3b7;
  font-size: 12px;
  margin: 25px 0 8px;
}
.broker-preview-card select {
  width: 100%;
  padding: 13px;
  border: 1px solid #6b8c50;
  border-radius: 5px;
  background: #0e180b;
  color: #e7f4dc;
  font: inherit;
}
.price .price-amount {
  font-size: 42px;
  color: #f0f8e8;
  letter-spacing: -2px;
  font-weight: 600;
}
.price-grid li.unavailable {
  color: #86907f;
}
.price-grid li.unavailable::before {
  content: "×";
  color: #e68c8a;
}
.price-grid article:nth-child(3) {
  background-image: radial-gradient(circle at 100% 0, #a4e56b12, transparent 60%);
}

@keyframes candle-enter {
  from {
    opacity: 0;
    transform: scaleY(0.3) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}
@keyframes average-draw {
  from {
    stroke-dashoffset: 1200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes price-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes border-breathe {
  50% {
    opacity: 0.3;
    box-shadow: 0 0 5px #a4e56b;
  }
}

@media (max-width: 1000px) {
  .dashboard-shell {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .dashboard-main {
    padding: 20px;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-analysis {
    grid-template-columns: minmax(0, 1.8fr) minmax(160px, 1fr);
  }
  .dashboard-chart-card,
  .allocation-card {
    padding: 15px;
  }
  .strategy-donut {
    width: 125px;
    height: 125px;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 12px;
  }
  .dashboard-sidebar {
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 7px;
    border-right: 0;
    border-bottom: 1px solid #293a24;
  }
  .dashboard-monogram {
    margin: 0 auto 0 3px;
    font-size: 29px;
  }
  .dashboard-tab,
  .dashboard-support {
    padding: 7px 8px;
    font-size: 8px;
    gap: 2px;
  }
  .dashboard-tab > span:first-child,
  .dashboard-support > span:first-child {
    font-size: 16px;
  }
  .sidebar-caption {
    display: none;
  }
  .dashboard-main {
    padding: 15px;
  }
  .dashboard-toolbar h3 {
    font-size: 16px;
    line-height: 1.4;
    max-width: 190px;
  }
  .dashboard-toolbar-actions {
    gap: 6px;
    flex-direction: column;
  }
  .dashboard-kicker {
    font-size: 7px;
  }
  .demo-pill {
    font-size: 6px;
    padding: 4px 6px;
  }
  .dashboard-refresh {
    width: 25px;
    height: 25px;
  }
  .dashboard-index-bar {
    margin-top: 20px;
    gap: 3px;
  }
  .index-chip {
    flex-direction: column;
    gap: 3px;
    padding: 0 3px;
  }
  .index-chip > span {
    font-size: 7px;
  }
  .index-chip > strong {
    font-size: 10px;
  }
  .dashboard-stats {
    gap: 8px;
  }
  .dashboard-stat {
    padding: 12px 8px;
    gap: 8px;
  }
  .stat-icon {
    width: 24px;
    height: 28px;
    font-size: 17px;
  }
  .dashboard-stat strong {
    font-size: 12px;
  }
  .dashboard-stat small {
    font-size: 8px;
  }
  .dashboard-stat div > span {
    font-size: 6px;
  }
  .dashboard-analysis {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-shell h4 {
    font-size: 11px;
  }
  .dashboard-chart-card {
    padding: 13px 10px;
  }
  .timeframes {
    gap: 0;
  }
  .timeframes button {
    padding: 5px;
    font-size: 7px;
  }
  .chart-legend {
    gap: 10px;
  }
  .chart-legend span:last-child {
    margin-left: 0;
  }
  .allocation-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5px 20px;
  }
  .allocation-card > .dashboard-kicker {
    grid-column: 1 / -1;
  }
  .allocation-card > h4 {
    grid-column: 1 / -1;
  }
  .strategy-donut {
    grid-row: span 2;
    width: 110px;
    height: 110px;
    margin: 12px 0;
  }
  .allocation-card > p {
    margin: 0;
  }
  .dashboard-table-card {
    padding: 15px 12px;
  }
  .dashboard-table-card table {
    min-width: 450px;
  }
  .dashboard-table-card .signal-table {
    min-width: 720px;
  }
  .dashboard-bottom {
    font-size: 6px;
    gap: 7px;
  }
  .broker-preview-card {
    padding: 20px;
  }
  .broker-preview-card h4 {
    font-size: 20px;
  }
  .workspace-section {
    padding-bottom: 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candle,
  .moving-average,
  .current-price-line,
  .price-beacon,
  .dashboard-shell::before {
    animation: none;
  }
  .moving-average {
    stroke-dashoffset: 0;
  }
  .strategy-donut {
    transform: none;
  }
}
