/* Welcome Overlay Styles */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

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

.welcome-overlay.hidden {
  display: none;
}

.welcome-modal {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-modal::-webkit-scrollbar {
  width: 8px;
}

.welcome-modal::-webkit-scrollbar-track {
  background: transparent;
}

.welcome-modal::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 48px 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.welcome-header p {
  font-size: 17px;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.welcome-content {
  padding: 40px 48px 48px;
}

.content-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  margin-bottom: 32px;
  align-items: start;
}

.app-preview {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.app-preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s infinite;
}

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

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 4px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.feature-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.feature-text p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  font-weight: 500;
}

.privacy-note {
  background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
  border-left: 4px solid #48bb78;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.1);
}

.privacy-note p {
  font-size: 14px;
  color: #22543d;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.privacy-note strong {
  font-weight: 700;
}

.pricing {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pricing h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.pricing-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-option {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-option .value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-option .period {
  font-size: 13px;
  color: #718096;
  white-space: nowrap;
  font-weight: 600;
}

.welcome-cta {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  letter-spacing: -0.2px;
}

.welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.4);
}

.welcome-cta:active {
  transform: translateY(0);
}

.welcome-cta-container {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .welcome-modal {
    max-height: 95vh;
    border-radius: 20px;
  }

  .welcome-header {
    padding: 32px 24px 28px;
  }

  .welcome-header h1 {
    font-size: 26px;
  }

  .welcome-header p {
    font-size: 15px;
  }

  .welcome-content {
    padding: 28px 24px 32px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .app-preview {
    height: 180px;
  }

  .features {
    gap: 18px;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .feature-text h3 {
    font-size: 14px;
  }

  .feature-text p {
    font-size: 13px;
  }

  .privacy-note {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .privacy-note p {
    font-size: 13px;
  }

  .pricing {
    flex-direction: column;
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: center;
    gap: 16px;
  }

  .pricing h2 {
    font-size: 15px;
  }

  .pricing-details {
    flex-direction: column;
    gap: 10px;
  }

  .pricing-option .value {
    font-size: 20px;
  }

  .welcome-cta {
    padding: 14px;
    font-size: 15px;
  }
}
