.filter-visual,
.ai-filter-stage {
  position: relative;
  overflow: hidden;
  background: #03060b;
}

.filter-visual {
  min-height: 240px;
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.38);
}

.ai-filter-stage {
  min-height: 400px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.50);
}

.ai-filter-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ai-filter-focus {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 32px);
  min-height: 30px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 6px;
  background: rgba(5,7,12,0.85);
  color: #d4af37;
  padding: 0 12px;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.ai-filter-focus span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-filter-focus strong {
  color: #ffffff;
  font-weight: 900;
}

.ai-filter-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px #d4af37;
  animation: aiFilterPulse 1s ease-in-out infinite alternate;
}

.ai-filter-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  color: rgba(255,255,255,0.30);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  pointer-events: none;
  text-transform: uppercase;
}

.ai-filter-metrics {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: #d4af37;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-align: right;
  text-transform: uppercase;
}

@keyframes aiFilterPulse {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .ai-filter-stage {
    min-height: 330px;
  }

  .ai-filter-focus {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.58rem;
    padding: 0 10px;
  }

  .ai-filter-status,
  .ai-filter-metrics {
    bottom: 12px;
    max-width: calc(50% - 18px);
    font-size: 0.54rem;
    line-height: 1.35;
  }

  .ai-filter-status {
    left: 12px;
  }

  .ai-filter-metrics {
    right: 12px;
  }
}
