/* AI Page */

.ai-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Only apply min-height on the standalone /ai page, not when embedded */
main.ai-main {
  min-height: calc(100vh - 60px);
}

/* ---- Hero ---- */
.ai-hero {
  text-align: center;
  padding: 40px 0 8px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 10px;
}

.ai-hero h1,
.ai-hero .ai-hero-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #111;
  letter-spacing: -0.025em;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
}

/* ---- Steps ---- */
.ai-step {
  margin-top: 36px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

/* ---- Style Cards (horizontal scroll) ---- */
.style-scroll-wrap {
  position: relative;
}

.scroll-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #111;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.15s;
  padding: 0;
}

.scroll-arrow:hover {
  background: #f5f5f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scroll-arrow-left { left: -4px; }
.scroll-arrow-right { right: -4px; }

/* Only show arrows on desktop (no touch) */
@media (min-width: 601px) and (hover: hover) {
  .scroll-arrow { display: flex; }
  .scroll-arrow.hidden { display: none; }
}

.style-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

/* Hide scrollbar but keep functionality */
.style-scroll::-webkit-scrollbar { display: none; }
.style-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 0 10px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  font-family: inherit;
  flex: 0 0 130px;
  scroll-snap-align: start;
  overflow: hidden;
}

.style-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.style-card.selected {
  border-color: #111;
  box-shadow: 0 0 0 2px #111;
}

/* Style preview image */
.style-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px 11px 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.style-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  padding: 8px 6px 0;
  white-space: nowrap;
}

.style-card.selected .style-card-name {
  color: #111;
}

/* ---- Subject Section ---- */
.subject-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Upload zone */
.subject-upload {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.subject-upload:hover {
  border-color: #111;
  background: #f5f5f7;
}

.subject-upload.drag-over {
  border-color: #111;
  background: #f0f0f2;
  transform: scale(1.01);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 6px;
  height: 100%;
  min-height: 160px;
  box-sizing: border-box;
}

.upload-placeholder svg {
  color: #9ca3af;
  transition: color 0.15s;
}

.subject-upload:hover .upload-placeholder svg {
  color: #111;
}

.upload-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.upload-hint {
  font-size: 12px;
  color: #9ca3af;
}

.upload-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 160px;
}

.upload-preview img {
  max-height: 200px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
}

/* Multi-image preview grid */
.upload-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  min-height: 80px;
  align-items: center;
}

.upload-preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-add-more {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.upload-add-more:hover {
  border-color: #111;
  color: #111;
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  color: #fff;
  padding: 0;
}

.remove-image-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* OR divider between upload and presets */
.subject-or-divider {
  display: none;
}

/* Subject presets */
.subject-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.presets-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.subject-pill:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #111;
}

.subject-pill.selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.hidden {
  display: none !important;
}

/* Step optional badge */
.step-optional {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-left: auto;
}

/* Custom prompt input (Step 3) */
.custom-prompt-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.custom-prompt-input:focus {
  border-color: #111;
}

.custom-prompt-input::placeholder {
  color: #b0b0b0;
}

.custom-prompt-input.prompt-required {
  border-color: #111;
}

/* "Your own idea" pill — visually distinct */
.subject-pill-custom {
  border-style: dashed;
}

/* ---- Generate Button ---- */
.ai-section {
  margin-bottom: 24px;
}

.generate-section {
  text-align: center;
  padding: 24px 0 16px;
}

.generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 56px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.generate-btn:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.generate-btn:active:not(:disabled) {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.generate-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.generate-hint {
  font-size: 13px;
  color: #9ca3af;
  margin: 10px 0 0;
}

.generations-counter {
  font-size: 12px;
  color: #9ca3af;
  margin: 8px 0 0;
}

/* ---- Format Picker (inline) ---- */
.format-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 4px;
}

.format-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.format-options {
  display: flex;
  gap: 6px;
}

.format-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #6b7280;
  font-family: inherit;
}

.format-btn:hover { border-color: rgba(0, 0, 0, 0.3); color: #111; }
.format-btn.active { border-color: #111; background: #111; color: #fff; }

.format-icon {
  width: 14px;
  height: 18px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.format-icon-landscape {
  width: 18px;
  height: 14px;
}

.format-btn.active .format-icon { color: #fff; }

/* ---- Result Section ---- */
.result-section { margin-top: 8px; }
.result-container { text-align: center; }

.result-loading { padding: 48px 0; }

.result-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.result-loading-text {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 4px;
}

.result-time-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 16px;
}

.result-progress-bar {
  width: 280px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.result-progress-fill {
  height: 100%;
  background: #111;
  border-radius: 2px;
  width: 0%;
  transition: width 25s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.result-tip {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
  transition: opacity 0.3s;
}

.result-image-wrapper { margin-bottom: 24px; }

.result-frame {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease;
}

.result-frame img {
  max-width: 100%;
  max-height: 520px;
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Result Actions (two-panel layout) ---- */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.result-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-panel-edit {
  background: #fafafa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.result-panel-order {
  background: #fff;
}

.panel-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0 0 4px;
}

.actions-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.action-btn-order {
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s ease;
  min-height: 48px;
}

.action-btn-order:hover {
  background: #000;
  border-color: #000;
}

.action-btn-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result-price-hint {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.result-price-hint strong { color: #111; }

.action-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #6b7280;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn-secondary:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #111;
}

/* Inline save form (logged-in) */
.inline-save-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-save-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.inline-save-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.inline-save-input:focus { border-color: #111; }
.inline-save-input::placeholder { color: #9ca3af; }

.inline-save-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.inline-visibility {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.vis-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.vis-btn.active { background: #111; color: #fff; }
.vis-btn:not(.active):hover { background: #f5f5f7; color: #111; }
.inline-save-row .action-btn-order { flex: 1; }

/* Edit prompt row */
.edit-prompt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.edit-prompt-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.edit-prompt-input:focus {
  border-color: #111;
}

.edit-prompt-input::placeholder {
  color: #b0b0b0;
}

.edit-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.edit-submit-btn:hover:not(:disabled) {
  background: #000;
  transform: scale(1.05);
}

.edit-submit-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.action-btn-tertiary {
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
}

.action-btn-tertiary:hover {
  color: #111;
}

/* Trust badges under result */
.result-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.result-trust-badges span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  position: relative;
}

.result-trust-badges span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
}

/* ---- Community Inspiration ---- */
.ai-inspiration {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.inspiration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.inspiration-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.inspiration-link {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.inspiration-link:hover { color: #111; }

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.inspiration-item {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f7;
  transition: transform 0.15s ease;
}

.inspiration-item:hover { transform: scale(1.02); }

.inspiration-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inspiration-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
}

/* ---- Save Modal ---- */
.save-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.save-modal.hidden { display: none; }

.save-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.save-modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.25s ease;
}

.save-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

.save-modal-header h2 { margin: 0; font-size: 20px; font-weight: 600; }

.save-modal-close {
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: transparent;
  cursor: pointer; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}

.save-modal-close:hover { background: #f3f4f6; color: #111; }

.save-modal-body { padding: 0 24px 24px; }

.save-form-group { margin-bottom: 20px; }

.save-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.save-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.save-input:focus { border-color: #111; }

.save-visibility-options { display: flex; gap: 10px; }

.save-visibility-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #374151;
  transition: all 0.15s;
}

.save-visibility-btn:hover { border-color: rgba(0, 0, 0, 0.3); }
.save-visibility-btn.active { border-color: #111; background: #f5f5f7; color: #111; }

.save-modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.save-btn-secondary {
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #374151;
  transition: all 0.15s;
}

.save-btn-secondary:hover { background: #f5f5f7; }

.save-btn-primary {
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}

.save-btn-primary:hover { background: #000; }
.save-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .ai-hero { padding: 28px 0 4px; }
  .ai-hero h1,
  .ai-hero .ai-hero-title { font-size: 24px; }
  .hero-trust { gap: 12px; }
  .trust-item { font-size: 11px; }

  .style-card {
    flex: 0 0 110px;
  }

  .subject-options {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .subject-upload {
    min-height: 110px;
  }

  .upload-placeholder {
    min-height: 110px;
    padding: 20px 16px;
  }

  .subject-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
  }

  .subject-or-divider::before,
  .subject-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
  }

  .subject-or-divider span {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .generate-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .extras-row {
    flex-direction: column;
    gap: 16px;
  }

  .format-btn {
    flex: 1;
    padding: 8px 10px;
  }

  .result-actions { flex-direction: column; }
  .action-btn-order { width: 100%; justify-content: center; }
  .action-btn-secondary { width: 100%; justify-content: center; }
  .result-frame img { max-height: 400px; }
  .inspiration-grid { grid-template-columns: repeat(3, 1fr); }
  .save-modal { padding: 12px; }
  .save-modal-content { max-width: 100%; }
  .save-modal-footer { flex-direction: column-reverse; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
