* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B9D;
  --primary-dark: #E55A8A;
  --secondary-color: #7C5CBF;
  --accent-color: #FFD93D;
  --background-start: #FFF5F8;
  --background-end: #F0E6FF;
  --text-primary: #2D2D2D;
  --text-secondary: #666666;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
  --shadow-hover: 0 6px 30px rgba(255, 107, 157, 0.3);
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Background Decorations - Cartoon Babies */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.baby-decoration {
  position: absolute;
  opacity: 0.15;
  filter: blur(1px);
  border-radius: 50%;
}

.baby-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.baby-2 {
  width: 180px;
  height: 180px;
  top: 60%;
  right: 5%;
  animation: float 8s ease-in-out infinite 1s;
}

.baby-3 {
  width: 160px;
  height: 160px;
  bottom: 10%;
  left: 15%;
  animation: float 7s ease-in-out infinite 2s;
}

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

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps */
.step {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.step.active {
  display: block;
}

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

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-small {
  margin-bottom: 20px;
}

.logo-small h1 {
  font-size: 1.8rem;
}

.logo-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 10px;
  animation: wiggle 2s ease-in-out infinite;
}

.logo-small .logo-icon {
  font-size: 2.5rem;
}

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

.logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Input Section */
.input-section {
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.input-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.input-section input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-align: center;
  border: 3px solid #E8E8E8;
  border-radius: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  letter-spacing: 2px;
}

.input-section input#caller-name {
  font-size: 1.1rem;
  letter-spacing: 0;
  margin-top: 8px;
}

.input-section input:focus {
  border-color: var(--primary-color);
}

.input-section input::placeholder {
  color: #CCCCCC;
  font-weight: 400;
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 30px;
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.4rem;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: var(--secondary-color);
  background: transparent;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-buy {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

/* Loading */
.loading-content {
  text-align: center;
}

.spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border: 6px solid #E8E8E8;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.loading-status {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-note {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Preview */
.preview-content {
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.preview-content h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.lyrics-box {
  background: linear-gradient(135deg, #FFF9E6, #FFF5F8);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.lyrics-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

#lyrics-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

.audio-player {
  margin-bottom: 25px;
}

.audio-player audio {
  width: 100%;
  border-radius: 12px;
}

.download-section {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border-radius: 16px;
  margin-bottom: 15px;
}

.price-info {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.price-info strong {
  color: #4CAF50;
  font-size: 1.3rem;
}

/* Success */
.success-content {
  text-align: center;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.success-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.success-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
  .logo h1 {
    font-size: 2rem;
  }

  .logo-icon {
    font-size: 3rem;
  }

  .input-section input {
    font-size: 1.2rem;
  }

  .baby-decoration {
    opacity: 0.1;
  }

  .baby-1 {
    width: 120px;
    height: 120px;
  }

  .baby-2 {
    width: 100px;
    height: 100px;
  }

  .baby-3 {
    width: 90px;
    height: 90px;
  }
}
