.ai-image-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(91, 124, 255, 0.3);
  border-radius: 17px;
  background: #111a2b;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  animation: imageCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ai-image-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #080d18;
}
.ai-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.ai-image-frame img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  animation: imageReveal 0.8s ease both;
}
.ai-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}
.ai-image-actions strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
}
.ai-image-actions span {
  display: block;
  margin-top: 2px;
  color: #8392a8;
  font-size: 0.64rem;
}
.ai-image-actions a {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffb84d;
  color: #111722;
  text-decoration: none;
  transition: 0.2s;
}
.ai-image-actions a:hover {
  transform: translateY(-2px);
  background: #ffc96f;
}
.ai-suggestion[data-image-prompt] {
  border-color: rgba(91, 124, 255, 0.32);
  background: rgba(91, 124, 255, 0.11);
  color: #b9c7ff;
}
.ai-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-clear {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #c7d1df;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
}
.ai-clear:hover {
  background: rgba(255, 184, 77, 0.16);
  color: #ffca74;
}
@keyframes imageCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}
@keyframes imageReveal {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-image-card,
  .ai-image-frame img {
    animation: none;
  }
}
