/* =====================================================================
   Inspire Design — Inline studio (hero CTA tool wired) + result strip.
   Stiluri minime, Inter, accent coral.
   ===================================================================== */

/* Force [hidden] (preventive — same fix ca în auth.css pentru forms) */
[hidden] { display: none !important; }

/* ---------- Thumb în upload button după ce user-ul urcă o poză ---------- */
.add-image-btn-label .ais-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  margin-right: 8px;
  vertical-align: middle;
}
.add-image-btn-label .ais-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.add-image-btn-label .ais-thumb-text {
  vertical-align: middle;
  letter-spacing: 0.4px;
}

/* ---------- Result strip (modal-like overlay cu before/after) ---------- */
.ais-strip {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.ais-strip.is-open { opacity: 1; visibility: visible; }
.ais-strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.ais-strip__panel {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: min(1100px, 94%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 36px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.ais-strip__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: #888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ais-strip__close:hover { background: #f5f5f5; color: #1a1a1a; }

.ais-strip__head {
  margin-bottom: 22px;
}
.ais-strip__head h2 {
  font-size: 26px;
  font-weight: 200;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.ais-strip__head p {
  font-size: 14px;
  color: #888;
  font-weight: 300;
  margin: 0;
}
.ais-strip__head p.is-error { color: #b91c1c; }

.ais-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.ais-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1;
}
.ais-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ais-card figcaption {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.ais-card__download {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ais-card__download:hover { background: #000; }

.ais-card--loading,
.ais-card--queued {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ais-card--queued .ais-card__queued {
  font-size: 13px;
  color: #b0b0b0;
  font-weight: 400;
}

.ais-loader {
  text-align: center;
  color: #888;
}
.ais-loader__spin {
  width: 36px; height: 36px;
  border: 3px solid #f0f0f0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: ais-spin 1s linear infinite;
}
.ais-loader span {
  font-size: 12px;
  font-weight: 400;
}
@keyframes ais-spin { to { transform: rotate(360deg); } }

.ais-strip__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.ais-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 14px;
  padding: 12px 20px;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ais-btn--primary { background: #1a1a1a; color: #fff; }
.ais-btn--primary:hover { opacity: 0.92; }
.ais-btn--ghost { background: transparent; color: #1a1a1a; border: 1px solid #e5e5e5; }
.ais-btn--ghost:hover { background: #f5f5f5; }

body.ais-strip-open { overflow: hidden; }

@media (max-width: 720px) {
  .ais-strip__panel { padding: 24px 18px 20px; border-radius: 18px; width: 96%; }
  .ais-strip__grid { grid-template-columns: 1fr; }
  .ais-strip__head h2 { font-size: 22px; }
  .ais-strip__actions { flex-direction: column; }
  .ais-btn { width: 100%; }
}
