/*
 * Aetherion UX2 customer workspace
 * Visual contract: shared dark / gold customer interface used by account-billing.
 */

body[data-page="creation-workspace"] .app-main {
  min-width: 0;
}

.ux2-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 8px 0 80px;
  color: var(--text);
}

.ux2-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.ux2-steps span {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(15, 15, 20, 0.84);
  color: rgba(184, 174, 158, 0.72);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.ux2-steps span.active,
.ux2-steps span.done {
  border-color: rgba(214, 178, 110, 0.48);
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 178, 110, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(214, 178, 110, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(18, 17, 20, 0.96);
  color: var(--gold-strong);
}

.ux2-steps span.active {
  box-shadow:
    inset 0 0 0 1px rgba(227, 195, 131, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.2);
}

.ux2-steps small {
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ux2-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 178, 110, 0.075), transparent 32%),
    linear-gradient(180deg, rgba(25, 25, 31, 0.97), rgba(17, 17, 22, 0.97));
  box-shadow: var(--shadow);
}

.ux2-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 195, 131, 0.24), transparent);
  content: "";
  pointer-events: none;
}

.ux2-panel h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ux2-panel > p:not(.section-kicker),
.ux2-upload p,
.ux2-processing p {
  color: var(--muted);
  line-height: 1.65;
}

.ux2-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ux2-fields label {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #ded4c3;
  font-size: 13px;
  font-weight: 500;
}

.ux2-fields .wide {
  grid-column: 1 / -1;
}

.ux2-fields input,
.ux2-fields select,
.ux2-fields textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  outline: none;
  background: rgba(7, 7, 11, 0.52);
  color: var(--text);
  color-scheme: dark;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.ux2-fields select {
  cursor: pointer;
}

.ux2-fields select option {
  background: #15151b;
  color: var(--text);
}

.ux2-fields textarea {
  min-height: 104px;
  resize: vertical;
}

.ux2-fields input:hover,
.ux2-fields select:hover,
.ux2-fields textarea:hover {
  border-color: rgba(214, 178, 110, 0.26);
  background: rgba(9, 9, 13, 0.72);
}

.ux2-fields input:focus,
.ux2-fields select:focus,
.ux2-fields textarea:focus,
.ux2-upload input:focus-visible,
.ux2-asset-actions button:focus-visible {
  border-color: rgba(227, 195, 131, 0.62);
  box-shadow: 0 0 0 3px rgba(214, 178, 110, 0.12);
}

.ux2-upload {
  margin: 22px 0;
  padding: 21px;
  border: 1px dashed rgba(214, 178, 110, 0.34);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(214, 178, 110, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(8, 8, 12, 0.28);
}

.ux2-upload input[type="file"] {
  width: 100%;
  color: var(--muted);
}

.ux2-upload input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(214, 178, 110, 0.26);
  border-radius: 10px;
  background: rgba(214, 178, 110, 0.09);
  color: var(--gold-strong);
  cursor: pointer;
}

.ux2-upload p {
  margin: 13px 0 0;
  font-size: 13px;
}

.ux2-assets {
  display: grid;
  gap: 12px;
}

.ux2-asset {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
}

.ux2-asset img,
.ux2-asset video {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  object-fit: contain;
}

.ux2-asset > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ux2-asset strong {
  color: #eadbc1;
}

.ux2-asset small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux2-asset-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px !important;
}

.ux2-asset-actions button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ux2-asset-actions button:hover {
  border-color: rgba(214, 178, 110, 0.3);
  background: rgba(214, 178, 110, 0.08);
  color: var(--gold-strong);
}

.ux2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.ux2-actions .btn {
  min-width: 116px;
}

.ux2-actions .btn[disabled] {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.ux2-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  padding: 1px;
  border: 1px solid rgba(214, 178, 110, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(214, 178, 110, 0.12);
}

.ux2-summary span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(13, 13, 17, 0.94);
  color: var(--muted);
  font-size: 12px;
}

.ux2-summary strong {
  overflow: hidden;
  color: #eadbc1;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux2-message {
  min-height: 0;
}

.ux2-message:not(:empty) {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  line-height: 1.55;
}

.ux2-message[data-tone="error"]:not(:empty) {
  border-color: rgba(255, 140, 140, 0.24);
  background: rgba(122, 35, 35, 0.16);
  color: #ffb0b0;
}

.ux2-message[data-tone="success"]:not(:empty) {
  border-color: rgba(155, 221, 176, 0.23);
  background: rgba(41, 105, 64, 0.16);
  color: var(--success);
}

.ux2-review {
  text-align: left;
}

.ux2-review video {
  display: block;
  width: min(100%, 720px);
  max-height: 68vh;
  margin: 24px auto;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #09090c;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.ux2-processing {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 32px 18px;
  text-align: center;
}

.ux2-processing i {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(214, 178, 110, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ux2spin 1s linear infinite;
  box-shadow: 0 0 24px rgba(214, 178, 110, 0.12);
}

@keyframes ux2spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .ux2-shell {
    padding-top: 0;
  }
}

@media (max-width: 680px) {
  .ux2-shell {
    padding: 0 0 56px;
  }

  .ux2-panel {
    padding: 20px 17px;
  }

  .ux2-fields {
    grid-template-columns: 1fr;
  }

  .ux2-fields .wide {
    grid-column: auto;
  }

  .ux2-steps {
    gap: 7px;
  }

  .ux2-steps span {
    justify-content: center;
    min-height: 48px;
    padding: 11px 9px;
  }

  .ux2-steps small {
    display: none;
  }

  .ux2-asset {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .ux2-asset img,
  .ux2-asset video {
    width: 68px;
    height: 68px;
  }

  .ux2-asset-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ux2-summary {
    grid-template-columns: 1fr;
  }

  .ux2-actions .btn {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux2-processing i {
    animation: none;
  }
}
