.uc-page-shell,
.uc-page-shell * {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

.search-bar {
  padding-block: 0.5rem;
  border: 1px solid theme('colors.gray.300');
  border-radius: 0.375rem;
  font-size: 1rem;
  width: 24rem;
}

.uc-page-shell {
  --uc-surface: rgba(8, 15, 28, 0.86);
  --uc-border: rgba(125, 211, 252, 0.18);
  overflow: hidden;
}

.uc-page-shell .soar-grid-panel {
  border-radius: 2rem;
  border-color: var(--uc-border);
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), var(--uc-surface));
}

.uc-hero {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.uc-hero .logo-wrap {
  max-width: 260px;
}

.uc-hero .ucraft-logo-img {
  max-width: 260px;
}

.uc-hero-intro {
  color: #cbd5e1;
  line-height: 1.7;
  text-wrap: balance;
}

.uc-model-showcase {
  position: relative;
  max-width: 980px;
  margin: 2.25rem auto 0;
  overflow: hidden;
  padding: 0.65rem;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.uc-model-showcase-track {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
  width: max-content;
  will-change: transform;
}

.uc-model-showcase-card {
  flex: 0 0 clamp(240px, 28vw, 310px);
  height: clamp(240px, 27vw, 300px);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.16), transparent 45%),
    rgba(2, 6, 23, 0.72);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.35);
}

.uc-model-showcase-card model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.uc-workspace {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.uc-section-kicker {
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.uc-workspace-title {
  margin: 0.55rem 0 0;
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.uc-workspace-lede {
  max-width: 42rem;
  margin: 0.8rem auto 1.8rem;
  color: #94a3b8;
  line-height: 1.65;
}

.ucraft-prompt-shell {
  position: relative;
  max-width: 100%;
}

.ucraft-prompt-input {
  width: 100% !important;
  min-height: 3.8rem;
  padding-right: 4.4rem !important;
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.88));
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08), 0 16px 36px rgba(2, 6, 23, 0.24);
}

.ucraft-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(2, 132, 199, 0.82));
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.3);
}

.ucraft-submit-btn:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.34);
}

.ucraft-submit-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.ucraft-submit-icon {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

.uc-advanced-options {
  width: min(100%, 42rem);
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.4);
  text-align: left;
}

.uc-advanced-options summary {
  cursor: pointer;
  color: #bae6fd;
  font-weight: 750;
}

.uc-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  color: #e2e8f0;
}

.uc-option-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.uc-advanced-options p {
  margin: 0.65rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

#ucLogoGif {
  width: 1.5rem;
  height: 1.5rem;
}

#ucHourglass,
#ucArrow {
  top: 50%;
  transform: translateY(-50%);
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 4px 0 rgba(56, 189, 248, 0.7); }
  50% { box-shadow: 0 0 12px 2px rgba(56, 189, 248, 1); }
  100% { box-shadow: 0 0 4px 0 rgba(56, 189, 248, 0.7); }
}

.glow-pulse {
  animation: glowPulse 1.8s ease-in-out infinite;
}

.logo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.ucraft-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.logo-caption {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(30, 41, 59, 0.65);
  color: #fff;
  border-radius: 0.5em;
  padding: 0.25em 0.75em;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  font-family: sans-serif;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.ucActionBtn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, transform 0.1s;
}

.ucActionBtn:hover {
  background: #0284c7;
}

.ucActionBtn:active {
  transform: scale(0.97);
}

.ucActionBtn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.ucActionBtn.alt {
  background: #059669;
}

.ucActionBtn.alt:hover {
  background: #047857;
}

.uc-gift-card {
  padding: 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7) 58%, rgba(12, 74, 110, 0.32));
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.35);
}

.uc-gift-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  max-width: min(100%, 42rem);
  margin: 1.35rem auto 0;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(244, 114, 182, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.2), rgba(14, 165, 233, 0.16));
  color: #fce7f3;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.uc-gift-reveal:hover,
.uc-gift-reveal:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.75);
  box-shadow: 0 18px 38px rgba(190, 24, 93, 0.18);
}

.uc-gift-reveal-icon {
  font-size: 1.45rem;
}

.uc-gift-progress {
  margin-top: 1.25rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
}

.uc-gift-progress-bar {
  height: 5px;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.uc-gift-progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ec4899, #38bdf8);
  transition: width 0.25s ease;
}

.uc-gift-step-actions {
  justify-content: flex-end;
}

.uc-photocraft-card {
  padding: 1.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74) 54%, rgba(12, 74, 110, 0.25));
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.38);
}

.uc-photocraft-copy h3 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 800;
  color: #f8fafc;
}

.uc-photocraft-copy p {
  margin: 0.9rem 0 0;
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 64rem;
}

.uc-photocraft-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.uc-photocraft-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 18vw, 13.5rem);
  align-items: start;
  gap: 1rem;
}

.uc-photocraft-story-field,
.uc-photocraft-reference-field {
  min-width: 0;
}

.uc-photocraft-story-field .uc-gift-textarea {
  min-height: 11rem;
  height: 100%;
  resize: vertical;
}

.uc-photocraft-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 11rem;
  padding: .8rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(125, 211, 252, 0.5);
  background: rgba(2, 6, 23, 0.6);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.uc-photocraft-dropzone:hover,
.uc-photocraft-dropzone:focus-visible,
.uc-photocraft-dropzone.is-dragging {
  border-color: rgba(56, 189, 248, 0.92);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.16), 0 12px 28px rgba(2, 132, 199, 0.16);
  transform: translateY(-1px);
  background: rgba(2, 6, 23, 0.72);
}

.uc-photocraft-dropzone-copy {
  flex: 0 0 auto;
  text-align: center;
}

.uc-photocraft-dropzone-copy strong {
  display: block;
  color: #e0f2fe;
  font-size: .9rem;
}

.uc-photocraft-dropzone-copy p {
  margin: .2rem 0 0;
  color: #94a3b8;
  font-size: .72rem;
  line-height: 1.35;
}

.uc-photocraft-placeholder {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: .85rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .09);
}

.uc-photocraft-placeholder svg {
  width: 2.65rem;
  height: 2.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-photocraft-dropzone .ucActionBtn {
  width: 100%;
  min-height: 2rem;
  padding: .45rem .65rem;
  font-size: .78rem;
}

.uc-photocraft-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.uc-photocraft-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: flex-start;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.uc-photocraft-reference-field .uc-photocraft-thumb span {
  padding: .35rem;
  font-size: .62rem;
}

.uc-photocraft-thumb {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.78);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

.uc-photocraft-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.uc-photocraft-thumb span {
  display: block;
  padding: 0.5rem 0.55rem 0.65rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-word;
}

.uc-photocraft-examples {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.uc-photocraft-examples-copy h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.uc-photocraft-examples-copy p {
  margin: 0.65rem 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.uc-photocraft-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.uc-example-carousel {
  position: relative;
  margin-top: 1.1rem;
  padding: 0 2.75rem;
}

.uc-example-viewport {
  overflow: hidden;
}

.uc-example-carousel .uc-photocraft-example-grid {
  display: flex;
  grid-template-columns: none;
  gap: 1rem;
  margin-top: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.uc-example-carousel .uc-photocraft-example {
  flex: 0 0 calc((100% - 1rem) / 2);
}

.uc-example-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  color: #7dd3fc;
  font-size: 1.6rem;
  line-height: 1;
}

.uc-example-arrow:hover,
.uc-example-arrow:focus-visible {
  border-color: #38bdf8;
  color: #e0f2fe;
}

.uc-example-arrow--prev { left: 0; }
.uc-example-arrow--next { right: 0; }

.uc-example-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.uc-example-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

.uc-example-dot.is-active {
  width: 24px;
  background: #38bdf8;
}

.uc-photocraft-example {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.26);
}

.uc-photocraft-example img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.uc-photocraft-example-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.1rem;
}

.uc-photocraft-example-body h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.uc-photocraft-example-body p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.94rem;
}

.uc-photocraft-example-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.uc-photocraft-example-btn:hover {
  transform: translateY(-1px);
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.88);
}

.uc-photocraft-example-body a {
  color: #7dd3fc;
  font-size: 0.82rem;
}

.uc-gift-copy h3 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  color: #f8fafc;
}

.uc-gift-copy p {
  margin: 0.8rem 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.uc-gift-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.uc-gift-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.uc-gift-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.uc-gift-card.hidden,
.uc-gift-field.hidden,
.uc-gift-actions .hidden {
  display: none !important;
}

.uc-gift-field span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #bae6fd;
}

.uc-identity-note {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.92));
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
}

.uc-identity-note strong {
  color: #e0f2fe;
  font-size: 0.95rem;
  font-weight: 800;
}

.uc-identity-note span {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.uc-gift-input,
.uc-gift-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.68);
  color: #f8fafc;
  padding: 0.88rem 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.uc-gift-input:focus,
.uc-gift-textarea:focus {
  border-color: rgba(56, 189, 248, 0.88);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
  transform: translateY(-1px);
}

.uc-gift-textarea {
  resize: vertical;
  min-height: 7.75rem;
}

.uc-gift-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.uc-gift-status {
  margin: 0;
  font-size: 0.92rem;
  color: #93c5fd;
  line-height: 1.5;
}

.uc-gift-status.error {
  color: #fca5a5;
}

.uc-gift-status.success {
  color: #86efac;
}

.uc-grid-card {
  position: relative;
  overflow: hidden;
}

.uc-grid-card > * {
  position: relative;
  z-index: 1;
}

.uc-gift-status.busy {
  color: #7dd3fc;
}

@media (max-width: 640px) {
  .uc-page-shell .soar-grid-panel {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    border-radius: 1.4rem;
  }

  .uc-hero .logo-wrap,
  .uc-hero .ucraft-logo-img {
    max-width: 210px;
  }

  .uc-model-showcase {
    margin-top: 1.5rem;
    padding-inline: 0;
  }

  .uc-model-showcase-card {
    flex-basis: min(74vw, 270px);
    height: min(74vw, 270px);
  }

  .uc-option-row {
    flex-direction: column;
  }

  .uc-gift-reveal {
    width: 100%;
    border-radius: 1.2rem;
  }

  .uc-example-carousel {
    padding: 0 2.3rem;
  }

  .uc-example-carousel .uc-photocraft-example {
    flex-basis: 100%;
  }

  .search-bar,
  #ucInput {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .max-w-lg,
  .mx-auto {
    box-sizing: border-box;
  }

  .logo-wrap {
    max-width: 95vw;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .ucraft-logo-img {
    max-width: 95vw;
    width: 100%;
  }

  .logo-caption {
    font-size: 0.76em;
    padding: 0.18em 0.5em;
    right: 0.25rem;
    bottom: 0.25rem;
  }

  .uc-gift-card {
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .uc-photocraft-card {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .uc-photocraft-primary-row {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    gap: .65rem;
  }

  .uc-photocraft-story-field .uc-gift-textarea {
    min-height: 9rem;
    padding: .75rem;
  }

  .uc-photocraft-dropzone {
    min-height: 9rem;
    padding: .55rem;
    gap: .4rem;
  }

  .uc-photocraft-dropzone .ucActionBtn {
    width: 100%;
    min-height: 1.75rem;
    padding: .35rem .4rem;
    font-size: .7rem;
  }

  .uc-photocraft-placeholder {
    width: 3rem;
    height: 3rem;
  }

  .uc-photocraft-placeholder svg {
    width: 2rem;
    height: 2rem;
  }

  .uc-photocraft-dropzone-copy p {
    display: none;
  }

  .uc-photocraft-dropzone-copy strong {
    font-size: .75rem;
  }

  .uc-photocraft-example img {
    height: 160px;
  }

  .uc-gift-actions {
    align-items: flex-start;
  }

  .uc-gift-actions .ucActionBtn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-model-showcase-track,
  .uc-example-carousel .uc-photocraft-example-grid,
  .uc-gift-progress-bar span {
    transition: none;
  }
}
