:root {
  --bg: #07080d;
  --panel: rgba(16, 18, 28, 0.78);
  --line: rgba(120, 220, 255, 0.18);
  --text: #eef6ff;
  --muted: #93a4c2;
  --cyan: #3cf0ff;
  --magenta: #d24cff;
  --radius: 20px;
}

[hidden] {
  display: none !important;
}

@keyframes credits-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.credits-pop {
  animation: credits-pop 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(60, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-glow {
  background:
    radial-gradient(circle at 15% 10%, rgba(210, 76, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(60, 240, 255, 0.18), transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(70, 90, 255, 0.16), transparent 40%);
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.panel {
  width: min(100%, 24rem);
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel .photo-frame {
  width: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cyan);
}

.hero-title {
  margin: 0;
  font-family: Syne, Outfit, sans-serif;
  font-size: clamp(1.85rem, 7.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 20%, var(--cyan) 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preview-stack {
  width: min(100%, 24rem);
  margin: 0 auto 1.5rem;
}

.photo-frame {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.preview-stack .photo-frame {
  width: 100%;
}

.photo-frame > img,
.compare-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.compare-stage > img,
.compare-stage .compare-before img {
  object-fit: cover;
}

.photo-frame-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7c98;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

.compare-stage {
  container-type: inline-size;
}

.compare-before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}

.compare-before img {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: 100cqi;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(100%, 24rem);
  margin-left: auto;
  margin-right: auto;
  min-height: 132px;
  border: 1px dashed rgba(60, 240, 255, 0.45);
  border-radius: 16px;
  background: rgba(60, 240, 255, 0.04);
  cursor: pointer;
}

.generate-btn {
  display: block;
  width: min(100%, 24rem);
  margin: 12px auto 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #061018;
  background: linear-gradient(90deg, var(--cyan), #7b8bff 50%, var(--magenta));
  box-shadow: 0 0 18px rgba(60, 240, 255, 0.35);
}

.generate-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.pay-btn {
  display: block;
  width: auto;
  margin: 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #061018;
  text-align: center;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.package-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 10px 6px;
  border: 1px solid rgba(120, 220, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(60, 240, 255, 0.08), rgba(16, 18, 28, 0.92));
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.package-card.is-active {
  border-color: rgba(60, 240, 255, 0.6);
  background: linear-gradient(180deg, rgba(60, 240, 255, 0.28), rgba(210, 76, 255, 0.18));
  box-shadow: 0 0 16px rgba(60, 240, 255, 0.22);
}

.pay-btn:active:not(:disabled) {
  transform: scale(0.98);
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0d14;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
}

textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(60, 240, 255, 0.15);
}

.save-btn {
  display: block;
  width: auto;
  margin: 12px auto 0;
  padding: 8px 16px;
  border: 1px solid rgba(60, 240, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(60, 240, 255, 0.08);
}

.style-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(120, 220, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(60, 240, 255, 0.1), rgba(16, 18, 28, 0.9));
  color: #d7f7ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.style-card span {
  display: inline-flex;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.95rem;
  line-height: 1;
}

.style-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.style-card.is-active {
  border-color: rgba(60, 240, 255, 0.55);
  background: linear-gradient(180deg, rgba(60, 240, 255, 0.28), rgba(210, 76, 255, 0.16));
  color: #fff;
  box-shadow: 0 0 14px rgba(60, 240, 255, 0.22);
}

.uploadcare--widget,
.uploadcare-widget,
.uploadcare--widget__button,
.uploadcare--widget__text,
.uploadcare--dragdrops,
.uploadcare--panel {
  display: none !important;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.modal-close-inline {
  position: static;
}

footer a,
footer a[x-apple-data-detectors] {
  color: #5c6f8f !important;
  -webkit-text-fill-color: #5c6f8f;
}

#contact-overlay a[href^="tel"] {
  color: #a1a1aa !important;
  -webkit-text-fill-color: #a1a1aa;
}

#paywall-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#paywall-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#paywall-sheet {
  transform: translateY(24px);
  transition: transform 0.28s ease;
}

#paywall-overlay.is-open #paywall-sheet {
  transform: translateY(0);
}

#auth-email:-webkit-autofill,
#auth-email:-webkit-autofill:hover,
#auth-email:-webkit-autofill:focus {
  -webkit-text-fill-color: #eef6ff;
  caret-color: #eef6ff;
  box-shadow: 0 0 0 1000px #0b0d14 inset;
  transition: background-color 9999s ease-out;
}

#auth-code {
  color: #9b6bff;
  caret-color: #9b6bff;
}

#auth-code::placeholder {
  color: #6b4aa8;
}

#auth-code:-webkit-autofill,
#auth-code:-webkit-autofill:hover,
#auth-code:-webkit-autofill:focus {
  -webkit-text-fill-color: #9b6bff;
  caret-color: #9b6bff;
  box-shadow: 0 0 0 1000px #0b0d14 inset;
  transition: background-color 9999s ease-out;
}
