/* Reset e variabili */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary-color: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --transition: all 0.3s ease;

  /* Gradient colors */
  --gradient-pink: linear-gradient(135deg, #ec4899, #be185d);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #0891b2);
  --gradient-emerald: linear-gradient(135deg, #10b981, #059669);
  --gradient-violet: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --gradient-yellow: linear-gradient(135deg, #f59e0b, #d97706);
  --protection-bg: #1a1a2e;
  --protection-text: #ffffff;
  --protection-primary: #3b82f6;
  --protection-secondary: #8b5cf6;
  --protection-accent: #06b6d4;
}

body {
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #0f0f0f !important;
  background: #fff;
  color: var(--protection-text);
}

/* Custom Font */
@font-face {
  font-family: "FurReal";
  src: url("../fonts/FurReal.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fff9e7, #e0d0a2, #894931);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.splash-content {
  text-align: center;
  color: white;
}

.splash-icon {
  position: relative;
  margin-bottom: 2rem;
}

.splash-lottie-container {
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.splash-logo {
  width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
  animation: swing 2s ease-in-out infinite;
  transform-origin: top bottom;
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes gentleSwing {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.splash-glow {
  position: absolute;
  inset: -2rem;
  background: linear-gradient(135deg, #ecc048, #6d550b);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 7s infinite;
  filter: blur(1.9rem);
}

.splash-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.splash-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
}

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Desktop Responsive - Non tocca mobile */
@media (min-width: 1024px) {
  .app-container {
    max-width: 100%;
    padding: 0;
  }

  /* Header ottimizzato per desktop */
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* Hero section desktop */
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    font-family: "FurReal", sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Pet cards desktop - 2 colonne */
  .pet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .pet-card {
    padding: 2rem;
    min-height: 300px;
    min-width: 300px;
  }

  /* Gender cards desktop - 2 colonne */
  .gender-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .gender-card {
    padding: 2rem;
    min-height: 300px;
    align-content: center;
  }

  /* Style gallery desktop - grid responsive */
  .style-gallery {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding-right: 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

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

  .style-card {
    flex-shrink: 0;
    width: 400px;
    min-height: 350px;
  }

  /* Upload section desktop */
  .upload-section {
    max-width: 100%;
    margin: 0 auto;
  }

  .upload-area {
    min-height: 300px;
    padding: 3rem;
  }

  /* Loading section desktop */
  .loading-section {
    max-width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loading-content h2 {
    font-size: 2.5rem;
  }

  /* Preview section desktop */
  .preview-section {
    max-width: 100%;
    margin: 0 auto;
  }

  .preview-container {
    max-width: 600px;
    margin: 0 auto;
  }

  /* Pricing section desktop */
  .pricing-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .pricing-card {
    min-height: 320px;
    padding: 1.5rem;
  }

  /* Material section desktop - 2 colonne */
  .material-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }

  .material-image {
    max-width: 400px;
  }

  .material-text {
    padding: 0;
  }

  /* Reviews section desktop */
  .reviews-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .reviews-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .review-card {
    min-height: 200px;
    padding: 2rem;
  }

  /* Modal desktop */
  .modal-content {
    max-width: 500px;
    max-height: 500px;
    margin: 2rem auto;
    aspect-ratio: 1;
  }

  .preview-modal-content {
    max-width: 500px;
    max-height: 500px;
    margin: 2rem auto;
    aspect-ratio: 1;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .preview-modal-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .preview-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Step headers desktop */
  .step-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .step-header p {
    font-size: 1.25rem;
  }

  /* CTA buttons desktop */
  .cta-button {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
  }

  .order-button {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
  }

  .surprise-button {
    width: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  /* Trust info desktop */
  .trust-info {
    max-width: 800px;
    margin: 0 auto;
  }

  .trust-info p {
    font-size: 1.1rem;
  }
}

/* Tablet responsive - intermedio */
@media (min-width: 768px) and (max-width: 1023px) {
  .app-container {
    max-width: 768px;
    padding: 0 1rem;
  }

  .hero-title {
    font-family: "FurReal", sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
  }

  .pet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .gender-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .material-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  /* Style gallery tablet - peek effect ottimizzato */
  .style-gallery {
    padding-right: 2.5rem;
  }

  .style-card {
    width: calc(100vw - 5rem);
    max-width: 350px;
  }
}

/* Prevenzione zoom su mobile */
input,
textarea,
select,
button {
  font-size: 15px !important; /* Previene zoom su iOS Safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Disabilita zoom su touch */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Permetti selezione testo solo dove necessario */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Promotional Topbar */
.promo-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ff6b6b;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.topbar-text {
  flex: 1;
}

.promo-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
  white-space: nowrap;
}

.topbar-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.topbar-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Dynamic Header */
.dynamic-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Quando la topbar è visibile, aggiungi margine all'header */
.promo-topbar:not([style*="display: none"]) ~ .dynamic-header {
  margin-top: 60px; /* Altezza della topbar */
}

/* Step0 is now fullscreen like splash screen, so no need to hide header */

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.back-btn {
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  position: relative;
  margin-right: 0.5rem;
  min-width: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: #f1f5f9;
  color: #475569;
  transform: translateX(-2px);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
  transition: all 0.2s ease;
  z-index: 5;
  position: relative;
}

.app-title img {
  animation: gentleSwing 3s ease-in-out infinite;
  transform-origin: top bottom;
}

.app-title:hover {
  transform: scale(1.05);
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.progress-dots {
  display: flex;
  gap: 0.25rem;
}

.progress-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: linear-gradient(135deg, #fece39, #e06727);
}

/* Steps */
.step {
  display: none;
  min-height: calc(100vh - 80px);
  padding: 0rem;
}

.step.active {
  display: block;
}

/* Step 0 (hero section) should be full screen without header */
#step0 {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #fff9e7, #e0d0a2, #894931);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#step0.active {
  display: flex;
}

/* Second step (pet selection) should be full screen */
#step1 {
  min-height: 100vh;
  padding: 0;
}

/* Hero Section Home */
.hero-section-home {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-image: url("../images/home-desktop.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile background */
@media (max-width: 768px) {
  .hero-section-home {
    background-image: url("../images/home-mobile.png");
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: linear-gradient(135deg, #fff9e7, #e0d0a2, #894931);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.dot-1 {
  top: 20%;
  left: 10%;
  width: 0.5rem;
  height: 0.5rem;
  background: #ecb24824;
  animation-delay: 0s;
}

.dot-2 {
  top: 40%;
  right: 16%;
  width: 0.25rem;
  height: 0.25rem;
  background: #f59e0b;
  animation-delay: 1s;
}

.dot-3 {
  bottom: 32%;
  left: 20%;
  width: 0.75rem;
  height: 0.75rem;
  background: #ecb24824;
  animation-delay: 2s;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 2rem;
  position: relative;
  z-index: 3;
}

.hero-icon {
  position: relative;
  margin-bottom: 3rem;
}

.lottie-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  z-index: 2;
}

.hero-title {
  font-family: "FurReal", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 2px;
}

.gradient-text-pink {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff9000, #d94c3e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-maschio {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #0050ff, #80b2e4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-femmina {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f582e7, #6e1b79);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-yellow {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff77e, #f9c139);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-rosso-viola {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #d01f15, #2825d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-black {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #030f23, #444036);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

hero-subtitle {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}

.highlight-text {
  color: #c96d49;
  font-weight: 600;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: #ffffff;
  justify-content: center;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-item i {
  color: #3f3ced;
}

.proof-item:last-child i {
  color: #19ba40;
}

.cta-button {
  position: relative;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #e7d940, #e9af00);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transform: transition-all duration-300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.25);
  background: linear-gradient(135deg, #be185d, #7c3aed);
}

.trust-text {
  font-size: 0.75rem;
  color: #ffffff;
  margin-top: 1rem;
  text-align: center;
}

/* Pet Selection */
.pet-selection {
  min-height: 100vh;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5, #a7f3d0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px !important;
  padding: 2rem;
}

.step-header {
  text-align: center;
  margin-bottom: 20px;
}

.step-header h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.gradient-text-emerald {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-header p {
  color: #0f1012;
  font-size: 1.125rem;
}

.pet-cards {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.pet-card {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.5s ease;
  text-align: center;
  overflow: hidden;

  align-content: center;
}

.pet-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pet-card:hover .card-glow {
  opacity: 1;
}

.pet-card[data-pet="cane"] .card-glow {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.5),
    rgba(239, 68, 68, 0.5)
  );
}

.pet-card[data-pet="gatto"] .card-glow {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.5),
    rgba(236, 72, 153, 0.5)
  );
}

.pet-icon {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem auto;
}

.pet-card:hover .pet-icon {
  transform: scale(1.1);
}

/* Lottie animation containers for pet selection */
#dog-lottie-animation,
#cat-lottie-animation {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Lottie animation containers for gender selection */
#male-lottie-animation,
#female-lottie-animation {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.pet-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.pet-card p {
  font-size: 0.875rem;
  color: #64748b;
}

.selection-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: pulse 2s infinite;
  transform: scale(0);
}

.pet-card[data-pet="cane"] .selection-indicator {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pet-card[data-pet="gatto"] .selection-indicator {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.pet-card:hover .selection-indicator {
  opacity: 1;
  transform: scale(1);
}

.pet-card.selected .selection-indicator {
  opacity: 1 !important;
  transform: scale(1);
}

/* Gender Selection */
.gender-selection {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fff9e7, #efc650, #894931);
  position: relative;
  overflow: hidden;
  /* padding-top: 40px; */
}

.gender-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 600px;
  margin-top: 0rem;
}

.gender-card {
  position: relative;
  background: rgb(0 0 0 / 14%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.5rem;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.gender-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gender-card .card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.gender-card:hover .card-glow {
  opacity: 0.1;
}

.gender-card[data-gender="male"] .card-glow {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.gender-card[data-gender="female"] .card-glow {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.gender-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.gender-card:hover .gender-icon {
  transform: scale(1.1);
}

.gender-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gender-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.gender-card .selection-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--success-color);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.gender-card.selected .selection-indicator {
  opacity: 1;
  transform: scale(1);
}

.gender-card[data-gender="male"].selected .selection-indicator {
  background: #3b82f6;
}

.gender-card[data-gender="female"].selected .selection-indicator {
  background: #ec4899;
}

.gender-card:hover .selection-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Style Selection */
.style-selection {
  min-height: 100vh;
  background: linear-gradient(135deg, #f4ecce, #fefce9, #fffefb);
  padding: 2rem 1rem;
}

.gradient-text-violet {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #faa530, #d65505);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.style-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Peek effect - mostra sempre un pezzo della seconda card */
  padding-right: 2rem;
  scroll-padding-right: 2rem;
  /* Scroll snap per un'esperienza più fluida */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

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

.style-card {
  flex-shrink: 0;
  width: calc(100vw - 4rem);
  max-width: 22rem;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  scroll-snap-align: start;
}

.style-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.style-card.popular {
  position: relative;
}

.style-card.popular::before {
  content: attr(data-subtitle);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.style-preview {
  height: 28rem; /* Ridotto da 36rem a 28rem per una visualizzazione migliore */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.style-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
  z-index: 1;
}

.style-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
  z-index: 10;
  position: relative;
}

.style-card:hover .style-icon {
  /* Removed scale effect */
}

.style-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 5;
  display: block;
}

.style-info {
  padding: 1.25rem;
}

.style-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.style-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.125rem;
}

.style-price {
  font-size: 0.875rem;
  font-weight: 700;
}

.style-price.free {
  color: #10b981;
}

.style-price.paid {
  color: #8b5cf6;
}

.style-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* Upload Instructions */
.upload-instructions {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #bae6fd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 2rem;
  padding-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.instruction-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

.gradient-text-purple {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.instruction-card-new {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0.2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.instruction-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: #8b5cf6;
}

.instruction-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Le nuove definizioni sono state aggiunte sopra */

.instruction-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Stati di errore e successo per instruction cards */
.instruction-card-new.error {
  border: 2px solid #d70000;
}

.instruction-card-new.success {
  border: 2px solid #00b800;
}

.instruction-icon-bad {
  width: 2rem;
  height: 2rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d70000;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #d70000;
}

.instruction-icon-good {
  width: 2rem;
  height: 2rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00b800;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #00b800;
}

.instruction-card-new.error .instruction-title {
  color: #d70000;
}

.instruction-card-new.success .instruction-title {
  color: #00b800;
}

.instruction-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.instruction-example {
  text-align: center;
}
.primary-btn-home {
  background: #fece39;
  color: rgb(0 0 0);
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.example-image-container {
  position: relative;
  width: 250px;
  height: 250px;
  background: #f1f5f9;
  border-radius: 0.75rem;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.example-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.example-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.example-badge-good {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.example-caption {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
}

.instructions-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 1rem 0;
  padding: 0 1rem;
}

.instruction-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.instruction-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.instruction-preview {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.instruction-card[data-type="good"] .instruction-preview {
  background: linear-gradient(135deg, #10b981, #059669);
}

.instruction-card[data-type="bad"] .instruction-preview {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.instruction-icon {
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.instruction-info {
  flex: 1;
  text-align: left;
}

.instruction-header {
  margin-bottom: 0;
}

.instruction-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
}

.instruction-card[data-type="bad"] .instruction-name {
  color: #1e293b;
}

/* New instruction styles for individual steps */
.instruction-banner {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.instruction-banner.bad {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.instruction-banner.good {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.instruction-image-container {
  position: relative;
  width: 250px;
  max-width: 24rem;
  margin: 0 auto 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.instruction-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.instruction-overlay-icon {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.instruction-overlay-icon.bad {
  background: #ef4444;
  color: white;
}

.instruction-overlay-icon.good {
  background: #10b981;
  color: white;
}

/* Error Banner */
.error-banner {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  animation: shake 0.5s ease-in-out;
}

.error-banner i {
  font-size: 1.2rem;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Surprise Button */
.surprise-button {
  animation: slowPulse 3s ease-in-out infinite;
}

@keyframes slowPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.5);
  }
}

/* Upload Section */
.upload-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 2rem;
  padding-top: 40px;
}

.gradient-text-blue {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.upload-area {
  width: 100%;
  max-width: 24rem;
  position: relative;
  cursor: pointer;
}

.upload-area input[type="file"] {
  display: none;
}

.upload-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 2px dashed #3b82f6;
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-content:hover {
  border-color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(239, 246, 255, 0.5),
    rgba(219, 234, 254, 0.5)
  );
  transform: scale(1.05);
}

.upload-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.5),
    rgba(139, 92, 246, 0.5)
  );
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-content:hover::before {
  opacity: 1;
}

.upload-content > * {
  position: relative;
  z-index: 10;
}

.upload-content i {
  font-size: 4rem;
  color: #3b82f6;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.upload-content:hover i {
  transform: scale(1.1);
}

.upload-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.upload-content p {
  font-size: 0.875rem;
  color: #64748b;
}

.upload-success {
  margin-top: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: #166534;
  font-weight: 600;
}

.upload-success i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #10b981;
}

/* Loading Section */
.loading-section {
  background: linear-gradient(135deg, #fff9e7, #e0d0a2, #894931);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  min-height: 100vh; /* Assicura che lo sfondo copra l'intera altezza */
}

.loading-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 10;
}

.gradient-text-cyan {
  font-family: "FurReal", sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-content h2 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.loading-content p {
  font-size: 1.125rem;
  color: #000000;
  margin-bottom: 3rem;
}

.loading-animation {
  position: relative;
  margin-bottom: 3rem;
}

.loading-lottie-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-container {
  margin: 2rem 0;
  text-align: center;
  position: relative;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #ec4899);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 2s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: #c6ccd3;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.loading-message {
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
  margin-bottom: 1rem;
  min-height: 1.5rem;
  transition: opacity 0.3s ease;
  background: #dc523857;
  border-radius: 20px;
}

.loading-timer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.loading-rings {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
}

.ring {
  position: absolute;
  border-radius: 50%;
}

.outer-ring {
  inset: 0;
  border: 4px solid rgba(6, 182, 212, 0.2);
}

.outer-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.middle-ring {
  inset: 0.5rem;
  border: 4px solid rgba(236, 72, 153, 0.2);
}

.middle-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-right-color: #ec4899;
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

.inner-ring {
  inset: 1rem;
  background: linear-gradient(135deg, #06b6d4, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-icon {
  font-size: 1.875rem;
  animation: pulse 2s infinite;
}

.loading-particles {
  position: absolute;
  inset: -2rem;
}

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: ping 1s infinite;
}

.particle-1 {
  top: 0;
  left: 50%;
  background: #06b6d4;
  animation-delay: 0s;
}

.particle-2 {
  bottom: 0;
  right: 50%;
  background: #ec4899;
  animation-delay: 0.5s;
}

.particle-3 {
  left: 0;
  top: 50%;
  background: #f59e0b;
  animation-delay: 1s;
}

.particle-4 {
  right: 0;
  bottom: 50%;
  background: #8b5cf6;
  animation-delay: 1.5s;
}

.progress-stages {
  margin-bottom: 2rem;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.stage.completed {
  color: #10b981;
  background: #ffffffa1;
  border-radius: 20px;
  padding: 7px;
}

.stage.active {
  color: #06b6d4;
  animation: pulse 2s infinite;
  background: #ffffffa1;
  border-radius: 20px;
  padding: 7px;
}

.stage:not(.completed):not(.active) {
  color: #64748b;
  background: #0202022e;
  border-radius: 20px;
  padding: 7px;
}
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #06b6d4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.stage-dot {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #64748b;
  border-radius: 50%;
}

.progress-bar {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto 3rem;
}

.progress-bar::before {
  content: "";
  display: block;
  width: 100%;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-text2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.fun-fact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fun-fact i {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.fun-fact strong {
  display: block;
  margin-bottom: 0.25rem;
}

.fun-fact p {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Preview Section */
.preview-section {
  background: linear-gradient(135deg, #ffffff, #ffffff, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  padding-top: 30px;
}

.preview-container {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
}

.preview-frame {
  width: 20rem;
  height: 20rem;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  border-radius: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-icon {
  font-size: 6rem;
  animation: spin 3s linear infinite;
}

.preview-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  border-radius: 1.5rem;
  animation: pulse 2s infinite;
}

.canvas-3d {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #ffffff);
}

/* Canvas 3D Preview per Step 8 */
#canvas3D-preview {
  max-width: 600px;
  margin: 0 auto;
  height: 350px;
}

.preview-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
}

.action-link {
  background: #faf4d6;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  font-size: x-small;
}

.action-link:hover {
  background: #f0e6c2;
  color: #1e293b;
  transform: translateY(-1px);
}

.action-separator {
  color: #94a3b8;
  font-weight: 300;
}

/* Pricing Section */
.pricing-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5, #a7f3d0);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.urgency-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
  justify-content: center;
}

/* Gallery Preview */
.gallery-preview {
  margin-bottom: 2rem;
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 600px; /* Cambiato da 400px a 600px per rapporto 2:3 */
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.gallery-slide {
  min-width: 100%;
  height: 600px; /* Cambiato da 400px a 600px per rapporto 2:3 */
  position: relative;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px !important;
}

/* Mockup styles */
.mockup-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.mockup-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-overlay {
  position: absolute;
  top: 15%;
  left: 63%;
  transform: translateX(-50%);
  width: 35%;
  height: 45%;
  overflow: hidden;
  border-radius: 0px !important;
}

@media (min-width: 481px) {
  .mockup-overlay {
    position: absolute;
    top: 22%;
    left: 61%;
    transform: translateX(-50%);
    width: 40%;
    height: 40%;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 5px 5px 10px 0px #00000082;
    border-radius: 0px !important;
  }
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Secondo mockup con posizionamento diverso */
.mockup-container-2 {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.mockup-overlay-2 {
  position: absolute;
  top: 20%;
  left: 53%;
  transform: translateX(-50%);
  width: 30%;
  height: 40%;
  overflow: hidden;
  border-radius: 0px !important;
}

@media (min-width: 481px) {
  .mockup-overlay-2 {
    position: absolute;
    top: 25%;
    left: 53%;
    transform: translateX(-50%);
    width: 35%;
    height: 35%;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 5px 5px 10px 0px #00000082;
    border-radius: 0px !important;
  }
}

.mockup-overlay.mockup-overlay-2 {
  width: 18%;
  height: 18%;
  top: 15%;
}

.mockup-image-2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  transition: all 0.2s ease;
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.gallery-nav-btn:hover {
  background: white;
  transform: scale(1.1);
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: #8b5cf6;
  transform: scale(1.2);
}

/* Responsive per gallery - mantiene rapporto 2:3 */
@media (max-width: 768px) {
  .gallery-container {
    max-width: 350px;
    height: 525px; /* Mantiene rapporto 2:3 (350 * 1.5) */
  }

  .gallery-slide {
    height: 525px; /* Mantiene rapporto 2:3 */
  }
}

@media (max-width: 480px) {
  .gallery-container {
    max-width: 300px;
    height: 450px; /* Mantiene rapporto 2:3 (300 * 1.5) */
  }

  .gallery-slide {
    height: 450px; /* Mantiene rapporto 2:3 */
  }

  .mockup-overlay {
    top: 22%;
    width: 43%;
    height: 43%;
    box-shadow: 5px 5px 10px 0px #00000099;
  }
}

.social-proof-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.proof-avatars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid white;
}

.avatar-1 {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.avatar-2 {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.avatar-3 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.proof-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.rating i {
  color: #f59e0b;
  font-size: 1rem;
}

.rating span {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

.testimonial {
  font-size: 0.875rem;
  color: #6b7280;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  align-content: center;
}

.pricing-card:hover {
  transform: scale(1.05);
}

.pricing-card.selected {
  border-color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

.pricing-card.selected::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: #8b5cf6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-card h3 {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.pricing-card .subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.pricing-card .price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.original-price {
  font-size: 1.125rem;
  text-decoration: line-through;
  color: #9ca3af;
}

.offer-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #10b981;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Order Summary */
.order-summary {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  text-align: center;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-item .original-price {
  text-decoration: line-through;
  color: #9ca3af;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-weight: 700;
  font-size: 1.125rem;
  color: #10b981;
  border-top: 2px solid #10b981;
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.benefits-card {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #10b981;
}

.benefits-card h3 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-card h3 i {
  color: #dc2626;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.benefit-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #10b981;
  border-radius: 50%;
}

.order-button {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #19694e, #059669);
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transform: transition-all duration-300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.order-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.25);
}

.order-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.order-button:hover::before {
  opacity: 1;
}

.order-button span {
  position: relative;
  z-index: 10;
}

.trust-info {
  text-align: center;
  margin-top: 1rem;
}

.trust-info p {
  font-size: 0.75rem;
  color: #6b7280;
}

.urgency-text {
  color: #dc2626 !important;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.company-info {
  color: #059669;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.company-details {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: center;
  line-height: 1.4;
}

/* Foto Quadro Section */
.foto-quadro-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.foto-quadro-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.material-section,
.frame-section {
  margin-bottom: 2rem;
}

.material-section:last-child,
.frame-section:last-child {
  margin-bottom: 0;
}

.material-content,
.frame-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.material-image,
.frame-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.material-image img,
.frame-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-text,
.frame-text {
  flex: 1;
}

.material-text h4,
.frame-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.material-text p,
.frame-text p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive design for Foto Quadro section */
@media (max-width: 768px) {
  .material-content,
  .frame-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .material-image,
  .frame-image {
    width: 250px;
    height: 250px;
  }

  .foto-quadro-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
}

/* Shipping Times Section */
.shipping-times-section {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #bae6fd);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.shipping-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  justify-content: center;
}

.shipping-title i {
  color: #3b82f6;
  font-size: 1.125rem;
}

.shipping-content {
  text-align: center;
}

.shipping-info p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.shipping-info p:last-of-type {
  margin-bottom: 1.5rem;
}

.delivery-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 2px solid #3b82f6;
  font-weight: 600;
  color: #1e40af;
  font-size: 1rem;
}

.delivery-date i {
  color: #3b82f6;
  font-size: 1.125rem;
}

/* Responsive design for shipping section */
@media (max-width: 768px) {
  .shipping-times-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .delivery-date {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Reviews Section - Trustpilot Style */
.reviews-section {
  text-align: center;
}

.reviews-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.reviews-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-box {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  text-align: left;
  position: relative;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.review-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}

.review-rating i {
  color: #ffd700;
  font-size: 0.875rem;
}

.review-content p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.reviews-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.review-card {
  background: white;
  padding: 1.5rem;
  min-width: 100%;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  border-radius: 0.75rem;
  scroll-snap-align: center;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.review-stars i {
  color: #00b67a; /* Trustpilot green */
  font-size: 0.875rem;
}

.review-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-align: center;
  font-style: italic;
}

.review-author {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
  font-weight: 500;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-dot.active {
  background: #3b82f6;
  transform: scale(1.2);
}

.review-dot:hover {
  background: #94a3b8;
}

/* Responsive design for reviews */
@media (max-width: 768px) {
  .reviews-container {
    max-width: 400px;
    gap: 0.75rem;
  }

  .review-box {
    padding: 1.25rem;
  }

  .review-name {
    font-size: 0.9rem;
  }

  .review-time {
    font-size: 0.7rem;
  }

  .review-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .reviews-container {
    max-width: 320px;
    gap: 0.5rem;
  }

  .review-box {
    padding: 1rem;
  }

  .review-name {
    font-size: 0.85rem;
  }

  .review-time {
    font-size: 0.65rem;
  }

  .review-content p {
    font-size: 0.75rem;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

/* Forza la chiusura della modale quando necessario */
.modal.active.hidden {
  display: none !important;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 24rem;
  width: 100%;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-image {
  height: 20rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-modal-content {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.preview-modal-image {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preview-modal-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
}

.preview-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.preview-modal-actions {
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.preview-modal-actions .btn-primary {
  min-width: 200px;
}

.modal-actions {
  padding: 2rem;
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.25);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Loading state for buttons */
.btn-primary.is-loading,
.btn-secondary.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.btn-primary.is-loading::after,
.btn-secondary.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Animazione pulse per il pulsante Acquista Ora */
@keyframes buttonPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .app-container {
    max-width: 100%;
  }

  .hero-title {
    font-family: "FurReal", sans-serif;
    font-size: 2.25rem;
    letter-spacing: 2px;
  }

  .pet-cards {
    flex-direction: column;
    gap: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    grid-column: span 1;
  }

  .modal-actions {
    flex-direction: column;
  }

  /* Style gallery mobile - peek effect ottimizzato */
  .style-gallery {
    padding-right: 2rem;
  }

  .style-card {
    width: calc(100vw - 10rem);
    min-width: 280px;
  }

  .style-preview {
    height: 24rem; /* Più compatta su mobile */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-family: "FurReal", sans-serif;
    font-size: 2.1rem;
    letter-spacing: 2px;
  }

  .step-header h2 {
    font-size: 2rem;
  }

  .pet-card {
    padding: 0.6rem;
  }

  .upload-content {
    padding: 2rem;
  }

  .loading-rings {
    width: 6rem;
    height: 6rem;
  }

  .preview-frame {
    width: 16rem;
    height: 16rem;
  }
}

/* Modal per le variabili - Design integrato */
.variables-header {
  text-align: center;
  margin-bottom: 2rem;
}

.variables-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.variables-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.variables-form {
  margin-bottom: 2rem;
}

.variable-input-group {
  margin-bottom: 1.5rem;
}

.variable-input-group label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.variable-input-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  color: var(--text-primary);
}

.variable-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.variable-input-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Responsive per il modal delle variabili */
@media (max-width: 480px) {
  .variables-header h3 {
    font-size: 1.25rem;
  }

  .variable-input-group input {
    padding: 0.875rem;
  }
}

/* Ribbon per le style cards */
.style-card {
  position: relative;
  overflow: hidden;
}

.style-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #ff6b6b;
  color: white;
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.style-ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 10px;
  height: 100%;
  background: inherit;
  transform: skewX(-15deg);
}

.style-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  background: inherit;
  transform: skewX(15deg);
}

/* Responsive per il ribbon */
@media (max-width: 480px) {
  .style-ribbon {
    font-size: 0.6rem;
    padding: 4px 35px;
    top: 25px;
    right: -25px;
  }
}

/* Stili per Step 7 - Immagine watermarked e pulsanti */
.watermarked-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 1rem;
}

.watermarked-image {
  max-width: 100%;
  max-height: 500px;
  width: 100%;
  aspect-ratio: 2/3;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.preview-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
  width: 100%;
}

/* Preview buttons responsive - 600px sopra 768px */
@media (min-width: 768px) {
  .preview-buttons {
    width: 600px;
  }
}

.preview-buttons .order-button {
  width: 50%; /* Cambiato da 100% a 50% per stare su una riga */
  padding: 1rem 2rem;
  font-size: 0.95rem !important;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  animation: buttonPulse 1s ease-in-out infinite; /* Effetto pulse aggiunto */
}

.preview-buttons .order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.view-3d-button {
  width: 50%; /* Cambiato da 100% a 50% per stare su una riga */
  padding: 1rem 2rem;
  font-size: 0.9rem !important;
  font-weight: 500;
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.view-3d-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Stili per la modale 3D */
.modal-3d-content {
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  height: 1200px; /* Cambiato da 600px a 1200px per rapporto 2:3 (800x1200) */
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s ease;
}

.modal-3d-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.modal-3d-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-3d-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modal-3d-canvas {
  flex: 1;
  position: relative;
  background: #f8fafc;
  overflow: hidden;
}

.canvas-3d-modal {
  width: 100%;
  height: 100%;
  position: relative;
  max-width: 600px; /* Limite massimo per schermi molto grandi */
  max-height: 800px; /* Limite massimo per schermi molto grandi */
}

.modal-3d-actions {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  border-top: 1px solid var(--border-color);
  background: white;
}

.modal-3d-actions .btn-primary,
.modal-3d-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  justify-content: center;
}

.modal-3d-actions .btn-primary {
  background: linear-gradient(135deg, #d56a17, #fd6050);
  color: white;
  box-shadow: var(--shadow);
}

.modal-3d-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modal-3d-actions .btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.modal-3d-actions .btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow);
}

.modal-close-btn:hover {
  background: white;
  transform: scale(1.1);
}

.modal-close-btn i {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Responsive per la modale 3D */
@media (max-width: 768px) {
  .modal-3d-content {
    width: 95vw;
    height: 142.5vw; /* Rapporto 2:3 (95vw * 1.5) */
    max-width: none;
    max-height: none;
  }

  .modal-3d-header {
    padding: 1rem;
  }

  .modal-3d-header h3 {
    font-size: 1.25rem;
  }

  .modal-3d-actions {
    padding: 1rem;
    flex-direction: column;
  }

  .modal-3d-actions .btn-primary,
  .modal-3d-actions .btn-secondary {
    width: 100%;
  }

  .preview-buttons {
    padding: 0 0.5rem;
    margin-top: 5px;
    gap: 5px;
    flex-direction: row;
  }

  .watermarked-image {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .watermarked-image {
    max-height: 400px;
  }

  .preview-buttons .order-button,
  .view-3d-button {
    font-size: 0.85rem !important;
    padding: 0.875rem 1.5rem;
    width: 50%; /* Mantiene la larghezza al 50% anche su mobile */
  }

  .preview-buttons .order-button {
    animation: buttonPulse 2s ease-in-out infinite; /* Mantiene l'effetto pulse su mobile */
  }

  .preview-buttons {
    margin-top: 5px;
    gap: 5px;
    flex-direction: row;
  }
}

/* Homepage Styles */
/* Homepage specific logo size */
.dynamic-header .app-title img {
  height: 40px;
  width: auto;
}

/* Homepage specific CTA button size */
.dynamic-header .cta-button {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Homepage CTA buttons - remove underline and adjust size */
.hero-section-home .cta-button,
.final-cta .cta-button {
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Hero CTA specific styling */
.hero-cta-wrapper .cta-button {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.hero-cta-wrapper .cta-button:hover {
  background: linear-gradient(135deg, #22c55e, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* Responsive CTA button text */
@media (max-width: 768px) {
  .hero-section .cta-button,
  .final-cta .cta-button {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
}

/* Footer logo size */
.footer-logo img {
  height: 40px;
  width: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.container-home {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.how-it-works {
  padding: 4rem 0;
  background: linear-gradient(182deg, #f8f7f3, #e3bb47, #ddf659);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
  }
}

.step-card {
  position: relative;
  background: rgb(0 0 0 / 14%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.5rem;
  text-align: center;
  color: white;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  color: #302d2d !important;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.examples-section {
  padding: 4rem 0;
  background: linear-gradient(179deg, #fff9e7, #e0d0a2, #e6d67b);
}

.examples-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

@media (min-width: 769px) {
  .examples-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    justify-items: center;
  }

  .example-card {
    width: 400px;
    height: 400px;
  }
}

.example-card {
  aspect-ratio: 1 / 1;
  min-width: 180px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 13px;
  overflow: hidden;
  background: none;
  border: none;
  box-shadow: 0 4px 24px 0 rgb(0 0 0 / 8%);
  padding: 0;
}

.example-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  display: block;
  margin: 0;
  box-shadow: none;
  border: 4px solid #ffffff38;
}

.example-caption {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.08rem;
  color: #111;
  font-weight: 500;
  text-align: left;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  background: none;
  border: none;
  padding: 0;
  display: block;
  letter-spacing: 0;
}
.example-caption strong {
  font-weight: 600;
  color: #111;
}
.example-caption em {
  font-style: normal;
  color: #222;
  font-weight: 500;
}

@media (max-width: 600px) {
  .examples-gallery {
    gap: 1rem;
  }
  .example-card {
    min-width: 100px;
    max-width: 100vw;
    box-shadow: 0 4px 24px 0 rgb(0 0 0 / 46%);
  }
  .example-caption {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .example-image {
    height: 100%;
    width: 100%;
  }
}

.benefits-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.testimonials-section {
  padding: 4rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: #fbbf24;
  margin-right: 0.25rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.final-cta {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.final-cta .cta-button {
  background: white;
  color: var(--primary-color);
  font-size: 1.25rem;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.final-cta .cta-button:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.final-cta .trust-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-logo {
  text-align: center;
}

.footer-logo p {
  margin-top: 1rem;
  opacity: 0.8;
  color: #ffffff91;
  justify-self: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design per Homepage */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .examples-gallery {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
  }

  .footer-section {
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .step-card,
  .benefit-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  /* RIMOSSO: .example-image { height: 250px; } */
  .cta-content h2 {
    font-size: 1.75rem;
  }
  .cta-content p {
    font-size: 1rem;
  }
}

.lottie-step {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-section {
    height: 750px;
    align-items: self-end;
  }
}

.example-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.styles-slider-section {
  padding: 4rem 0 2rem 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.styles-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.styles-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 2.5rem 1rem 1.5rem;
  width: 100%;
  scroll-padding-left: 1.5rem;
  scroll-padding-right: 2.5rem;
}
.style-slide {
  width: 400px;
  height: 160px;
  border-radius: 10px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  object-fit: cover;
}
.style-slide:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.18);
}
.slider-arrow {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: #a78bfa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.slider-arrow:hover {
  background: #a78bfa;
  color: #fff;
}
@media (max-width: 900px) {
  .styles-slider-section {
    padding: 2.5rem 0 1.5rem 0;
  }
  .style-slide {
    width: 320px;
    height: 120px;
  }
  .slider-arrow {
    display: none;
  }
  .styles-slider {
    padding: 1rem 1.2rem 1rem 0.7rem;
    scroll-padding-left: 0.7rem;
    scroll-padding-right: 1.2rem;
  }
}
@media (max-width: 600px) {
  .style-slide {
    height: 350px;
    min-width: 0;
    max-width: 350px;
  }
  .styles-slider {
    width: 115vw;
    box-sizing: content-box;
    padding-right: 60px;
    gap: 1rem;
    overflow-x: auto;
    scroll-padding-left: 0;
  }
}

/* ProtectionX Style - Nuovo Design */
:root {
  --protection-bg: #1a1a2e;
  --protection-text: #ffffff;
  --protection-primary: #3b82f6;
  --protection-secondary: #8b5cf6;
  --protection-accent: #06b6d4;
}

/* Header */
.protection-header {
  background: rgb(255 255 255 / 0%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.protection-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--protection-text);
}

.logo-img {
  height: 50px;
  width: auto;
  animation: wave 3s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.logo i {
  color: var(--protection-primary);
  font-size: 1.8rem;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--protection-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a:hover {
  color: var(--protection-primary);
}

.cta-button-header {
  background: #088831;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-button-header:hover {
  background: #088831;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--protection-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.protection-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 2rem 2rem;
  background: linear-gradient(177deg, #ffffff, #e0d0a2, #cf9a17);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero-content-home {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--protection-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-icon {
  width: 12px;
  height: 12px;
  background: var(--protection-primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--protection-primary),
    var(--protection-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  color: #000;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.primary-btn {
  background: #22991a;
  color: rgb(255, 255, 255);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.primary-btn:hover {
  background: #c3a20b;
  transform: translateY(-2px);
}

.secondary-btn {
  background: var(--protection-secondary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.secondary-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}

/* Image Collage - Desktop */
.hero-images {
  position: relative;
  height: 500px;
  width: 450px;
  margin: 0 auto;
}

.image-item {
  position: absolute;
  width: 200px;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-item:hover {
  transform: scale(1.05) rotate(2deg);
  z-index: 10;
}

/* Left Stack - Desktop */
.image-1 {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
  background: #ffffff00;
}

.image-2 {
  top: 20px;
  right: 0;
  transform: rotate(2deg);
  background: #ffffff00;
}

.image-3 {
  bottom: 40px;
  left: 20px;
  transform: rotate(-1deg);
  background: #ffffff00;
  z-index: 1;
}

.image-4 {
  bottom: 0;
  right: 20px;
  transform: rotate(3deg);
  background: #ffffff00;
  z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Mobile Image Layout */
  .hero-images {
    height: auto;
    width: 100%;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: relative;
    padding: 1rem;
  }

  .image-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }

  .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-item:hover {
    transform: scale(1.05);
    z-index: 10;
  }

  /* Reset mobile positioning */
  .image-1,
  .image-2,
  .image-3,
  .image-4 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: rotate(4deg);
    background: #ffffff00;
  }

  .image-2 {
    transform: rotate(357deg);
    z-index: 1;
    margin-top: -6px;
    margin-left: -20px;
  }

  .image-3 {
    transform: rotate(356deg);
    z-index: 1;
    margin-top: -30px;
    margin-left: 10px;
  }

  .image-4 {
    transform: rotate(3deg);
    z-index: 2;
    margin-top: -40px;
  }

  .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .protection-hero {
    padding: 5rem 1rem 1rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
    color: #000;
  }

  .hero-images {
    gap: 1rem;
    padding: 0.5rem;
  }
}

/* Mantieni gli stili esistenti per le altre sezioni */
.examples-section,
.how-it-works,
.footer {
  background: #000;
  color: #333;
}

.examples-section {
  background: linear-gradient(179deg, #fff9e7, #e0d0a2, #e6d67b);
}

.how-it-works {
  background: linear-gradient(182deg, #f8f7f3, #e3bb47, #ddf659);
}

/* Desktop Image Layout - vicine e sovrapposte */
@media (min-width: 769px) {
  .hero-images {
    position: relative;
    height: 700px;
    width: 700px;
    margin: 0 auto;
  }

  .image-item {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
}

@media (max-width: 480px) {
  .hero-images {
    gap: 1rem;
    padding: 10px;
    margin-top: 30px;
  }
}

/* Step Cards - Layout orizzontale */
.step-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #f5f5dc;
  border: 1px solid #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottie-step {
  width: 64px;
  height: 64px;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  font-family: "Outfit", sans-serif;
}

.step-content p {
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  font-family: "Outfit", sans-serif;
}

/* Responsive per step cards */
@media (max-width: 768px) {
  .step-card {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }

  .lottie-step {
    width: 48px;
    height: 48px;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }
}

/* Sezione Stili Disponibili */
.styles-available {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f7f3, #e3bb47, #ddf659);
}

.styles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.styles-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.styles-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.styles-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.styles-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  padding: 0 1rem;
}

.style-slide {
  min-width: 400px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.style-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.style-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.style-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.slider-arrow i {
  font-size: 1.2rem;
  color: #333;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .styles-header h2 {
    font-size: 2rem;
  }

  .styles-slider {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .style-slide {
    min-width: 200px;
    height: 200px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .styles-header h2 {
    font-size: 1.8rem;
  }

  .style-slide {
    min-width: 300px;
    height: 300px;
  }
}

/* Sezione Recensioni */
.reviews-section {
  background: linear-gradient(179deg, #fff9e7, #e0d0a2, #e6d67b);
}
.reviews-section2 {
  background: #ffffff00;
  padding-bottom: 40px;
}
.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 40px;
}

.reviews-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.reviews-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.review-stars {
  margin-bottom: 1.5rem;
}

.review-stars i {
  color: #ffd700;
  font-size: 1.2rem;
  margin-right: 0.2rem;
}

.review-text {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  font-style: italic;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-author strong {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.review-author span {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .reviews-header h2 {
    font-size: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    padding-bottom: 40px;
  }

  .review-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .reviews-header h2 {
    font-size: 1.8rem;
  }

  .review-card {
    padding: 1.25rem;
    min-height: 200px;
  }
}

/* Sezione FAQ */
.faq-section {
  padding: 4rem 0;
  background: linear-gradient(179deg, #fff9e7, #e0d0a2, #e6d67b);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-icon i {
  color: #666;
  font-size: 0.9rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f8f9fa;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .faq-header h2 {
    font-size: 2rem;
  }

  .faq-container {
    padding: 0 1rem;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .faq-header h2 {
    font-size: 1.75rem;
  }

  .faq-header p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question h3 {
    font-size: 0.95rem;
  }

  .faq-item.active .faq-answer {
    padding: 1rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

/* Sezione Materiali e Qualità */
.materials-section {
  padding: 4rem 0;
  background: linear-gradient(182deg, #f8f7f3, #e3bb47, #ddf659);
}

.materials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.materials-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.materials-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.material-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.material-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.material-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.material-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.material-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 200px;
  object-fit: contain;
}

.material-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.material-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.quality-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.quality-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.quality-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quality-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e3bb47, #ddf659);
  border-radius: 12px;
  flex-shrink: 0;
}

.quality-icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.quality-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.quality-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .materials-header h2 {
    font-size: 2rem;
  }

  .materials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .material-card {
    padding: 1.5rem;
  }

  .material-card img {
    height: 180px;
  }

  .quality-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .quality-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .materials-header h2 {
    font-size: 1.75rem;
  }

  .materials-header p {
    font-size: 1rem;
  }

  .material-card {
    padding: 1.25rem;
  }

  .material-card img {
    height: 150px;
  }

  .material-content h3 {
    font-size: 1.25rem;
  }

  .quality-item {
    padding: 1rem;
  }

  .quality-icon {
    width: 40px;
    height: 40px;
  }

  .quality-icon i {
    font-size: 1.25rem;
  }

  .quality-content h4 {
    font-size: 1rem;
  }

  .quality-content p {
    font-size: 0.85rem;
  }
}

/* Sezione FAQ */

/* Floating Saved Images Button */
.floating-saved-images-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-saved-images-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.floating-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-btn-content i {
  font-size: 16px;
}

.floating-btn-text {
  white-space: nowrap;
}

.floating-btn-count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Saved Images Dialog */
.saved-images-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.saved-images-dialog.active {
  display: flex;
  opacity: 1;
}

.saved-images-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.saved-images-content {
  background: white;
  border-radius: 20px;
  padding: 0;
  max-width: 90vw;
  max-height: 80vh;
  width: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.saved-images-dialog.active .saved-images-content {
  transform: scale(1);
}

.saved-images-header {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.saved-images-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.saved-images-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.saved-images-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.saved-images-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.saved-images-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.saved-images-empty i {
  font-size: 48px;
  color: #cbd5e1;
}

.saved-images-empty p {
  font-size: 16px;
  margin: 0;
}

.saved-image-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.saved-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #8b5cf6;
}

.saved-image-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.saved-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.saved-image-card:hover .saved-image-preview img {
  transform: scale(1.05);
}

.saved-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.saved-image-card:hover .saved-image-overlay {
  opacity: 1;
}

.saved-image-use-btn,
.saved-image-delete-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.saved-image-use-btn {
  color: white;
  background: #10b981;
}

.saved-image-use-btn:hover {
  transform: scale(1.05);
}

.saved-image-delete-btn {
  color: white;
  background: #ef4444;
}

.saved-image-delete-btn:hover {
  transform: scale(1.05);
}

.saved-image-info {
  padding: 12px;
}

.saved-image-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 5px;
}

.saved-image-pet,
.saved-image-gender {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.saved-image-date {
  font-size: 11px;
  color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-saved-images-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* .floating-btn-text {
    display: none;
  } */

  .saved-images-content {
    width: 95vw;
    max-height: 85vh;
    margin: 20px;
  }

  .saved-images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .saved-images-header {
    padding: 16px 20px;
  }

  .saved-images-header h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .saved-images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .saved-image-overlay {
    flex-direction: column;
    gap: 4px;
  }

  .saved-image-use-btn,
  .saved-image-delete-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}
/* Credits badge */
.credits-badge {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Credits Modal */
.credits-modal-content {
  max-width: 520px;
  width: 100%;
  padding: 20px 16px 24px;
}

.credits-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 8px 8px;
}

.credits-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: #0f172a;
  font-weight: 800;
}

.credits-subtitle {
  margin: 0;
  font-size: 16x;
  line-height: 1.5;
  color: #475569;
}

.credits-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credits-input {
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.credits-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.credits-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
}
.credits-consent input {
  appearance: auto;
}

.credits-error {
  color: #e11d48;
  font-size: 12.5px;
  min-height: 16px;
}

.credits-submit {
  justify-content: center;
  font-size: 15px;
}

@media (max-width: 480px) {
  .credits-modal-content {
    max-width: 92vw;
  }
  .credits-title {
    font-size: 20px;
  }
  .credits-subtitle {
    font-size: 14px;
  }
}
