body {
  background-color: #0a0a0a;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Tabs */
.nav-tab.active {
  color: #D4AF37;
}
.nav-tab.active > div {
  display: block;
}
.nav-tab > div {
  display: none;
}

  /* Custom Scrollbar */
  .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
  }
  .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
  }
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
  }

  /* Buttons */
  .btn-gold {
    background: linear-gradient(135deg, #b8860b 0%, #D4AF37 50%, #b8860b 100%);
    color: #0a0a0a;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
  }
  .btn-gold:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  }
  .btn-gold:active {
    transform: scale(0.98);
  }
  .btn-gold:disabled {
    opacity: 0.6;
    pointer-events: none;
  }

  /* Form Elements */
  .opt-card {
    background-color: rgba(39, 39, 42, 0.4);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .opt-card:hover {
    background-color: rgba(63, 63, 70, 0.6);
  }
  .opt-card.selected {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    color: #D4AF37;
  }

  .toggle-track[data-on="true"] {
    background-color: #D4AF37;
    border-color: #D4AF37;
  }
  .toggle-track[data-on="true"] .toggle-thumb {
    background-color: #0a0a0a;
    left: calc(100% - 18px); /* 16px thumb + 2px padding */
  }

  /* Suggestions */
  .suggestion-chip {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    color: #71717a;
    font-family: inherit;
    font-size: 0.85rem;
    transition: color 0.2s;
    border-bottom: 1px dashed rgba(63, 63, 70, 0.3);
  }
  .suggestion-chip:hover {
    color: #D4AF37;
  }
  
  /* Input Name Rows */
  .name-row {
    width: 100%;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid transparent;
    transition: border-color 0.2s;
  }
  .name-row:focus-within {
    border-color: rgba(212, 175, 55, 0.5);
  }
  .name-num {
    color: #D4AF37;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
  }
  .name-row input {
    background: transparent;
    border: none;
    outline: none;
    color: #e4e4e7;
    width: 100%;
    font-size: 1rem;
  }

/* ─── Landing Page ───────────────────────────────────────────────────────────── */

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); }
  50%       { text-shadow: 0 0 20px rgba(212, 175, 55, 1), 0 0 40px rgba(212, 175, 55, 0.4); }
}

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(60px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, -25px); }
  66%       { transform: translate(-20px, 20px); }
}

.landing-logo-anim {
  animation: fadeDown 0.5s ease-out 0.1s both;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite;
}
.landing-orb-2 { animation-delay: -9s; }

.word-reveal {
  display: inline-block;
  animation: wordReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both;
}

.gold-glow {
  color: #D4AF37;
  animation: wordReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both,
             glowPulse 3s ease-in-out 1.5s infinite;
}

.title-sm {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em;
  color: #e4e4e7;
}

.title-lg {
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em;
  margin: 0.05em 0;
}

.landing-btn-wrap {
  opacity: 0;
  animation: fadeUp 0.5s ease 0.9s both;
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.btn-inizia {
  background: linear-gradient(135deg, #b8860b 0%, #D4AF37 50%, #b8860b 100%);
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transition: box-shadow 0.3s ease, transform 0.15s ease;
}
.btn-inizia:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5), 0 8px 32px rgba(212, 175, 55, 0.2);
}

/* ─── Animations for sliding steps inside left pane ────────────────────────── */
.step-fade-in {
  animation: stepFadeIn 0.4s ease-out forwards;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Show Right state layers */
.pane-layer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}
.pane-layer.active {
  opacity: 1;
  pointer-events: all;
  z-index: 20;
}