.welcome-state {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.welcome-state.hidden {
  display: none;
}

.welcome-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.welcome-content.hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.welcome-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(170, 150, 220, 0.15) 0%,
    rgba(150, 170, 230, 0.15) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: margin-bottom 0.3s ease;
}

.welcome-state:has(.welcome-content.hidden) .welcome-icon {
  margin-bottom: 0;
}

.welcome-state:not(:has(.welcome-content.hidden)) .welcome-icon {
  margin-bottom: 24px;
}

.welcome-icon i {
  font-size: 60px;
  color: #aa96dc;
  position: relative;
  z-index: 2;
}

.welcome-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(170, 150, 220, 0.3);
  animation: ripple 2s ease-out infinite;
}

.welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: #0A2540;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.5;
}

.welcome-capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 26px;
  max-width: 440px;
  width: 100%;
}

.capability-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(10, 37, 64, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: all 0.2s ease;
  cursor: default;
}

.capability-pill:hover {
  background: rgba(10, 37, 64, 0.06);
  border-color: rgba(10, 37, 64, 0.1);
}

.capability-pill i {
  font-size: 18px;
  color: #0A2540;
  opacity: 0.55;
  flex-shrink: 0;
}

.capability-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.capability-title {
  font-size: 13px;
  font-weight: 600;
  color: #0A2540;
}

.capability-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
}

.welcome-output-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.welcome-previews {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  width: 240px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.preview-card:hover {
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
  border-color: rgba(10, 37, 64, 0.15);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.preview-header i {
  font-size: 14px;
  color: #0A2540;
}

.preview-header span {
  font-size: 12px;
  font-weight: 600;
  color: #0A2540;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-label {
  font-size: 11px;
  color: #64748B;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 70px;
  padding: 8px 4px;
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.5) 0%, rgba(189, 227, 238, 0.3) 100%);
  border-radius: 8px;
}

.chart-bar {
  width: 14px;
  height: var(--height);
  background: linear-gradient(180deg, #0A2540 0%, #1A3A52 100%);
  border-radius: 3px 3px 0 0;
  animation: barGrow 0.6s ease-out backwards;
  animation-delay: var(--delay);
  position: relative;
  overflow: hidden;
}

.chart-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: 3px 3px 0 0;
}

@keyframes barGrow {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--height);
    opacity: 1;
  }
}

.mini-table {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.5) 0%, rgba(189, 227, 238, 0.3) 100%);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-table-header,
.mini-table-row {
  display: flex;
  gap: 4px;
}

.mini-cell {
  flex: 1;
  height: 10px;
  background: rgba(10, 37, 64, 0.12);
  border-radius: 3px;
  animation: cellFade 0.4s ease-out backwards;
}

.mini-cell.header {
  background: #0A2540;
  height: 12px;
}

.mini-table-row:nth-child(2) .mini-cell { animation-delay: 0.1s; }
.mini-table-row:nth-child(3) .mini-cell { animation-delay: 0.2s; }
.mini-table-row:nth-child(4) .mini-cell { animation-delay: 0.3s; }

.mini-table-row:nth-child(odd) .mini-cell:not(.header) {
  background: rgba(10, 37, 64, 0.08);
}

.mini-trend {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.5) 0%, rgba(189, 227, 238, 0.3) 100%);
  border-radius: 8px;
  padding: 8px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trend-line-svg {
  width: 100%;
  height: 100%;
}

.trend-line {
  fill: none;
  stroke: #0A2540;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.2s ease-out forwards;
}

.trend-dot {
  fill: #0A2540;
  opacity: 0;
  animation: dotAppear 0.3s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dotAppear {
  from {
    opacity: 0;
    r: 0;
  }
  to {
    opacity: 1;
    r: 3;
  }
}

@keyframes cellFade {
  from {
    opacity: 0;
    transform: scaleX(0.8);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.welcome-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(
    135deg,
    rgba(170, 150, 220, 0.12) 0%,
    rgba(150, 170, 230, 0.12) 100%
  );
  border: 2px solid rgba(170, 150, 220, 0.25);
  border-radius: 30px;
  color: #6b7a90;
  font-size: 15px;
  font-weight: 500;
  animation: ctaBounce 2s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
  }
  50% {
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.12);
  }
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 20px;
  }

  .welcome-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .welcome-capabilities {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
    max-width: 280px;
  }

  .capability-pill {
    padding: 10px 12px;
  }

  .capability-pill i {
    font-size: 16px;
  }

  .capability-title {
    font-size: 12px;
  }

  .capability-desc {
    font-size: 10px;
  }

  .welcome-output-label {
    margin-bottom: 10px;
  }

  .welcome-previews {
    gap: 10px;
  }

  .preview-card {
    width: 100px;
    padding: 10px;
  }

  .preview-header span {
    font-size: 10px;
  }

  .mini-chart {
    height: 45px;
  }

  .chart-bar {
    width: 10px;
  }

  .mini-trend {
    height: 45px;
  }

  .welcome-icon {
    display: none;
  }

  .welcome-cta {
    padding: 12px 20px;
    font-size: 13px;
  }
}
