:root {
  --dash-bg: #040404;
  --dash-panel: rgba(12, 12, 16, 0.92);
  --dash-panel-2: rgba(15, 15, 20, 0.82);
  --dash-border: rgba(255, 255, 255, 0.07);
  --dash-border-strong: rgba(168, 85, 247, 0.34);
  --dash-text: #f5f5f8;
  --dash-muted: #9d9da8;
  --dash-accent: #965cff;
  --dash-accent-soft: rgba(150, 92, 255, 0.14);
  --dash-accent-glow: rgba(150, 92, 255, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 69, 255, 0.1), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(153, 92, 255, 0.12), transparent 28%),
    #030303;
  color: var(--dash-text);
  font-family: Inter, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

.dashboard-page {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  isolation: isolate;
}

.dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  z-index: -3;
}

.dashboard-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.05) 0.8px, transparent 0.8px);
  background-size: 22px 22px, 28px 28px;
}

.dashboard-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  z-index: -2;
  opacity: 0.55;
}

.dashboard-orb--left {
  top: 34%;
  left: -120px;
  width: 260px;
  height: 360px;
  background: rgba(149, 92, 255, 0.28);
}

.dashboard-orb--right {
  top: 90px;
  right: -90px;
  width: 320px;
  height: 420px;
  background: rgba(133, 104, 255, 0.3);
}

.dashboard-streak {
  position: fixed;
  top: 6%;
  right: 16%;
  width: 380px;
  height: 240px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(135deg, rgba(170, 120, 255, 0), rgba(190, 150, 255, 0.35), rgba(255, 255, 255, 0));
  transform: rotate(-20deg);
  filter: blur(24px);
  opacity: 0.7;
}

.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  max-width: 1450px;
  margin: 0 auto;
}

.dashboard-sidebar,
.dashboard-card {
  background: linear-gradient(180deg, rgba(15, 15, 19, 0.94), rgba(10, 10, 14, 0.92));
  border: 1px solid var(--dash-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 30px 60px rgba(0, 0, 0, 0.38);
}

.dashboard-sidebar {
  position: sticky;
  top: 32px;
  align-self: start;
  min-height: calc(100vh - 64px);
  padding: 28px 22px;
  border-radius: 30px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.5;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.sidebar-brand__mark {
  display: flex;
  align-items: center;
  width: 116px;
  height: 40px;
  overflow: hidden;
}

.sidebar-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 24px rgba(150, 92, 255, 0.2));
}

.sidebar-brand__eyebrow,
.eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8f8fa1;
}

.sidebar-brand__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #9d9da8;
  text-align: left;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.sidebar-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 50%, rgba(150, 92, 255, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-item:hover {
  transform: translateX(4px);
  color: var(--dash-text);
}

.sidebar-item:hover::before,
.sidebar-item.is-active::before {
  opacity: 1;
}

.sidebar-item.is-active {
  color: var(--dash-text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 24px rgba(150, 92, 255, 0.08);
}

.sidebar-item__icon,
.sidebar-item__label,
.sidebar-item__dot {
  position: relative;
  z-index: 1;
}

.sidebar-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sidebar-item.is-active .sidebar-item__icon {
  color: #e8ddff;
  background: rgba(150, 92, 255, 0.14);
  border-color: rgba(150, 92, 255, 0.22);
}

.sidebar-item__label {
  flex: 1;
  font-size: 15px;
  font-weight: 580;
}

.sidebar-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-item.is-active .sidebar-item__dot {
  background: var(--dash-accent);
  box-shadow: 0 0 10px rgba(150, 92, 255, 0.95);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 26px;
}

.sidebar-footer__card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer__card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.sidebar-footer__card p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-footer__status {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #8f5bff;
  box-shadow: 0 0 14px rgba(150, 92, 255, 0.85);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding: 12px 6px 0;
}

.dashboard-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.dashboard-copy {
  max-width: 640px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
}

.dashboard-button:hover {
  transform: translateY(-1px);
  border-color: rgba(150, 92, 255, 0.28);
}

.dashboard-button--primary {
  background: linear-gradient(135deg, rgba(150, 92, 255, 0.94), rgba(116, 74, 255, 0.84));
  border-color: rgba(190, 150, 255, 0.26);
  box-shadow: 0 0 28px rgba(150, 92, 255, 0.24);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(20px);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(150, 92, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.chart-card {
  min-height: 580px;
}

.chart-card__header,
.chart-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chart-card__header {
  margin-bottom: 20px;
}

.chart-card__header h3,
.signal-card h3,
.info-card h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.chart-card__legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dash-accent);
  box-shadow: 0 0 12px rgba(150, 92, 255, 0.9);
}

.chart-card__canvas {
  position: relative;
  border-radius: 24px;
  padding: 20px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(6, 6, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chart-card__canvas::before {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 18%;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(150, 92, 255, 0.22);
  filter: blur(45px);
  opacity: 0.7;
}

.dashboard-graph {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.graph-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.graph-grid-label {
  fill: rgba(157, 157, 168, 0.75);
  font-size: 11px;
}

.graph-area {
  fill: url(#dashboard-graph-fill);
}

.graph-path {
  fill: none;
  stroke: url(#dashboard-graph-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.graph-path--glow {
  stroke-width: 7;
  opacity: 0.7;
  filter: url(#dashboard-graph-glow);
}

.graph-marker {
  fill: rgba(7, 7, 11, 0.85);
  stroke: rgba(176, 122, 255, 0.5);
  stroke-width: 2;
}

.graph-orb {
  fill: #f7edff;
  stroke: rgba(150, 92, 255, 0.42);
  stroke-width: 3;
}

.graph-orb--glow {
  fill: rgba(183, 131, 255, 0.95);
  stroke: none;
  filter: url(#dashboard-orb-glow);
}

.chart-card__months {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 8px;
  padding: 0 10px;
  color: rgba(157, 157, 168, 0.74);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-card__footer {
  margin-top: 18px;
}

.metric-label {
  margin: 0 0 10px;
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.metric-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 78px;
}

.metric-bars span {
  display: block;
  width: 14px;
  height: calc(var(--bar-size) * 100%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(202, 160, 255, 0.95), rgba(121, 78, 255, 0.65));
  box-shadow: 0 0 18px rgba(150, 92, 255, 0.2);
  animation: metric-pulse 3.2s ease-in-out infinite;
}

.metric-bars span:nth-child(2) {
  animation-delay: 0.2s;
}

.metric-bars span:nth-child(3) {
  animation-delay: 0.4s;
}

.metric-bars span:nth-child(4) {
  animation-delay: 0.6s;
}

.hero-sidebar {
  display: grid;
  gap: 20px;
}

.signal-card {
  min-height: 180px;
}

.signal-card--highlight {
  background:
    radial-gradient(circle at top right, rgba(164, 104, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.94), rgba(11, 11, 16, 0.9));
}

.signal-card h3 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.signal-card p {
  margin: 0;
  color: var(--dash-muted);
  line-height: 1.7;
  font-size: 14px;
}

.signal-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8d8e2;
  font-size: 14px;
}

.signal-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #bc86ff, #8349ff);
  box-shadow: 0 0 12px rgba(150, 92, 255, 0.64);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  min-height: 210px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--dash-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 30px 60px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(150, 92, 255, 0.08);
}

.info-card p:last-child {
  margin: 12px 0 0;
  color: var(--dash-muted);
  line-height: 1.7;
  font-size: 14px;
}

@keyframes metric-pulse {
  0%,
  100% {
    transform: scaleY(0.96);
    opacity: 0.88;
  }

  50% {
    transform: scaleY(1.04);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    top: 0;
    min-height: 0;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .hero-sidebar,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-page {
    padding: 18px;
  }

  .dashboard-sidebar,
  .dashboard-card {
    border-radius: 24px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-card {
    min-height: 0;
  }

  .chart-card__header,
  .chart-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-card__months {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .sidebar-item {
    padding: 14px 16px;
  }
}
