.generation-progress {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(124, 92, 255, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(107, 83, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(25, 25, 37, 0.98), rgba(16, 18, 24, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.035);
}

.generation-progress::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(115, 88, 255, 0.08);
  filter: blur(32px);
  pointer-events: none;
}

.generation-progress-main,
.generation-progress .progress-track,
.generation-progress .generation-status-row,
.generation-progress > small {
  position: relative;
  z-index: 1;
}

.generation-progress-copy h3 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.generation-progress-copy strong {
  display: block;
  min-height: 26px;
  color: #c9bcff;
  font-size: 15px;
}

.generation-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9f8cff;
}

.generation-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58e6bb;
  box-shadow: 0 0 0 0 rgba(88, 230, 187, 0.55);
  animation: maizao-live-pulse 1.8s infinite;
}

.generation-progress .progress-track {
  height: 9px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.generation-progress .progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #7557ff, #6d8cff 60%, #58e6bb);
  box-shadow: 0 0 22px rgba(112, 101, 255, 0.42);
  transition: width 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.generation-status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.generation-status-row span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #9ba1b2;
  text-align: center;
  font-size: 12px;
}

.pending-media {
  background:
    linear-gradient(110deg, transparent 20%, rgba(139, 117, 255, 0.1) 42%, transparent 65%),
    rgba(22, 23, 31, 0.9);
  background-size: 230% 100%;
  animation: maizao-soft-shimmer 2.4s ease-in-out infinite;
}

.hard-error {
  min-height: 310px;
  padding: 42px;
  border-color: rgba(245, 176, 65, 0.32) !important;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(245, 176, 65, 0.1), transparent 48%),
    linear-gradient(145deg, rgba(30, 25, 27, 0.96), rgba(20, 20, 27, 0.98)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.hard-error > span {
  color: #f5c36d !important;
  letter-spacing: 0.08em;
}

.hard-error h3 {
  max-width: 680px;
  color: #f7f5ff !important;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hard-error p {
  max-width: 680px;
  color: #aeb2c1 !important;
  line-height: 1.75;
}

.hard-error .primary-button {
  min-width: 152px;
  background: linear-gradient(135deg, #7658ff, #5777ee);
  box-shadow: 0 12px 30px rgba(102, 86, 240, 0.26);
}

@keyframes maizao-live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(88, 230, 187, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 230, 187, 0); }
}

@keyframes maizao-soft-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 900px) {
  .generation-progress { padding: 24px; }
  .generation-status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hard-error { min-height: 260px; padding: 28px 22px; }
}
